Arduino UNO-Based Battery-Powered Robotic System with Ultrasonic and IR Sensors
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various sensors, actuators, and microcontrollers. The circuit is designed to interface with multiple components such as IR sensors, an ultrasonic sensor, servos, a BLDC motor, and an electronic speed controller (ESC). The circuit is powered by a LiPo battery and controlled by two Arduino UNO microcontrollers.
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
Lipo Battery
- Description: A rechargeable lithium polymer battery.
- Pins: VCC, GND
BLDC Motor
- Description: A brushless DC motor.
- Pins: Wire A, Wire B, Wire C
Electronic Speed Controller (ESC)
- Description: A device used to control the speed of an electric motor.
- Pins: Battery VCC, Battery GND, Signal, 5v out, GND out, M1, M2, M3
Servo
- Description: A rotary actuator that allows for precise control of angular position.
- Pins: GND, VCC, PWM
HC-SR04 Ultrasonic Sensor
- Description: A sensor used for measuring distance using ultrasonic waves.
- Pins: VCC, TRIG, ECHO, GND
IR Sensor
- Description: An infrared sensor used for detecting objects.
- Pins: out, gnd, vcc
Wiring Details
Arduino UNO
- 5V: Connected to VCC of IR sensors and HC-SR04 Ultrasonic Sensor.
- GND: Connected to GND of IR sensors, HC-SR04 Ultrasonic Sensor, Lipo Battery, ESC, and Servos.
- A0: Connected to out of IR sensor.
- A1: Connected to out of IR sensor.
- A2: Connected to out of IR sensor.
- D3: Connected to Signal of ESC.
- D4: Connected to TRIG of HC-SR04 Ultrasonic Sensor.
- D5: Connected to ECHO of HC-SR04 Ultrasonic Sensor.
- D9: Connected to PWM of Servo.
- D10: Connected to PWM of Servo.
- Vin: Connected to VCC of Lipo Battery and Battery VCC of ESC.
Lipo Battery
- VCC: Connected to Vin of Arduino UNO and Battery VCC of ESC.
- GND: Connected to GND of Arduino UNO, ESC, and Servos.
BLDC Motor
- Wire A: Connected to M3 of ESC.
- Wire B: Connected to M2 of ESC.
- Wire C: Connected to M1 of ESC.
Electronic Speed Controller (ESC)
- Battery VCC: Connected to VCC of Lipo Battery and Vin of Arduino UNO.
- Battery GND: Connected to GND of Lipo Battery.
- Signal: Connected to D3 of Arduino UNO.
- M1: Connected to Wire C of BLDC Motor.
- M2: Connected to Wire B of BLDC Motor.
- M3: Connected to Wire A of BLDC Motor.
Servo
- GND: Connected to GND of Arduino UNO and Lipo Battery.
- VCC: Connected to VCC of Lipo Battery.
- PWM: Connected to D9 and D10 of Arduino UNO.
HC-SR04 Ultrasonic Sensor
- VCC: Connected to 5V of Arduino UNO.
- GND: Connected to GND of Arduino UNO.
- TRIG: Connected to D4 of Arduino UNO.
- ECHO: Connected to D5 of Arduino UNO.
IR Sensor
- vcc: Connected to 5V of Arduino UNO.
- gnd: Connected to GND of Arduino UNO.
- out: Connected to A0, A1, and A2 of Arduino UNO.
Documented Code
Arduino UNO (1st Instance)
File Name: sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino UNO (2nd Instance)
File Name: sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This documentation provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code running on the microcontrollers.