- This topic has 4 replies, 5 voices, and was last updated 9 years, 1 month ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
|
Miscellaneous › Others › ldr sensor
how do i interface a ldr sensor with atmega 16????
Hi erika,
Connect one end of LDR to ground and the other end to positive through a resistor not less than 1K.
Connect the common point of LDR and the resistor to one of the ADC pin of the ATMEGA.
Connect the one terminal of LDR with ground and another terminal connected to VCC through register. Output terminal present between LDR and register which is connect to the pin of atmega 16.
light depend resistor also type of variable resistor, it has self resistance , any sensor or any electronic device shoul hav some feed, i mean to say powers upply, so connect LDR to Vcc and ground, but it is variable resistance so it may draw power in variable manner, so stablise circuit connect pull up or pull down resistance. i suggest pull down is better to you initially.
pull down configuration: connect LDR point A to Vcc, point B to 10Kohms resistor of one end anotther end of 10K you have to connect to the ground. and connect junction point of both to the A0 pin of Arduino.
it depends upon ur application
what u want to do?
do u want to convert analog voltage present at LDR output into digital? to measure amount of light?
or u just want to get high or low state as per light and dark areas?