Arduino UNO-Based Smart Robotic System with Ultrasonic and IR Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, two Micro servo 9G motors, a TCRT 5000 IR sensor, an HC-SR04 Ultrasonic sensor, and two blue LEDs. The Arduino UNO serves as the central control unit, interfacing with the sensors and controlling the servos and LEDs.
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
- Description: A small and lightweight servo motor.
- Pins: GND, +5V, PWM
TCRT 5000 IR Sensor
- Description: An infrared sensor used for object detection.
- Pins: VCC, GND, DO, AO
HC-SR04 Ultrasonic Sensor
- Description: An ultrasonic sensor used for distance measurement.
- Pins: VCC, TRIG, ECHO, GND
LED: Two Pin (blue)
- Description: A blue LED with two pins.
- Pins: cathode, anode
Wiring Details
Arduino UNO
- 5V: Connected to +5V of both Micro servo 9G motors, VCC of the HC-SR04 Ultrasonic Sensor, and VCC of the TCRT 5000 IR Sensor.
- GND: Connected to GND of both Micro servo 9G motors, GND of the HC-SR04 Ultrasonic Sensor, GND of the TCRT 5000 IR Sensor, and cathode of both blue LEDs.
- D10: Connected to PWM of the first Micro servo 9G motor.
- D9: Connected to PWM of the second Micro servo 9G motor.
- D4: Connected to DO of the TCRT 5000 IR Sensor.
- D2: Connected to TRIG of the HC-SR04 Ultrasonic Sensor.
- D5: Connected to ECHO of the HC-SR04 Ultrasonic Sensor.
- D13: Connected to anode of the first blue LED.
- D12: Connected to anode of the second blue LED.
Micro servo 9G (1st)
- GND: Connected to GND of the Arduino UNO.
- +5V: Connected to 5V of the Arduino UNO.
- PWM: Connected to D10 of the Arduino UNO.
Micro servo 9G (2nd)
- GND: Connected to GND of the Arduino UNO.
- +5V: Connected to 5V of the Arduino UNO.
- PWM: Connected to D9 of the Arduino UNO.
TCRT 5000 IR Sensor
- VCC: Connected to 5V of the Arduino UNO.
- GND: Connected to GND of the Arduino UNO.
- DO: Connected to D4 of the Arduino UNO.
HC-SR04 Ultrasonic Sensor
- VCC: Connected to 5V of the Arduino UNO.
- GND: Connected to GND of the Arduino UNO.
- TRIG: Connected to D2 of the Arduino UNO.
- ECHO: Connected to D5 of the Arduino UNO.
LED: Two Pin (blue) (1st)
- cathode: Connected to GND of the Arduino UNO.
- anode: Connected to D13 of the Arduino UNO.
LED: Two Pin (blue) (2nd)
- cathode: Connected to GND of the Arduino UNO.
- anode: Connected to D12 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)