Independent Embedded Sensing Prototype

Ultrasonic Scanning Prototype

A servo-swept HC-SR04 acoustic ranging rig streaming live angle-and-distance telemetry over serial to a radar-style Processing visualization.

  • Arduino Uno
  • HC-SR04 Ultrasonic
  • Servo Sweep
  • Serial UART
  • Processing
Category
Independent hardware prototype
Status
Working bench demonstration
Role
Hardware assembly & serial visualization
Sensing physics
Acoustic ultrasonic ranging (not RF radar)
INTERACTIVE 3D ULTRASONIC RIG · ACOUSTIC RANGING
Drag anywhere to rotate 360°

Purpose & Distinction from RF Radar

This standalone bench prototype explores swept distance measurement and real-time spatial visualization using inexpensive embedded components. While the 3D sweep above and the Processing desktop display below borrow a familiar semicircular radar-style arc for readability, the physical sensing mechanism is strictly acoustic ultrasonic time-of-flight ranging (HC-SR04), not radio-frequency radar — and this prototype is documented independently from the EEVS robot.

System Architecture

  • Actuated sensor head: A dual-transducer HC-SR04 ultrasonic module mounted on a small servo motor sweeps across a forward arc on the desk surface.
  • Microcontroller acquisition: An Arduino Uno steps the servo angle, triggers ultrasonic echo measurements, converts pulse duration to range, and streams angle/distance pairs over USB serial (9600 baud).
  • Desktop visualization: A Processing sketch auto-detects the active macOS USB serial port (preferring cu.usbmodem / cu.usbserial), parses incoming packets, and plots range arcs out to 40 cm with live angle and obstacle status indicators.

Practical Engineering Detail

Hardcoding serial port indices breaks every time a USB device reconnects on macOS. In the Processing host sketch (visible in the capture above), adding deterministic port discovery across available serial interfaces removed manual reconfiguration between test runs, while guarding against malformed or out-of-range readings kept the arc visualization readable as obstacles were placed in front of the sweeping transducer.

Bench Demonstrations

Two portrait clips side-by-side capture the live transition from the sweeping hardware rig to the updating range display, plus a close-up of the servo-mounted ultrasonic transducer in motion.

18.3 s · Panning from the sweeping ultrasonic/Arduino rig to the live Processing range display (muted).
11.9 s · Close-up of the servo sweeping the HC-SR04 ultrasonic transducer across its arc (muted).

Limitations & Next Steps

Acoustic beamwidth, oblique surface reflections, and hobby servo backlash limit angular resolution, and no formal range-accuracy or scan-rate benchmark was logged for this bench build. Next steps would include adding a rigid 3D-printed servo bracket, measuring repeatability against a calibrated ruler grid, and publishing clean standalone firmware and Processing source.