Hi
This is my first Arduino based project I’m doing. I’m a very experienced programmer but a lousy electronics engineer.
My idea is to add a photo resistor to the clock so the brightness gets adjusted to actual amount of ambient light.
My question is: Is it as simple is this ?
Add a photo resistor like this to PA5 or PA7 with the following schematic:
PhotoR 10K
+5 o---///--.--///---o GND
|
Pin PA5 o
( found on http://playground.arduino.cc/Learning/PhotoResistor )
And than read it with analogRead(4) or analogRead(6) in the code ?
Thanks for any help,
Jankoen