thomasnewmancomputer engineer
  • work
  • writing
  • about
  • contact
All projects

Thomas Newman / Computer Engineer

Explore projects ↗GitHub ↗Get in touch ↗

Arduino Radar

Project 03Instrumentation / data visualization

A servo-swept ultrasonic radar that streams angle and distance over serial into a live Streamlit polar plot.

ArduinoC++PythonpyserialStreamlit
Arduino Radar
Embedded systems1 min read
View source

Role: Solo personal project: hardware, firmware, and visualization.

How it works#

Source codetext
Servo sweep -> Ultrasonic ping -> Arduino -> Serial -> Python / Streamlit

The Arduino steps a servo across the arc. At each angle it fires the ultrasonic sensor, converts echo time to distance, shows the reading on the LCD, and prints an angle,distance line over serial. On the computer, a Python script reads the stream with pyserial and redraws a polar plot in Streamlit.

The sweep range for the sensor was 0-180 degrees, and the maximum usable range for the sensor is about 100 cm. The LCD on the breadboard displays the current distance value for the user to view physically.

Challenges
  • Noisy or zero readings from the ultrasonic sensor
  • Keeping the plot responsive while serial data keeps arriving

On this page

  1. How it works
  2. Source code

Source code

Open repository

Last edited on October 27, 2026 at 12:17 AM EDT

← Previous projectPantry AppNext project →Autonomous Plant-Watering System