This project is a DIY Radar system that uses an ESP32 to control an HC-SR04 ultrasonic sensor mounted on an SG90S servo motor. The system scans a 180-degree area, detects obstacles, and sends the data to a PC. Using the Processing IDE, I built a custom graphical user interface (GUI) that visualizes the distance and angle of objects in real-time, mimicking a professional radar display.
How it Works
The project is divided into three main components:
The Scanner: The ESP32 rotates the MG90S servo from 15 to 165 degrees and back. At every degree, the HC-SR04 sensor triggers an ultrasonic pulse to measure the distance.
- The Scanner: The ESP32 rotates the MG90S servo from 15 to 165 degrees and back. At every degree, the HC-SR04 sensor triggers an ultrasonic pulse to meas…
This project is a DIY Radar system that uses an ESP32 to control an HC-SR04 ultrasonic sensor mounted on an SG90S servo motor. The system scans a 180-degree area, detects obstacles, and sends the data to a PC. Using the Processing IDE, I built a custom graphical user interface (GUI) that visualizes the distance and angle of objects in real-time, mimicking a professional radar display.
How it Works
The project is divided into three main components:
The Scanner: The ESP32 rotates the MG90S servo from 15 to 165 degrees and back. At every degree, the HC-SR04 sensor triggers an ultrasonic pulse to measure the distance.
- The Scanner: The ESP32 rotates the MG90S servo from 15 to 165 degrees and back. At every degree, the HC-SR04 sensor triggers an ultrasonic pulse to measure the distance.
Data Transmission: The ESP32 sends the angle and distance values through the Serial port in a specific format: angle,distance..
- Data Transmission: The ESP32 sends the angle and distance values through the Serial port in a specific format:
angle,distance..
The Visualization: A Processing script listens to the Serial port, parses the incoming data, and draws a green radar sweep. When an object is detected, it highlights the area in red.
- The Visualization: A Processing script listens to the Serial port, parses the incoming data, and draws a green radar sweep. When an object is detected, it highlights the area in red.
This project is a perfect introduction to sensor fusion and serial data visualization. Future improvements could include adding a second sensor for 3D mapping or connecting the ESP32 to Wi-Fi to view the radar data on a web-based dashboard.
If you found this helpful, please respect the project and leave a "Respect" on Hackster!