I've kinda got a question. I left my Arduino so I cant check it out, but I kinda try to understand how internal analog input pull up resistor gets in circuit
I understand what is pull ups and pull downs, just how should I connect LDR if I'm using internal pull up?
Note the internal pullup isn't actually a resistor(*), isn't linear, is only spec'd to be between
20k and 50k. If you are measuring something with an analog pin, use only an external
resistor of known value.
(*) FETs are used on chips like this to mimic resistors since they are
easy to fabricate on die. For a high resistance value the FET will have a long
narrow gate. The resistance of such a device is voltage dependent.
MarkT:
Note the internal pullup isn't actually a resistor, isn't linear, is only spec'd to be between 20k and 50k. If you are measuring something with an analog pin, use only an external resistor of known value.
Somewhat irrelevant in this case - he's sensing an LDR which isn't that linear anyway. And I doubt the accuracy is critical but at least it should be repeatable.
KarolisL:
So what would be good application for internal pullup?
Most things - including an LDR. It will work fine, particularly at low light levels. You may however need an external pull-up to "calibrate" the LDR for higher light levels where its resistance is less than about 5k.