Pages: [1] 2   Go Down
Author Topic: X-Band Motion Detector + Arduino  (Read 6097 times)
0 Members and 1 Guest are viewing this topic.
Porto, Portugal
Offline Offline
Newbie
*
Karma: 1
Posts: 38
JoATMoN - Jack of All Trades, Master of None
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone

I wanted to create an instalation that requires the detection of people passing in front of it. The thing is, the detector, as well as the whole of the instalation have to be placed behind glass.

I've looked around a few sites and forums (as well as here), and I'm coming to the conclusion that my best option shall be the Parallax X-Band Motion Detector:



The thing is, I'm not sure if the Arduino will work with this, by 'listening' to it's OUT pin...

I was wondering if anyone could shine a light on this matter, as I would really like to avoid buying this online and then realizing that it doesn't work for some reason...

Thank you in advance to any and all responses...  smiley-grin
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 654
Posts: 50931
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A picture is worth a thousand words, but a link to a data sheet is worth even more.
Logged

Oppuurs, Belgium
Offline Offline
Jr. Member
**
Karma: 0
Posts: 94
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The OUT pin oscillates whenever motion is detected, and in general, the more motion, the
faster the oscillations.

Datasheet: http://www.parallax.com/Portals/0/Downloads/docs/prod/sens/32213-X-BandMotionDetector-v1.1.pdf

Greetings
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 310
Posts: 26632
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I wanted to create an instalation that requires the detection of people passing in front of it
You may have picked the wrong sensor.
This is a Doppler device, most sensitive to movement towards or away from the device, not across it.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 42
Posts: 5612
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
This is a Doppler device, most sensitive to movement towards or away from the device, not across it.

I think it will work; worst case, you might need to use two of the devices set at an angle to each other.

As far as it working with the Arduino, that shouldn't be a problem; its HIGH and LOW values it outputs are within the TTL signal level range the ATMega expects, so it should work OK connected to a digital pin.

I think it would be worth trying out for $30.00...

 smiley
Logged

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 310
Posts: 26632
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@Richard Crowley:
Quote
The transmitting and receiving sections are both self-contained in the unit.
Well, yes, we know that.

I think cr0sh was trying to point out that two units angled across the "installation" might introduce suffficient Doppler shift to trigger.
Think about how Doppler frequencies are produced.
« Last Edit: July 23, 2010, 05:05:39 pm by AWOL » Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Porto, Portugal
Offline Offline
Newbie
*
Karma: 1
Posts: 38
JoATMoN - Jack of All Trades, Master of None
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Uau, thanks everyone, for your replys and help smiley and thanks Richard, for your more in depth response. I think I will try this one for size, and I'll report back with my findings/project...

Should be good to have at least one Arduino project that uses this sensor
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi DPontes11,

i was wondering if you managed to get it working, because i'm in the process of building a similar installation.

i'd really like to know if and how you did it.

thanks in advance!

cheers
pez
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 362
Posts: 17307
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
No you don't need two of them. The transmitting and receiving sections are both self-contained in the unit.

I suspect that trying to use two of them would result in total sensor chaos. Both would be transmitting asynchronously at similar but not identical frequency and just result in massive interference with each other.

PS: I don't really see that this sensor give much better performance or features over their IR motion detector at a third the price, except that maybe it's ability to 'see' through non conductive material.
 http://www.parallax.com/Store/Sensors/ObjectDetection/tabid/176/CategoryID/51/List/0/SortField/0/Level/a/ProductID/83/Default.aspx

Lefty
« Last Edit: August 17, 2010, 05:03:36 pm by retrolefty » Logged

Porto, Portugal
Offline Offline
Newbie
*
Karma: 1
Posts: 38
JoATMoN - Jack of All Trades, Master of None
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That's exactly the thing, Lefty. I will need to 'see' through (quite thick) glass.. It seems to me that the only type of sensor that won't be jammed or its signal deflected by glass is a Doppler sensor...
Logged

Essex, UK
Offline Offline
Full Member
***
Karma: 4
Posts: 150
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have one of these on my breadboard right now. It is trivial to connect to the Arduino. 5V, GND and connect OUT directly to an analog input. I'm using a smoothing function on my readings from the pin whereby I set a minimum trigger threshold, minimum time above the trigger threshold and a maximum time below the threshold to disregard.

It is very sensitive and has a very wide field of view - the datasheet is accurate with its description of the FOV. Any motion in any direction will trigger it. You definitely do not have to be moving towards/away from it.

Because I'm interested only in a narrow field of view I am mounting mine inside a 2" square aluminium pipe - it just fits inside. There is an ebay seller that will include plastic end caps that make for great mounting points.

Glass will present no problem for this sensor - it will go straight through it. In an interior environment it may also go straight through thin walls and detect movement in the next room.

It's a fun sensor, you'll enjoy playing with it.
Logged

Home of the Nokia QVGA TFT LCD hacks: http://andybrown.me.uk

Porto, Portugal
Offline Offline
Newbie
*
Karma: 1
Posts: 38
JoATMoN - Jack of All Trades, Master of None
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Andy. I still haven't been able to order it, as I've been busy with other stuff.

What type of output can I expect from the sensor? Does it return the value of the detected frequency at a given moment?

Is it ok to read this signal as a discrete digital read, or do I have to read it as analog?
Logged

Essex, UK
Offline Offline
Full Member
***
Karma: 4
Posts: 150
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It's designed for a discrete digital read, I connected it to an analog pin because it was more convenient for me. You will simply get triggered = HIGH, not triggered = LOW in realtime as motion occurs within the sensor's field of view.

Basically Parallax have taken the raw radar sensor that you can get on ebay for about $10 and added the amplification and digitization circuitry that make it possible to plug it straight into a microcontroller.
Logged

Home of the Nokia QVGA TFT LCD hacks: http://andybrown.me.uk

Porto, Portugal
Offline Offline
Newbie
*
Karma: 1
Posts: 38
JoATMoN - Jack of All Trades, Master of None
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Awesome! thanks for the reply. I'll try to order it as soon as I have the time... then I'll post some code and probaly a video of ir working smiley
Logged

Porto, Portugal
Offline Offline
Newbie
*
Karma: 1
Posts: 38
JoATMoN - Jack of All Trades, Master of None
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The X-Band Motion detector is here!   smiley-grin
Logged

Pages: [1] 2   Go Up
Jump to: