Arduino UNO-Based Battery-Powered Robotic Car 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 an Arduino UNO microcontroller, motor drivers, motors, sensors, and a Bluetooth module. The circuit is designed to control motors and read sensor data, with the capability to communicate wirelessly via Bluetooth.
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
Motor amarillo motorreductor hobby
- Description: A small DC motor with a gearbox.
- Pins: vcc, GND
L9110
- Description: A dual-channel motor driver.
- Pins: MOTOR B-A, MOTOR B-B, MOTOR A-A, MOTOR A-B, B-IA, B-IB, GND, VCC, A-IA, A-IB
2x 18650
- Description: A battery pack consisting of two 18650 lithium-ion cells.
- Pins: vcc, gnd
HC-SR04 Ultrasonic Sensor
- Description: An ultrasonic distance sensor.
- Pins: VCC, TRIG, ECHO, GND
IR Sensor
- Description: An infrared sensor for obstacle detection.
- Pins: out, gnd, vcc
HC-06
- Description: A Bluetooth module for wireless communication.
- Pins: RXD, TXD, GND, VCC
Rocker Switch (SPST)
- Description: A single-pole single-throw switch.
- Pins: 1, 2
Wiring Details
Arduino UNO
5V connected to:
- L9110 (VCC)
- IR Sensor (vcc)
- HC-06 (VCC)
- HC-SR04 Ultrasonic Sensor (VCC)
- IR Sensor (vcc)
- L9110 (VCC)
GND connected to:
- 2x 18650 (gnd)
- L9110 (GND)
- IR Sensor (gnd)
- HC-06 (GND)
- HC-SR04 Ultrasonic Sensor (GND)
- IR Sensor (gnd)
- L9110 (GND)
Vin connected to:
- Rocker Switch (SPST) (1)
D13 connected to:
- HC-SR04 Ultrasonic Sensor (ECHO)
D12 connected to:
- HC-SR04 Ultrasonic Sensor (TRIG)
D11 connected to:
- L9110 (B-IA)
D10 connected to:
- L9110 (B-IB)
D9 connected to:
- L9110 (A-IA)
D8 connected to:
- IR Sensor (out)
D7 connected to:
- IR Sensor (out)
D6 connected to:
- L9110 (A-IB)
D5 connected to:
- L9110 (B-IA)
D4 connected to:
- HC-06 (RXD)
D3 connected to:
- L9110 (B-IB)
D2 connected to:
- HC-06 (TXD)
Motor amarillo motorreductor hobby
vcc connected to:
- L9110 (MOTOR B-B)
- L9110 (MOTOR A-B)
GND connected to:
- L9110 (MOTOR B-A)
- L9110 (MOTOR A-A)
L9110
VCC connected to:
- Arduino UNO (5V)
GND connected to:
- Arduino UNO (GND)
B-IA connected to:
- Arduino UNO (D11)
B-IB connected to:
- Arduino UNO (D10)
A-IA connected to:
- Arduino UNO (D9)
A-IB connected to:
- Arduino UNO (D6)
MOTOR B-A connected to:
- Motor amarillo motorreductor hobby (GND)
MOTOR B-B connected to:
- Motor amarillo motorreductor hobby (vcc)
MOTOR A-A connected to:
- Motor amarillo motorreductor hobby (GND)
MOTOR A-B connected to:
- Motor amarillo motorreductor hobby (vcc)
2x 18650
gnd connected to:
- Arduino UNO (GND)
vcc connected to:
- Rocker Switch (SPST) (2)
HC-SR04 Ultrasonic Sensor
VCC connected to:
- Arduino UNO (5V)
GND connected to:
- Arduino UNO (GND)
ECHO connected to:
- Arduino UNO (D13)
TRIG connected to:
- Arduino UNO (D12)
IR Sensor
vcc connected to:
- Arduino UNO (5V)
gnd connected to:
- Arduino UNO (GND)
out connected to:
- Arduino UNO (D8)
- Arduino UNO (D7)
HC-06
VCC connected to:
- Arduino UNO (5V)
GND connected to:
- Arduino UNO (GND)
RXD connected to:
- Arduino UNO (D4)
TXD connected to:
- Arduino UNO (D2)
Rocker Switch (SPST)
1 connected to:
- Arduino UNO (Vin)
2 connected to:
- 2x 18650 (vcc)
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. The setup() function is where you initialize your components and settings, and the loop() function is where the main logic of your program runs repeatedly.