This is my first time using a BeagleBone Black (it's a Rev
C), and I started out with the "Blink
on-board LED" and "Blink external LED" demos, both of which worked
perfectly. Then I advanced to the PIR
Motion Sensor demo, and I'm quite certain I connected everything just as they
said, but I can't seem to get it to work.
At first the LED light turned on right away, and I got a constant succession of
"Motion Detected" messages. Then I realized that the code assumed an
active-LOW output from the PIR, but my PIR is active-HIGH, so I changed the lines
if(x.value === 0){
b.digitalWrite(led, 1);
console.log("Motion Detected");
to instead be
if(x.value === 1){
b.digitalWrite(led, 1);
console.log("Motion Detected");
In this case the light does not come on, and I get a constant succession
of "No Motion Detected" messages...and the PIR never detects motion,
no matter how much I move, or how close I am. I even tried a different PIR (also active-HIGH), and got the exact same
results. I also tried removing the pull-up resistor, which also did not work.
Then I found this post...
...which makes me think that the demo isn't working because I'm not using the *exact* PIR sensor prescribed in the PIR Motion Sensor demo. If that is the case, where do I purchase that PIR sensor? I cannot find a link to it anywhere.
Thanks in advance for the help!
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/05mb5cpk2lrfpakujb3dbjkfjgq2cuvle2%404ax.com.
For more options, visit https://groups.google.com/d/optout.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/b7d2b2a9-9443-4b83-91a3-c8d11e1f1323%40googlegroups.com.