Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, an L298N DC motor driver, two motors with reducers, an HC-05 Bluetooth module, and a 4 x AAA battery mount. The circuit is designed to control the motors via Bluetooth 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 with Reducer (Motor 1)
- Description: A DC motor with a gear reducer.
- Pins: 3 - 6 VCC, GND
Motor with Reducer (Motor 2)
- Description: A DC motor with a gear reducer.
- Pins: 3 - 6 VCC, GND
HC-05 Bluetooth Module
- Description: A Bluetooth module used for wireless communication.
- Pins: Key, VCC, TXD, RXD, State, GND
4 x AAA Battery Mount
- Description: A battery holder for four AAA batteries.
- Pins: -, +
Wiring Details
Arduino UNO
- 5V: Connected to VCC of HC-05 Bluetooth Module
- GND: Connected to GND of HC-05 Bluetooth Module, GND of L298N DC Motor Driver, and - of 4 x AAA Battery Mount
- Vin: Connected to 5V of L298N DC Motor Driver
- D7: Connected to IN4 of L298N DC Motor Driver
- D6: Connected to IN3 of L298N DC Motor Driver
- D5: Connected to IN2 of L298N DC Motor Driver
- D4: Connected to IN1 of 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
- GND: Connected to GND of Arduino UNO and - of 4 x AAA Battery Mount
- 5V: Connected to Vin of Arduino UNO
- 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 3 - 6 VCC of Motor 1
- OUT2: Connected to GND of Motor 1
- 12V: Connected to + of 4 x AAA Battery Mount
- OUT3: Connected to 3 - 6 VCC of Motor 2
- OUT4: Connected to GND of Motor 2
Motor with Reducer (Motor 1)
- 3 - 6 VCC: Connected to OUT1 of L298N DC Motor Driver
- GND: Connected to OUT2 of L298N DC Motor Driver
Motor with Reducer (Motor 2)
- 3 - 6 VCC: Connected to OUT3 of L298N DC Motor Driver
- GND: Connected to OUT4 of L298N DC Motor Driver
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
4 x AAA Battery Mount
- -: Connected to GND of Arduino UNO and GND of L298N DC Motor Driver
- +: Connected to 12V 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:
}
Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and documented code.
