How to connect a light dependent resistor to a picaxe 28X1
By vince086
2008-10-29 13:27
2008-10-29 13:27
Hi,
I recently go a light dependent resistor
http://194.201.138.187/epages/Store.storefront/?ObjectPath=/Shops/Store....
and i cant seem to figure out how to connect it to my picaxe28X1, would anybody here know how ???
Any help would be apreciated !!!!!

Try the manual.
thanks, will see if that
tryed it but i am not able
I would assume that one pin
LDR Description
would the 10 K resistor be
would the 10 K resistor be 1/2 W or 1/4 W ?
this site sells them for a good price so... http://www.futurlec.com/ValuePacks.shtml
yes
so, a 10K resistor would be
No, brown, black orange. 10K
Fritz and I were talking
Fritz and I were talking about this earlier with his FritzLDR.
The diagram on the left is what you want. The resistor value doesn't have to be precise but will affect the sensitivity of your LDR. Some LDR's have a high range of resistance up to 1M or more some have lower values of resistance. Measure it with it completely covered (dark resistance) and use a resistor of about half that value should give a good response.
completely dark measurement
It's not easy blacking out a sensitive LDR. I discovered that holding an LDR between thumb and index finger would not always give me the highest resistance. For my LDR tests (which I called "robot"), I made little black hoods from shrink tube. The opening in the bottom would let in too much light to make it really dark inside. I needed a second "source of shade", like a carton box placed over the whole breadboard.
8ik
thank you,will try this once
thank you,
will try this once I find a 10K resistor, hope it works !!!!
thanks again
resistor
I'm guessing limmit the
Resistor
The LDR is a light dependant resistor. when wired in series with another resistor it forms a voltage divider. When you connect your analog input between the LDR and the 10K resistor, the voltage at the analog input will be 5V divided by the total resistance of the two resistors multiplied by the value of the resistor connected to ground.
As the light causes the LDR to change, the voltage read by the analog input will change. If your LDR is connected to + and the 10K to negative then the more light, the higher the input. If you swap the resistors around then the more light, the lowere the input. In the Schematics the LDR is shown connected to positive so that more light equals a bigger value.