Robbie-bob
New Member
I am trying to use an LDR as an input, and have read the analogue switches help sheet etc.
I have run a debug program to find the average max value for a room and a good low value for when the LDR is covered by a hand.
But I am having trouble when it comes to programming. I want it to light an LED when the value reads as below the average room value, but it seems to always read as below the average room value, however high I put the value, so the LED is always lit.
I am using an experimenter board at the moment with an 08M.
Please help!
Thanks
I have run a debug program to find the average max value for a room and a good low value for when the LDR is covered by a hand.
But I am having trouble when it comes to programming. I want it to light an LED when the value reads as below the average room value, but it seems to always read as below the average room value, however high I put the value, so the LED is always lit.
I am using an experimenter board at the moment with an 08M.
Please help!
Thanks