Ldrs...

Status
Not open for further replies.

anshul1993

New Member
am trying to make a dice which rolls when i have kept my hands on the ldr but stops when i remove my hand.
I am using atmega8535 for this.
I am facing difficulty in programming.
Like, even if i put my hand, loop stops after displaying 1.
can any1 please help??
 

More information is needed -

Which pin on your MCU do you have the LDR hooked up to?

Do you have a pull up resistor on that pin? If so, what is its value?

What is the "dark" resistance of the LDR?

What is the "light" resistance of the LDR?

Do you have said pin configured as an input in software?

Can you post up your code?
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…