Happy2013 wrote:Sensor connection, top left is being used for power, bottom left is connected for input to pin 15 and the other one is used for ground
From the datasheet
- The pin that connects to the case is GND
- The next insulated pin (black circle around it at point passing through the case) CLOSEST to GND pin is output.
- The next is Vdd
On your picture
- Top is GND
- Bottom left is Output
- Bottom right is Vdd
You would find it easier to mount things on bread board if the sensor bridged the central divide. That way it woul leave plenty of locations to connect wires to pins. Align it with Vdd pin on on side of divide and the other pins on the other side of the divide. That way you have plenty of breadborad sockets going out each side to connect other wires/resiistors to pins.
I would also connect a voltage meter (or digital multimeter on voltage setting) across the output resistor to monitor what is happening when triggered or not to PROVE
that the sensor is working and then when that is working see if the software is really working.
I suspect wiring problems and possibly also software problems.
Just another techie on the net - For GPIO boards see http:///www.facebook.com/pcservicesreading