Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, an L298N DC motor driver, four hobby motors, a Bluetooth HC-06 module, a 12V battery, and a 7V battery. The circuit is designed to control the motors via the motor driver, with the Arduino UNO serving as the main controller and the Bluetooth module enabling wireless communication.
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
- Description: A dual H-Bridge motor driver module that allows control of the speed and direction of two 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 (4 units)
- Description: A small DC motor with a gearbox, commonly used in hobby projects.
- Pins: vcc, GND
Bluetooth HC-06
- Description: A Bluetooth module used for wireless communication.
- Pins: VCC, GND, TXD, RXD
12V Battery (mini)
- Description: A small 12V battery used to power the motor driver.
- Pins: -, +
Set battery (7V)
- Description: A 7V battery pack used to power the Arduino UNO.
- Pins: +, -
Wiring Details
Arduino UNO
- 5V connected to VCC of Bluetooth HC-06
- GND connected to GND of Bluetooth HC-06, GND of L298N DC motor driver, - of 12V Battery, and - of 7V Battery
- Vin connected to + of 7V Battery
- D13 connected to ENB of L298N DC motor driver
- D12 connected to ENA of L298N DC motor driver
- D11 connected to TXD of Bluetooth HC-06
- D10 connected to RXD of Bluetooth HC-06
- D9 connected to IN2 of L298N DC motor driver
- D6 connected to IN1 of L298N DC motor driver
- D5 connected to IN3 of L298N DC motor driver
- D3 connected to IN4 of L298N DC motor driver
L298N DC Motor Driver
- GND connected to GND of Arduino UNO and - of 12V Battery
- 12V connected to + of 12V Battery
- ENB connected to D13 of Arduino UNO
- ENA connected to D12 of Arduino UNO
- IN2 connected to D9 of Arduino UNO
- IN1 connected to D6 of Arduino UNO
- IN3 connected to D5 of Arduino UNO
- IN4 connected to D3 of Arduino UNO
- OUT1 connected to vcc of two hobby motors
- OUT2 connected to GND of two hobby motors
- OUT3 connected to vcc of two hobby motors
- OUT4 connected to GND of two hobby motors
Motor amarillo motorreductor hobby
- vcc of two motors connected to OUT1 of L298N DC motor driver
- GND of two motors connected to OUT2 of L298N DC motor driver
- vcc of two motors connected to OUT3 of L298N DC motor driver
- GND of two motors connected to OUT4 of L298N DC motor driver
Bluetooth HC-06
- VCC connected to 5V of Arduino UNO
- GND connected to GND of Arduino UNO
- TXD connected to D11 of Arduino UNO
- RXD connected to D10 of Arduino UNO
12V Battery (mini)
- + connected to 12V of L298N DC motor driver
- - connected to GND of L298N DC motor driver and GND of Arduino UNO
Set battery (7V)
- + connected to Vin of Arduino UNO
- - connected to GND of Arduino UNO
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
}
void loop() {
}
Additional Documentation (documentation.txt)