Arduino UNO-Based Ultrasonic Distance Sensor with OLED Display and LED Indicator
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with an Ultrasonic Sensor, an OLED display, a red LED, and a 18650 battery in a holder. The Arduino UNO serves as the central controller, receiving input from the Ultrasonic Sensor and displaying information on the OLED display. The LED is used as an indicator, and the 18650 battery provides power to the circuit.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
Ultrasonic Sensor
- Description: A sensor used to measure distance by using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
OLED 1.3"
- Description: A 1.3-inch OLED display used for visual output.
- Pins: GND, VCC, SCL, SDA
LED: Two Pin (red)
- Description: A simple red LED used as an indicator.
- Pins: cathode, anode
18650 in holder
- Description: A holder for a 18650 battery, providing power to the circuit.
- Pins: GND, VCC
Wiring Details
Arduino UNO
- 5V: Connected to +VCC of the Ultrasonic Sensor and VCC of the OLED 1.3"
- GND: Connected to GND of the OLED 1.3", GND of the 18650 in holder, GND of the Ultrasonic Sensor, and cathode of the LED
- Vin: Connected to VCC of the 18650 in holder
- A4: Connected to SDA of the OLED 1.3"
- A5: Connected to SCL of the OLED 1.3"
- D13: Connected to anode of the LED
- D9: Connected to Trigger of the Ultrasonic Sensor
- D8: Connected to Echo of the Ultrasonic Sensor
Ultrasonic Sensor
- +VCC: Connected to 5V of the Arduino UNO
- Trigger: Connected to D9 of the Arduino UNO
- Echo: Connected to D8 of the Arduino UNO
- GND: Connected to GND of the Arduino UNO
OLED 1.3"
- VCC: Connected to 5V of the Arduino UNO
- GND: Connected to GND of the Arduino UNO
- SDA: Connected to A4 of the Arduino UNO
- SCL: Connected to A5 of the Arduino UNO
LED: Two Pin (red)
- cathode: Connected to GND of the Arduino UNO
- anode: Connected to D13 of the Arduino UNO
18650 in holder
- GND: Connected to GND of the Arduino UNO
- VCC: Connected to Vin of the Arduino UNO
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:
}
Additional Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the microcontroller.