28 open source boards using the HC-SR04
Real designs built with the HC-SR04, from public GitHub projects: a quick way to see how others power, decouple and connect it. Each board comes with its KiCad files, full parts list and a render — and you can simulate its firmware on HardLabs.
Sentinel arduino firmware
YousefAliAicha
170.2 × 119.4 mm20 parts2LMIT2Aegis embedded system
YousefAliAicha
78 × 82.1 mm9 parts2LMIT2ESP32
PCBbot
halherta
140 × 120 mm60 parts2LMIT1ESP32
SmartGeiger
ahnaf-tahmid-chowdhury
94 × 32 mm21 parts2LApache-2.01ESP32
ERS
t-robop
63.5 × 69.9 mm15 parts2LNo license1ESP32
Blink
Rando1f
74.9 × 82.6 mm5 parts2LMIT1AVR/Arduino
Arms Length
husnainxali
35.6 × 59.8 mm5 parts2LMIT1- schematic only · 28 partsAVR/Arduino
Cartesian Robot 3D Model
Mohammed-Shehsin
28 partsNo license1 AVR/Arduino
New file
takeyamayuki
300 × 300 mm130 parts2LMIT0NomobotSK
edantoni96
106.7 × 107.5 mm66 parts2LNo license0BRACHIOSAURUS
FelixStA52
110 × 119 mm48 parts2LNo license0ESP32
Autonomous seed planting robot
HusseinAlwali
81.6 × 144.1 mm25 parts2LMIT0AVR/Arduino
SPECTRODRIVE
omersoner-dev
153.5 × 161.3 mm23 parts2LNo license0ESP32
MCU breakout board
RudrakshKavari107
139 × 115 mm23 parts2LNo license0AVR/Arduino
SAM-ROBOT-CONTROLLER
dvmbnks
95.8 × 90.7 mm22 parts2LNo license0AVR/Arduino
Arduino water level monitor
Srushti-D-Hebbar
88.6 × 78.8 mm19 parts2LMIT0Distance Sensor
mourir09
87 × 84.5 mm11 parts2LNo license0AVR/Arduino
Toilet monitoring system
alepnabil
81.5 × 128.8 mm8 parts2LNo license0- schematic only · 9 partsESP32
Automatic irrigation system
david-oliver-karunia
9 partsMIT0 - schematic only · 6 partsAVR/Arduino
Koray s obstacle detecting car
koray9012
6 partsNo license0 - schematic only · 5 partsESP32
ServoTurret-ESP32
rupeeangad-rutech
5 partsNo license0 - schematic only · 4 partsAVR/Arduino
Irisbin
shrsauryam-spec
4 partsNo license0 AVR/Arduino
Product
takeyamayuki
300 × 300 mm130 parts2LMIT0AVR/Arduino
Main
takeyamayuki
124 × 181 mm68 parts2LMIT0AVR/Arduino
Mainkiban2019ver.4
furukawa1020
139.7 × 139.7 mm40 parts2LNo license0Ultrasonic
Kushal-Sachdeva78
120 × 120 mm5 parts2LMIT1Testrobot
ClubRobotInsat
71.1 × 82.6 mm19 parts2LApache-2.00Ultrasonic
pioneers
40.5 × 45.8 mm4 parts2LNo license8
How designs wire the HC-SR04
Read from the KiCad layouts of 22 open source designs, one per repository: what each pin of the HC-SR04 connects to, and the resistors, capacitors and other passives placed on it.
| Pin | Connected to | Parts on the pin |
|---|---|---|
| VCCpin 1 | Connected to: 5V 68% · a signal 23% | — |
| GNDpin 4 | Connected to: GND 86% | — |
2 more pins vary from design to design. Connections count pins, parts count designs; values in brackets are how many parts had that value. Designs read include Ultrasonic by pioneers, Aegis embedded system by YousefAliAicha, Sentinel arduino firmware by YousefAliAicha and SmartGeiger by ahnaf-tahmid-chowdhury.
The HC-SR04 in open source designs
The gallery holds 28 open source boards using the HC-SR04 from 27 GitHub repositories; a typical one measures about 95.8 × 115 mm and carries around 20 components.
100% are two-layer designs, the rest use four layers or more, and 50% carry an open source license.
The most starred is Ultrasonic by pioneers.
Parts used alongside the HC-SR04
Microcontrollers on boards using the HC-SR04
What boards using the HC-SR04 are built for
HC-SR04: common questions
Where can I find a HC-SR04 reference design?
Each of the 28 boards on this page is a real design using the HC-SR04. Open one to see how it is wired up, with the full BOM, a render of the layout and links to its KiCad files.
What parts are used alongside the HC-SR04?
The Arduino_UNO_R3, Arduino_Nano_v3.x, Arduino.MEGA.mini, ESP32-S3-DEVKITC-1-N8R2 and Pro_micro appear in the most repositories here.
Which microcontrollers do boards using the HC-SR04 use?
Most are built on AVR/Arduino (12) and ESP32 (8).
How big is a typical board using the HC-SR04?
The median is 95.8 × 115 mm, and 100% are two-layer designs.
What is the most popular open source board using the HC-SR04?
By GitHub stars, Ultrasonic by pioneers, with 8 stars.
Can I simulate one of these boards using the HC-SR04 before building it?
Yes. HardLabs turns a board's netlist and BOM into a working simulation, so you can boot and test firmware against it with no hardware on your desk.