Circuit Documentation
Summary
The circuit in question is designed to control a set of motors using an L298N DC motor driver, which is interfaced with an Arduino UNO microcontroller. The system also includes an HC-05 Bluetooth module for wireless communication and is powered by a 12V battery. The motors are presumably used for driving wheels, suggesting that this circuit could be part of a mobile robot or a similar project.
Component List
L298N DC Motor Driver
- Description: A module used for controlling up to two DC motors with the ability to control the speed and direction of each motor independently.
- 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
Arduino UNO
- Description: A microcontroller board based on the ATmega328P, widely used for building digital devices and interactive objects that can sense and control objects in the physical world.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13
HC-05 Bluetooth Module
- Description: A Bluetooth module that allows for wireless communication between devices, commonly used for remote controlling functions in robotics and other applications.
- Pins: EN, VCC, GND, TXD, RXD, STATE
12V Battery
- Description: A power source for the circuit, providing the necessary voltage for the motor driver and indirectly for other components through voltage regulation.
- Pins: +, -
Motor and Wheels
- Description: The actuators in the system, which convert electrical energy into mechanical motion to drive the wheels.
- Pins: VCC, GND
Wiring Details
L298N DC Motor Driver
- OUT1, OUT2 connected to Motor and Wheels (motor 1)
- OUT3, OUT4 connected to Motor and Wheels (motor 2)
- 12V connected to the positive terminal of the 12V Battery
- GND connected to the GND of Arduino UNO and negative terminal of the 12V Battery
- 5V connected to the Vin of Arduino UNO
- ENA, ENB connected to D6, D5 of Arduino UNO respectively
- IN1, IN2, IN3, IN4 connected to D4, D7, D8, D9 of Arduino UNO respectively
Arduino UNO
- GND connected to GND of HC-05 and GND of L298N DC Motor Driver
- 5V connected to VCC of HC-05
- Vin connected to 5V of L298N DC Motor Driver
- D0, D1 connected to TXD, RXD of HC-05 respectively
- D4, D5, D6, D7, D8, D9 connected to IN1, ENB, ENA, IN2, IN3, IN4 of L298N DC Motor Driver respectively
HC-05 Bluetooth Module
- VCC connected to 5V of Arduino UNO
- GND connected to GND of Arduino UNO
- TXD connected to D0 of Arduino UNO
- RXD connected to D1 of Arduino UNO
12V Battery
-
- connected to 12V of L298N DC Motor Driver
-
- connected to GND of L298N DC Motor Driver
Motor and Wheels
- Two sets of motors connected to OUT1, OUT2 and OUT3, OUT4 of L298N DC Motor Driver respectively
Documented Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Filename: sketch.ino
Note: The provided code is a template and does not contain any functional code for controlling the motors or interfacing with the HC-05 Bluetooth module. The user is expected to fill in the setup and loop functions with the necessary code to implement the desired behavior of the circuit.
