Arduino UNO Bluetooth-Controlled Robotic Car with L298N Motor Drivers
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, two L298N DC motor drivers, multiple HC-05 Bluetooth modules, a 9V battery, and several hobby motors. The Arduino UNO controls the motor drivers, which in turn drive the motors. The Bluetooth modules provide wireless communication capabilities. The circuit is powered by a 9V battery.
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
L298N DC Motor Driver (2 units)
- Description: A dual H-Bridge motor driver module.
- 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
HC-05 Bluetooth Module (2 units)
- Description: A Bluetooth module for wireless communication.
- Pins: Key, VCC, GND, TXD, RXD, State
9V Battery
- Description: A standard 9V battery for power supply.
- Pins: +, -
Motor Amarillo Motorreductor Hobby (4 units)
- Description: A small hobby motor with a gearbox.
- Pins: vcc, GND
USB Serial TTL
- Description: A USB to TTL serial converter.
- Pins: GND, 5V, TX, RX, DTR, 3.3V
Wiring Details
Arduino UNO
- 5V connected to 5V of L298N DC motor driver and VCC of HC-05 Bluetooth Module.
- GND connected to - of 9V battery, GND of L298N DC motor driver, and GND of HC-05 Bluetooth Module.
- D11 connected to IN4 of L298N DC motor driver.
- D10 connected to IN3 of L298N DC motor driver.
- D9 connected to IN2 of L298N DC motor driver.
- D8 connected to IN1 of L298N DC motor driver.
- D7 connected to IN4 of the second L298N DC motor driver.
- D6 connected to IN3 of the second L298N DC motor driver.
- D5 connected to IN2 of the second L298N DC motor driver.
- D4 connected to IN1 of the second L298N DC motor driver.
- D1 connected to RXD of HC-05 Bluetooth Module.
- D0 connected to TXD of HC-05 Bluetooth Module.
L298N DC Motor Driver (First Unit)
- 5V connected to 5V of Arduino UNO.
- GND connected to GND of Arduino UNO and - of 9V battery.
- IN4 connected to D11 of Arduino UNO.
- IN3 connected to D10 of Arduino UNO.
- IN2 connected to D9 of Arduino UNO.
- IN1 connected to D8 of Arduino UNO.
- OUT1 connected to GND of Motor Amarillo Motorreductor Hobby.
- OUT2 connected to vcc of Motor Amarillo Motorreductor Hobby.
- OUT3 connected to GND of another Motor Amarillo Motorreductor Hobby.
- OUT4 connected to vcc of another Motor Amarillo Motorreductor Hobby.
- ENA connected to +5V-J1.
- ENB connected to +5V-J2.
L298N DC Motor Driver (Second Unit)
- GND connected to GND of Arduino UNO and - of 9V battery.
- IN4 connected to D7 of Arduino UNO.
- IN3 connected to D6 of Arduino UNO.
- IN2 connected to D5 of Arduino UNO.
- IN1 connected to D4 of Arduino UNO.
- OUT1 connected to GND of Motor Amarillo Motorreductor Hobby.
- OUT2 connected to vcc of Motor Amarillo Motorreductor Hobby.
- OUT3 connected to GND of another Motor Amarillo Motorreductor Hobby.
- OUT4 connected to vcc of another Motor Amarillo Motorreductor Hobby.
- 12V connected to + of 9V battery.
- ENA connected to +5V-J1.
- ENB connected to +5V-J2.
HC-05 Bluetooth Module (First Unit)
- VCC connected to 5V of Arduino UNO.
- GND connected to GND of Arduino UNO.
- RXD connected to D1 of Arduino UNO.
- TXD connected to D0 of Arduino UNO.
HC-05 Bluetooth Module (Second Unit)
- VCC connected to 5V of USB Serial TTL.
- GND connected to GND of USB Serial TTL.
- TXD connected to RX of USB Serial TTL.
- RXD connected to TX of USB Serial TTL.
9V Battery
- - connected to GND of Arduino UNO and GND of L298N DC motor drivers.
- + connected to 12V of the second L298N DC motor driver.
Motor Amarillo Motorreductor Hobby
- GND connected to OUT1 of L298N DC motor driver.
- vcc connected to OUT2 of L298N DC motor driver.
- GND connected to OUT3 of L298N DC motor driver.
- vcc connected to OUT4 of L298N DC motor driver.
- GND connected to OUT1 of the second L298N DC motor driver.
- vcc connected to OUT2 of the second L298N DC motor driver.
- GND connected to OUT3 of the second L298N DC motor driver.
- vcc connected to OUT4 of the second L298N DC motor driver.
USB Serial TTL
- 5V connected to VCC of HC-05 Bluetooth Module.
- GND connected to GND of HC-05 Bluetooth Module.
- RX connected to TXD of HC-05 Bluetooth Module.
- TX connected to RXD of HC-05 Bluetooth Module.
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)