Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, an HC-05 Bluetooth module, an L298N DC motor driver, two hobby DC motors, and a 12V battery. The Arduino UNO controls the motor driver to operate the motors, and the Bluetooth module allows for wireless communication. The 12V battery powers the motor driver and motors.
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
Motor amarillo motorreductor hobby (Motor 1)
- Description: A small DC motor with a gearbox.
- Pins: vcc, GND
Motor amarillo motorreductor hobby (Motor 2)
- Description: A small DC motor with a gearbox.
- Pins: vcc, GND
Battery 12V
- Description: A 12V battery for powering the motor driver and motors.
- Pins: +, -
Wiring Details
Arduino UNO
- 5V connected to 5V of L298N DC motor driver and VCC of HC-05 Bluetooth Module
- GND connected to GND of L298N DC motor driver and GND of HC-05 Bluetooth Module
- D10 connected to IN4 of L298N DC motor driver
- D9 connected to IN3 of L298N DC motor driver
- D8 connected to IN2 of L298N DC motor driver
- D7 connected to IN1 of L298N DC motor driver
- D6 connected to ENB of L298N DC motor driver
- D5 connected to ENA of L298N DC motor driver
- D1 connected to RXD of HC-05 Bluetooth Module
- D0 connected to TXD of HC-05 Bluetooth Module
HC-05 Bluetooth Module
- 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
L298N DC Motor Driver
- 5V connected to 5V of Arduino UNO
- GND connected to GND of Arduino UNO and - of 12V battery
- IN4 connected to D10 of Arduino UNO
- IN3 connected to D9 of Arduino UNO
- IN2 connected to D8 of Arduino UNO
- IN1 connected to D7 of Arduino UNO
- ENB connected to D6 of Arduino UNO
- ENA connected to D5 of Arduino UNO
- OUT1 connected to vcc of Motor 1
- OUT2 connected to GND of Motor 1
- OUT3 connected to vcc of Motor 2
- OUT4 connected to GND of Motor 2
- 12V connected to + of 12V battery
Motor amarillo motorreductor hobby (Motor 1)
- vcc connected to OUT1 of L298N DC motor driver
- GND connected to OUT2 of L298N DC motor driver
Motor amarillo motorreductor hobby (Motor 2)
- vcc connected to OUT3 of L298N DC motor driver
- GND connected to OUT4 of L298N DC motor driver
Battery 12V
- + connected to 12V of L298N DC motor driver
- - connected to GND of 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:
}
Additional Documentation (documentation.txt)
