Porto, Portugal
Offline
Newbie
Karma: 1
Posts: 38
JoATMoN - Jack of All Trades, Master of None
|
 |
« on: July 22, 2010, 10:20:04 am » |
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... 
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Online
Brattain Member
Karma: 316
Posts: 35532
Seattle, WA USA
|
 |
« Reply #1 on: July 22, 2010, 10:23:50 am » |
A picture is worth a thousand words, but a link to a data sheet is worth even more.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19067
I don't think you connected the grounds, Dave.
|
 |
« Reply #3 on: July 22, 2010, 11:06:37 am » |
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.
|
|
|
|
Phoenix, Arizona USA
Offline
Faraday Member
Karma: 27
Posts: 5082
Where's the beer?
|
 |
« Reply #4 on: July 22, 2010, 12:16:21 pm » |
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... 
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Offline
Brattain Member
Karma: 138
Posts: 19067
I don't think you connected the grounds, Dave.
|
 |
« Reply #5 on: July 23, 2010, 04:49:45 pm » |
@Richard Crowley: 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.
|
|
|
|
Porto, Portugal
Offline
Newbie
Karma: 1
Posts: 38
JoATMoN - Jack of All Trades, Master of None
|
 |
« Reply #6 on: July 29, 2010, 08:24:57 pm » |
Uau, thanks everyone, for your replys and help  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
Newbie
Karma: 0
Posts: 1
Arduino rocks
|
 |
« Reply #7 on: August 17, 2010, 04:47:57 pm » |
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
Brattain Member
Karma: 279
Posts: 15314
Measurement changes behavior
|
 |
« Reply #8 on: August 17, 2010, 04:52:47 pm » |
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.aspxLefty
|
|
|
|
« Last Edit: August 17, 2010, 05:03:36 pm by retrolefty »
|
Logged
|
|
|
|
|
Porto, Portugal
Offline
Newbie
Karma: 1
Posts: 38
JoATMoN - Jack of All Trades, Master of None
|
 |
« Reply #9 on: August 18, 2010, 04:41:00 am » |
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
Full Member
Karma: 4
Posts: 149
Arduino rocks
|
 |
« Reply #10 on: August 18, 2010, 01:06:40 pm » |
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
|
|
|
|
|
Porto, Portugal
Offline
Newbie
Karma: 1
Posts: 38
JoATMoN - Jack of All Trades, Master of None
|
 |
« Reply #11 on: August 19, 2010, 05:05:23 am » |
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
Full Member
Karma: 4
Posts: 149
Arduino rocks
|
 |
« Reply #12 on: August 19, 2010, 11:51:58 am » |
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
|
|
|
|
|
Porto, Portugal
Offline
Newbie
Karma: 1
Posts: 38
JoATMoN - Jack of All Trades, Master of None
|
 |
« Reply #13 on: August 19, 2010, 12:27:09 pm » |
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 
|
|
|
|
|
Logged
|
|
|
|
|
Porto, Portugal
Offline
Newbie
Karma: 1
Posts: 38
JoATMoN - Jack of All Trades, Master of None
|
 |
« Reply #14 on: September 01, 2010, 09:33:56 am » |
The X-Band Motion detector is here! 
|
|
|
|
|
Logged
|
|
|
|
|
|