My radar system so far

Nov 26, 2026 Last reply: 1 day ago 3 Replies
Jump to replies (3)

Two weeks into Arduino and this is the biggest thing I've built yet. It's a radar system with an ultrasonic sensor on a servo, running off two ESP8266 boards. ESP1 handles the joystick module and sensor power, controls the servo, and runs all the code. ESP2 just powers the servo.



Yes it's ugly and unpolished, but it works and I'm happy with it.



I cheaped out on the interface since I figured the whole thing might not work anyway, so I used AI for that part. For detecting distance I went with pulseIn(echoPin, HIGH, 3000) and set the max range to 15cm for a start.



The ESP makes its own network, so when you connect and open a web address it takes you straight to the interface. Pretty happy with how it came out for a first serious build.


Two weeks in and you've got a working radar with its own web interface, that's a solid start. My first real build was nowhere near that ambitious, just a temperature logger that mostly fell apart until I sorted the wiring. What worked for me was keeping the code separate from the hardware mess, so I get why you leaned on AI for the interface and saved your energy for the part that had to actually work. The servo on its own board is a smart split too, those little motors can drag a supply down when they swing. I'm curious how you settled on 15cm as the max range, was that just a conservative starting point or did something in the readings push you there? I remember fiddling with the timeout on my own ultrasonic tests and finding short ranges made the numbers feel a lot more trustworthy. Also, when you say the ESP makes its own network, does the interface refresh live as the servo sweeps or do you reload the page each time? Either way, ugly and working beats pretty and dead every time.

I like that you went with the ESP making its own network instead of running it through a router, that would have been my biggest worry with a moving build like this. I did something similar with a little weather station on a NodeMCU and having the interface live on the board itself meant I could take it anywhere in the house and still see it on my phone. The 15cm range sounds sensible for a first pass. When I first tried an ultrasonic sensor I set mine way too wide and got junk readings everywhere, so trimming it down like you did probably saved you a lot of confusion. Did you find the servo held its position well while scanning, or does it drift a bit between sweeps? Mine had a habit of settling slightly off where I told it, which made the radar picture smear over time. On the AI interface, honestly same. I hand-wrote my first one in plain HTML and spent an entire weekend fiddling with buttons that barely worked. For the second build I let AI do the layout and just tweaked it, and I got a better result in an afternoon. No shame in it at all, the interface is the part people see and it says nothing about whether you understand the sensor side, which is clearly the part you care about.

The two-ESP split is the bit that caught my eye. I once hung a servo off the same board as my sensor and every sweep the readings went haywire, took me ages to twig the motor was starving the rest of it. Splitting the supply like you did is the fix I stumbled into the hard way.

Out of curiosity, how are you handling the sweep itself, is the servo stepping a degree at a time or swinging across? And do you find the joystick approach beats just letting it scan on its own?

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required