This is my first time using a BeagleBone Black (it's a Rev C), and I started out with the "Blink on-board LED <http://beagleboard.org/Support/BoneScript/demo_blinkled/>" and "Blink external LED <http://beagleboard.org/Support/BoneScript/demo_blinkled_external/>" demos, both of which worked perfectly. Then I advanced to the PIR Motion Sensor demo <http://beagleboard.org/Support/BoneScript/PIRMotionSensor>, 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 <https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/>, 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 <https://www.virtuabotix.com/product/virtuabotix-pir-motion-sensor/> (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... https://groups.google.com/forum/#!searchin/beagleboard/pir%7Csort:relevance/beagleboard/ydD2Cyi5fJo/QK0jHa53NMgJ ...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 <http://beagleboard.org/Support/BoneScript/PIRMotionSensor>. 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/99a587e3-6068-47e6-946e-bc9584f302b0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
