Parallax x-band motion sensor + Arduino Uno
apocalyps
Posts: 2
Hi all!
I'm a complete newbie on electronics. However, I've bought an Arduino Uno and a X-band motion detector which I now want to connect. Has anyone here done that? I've have only found connection examples between this sensor and Arduino Nano. If anyone has a wire diagram that they could share with me I would be delighted. I have succesfully connected a PIR-sensor to the board, and I have written a code to use it as a trigger to my GoPro camera (via the WI-FI remote control). However, when connecting the X-band sensor nothing works :-(. I guess there is something about the output from the x-band sensor, that it gives a oscillating signal instead of a HIGH/LOW signal?? Anyone that have any information on this respect?
Cheers Martin
I'm a complete newbie on electronics. However, I've bought an Arduino Uno and a X-band motion detector which I now want to connect. Has anyone here done that? I've have only found connection examples between this sensor and Arduino Nano. If anyone has a wire diagram that they could share with me I would be delighted. I have succesfully connected a PIR-sensor to the board, and I have written a code to use it as a trigger to my GoPro camera (via the WI-FI remote control). However, when connecting the X-band sensor nothing works :-(. I guess there is something about the output from the x-band sensor, that it gives a oscillating signal instead of a HIGH/LOW signal?? Anyone that have any information on this respect?
Cheers Martin
Comments
The X-band motion detector requires 4 connections. One to +5V. One to ground. One (EN) that you can leave unconnected if you want the detector to run whenever it has power or connected to a digital output that's LOW when you want the detector to turn off and HIGH when you want the detector to be on. One (OUT) output that cycles between HIGH and LOW when motion is detected and the frequency of this oscillation is related to the speed of the motion towards or away from the detector (see the documentation for details).
I realized that it didn't work because my Arduino code included a "sleep mode". As soon as I discarded that part of the code, the sensor worked just fine.
Cheers Martin
Thanks