HACKER Q&A
📣 jvanderbot

Could I build a radar for tracking cars and boats?


I have a street where cars travel a bit too fast sometimes, and a family cabin where boats do too.

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.


  👤 solardev Accepted Answer ✓
There's projects like: https://blog.arduino.cc/2021/06/29/diy-radar-speed-sign-look... but not sure about the regulations.

Not 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.


👤 lnwlebjel
Late to the party, but this is something I've wanted to do for a long time. My background is in signal processing but the hardware has always been somewhat mysterious to me. Here is an interesting link from MIT:

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.


👤 JohnFen
> Is this even legal? I live in the USA.

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.


👤 farseer
Even if any of it is not legal, as long as you transmit only on common free for all frequencies such as Wifi, it would be very difficult to catch you. You can always plead innocence by saying you were building the next gen wifi point to point link in your garage.

👤 giantg2
It would be interesting to use motion tracking on a web cam to target vehicles with lidar.

👤 jvanderbot
Conclusion: I'll put it on the backlog. There are guides such as this one on YouTube. It seems accessible.

https://m.youtube.com/watch?v=igrN_wd_g74


👤 pinewurst
You could consider something like piggybacking on a WiFi signal which would be legal.

👤 inquisitor27552
seems legal, i mean as long as you dont accidentally attach cannons to it and turn it into battleships.

👤 brudgers
There are probably more intersting hobbies that aren’t motivated by anger at other people for just going about their lives in reasonable ways.

Is this even legal?

If it matters, ask your lawyer. If it doesn’t matter, it doesn’t matter. Good luck.