Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, an L298N DC motor driver, an HC-05 Bluetooth module, a 12V battery, and two DC motors. The Arduino UNO controls the motor driver and communicates with the Bluetooth module. The motor driver is responsible for driving the two DC motors, and the Bluetooth module allows for 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 speed and direction control 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
HC-05 Bluetooth Module
- Description: A Bluetooth module for wireless communication.
- Pins: Key, VCC, GND, TXD, RXD, State
Battery 12V
- Description: A 12V battery used to power the motor driver.
- Pins: +, -
DC Motor (Motor 1)
- Description: A DC motor.
- Pins: pin 1, pin 2
DC Motor (Motor 2)
- Description: A DC motor.
- Pins: pin 1, pin 2
Wiring Details
Arduino UNO
- 5V connected to VCC of HC-05 Bluetooth Module
- GND connected to GND of HC-05 Bluetooth Module
- GND connected to GND of L298N DC Motor Driver
- Vin connected to 5V of L298N DC Motor Driver
- D10 connected to ENB of L298N DC Motor Driver
- D9 connected to IN4 of L298N DC Motor Driver
- D8 connected to IN3 of L298N DC Motor Driver
- D7 connected to IN2 of L298N DC Motor Driver
- D6 connected to IN1 of L298N DC Motor Driver
- D5 connected to ENA of L298N DC Motor Driver
- D4 connected to TXD of HC-05 Bluetooth Module
- D3 connected to RXD of HC-05 Bluetooth Module
L298N DC Motor Driver
- GND connected to GND of Arduino UNO
- GND connected to - of Battery 12V
- 5V connected to Vin of Arduino UNO
- ENB connected to D10 of Arduino UNO
- IN4 connected to D9 of Arduino UNO
- IN3 connected to D8 of Arduino UNO
- IN2 connected to D7 of Arduino UNO
- IN1 connected to D6 of Arduino UNO
- ENA connected to D5 of Arduino UNO
- OUT1 connected to pin 2 of DC Motor 1
- OUT2 connected to pin 1 of DC Motor 1
- 12V connected to + of Battery 12V
- OUT3 connected to pin 2 of DC Motor 2
- OUT4 connected to pin 1 of DC Motor 2
HC-05 Bluetooth Module
- VCC connected to 5V of Arduino UNO
- GND connected to GND of Arduino UNO
- TXD connected to D4 of Arduino UNO
- RXD connected to D3 of Arduino UNO
Battery 12V
- + connected to 12V of L298N DC Motor Driver
- - connected to GND of L298N DC Motor Driver
DC Motor 1
- pin 2 connected to OUT1 of L298N DC Motor Driver
- pin 1 connected to OUT2 of L298N DC Motor Driver
DC Motor 2
- pin 2 connected to OUT3 of L298N DC Motor Driver
- pin 1 connected to OUT4 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)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.
