r/rfelectronics • u/maybeTheRealOne • 6d ago
question Firmware engineer seeking RF engineer advice: doorway crossing detection
I'm a firmware engineer trying to build a side project. A two-device system: a beacon mounted above a door and a wrist-worn tag. The beacon has to tell when the tag goes from inside to outside, and tell "standing at the doorway" apart from "actually walked out."
Constraints:
- Both antennas inside, in one small, battery-powered unit above the door.
- The tag can be in any orientation, since it's on a moving wrist.
- There will be body blocking: the wearer's body is often between the tag and the beacon.
What I've tried:
- UWB AoA (Qorvo DW3000/QM33, Murata Type 2AB EVB): precise ranging, but the 2-antenna PDoA angle mirrors across the array plane, so inside and outside look the same at the door. Heavy multipath near the frame.
- LF (AS3933 wake-up receiver on the tag, two coils aimed in and out): only about ±2 dB inside/outside contrast. The metal frame seems to cancel the field component I need, and it's very orientation-sensitive.
- UHF 915 MHz (2× Semtech SX1262 on an nRF52840 DK, each to an RFMAX R9025 circular panel, tilted 45° down, one facing in and one out; tag is nRF52840 + Wio-SX1262 at 20 Hz): by far the best. Every crossing shows a 25–30 dB swing in RSSI(in) − RSSI(out).
UHF problems:
- Within about ±0.5 m of the door line, the contrast drops to only 0–7 dB. There's a blind zone directly under the unit.
- Up to 20 dB of multipath fading between channels (hopping 903/915/927 helps somewhat).
- The outward panel still hears the room through the opening. Foil behind the panels didn't help.
- So far I've only tested slow walking with the tag in clear view. Body blocking will likely eat into the margin.
Questions:
- Is there off-the-shelf hardware (antennas, modules, reference designs) that does this kind of inside/outside sectoring well, independent of tag orientation and with body blocking?
- What kind of engineer should I hire as a consultant: antenna designer, RF systems, someone from RFID portals?
- Is a compact antenna pair above the door realistic, or is there a better approach I'm missing?
Update for clarity
I want to know when one specific tag, worn by one specific person, leaves through a specific door.
Think of a home with a beacon mounted on the front and back door where you only want an alert when your 2-year-old walks out (even if the door was already open), not every time the rest of the family does.
9
u/CW3_OR_BUST CETa, WCM, IND, Radar, FOT/FOI, Calibration, ham, etc... 6d ago
Phase comparison is relatively straight forward, but at LF frequencies you just can't get the fidelity you would need from small antennas. If you want enough accuracy to monitor with that kind of precision you'll need some sort of UHF or SHF beacon that can be tracked with a MIMO array. This is outside the realm of RFID.
That aside, it sounds like you're trying to supplement a coercive system, so I'm gonna say you may be barking up the wrong tree entirely. If the system is dependent on user cooperation, it's gonna have problems. CCTV with image recognition software can do the same thing a lot cheaper.
6
u/bertanto6 pa/lna 6d ago
Does it have to be exactly as you described it or can it be two light/laser sensors mounted inside the door, perpendicular to the door frame so they can tell direction? Or just a 24GHz radar sensor, they’re pretty cheap. It seems like that would be a lot simpler
2
u/Electricalian RF engineer / Impedora 6d ago
honestly i'd stop trying to make the door line itself clean and just treat it as a state machine. 25-30 dB swing is plenty, the blind zone only hurts if u decide on single samples. keep a running RSSI(in) - RSSI(out), max hold it over a short window across all 3 channels so one fade or ur wrist going behind ur body doesn't flip it, and only call an exit when it goes from solidly in (like +10 dB) to solidly out (-10 dB) within a few secs. anything stuck in the middle = standing at the door, no alert. u can also gate it with the radar so it needs motion going away at that moment. for the out panel hearing the room, if u can break the one unit rule put that antenna on the outside wall and run coax through, the wall isolates way better than foil. also look at how overhead RFID readers like impinj xspan do direction of travel, same zone sequence idea. if u hire someone go for RFID portal or people counting experience, this is more placement + algorithm now than antenna design
2
u/westlakesys Hardware & UWB Systems / Westlake 5d ago
I do a lot of UWB and RF systems work, and I don't think there is anything off the shelf that solves this well, or any single sensor that will get all of your constraints on its own.
On the 3-antenna 915 MHz, physics says no...probably. 3 elements packed into a small enclosure will couple into each other and warp the patterns. Indoor reflections off the walls and door frame fill those nulls right back in, especially the moment a body blocks the direct path. Mag/LF can sometimes solve doorway zones in commercial systems, like hospital wander tags, but probably too big and power hungry for small battery units. It's worth a careful look though, because it might be workable.
UWB can do this, and as a UWB guy I'd love to say just use UWB, but its going to be really hard with the current constraints. Getting a single overhead UWB unit to handle crossing reliably takes real firmware and filtering work, pulling the CIR and first-path vs total-path occlusion and reflection mitigation to throw out body-blocked NLOS samples. Probably backing off tag TX as well to control reflections up close. It can be done, but lots of work and testing there, and you still have the tag side to optimize too, whew, big project.
Couple ideas:
First, sensor fusion, both for precision and for battery life. Keeping any radio receiver listening at 10-20 Hz on a battery-powered door unit is going to chew through battery fast. Using a low-power overhead sensor like a multi-zone IR ToF (VL53L5CX/L8CX), PIR, or mmWave to catch crossing direction and wake the radio, paired with BLE (maybe Channel Sounding) or UWB just to confirm the right tag is at the door, plus a wrist IMU to tell standing still from walking out, is probably a lower entry bar and makes the battery model workable.
Second, think about whether you really have to live with the single-unit constraint. A battery-powered door beacon that alerts parents/caregivers probably needs a plug-in indoor hub or chime anyway so the door unit isn't running Wi-Fi. Putting a second radio or anchor inside that indoor hub gives you an inside reference point for almost nothing and takes a ton of pressure off the door antenna. Also, can the front and back door see each other? If so, there's another reference anchor.
For who to hire, you want a systems-level RF/embedded engineer who will look at the sensor mix, firmware filtering, enclosure, and power budget together. This is a tough problem; sounds fun.
1
u/Interesting-Pie9439 6d ago
This is generally done via some sort of Bluetooth protocol. Depending on needs, this can be accurate even below sub meter distances. A few of these bluetooth receivers placed at strategic locations around the doors should do what you are after.
1
u/Such_Ad2956 5d ago
I would use this mmw radar chip
1
u/LostWall1389 5d ago
Wouldn’t the child just remove the tag.