Arduino UNO-Based Dual Ultrasonic Sensor and Servo Motor Control System with IR Receiver
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 micro servos, two ultrasonic sensors, an IR receiver, and a pushbutton. The circuit is designed to interface these components for various control and sensing applications. The document includes a component list, wiring details, and the embedded code used in the microcontroller.
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
Micro Servo 9G (1)
- Description: A small servo motor used for precise control of angular position.
- Pins: GND, +5V, PWM
Micro Servo 9G (2)
- Description: A small servo motor used for precise control of angular position.
- Pins: GND, +5V, PWM
Ultrasonic Sensor (1)
- Description: A sensor used to measure distance by using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
Ultrasonic Sensor (2)
- Description: A sensor used to measure distance by using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
VS1838B IR Receiver
- Description: An infrared receiver used to receive IR signals.
- Pins: OUT, GND, VCC
Pushbutton
- Description: A simple pushbutton switch.
- Pins: Pin 3 (out), Pin 4 (out), Pin 1 (in), Pin 2 (in)
Wiring Details
Arduino UNO
- D2: Connected to Pushbutton Pin 1 (in) and Pin 2 (in)
- D5: Connected to Ultrasonic Sensor (1) Trigger
- D6: Connected to Ultrasonic Sensor (1) Echo
- D7: Connected to Ultrasonic Sensor (2) Trigger
- D8: Connected to Ultrasonic Sensor (2) Echo
- D9: Connected to Micro Servo 9G (2) PWM
- D10: Connected to Micro Servo 9G (1) PWM
Micro Servo 9G (1)
- GND: Connected to common ground
- +5V: Connected to common +5V
- PWM: Connected to Arduino UNO D10
Micro Servo 9G (2)
- GND: Connected to common ground
- +5V: Connected to common +5V
- PWM: Connected to Arduino UNO D9
Ultrasonic Sensor (1)
- +VCC: Connected to common +5V
- Trigger: Connected to Arduino UNO D5
- Echo: Connected to Arduino UNO D6
- GND: Connected to common ground
Ultrasonic Sensor (2)
- +VCC: Connected to common +5V
- Trigger: Connected to Arduino UNO D7
- Echo: Connected to Arduino UNO D8
- GND: Connected to common ground
VS1838B IR Receiver
- OUT: Not connected
- GND: Connected to common ground
- VCC: Connected to common +5V
Pushbutton
- Pin 1 (in): Connected to Arduino UNO D2
- Pin 2 (in): Connected to Arduino UNO D2
- Pin 3 (out): Connected to common +5V
- Pin 4 (out): Connected to common +5V
Code Documentation
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. The setup() function is used to initialize any settings or configurations, and the loop() function contains the main code that runs repeatedly.
This document provides a comprehensive overview of the circuit, including the components used, their wiring, and the embedded code. This should serve as a useful reference for understanding and replicating the circuit.