I'm trying to use the values of an LDR to control the fade of an LED. The LDR is only turning out values between 941 and 1003 which I have downscaled by dividing by 4, but the changes in the LED are barely noticable. How do I make the LDR more sensitive and produce the full range of values (0 - 1024)?
The aim is to eventually be able to control multiple LEDs in this way.
The circuit is as follows:
5V to a 220ohm resistor - AnalogPin(1) - LDR - GND
Pin11(PWM) - 220ohm resistor - LED - GND
Thanks AWOL, trying a few different resistors but it tends to bracket the output or just moves it down. Any ideas on a resistance value that would work?
I think the main problem is that the LDR only gives readings of between (700 - 900) or (200-400) and I'm not sure why this is happening. I imagine it is to do with its resistance rating. If I connect the LDR directly to 5V, I only get readings of 1023, is there another way of connecting the circuit?