How to setup multiple X-Band motion detectors
For my project, I plan to use two sensors (arranged about 120 degrees to each other) pointed outwards through a window so as to detect people walking by the sidewalk outside. I assume that I will encounter interference if they both are pulsing at the same time.
Is there a recommended approach to this? I have been unable to find any reference of anyone using multiple X-Band sensors in the same project. A reference like this one for the Maxsonar sensors would be great. My first thought is to stagger operation of each by enabling and disabling them in rapid sequence, but I'm not sure at what frequency to best use or how that will effect the readings. I'll just have to experiment, but any advice is much appreciated!
Is there a recommended approach to this? I have been unable to find any reference of anyone using multiple X-Band sensors in the same project. A reference like this one for the Maxsonar sensors would be great. My first thought is to stagger operation of each by enabling and disabling them in rapid sequence, but I'm not sure at what frequency to best use or how that will effect the readings. I'll just have to experiment, but any advice is much appreciated!
Comments
If you decide you need to stagger their operations, then use the ENABLE pin to do so. Do not stagger their operations by powering them up and down. The Xband units are modulated at 2KHz, so you definitely would not want to stagger operations at a rate near that. Maybe you could get away with staggering every 1.0 second or so, but I'm just guessing on that.
I am just now testing the results of staggering them with an interval of 100 milliseconds (using the ENABLE pin.) Ideally I'd like to lower that frequency so that it's more responsive, but I'm worried that I'll stop getting a meaningful pulse count if it goes much lower. Preliminary results seem promising enough, although I've got some fine-tuning of the frequency, pulse count threshold, and sensor sensitivity to get reliable person detection working...
Maybe you can shield their rears with some foil or something. But what concerns me most of all is that you have their beams separated by 120 degrees through the same pane of glass. Have you tested this arrangement with people on the sidewalk? I'm concerned that angle might be so great that you are losing a lot of your power via reflections off the glass. Even though radar will travel through glass, such an angle will reflect some of the power - I just don't know how much.
After a little testing, I determined that placing the sensors at about 45 degrees to the glass (at right angles to each other) seems to be the best compromise. I can't say exactly how much sensitivity is lost due to the glass and its angle, but it is not so much as to be a real concern in this particular application. Now, when a person walks by, they are mostly detected early enough to trigger an action that is visible to them as they are first in view of the window front.
I have the sensors' sensitivity potentiometers dialed to nearly the minimum. In code, each sensor is enabled for 100ms and the number of pulse cycles are counted. In this setup, the threshold for triggering action is 2 (this filters out a few minor movements that seem to always be present.)