Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Based Ultrasonic Distance Measurement with OLED Display and Alert System

View and Edit Project In Cirkit DesignerImage of Arduino UNO Based Ultrasonic Distance Measurement with OLED Display and Alert System

Circuit Documentation

Summary

This circuit integrates an Arduino UNO microcontroller with a variety of peripherals including an HC-SR04 Ultrasonic Sensor, an OLED 1.3" display, a buzzer, two white LEDs, and a rocker switch. The circuit is powered by a 5V battery and also includes a 12V battery for additional power requirements. The Arduino UNO serves as the central processing unit, interfacing with the ultrasonic sensor for distance measurement, the OLED display for data output, and the buzzer for audio signaling. The LEDs are controlled by a rocker switch and powered by the 5V battery.

Component List

Wiring Details

Arduino UNO

HC-SR04 Ultrasonic Sensor

OLED 1.3" Display

Buzzer

LED: Two Pin (white)

Rocker Switch

5V Battery

12V Battery

Documented Code

Arduino UNO Code (sketch.ino)

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

The provided code is a template with empty setup() and loop() functions, which are the standard structure for Arduino sketches. The setup() function is intended to contain initialization code that runs once when the microcontroller is powered on or reset. The loop() function is for code that runs continuously as long as the Arduino is powered.

Additional Notes