Hi,

I am trying to use an ldr with the pot command, i tried connecting it in this order - pin-> ldr-> cap -> gnd

and it seems to work, but not very well, if i cover the ldr i get a value of zero from POT, at normal room light i get about 150, if I cover it slightly the vlaue goes down, but if i shine a torch on it it goes down again to about 30!?

I tried connecting the pin to the cap to gnd, and the pin to the ldr to +5v, but could not get it to work at all.

I belive the second way to be the correct way to wire it? I have tried different values from 1 to 255 for pot with no effect.i just get a reading of 0 which will not change.

Thanks for any help, Stu