Microcontroller › 8051 › automatic street light controller dbt › using LDR with an ADC or
March 6, 2014 at 5:01 pm
#11216
Ashutosh Bhatt
Participant
using LDR with an ADC or comparator depends upon what you want to do
if you simply want to ON / OFF LED light as light fall / not fall on LDR then use comparator
if you want to vary intensity of LED as light intensity changes then use ADC
yes also you can fed direct output of LDR to micro controller. in that case try to detect logic 1 on pin when light does not fall on LDR