Hello folks,
I am not usually one to ask questions, mostly I figure things out eventually myself with research but I am properly stumped on this one...
I am trying to get an Arduino to sense the output from an opto-interrupter, Kingbright KTIR0221DS, which I bought from Farnell in the UK (
Datasheet).
I have the photo-diode attached to a 220R resistor on the high side, and directly to ground on the low side, however I can't verify if this is working because it is IR and my iPhone can't see this wavelength I guess.
I have the photo-transistor pair connected directly to 5V on the high side and to ground through a 10K resistor on the emitter, there is a tap between the two which I take off to A0 on the Arduino.
This reads a value of about 700-800 (75%) on the Arduino ADC. Equally if I flip the circuit so it is pull up, not down this doesn't work either.
I am really lost as to what to do, I have followed several online tutorials with no luck. What is the correct circuit and values for this kind of component, how can I check it isn't a faulty component?
Thanks
Tom