Arduino-Powered Solar-Powered Bluetooth-Controlled Robotic Car with Ultrasonic Obstacle Detection
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit designed to control a robotic vehicle. The circuit includes gearmotors for movement, an L298N motor driver for motor control, an Arduino UNO for processing, a solar panel and charge controller for power management, a 12V battery for power storage, an HC-05 Bluetooth module for wireless communication, and an HC-SR04 ultrasonic sensor for obstacle detection.
Component List
Gearmotor DC Wheels left
- Description: DC motor for left wheels
- Pins: PIN1, PIN2
Gearmotor DC Wheels Right
- Description: DC motor for right wheels
- Pins: PIN1, PIN2
L298N DC motor driver
- Description: Motor driver for controlling DC motors
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
Arduino UNO
- Description: Microcontroller for processing and control
- 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
Solar Panel
- Description: Solar panel for power generation
- Pins: gnd, vcc
Charge controller
- Description: Charge controller for managing battery charging
- Pins: GND, BAT, Vin
12V 200Ah Battery
- Description: Battery for power storage
- Pins: GND, 12V
HC-05 Bluetooth Module
- Description: Bluetooth module for wireless communication
- Pins: Key, VCC, TXD, RXD, State, GND
HC-SR04 Ultrasonic Sensor
- Description: Ultrasonic sensor for obstacle detection
- Pins: VCC, TRIG, ECHO, GND
Wiring Details
Gearmotor DC Wheels left
PIN1 is connected to:
- Gearmotor DC Wheels Right PIN2
- L298N DC motor driver OUT2
PIN2 is connected to:
- Gearmotor DC Wheels Right PIN1
- L298N DC motor driver OUT1
Gearmotor DC Wheels Right
PIN1 is connected to:
- Gearmotor DC Wheels left PIN2
- L298N DC motor driver OUT1
PIN2 is connected to:
- Gearmotor DC Wheels left PIN1
- L298N DC motor driver OUT2
L298N DC motor driver
OUT1 is connected to:
- Gearmotor DC Wheels Right PIN1
- Gearmotor DC Wheels left PIN2
OUT2 is connected to:
- Gearmotor DC Wheels Right PIN2
- Gearmotor DC Wheels left PIN1
OUT3 is connected to:
- Gearmotor DC Wheels Right PIN2
- Gearmotor DC Wheels left PIN1
OUT4 is connected to:
- Gearmotor DC Wheels Right PIN1
- Gearmotor DC Wheels left PIN2
12V is connected to:
- 12V 200Ah Battery 12V
- Charge controller BAT
GND is connected to:
- 12V 200Ah Battery GND
- Charge controller GND
5V is connected to:
- HC-SR04 Ultrasonic Sensor VCC
- HC-05 Bluetooth Module VCC
- Arduino UNO 5V
ENA is connected to:
- Arduino UNO D2
IN1 is connected to:
- Arduino UNO D7
IN2 is connected to:
- Arduino UNO D6
IN3 is connected to:
- Arduino UNO D5
IN4 is connected to:
- Arduino UNO D4
ENB is connected to:
- Arduino UNO D3
Arduino UNO
5V is connected to:
- HC-SR04 Ultrasonic Sensor VCC
- HC-05 Bluetooth Module VCC
- L298N DC motor driver 5V
D2 is connected to:
- L298N DC motor driver ENA
D7 is connected to:
- L298N DC motor driver IN1
D6 is connected to:
- L298N DC motor driver IN2
D5 is connected to:
- L298N DC motor driver IN3
D4 is connected to:
- L298N DC motor driver IN4
D3 is connected to:
- L298N DC motor driver ENB
GND is connected to:
- HC-SR04 Ultrasonic Sensor GND
- HC-05 Bluetooth Module GND
D12 is connected to:
- HC-SR04 Ultrasonic Sensor ECHO
D11 is connected to:
- HC-SR04 Ultrasonic Sensor TRIG
D1 is connected to:
- HC-05 Bluetooth Module RXD
D0 is connected to:
- HC-05 Bluetooth Module TXD
Solar Panel
gnd is connected to:
- Charge controller GND
vcc is connected to:
- Charge controller Vin
Charge controller
GND is connected to:
- 12V 200Ah Battery GND
- L298N DC motor driver GND
- Solar Panel gnd
BAT is connected to:
- 12V 200Ah Battery 12V
- L298N DC motor driver 12V
Vin is connected to:
- Solar Panel vcc
12V 200Ah Battery
12V is connected to:
- Charge controller BAT
- L298N DC motor driver 12V
GND is connected to:
- Charge controller GND
- L298N DC motor driver GND
HC-05 Bluetooth Module
VCC is connected to:
- Arduino UNO 5V
- L298N DC motor driver 5V
GND is connected to:
- Arduino UNO GND
- HC-SR04 Ultrasonic Sensor GND
RXD is connected to:
- Arduino UNO D1
TXD is connected to:
- Arduino UNO D0
HC-SR04 Ultrasonic Sensor
VCC is connected to:
- Arduino UNO 5V
- L298N DC motor driver 5V
GND is connected to:
- Arduino UNO GND
- HC-05 Bluetooth Module GND
ECHO is connected to:
- Arduino UNO D12
TRIG is connected to:
- Arduino UNO D11
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)