Ask HN: Could I build a radar for tracking cars and boats?
I think it'd be fun to plot speeds and courses, just for science, so to speak.
By "build" I mean make an antenna, signal generator, signal processor, and record echos to output range and velocity for fusing, association, and tracking, possibly using an MCU to record or broadcats tracks (position and speed over time).
I'm intimately familiar with tracking math and code (EKF, Batch Filters, old Bar Shalom methods, track association, etc).
I'm mildly familiar with MCU programming and PCB layout (have 3-ish decent PCB+MCU projects done in last 15 years).
I'm not familiar with FPGA, DSP, or complex signal processing.
I'm a Ham General and can manage electronics, oscilloscopes, etc.
Presumably the hardest part is timing and signal generation, and then signal processing.
Roadside ranges are < 100m, speeds < 20m/s.
Lakeside ranges are 100-200m, speeds as high as 20m/s.
Is this even legal? I live in the USA.
20 comments
[ 2.8 ms ] story [ 53.1 ms ] threadNot radar, but last year there was a thread from someone who uses a webcam to record trains, and measures speed just through their pixel changes and framerate: https://news.ycombinator.com/item?id=35738987
Might work well enough for fixed-route travel... railways especially, but maybe roads are close enough? Probably not as good if the vehicle has more directional freedom and can move diagonally or straight away from the camera. It's less likely to run into any radio licensing issues, though.
IANAL, not even remotely, but I have some amount of familiarity with this stuff. Don't take me at my word, though. Get expert advice instead.
FCC rules absolutely apply here, and the FCC has explicit guidance for radar transmitters (https://docs.fcc.gov/public/attachments/DA-96-2040A1.pdf). But which specific laws apply depends on a lot of things, such as what frequencies you're using.
The laws are a lot more lenient if you aren't selling the thing you make, but they still exist. In general, they boil down to "you can't cause interference with licensed transmitters" and "you can't use more than a weak signal without a license".
If I were doing a project like this, I'd probably look very hard at non-radio solutions, such as perhaps laser ranging, where there isn't much legal risk.
Edit: Apparently yes? Optical phased array lidars (https://lidarmag.com/2021/08/18/why-optical-phased-array-is-... or https://www.youtube.com/watch?v=5gml2tDogDI)
Probably one of the other solutions (LIDAR, machine vision in the visible, etc.) would be better for that? Or if it doesn't have to be all the time, maybe just hover a drone above them and record downwards?
I think vision is a good plan for a lake, with wide baseline. It's not great for a street with oncoming traffic.
Turns out, however, that there are COTS radars that will work in the <100m range so I might go that route for the house, and try vision for the lake.
Easier to use a few cameras on my roof (for wide baseline) and do triangulation. Maybe with GPS edge trigger.
But the appeal of a small antenna and MCU is also a factor. A 5W transmitter is small and easy to use, there isn't any traffic to deal with just occasional cars, Doppler effects are fairly well understood and radar has been around for 80 years so there's some retro cool too.
from 4-5 feet away, a person with 2 foot width ~= .5 radians or 28 degrees of pointing accuracy needed, and no tracking accuracy needed since it doesn't seem to follow targets well. (that second link the target is all of 2 feet away and 1 foot width).
100m away, an aproaching car has 2m width ~= 1/50 radians, or ~1 degree of pointing accuracy. More to keep on center of mass.
And a car at that range would be about 20 pixels wide. That doesn't inspire feelings of robust visual tracking the way "Big blue blob of paper that fills 20% of the view" would.
https://m.youtube.com/watch?v=igrN_wd_g74
Is this even legal?
If it matters, ask your lawyer. If it doesn’t matter, it doesn’t matter. Good luck.
If you do get a knock on your door, and the agents don't think you're actually trying to be malicious, what will happen is that you'll be told to stop. If you don't stop, then you'll get fined and your equipment will be confiscated.
BTW, WiFi frequencies are not "free for all", they're just permissively licensed.
http://ocw.mit.edu/resources/res-ll-003-build-a-small-radar-...
Other notes: https://hackaday.com/2015/04/07/build-a-phased-array-radar-i...
https://makezine.com/article/craft/diy-phased-array-radar-fr...
I really like the idea of using wifi signals, such that you'd have to build a receiver only. I'm not sure what the range would be but it seems like getting traffic speeds in front of the house would be possible.