PDA

View Full Version : LDR to 16F877A



azmax100
- 17th April 2009, 11:02
Hi.
Anybody can provide me a sch how to connect LDR to the analog input of 16F877a. What is the suitable max resistance do I need for the LDR?

mistergh
- 29th April 2009, 00:46
The circuit really depends on the type of ldr and the light conditions. More details please.

azmax100
- 29th April 2009, 08:33
Thnks misterg for responding.

The LDR is for my robot project. http://letsmakerobots.com/node/6408

I need the LDR as a light sensor but not sure how to conect to PIC and either to use the analog input or use the comparator on the PIC. I am not really understand how comparator works. still in learning stage.

Hope you or somebody in this forum can give some guide.

Thanks.

Bruce
- 29th April 2009, 17:18
Here's a link to using CDS cells with PBP. http://www.rentron.com/Micro-Bot/CDS.htm

azmax100
- 2nd May 2009, 07:06
Thanks Bruce.
Theres a lot of info there.Good for beginners like me.