I’m working on a project that remotely determines if a light is on or off in a room through the use of a phototransistor. I’m using an XBee configured with line passing on DIO pin 0. Below is a rough sketch of the circuit I’m using:
http://i41.tinypic.com/2dbl007.jpg
In isolated cases, the line passing works fine (putting 5v on one end mirrors 5v on the host) and the phototransistor circuit works fine when measuring with a voltmeter (less than 0.2V with light off and greater than 4.7V with the light on when measuring VOUT) however I’m running into a problem when putting the pieces together. What appears to be happening is that the digital input pin on the XBee is reading 5V with my meter and causing problems when hooking it to the phototransistor (VOUT connection in my schematic). As far as I can tell, there’s nothing in the XBee documentation or firmware that affects the voltage on that pin.
Forgive my lack of circuits/XBee knowledge, but is there something I’m missing here? Is there a way to hook these modules together through some special configuration with the XBee or adding an additional component to the circuit?
Thank you advance for your time!