Arduino UNO-Based Ultrasonic Sensor and Servo Motor Control System
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, a Tower Pro SG90 servo motor, and an Ultrasonic Sensor. The Arduino UNO serves as the central control unit, interfacing with the servo motor and the ultrasonic sensor to perform various tasks. The ultrasonic sensor is used to measure distance, and the servo motor can be controlled to move based on the sensor's readings.
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
Tower Pro SG90 Servo
- Description: A small and lightweight servo motor used for precise control of angular position.
- Pins: Signal, +5V, GND
Ultrasonic Sensor
- Description: A sensor used to measure distance by using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
Wiring Details
Arduino UNO
- 5V: Connected to +VCC of the Ultrasonic Sensor and +5V of the Tower Pro SG90 Servo.
- GND: Connected to GND of the Ultrasonic Sensor and GND of the Tower Pro SG90 Servo.
- D4: Connected to Trigger of the Ultrasonic Sensor.
- D3: Connected to Echo of the Ultrasonic Sensor.
- D2: Connected to Signal of the Tower Pro SG90 Servo.
Tower Pro SG90 Servo
- Signal: Connected to D2 of the Arduino UNO.
- +5V: Connected to 5V of the Arduino UNO.
- GND: Connected to GND of the Arduino UNO.
Ultrasonic Sensor
- +VCC: Connected to 5V of the Arduino UNO.
- Trigger: Connected to D4 of the Arduino UNO.
- Echo: Connected to D3 of the Arduino UNO.
- GND: Connected to GND of the Arduino UNO.
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:
}
Additional Documentation
// This file is intended for additional documentation purposes.
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.