Arduino UNO-Based Dual Ultrasonic Sensor and Servo System with LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, two HC-SR04 Ultrasonic Sensors, two Servo motors, an LCD screen, a 5V Adapter, and a socket. The circuit is designed to interface these components for various functionalities, including distance measurement, display, and motor control.
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
HC-SR04 Ultrasonic Sensor
- Description: A sensor used for distance measurement.
- Pins: VCC, TRIG, ECHO, GND
Servo
- Description: A motor used for precise control of angular position.
- Pins: GND, VCC, PWM
LCD screen 16x2 I2C
- Description: A 16x2 character LCD display with I2C interface.
- Pins: SCL, SDA, VCC, GND
Socket
- Description: A standard electrical socket.
- Pins: earth, life, neutral
5V Adapter
- Description: A power adapter providing 5V output.
- Pins: AC In 1, AC In 2, 5V, GND
Wiring Details
Arduino UNO
- 5V: Connected to 5V Adapter (5V), Servo (VCC), HC-SR04 Ultrasonic Sensor (VCC), LCD screen 16x2 I2C (VCC)
- GND: Connected to 5V Adapter (GND), HC-SR04 Ultrasonic Sensor (GND), Servo (GND), LCD screen 16x2 I2C (GND)
- A4: Connected to LCD screen 16x2 I2C (SDA)
- A5: Connected to LCD screen 16x2 I2C (SCL)
- D10: Connected to Servo (PWM)
- D9: Connected to Servo (PWM)
- D7: Connected to HC-SR04 Ultrasonic Sensor (TRIG)
- D6: Connected to HC-SR04 Ultrasonic Sensor (ECHO)
- D5: Connected to HC-SR04 Ultrasonic Sensor (TRIG)
- D4: Connected to HC-SR04 Ultrasonic Sensor (ECHO)
HC-SR04 Ultrasonic Sensor
- VCC: Connected to 5V Adapter (5V), Arduino UNO (5V)
- GND: Connected to 5V Adapter (GND), Arduino UNO (GND)
- TRIG: Connected to Arduino UNO (D7), Arduino UNO (D5)
- ECHO: Connected to Arduino UNO (D6), Arduino UNO (D4)
Servo
- VCC: Connected to 5V Adapter (5V), Arduino UNO (5V)
- GND: Connected to 5V Adapter (GND), Arduino UNO (GND)
- PWM: Connected to Arduino UNO (D10), Arduino UNO (D9)
LCD screen 16x2 I2C
- VCC: Connected to 5V Adapter (5V), Arduino UNO (5V)
- GND: Connected to 5V Adapter (GND), Arduino UNO (GND)
- SDA: Connected to Arduino UNO (A4)
- SCL: Connected to Arduino UNO (A5)
Socket
- earth: Not connected
- life: Not connected
- neutral: Not connected
5V Adapter
- 5V: Connected to Arduino UNO (5V), Servo (VCC), HC-SR04 Ultrasonic Sensor (VCC), LCD screen 16x2 I2C (VCC)
- GND: Connected to Arduino UNO (GND), HC-SR04 Ultrasonic Sensor (GND), Servo (GND), LCD screen 16x2 I2C (GND)
Documented Code
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO, with setup and loop functions defined but not yet implemented.