Hi all,
Background: I'm building a laser-projector using the arms of a hard disk. Because there is no encoder in these arms, I want to measure orientation of the arm using a LED and a photodiode (the arm will have a mirror for the laser, which I can then also use for the angular measurement). I got some photodiodes which a colleague gave me but I didn't know their type and had trouble connecting them, so I bought some BPW34s, but I'm having the same issues.
I connect the photodiode as in this scheme using a 0.5 MOhm resistor and connect the ADC-wire to the analog in A0 of the Arduino. When I read the pin (in my room, medium light), I get values around 910-940 (4.38 V when measured with my multimeter). When I cover the sensor the values increase to around 1000 (4.66 V with multimeter).
Can anyone tell me what I'm doing wrong? Can it be related to the fact that I'm using a too low-valued resistor? Thanks!
Harm