ant_thomas wrote:
When I enable the GPIO pin, create it as an input and cat the value it is constantly "1". Even without the VCC or GND (so Out + one other) connected it is still "1".
I've tried changing the jumper and tried adjusting the dials but never seem to get it to change to "0".
If you have wiringPi installed, then test the GPIO as follows:
Remove all hardware from the Pi:
Type:
Code: Select all
gpio mode 1 in
gpio mode 1 high
gpio read 1
gpio mode 1 low
gpio read 1
gpio mode 1 high
gpio read 1
You should get 1, then 0, then 1 from the gpio read commands.
And if that's OK, then start looking at the sensor.
One thing to know - the sensors need 5-10 seconds of no movement to stabilise. Then, when triggered, the'll hold the output for a set time. So you need to be still when you first power it up.
-Gordon