Projects / Ideas / Blue Pill sonar sweeper

Blue Pill sonar sweeper

IntermediateSensorsIdeaReviewed
In short

How do you build a blue Pill sonar sweeper?

A Blue Pill sweeps an HC-SR04 across an arc on a servo and draws the distances as a radar plot on an OLED. The sensor echo is 5 V, so divide it down to 3.3 V before the board pin. You need STM32 Blue Pill (STM32F103C8T6), ST-Link V2 programmer (clone), HC-SR04 Ultrasonic Sensor, SG90 Micro Servo, Resistor 1 kΩ × 3, SSD1306 OLED Display and Breadboard 830 Tie Points.

Level
Intermediate
Time
About 190 min
Parts
7
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Map distances around you as a radar plot.

How to build it

  1. Mount the sensor on the servo horn
  2. Divide the echo to 3.3 V
  3. Sweep the servo in 10 degree steps
  4. Measure the distance at each angle
  5. Plot the points on the OLED

Related projects

Common questions

What parts do I need for the blue Pill sonar sweeper?

STM32 Blue Pill (STM32F103C8T6), ST-Link V2 programmer (clone), HC-SR04 Ultrasonic Sensor, SG90 Micro Servo, Resistor 1 kΩ × 3, SSD1306 OLED Display and Breadboard 830 Tie Points.

How long does the blue Pill sonar sweeper take to build?

About 190 minutes for a intermediate maker.