Hello Arduino friends!
I just came across a weird problem when trying to read some sensor values.
The setup is this:
+12V ----- Photodiode ---x--- Resistor ------- GND
(The photodiode is in reverse and the 12V is just to increase responsiveness of the sensor)
When I now connect x (which has a few millivolts) to an analog input pin on the Arduino I can't get any useful readings at all.
All I get is:
0
0
0
0
0
1023
1023
0
0
0
0
0
1023
1023
0
0
...
It always jumps between zero and 1023.
If I now change the +12V and GND to the +5V out and GND of the Arduino it works like a charm.
Does anybody have an idea what the problem here might be (and how to solve it)?
Thanks a lot & have a great day!
Tom