Arduino UNO Bluetooth-Controlled Robotic Car with L298N Motor Driver
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, an HC-05 Bluetooth module, an L298N DC motor driver, multiple hobby gearmotors, a toggle switch, and a battery case. The Arduino UNO serves as the central controller, interfacing with the Bluetooth module for wireless communication and the motor driver to control the gearmotors. The toggle switch is used to control the power supply from the battery case.
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
HC-05 Bluetooth Module
- Description: A Bluetooth module for wireless communication.
- Pins: Key, VCC, TXD, RXD, State, GND
L298N DC Motor Driver
- Description: A dual H-Bridge 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
Hobby Gearmotor with 48:1 Gearbox
- Description: A small DC motor with a 48:1 gearbox.
- Pins: pin 1, pin 2
Toggle Switch
- Description: A switch to toggle the power supply.
- Pins: L1, COM, L2
My Battery Case
- Description: A battery case to provide power to the circuit.
- Pins: +, -
Wiring Details
Arduino UNO
- Vin: Connected to L1 of the Toggle Switch and 12V of the L298N DC Motor Driver.
- GND: Connected to - of the Battery Case and GND of the L298N DC Motor Driver.
- 5V: Connected to VCC of the HC-05 Bluetooth Module.
- D7: Connected to IN1 of the L298N DC Motor Driver.
- D6: Connected to IN2 of the L298N DC Motor Driver.
- D5: Connected to IN3 of the L298N DC Motor Driver.
- D4: Connected to IN4 of the L298N DC Motor Driver.
- D1: Connected to RXD of the HC-05 Bluetooth Module.
- D0: Connected to TXD of the HC-05 Bluetooth Module.
HC-05 Bluetooth Module
- VCC: Connected to 5V of the Arduino UNO.
- GND: Connected to GND of the Arduino UNO.
- RXD: Connected to D1 of the Arduino UNO.
- TXD: Connected to D0 of the Arduino UNO.
L298N DC Motor Driver
- 12V: Connected to Vin of the Arduino UNO and L1 of the Toggle Switch.
- GND: Connected to GND of the Arduino UNO and - of the Battery Case.
- IN1: Connected to D7 of the Arduino UNO.
- IN2: Connected to D6 of the Arduino UNO.
- IN3: Connected to D5 of the Arduino UNO.
- IN4: Connected to D4 of the Arduino UNO.
- OUT1: Connected to pin 1 of two Hobby Gearmotors.
- OUT2: Connected to pin 2 of two Hobby Gearmotors.
- OUT3: Connected to pin 2 of two Hobby Gearmotors.
- OUT4: Connected to pin 1 of two Hobby Gearmotors.
- ENA: Connected to +5V-J1 of the L298N DC Motor Driver.
- ENB: Connected to +5V-J2 of the L298N DC Motor Driver.
Hobby Gearmotor with 48:1 Gearbox
- pin 1: Connected to OUT1 of the L298N DC Motor Driver.
- pin 2: Connected to OUT2 of the L298N DC Motor Driver.
- pin 1: Connected to OUT4 of the L298N DC Motor Driver.
- pin 2: Connected to OUT3 of the L298N DC Motor Driver.
Toggle Switch
- L1: Connected to Vin of the Arduino UNO and 12V of the L298N DC Motor Driver.
- COM: Connected to + of the Battery Case.
My Battery Case
- +: Connected to COM of the Toggle Switch.
- -: Connected to GND of the Arduino UNO and GND of the L298N DC Motor Driver.
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:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the microcontroller.