Arduino and Bluetooth Controlled Motor Driver System with Battery Power
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various components such as an Arduino UNO, Arduino Nano, HC-05 Bluetooth Modules, L298N DC motor driver, motors with reducers, battery mounts, and a Rocker Switch (SPST). The circuit is designed to control motors via Bluetooth communication and includes power management and motor control functionalities.
Component List
Rocker Switch (SPST)
- Description: A single-pole single-throw switch used to control the power supply.
- Pins: 1, 2
Motor with reducer
- Description: A motor with an integrated reducer to control speed and torque.
- Pins: 3 - 6 VCC, GND
L298N DC motor driver
- Description: A dual H-Bridge motor driver used to control the direction and speed of 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
4 x AAA Battery Mount
- Description: A battery holder for four AAA batteries.
- Pins: -, +
HC-05 Bluetooth Module
- Description: A Bluetooth module used for wireless communication.
- Pins: Key, VCC, TXD, RXD, State, GND
2x 18650
- Description: A battery holder for two 18650 batteries.
- Pins: vcc, gnd
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
Arduino Nano
- Description: A small, complete, and breadboard-friendly microcontroller board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
MPU-6050
- Description: A 6-axis motion tracking device that combines a 3-axis gyroscope and a 3-axis accelerometer.
- Pins: VCC, GND, SCL, SDA, XDA, XCL, AD0, INT
Wiring Details
Rocker Switch (SPST)
- Pin 1: Connected to the positive terminal of the 4 x AAA Battery Mount.
- Pin 2: Connected to the 12V pin of the L298N DC motor driver and the VIN pin of the Arduino Nano.
Motor with reducer
Instance 1
- 3 - 6 VCC: Connected to the OUT2 pin of the L298N DC motor driver.
- GND: Connected to the OUT1 pin of the L298N DC motor driver.
Instance 2
- 3 - 6 VCC: Connected to the OUT2 pin of the L298N DC motor driver.
- GND: Connected to the OUT1 pin of the L298N DC motor driver.
Instance 3
- 3 - 6 VCC: Connected to the OUT3 pin of the L298N DC motor driver.
- GND: Connected to the OUT4 pin of the L298N DC motor driver.
Instance 4
- 3 - 6 VCC: Connected to the OUT3 pin of the L298N DC motor driver.
- GND: Connected to the OUT4 pin of the L298N DC motor driver.
L298N DC motor driver
- GND: Connected to the GND pin of the Arduino UNO and the negative terminal of the 4 x AAA Battery Mount.
- 5V: Connected to the Vin pin of the Arduino UNO.
- 12V: Connected to pin 2 of the Rocker Switch (SPST).
- OUT1: Connected to the GND pin of the first and second Motor with reducer.
- OUT2: Connected to the 3 - 6 VCC pin of the first and second Motor with reducer.
- OUT3: Connected to the 3 - 6 VCC pin of the third and fourth Motor with reducer.
- OUT4: Connected to the GND pin of the third and fourth Motor with reducer.
- ENA: Connected to the D3 pin of the Arduino UNO.
- IN1: Connected to the D4 pin of the Arduino UNO.
- IN2: Connected to the D5 pin of the Arduino UNO.
- IN3: Connected to the D7 pin of the Arduino UNO.
- IN4: Connected to the D8 pin of the Arduino UNO.
- ENB: Connected to the D9 pin of the Arduino UNO.
4 x AAA Battery Mount
- -: Connected to the GND pin of the L298N DC motor driver.
- +: Connected to pin 1 of the Rocker Switch (SPST).
HC-05 Bluetooth Module
Instance 1
- VCC: Connected to the 5V pin of the Arduino UNO.
- GND: Connected to the GND pin of the Arduino UNO.
- RXD: Connected to the D11 pin of the Arduino UNO.
- TXD: Connected to the D10 pin of the Arduino UNO.
Instance 2
- VCC: Connected to the 5V pin of the Arduino Nano.
- GND: Connected to the GND pin of the Arduino Nano.
- RXD: Connected to the D11/MOSI pin of the Arduino Nano.
- TXD: Connected to the D10 pin of the Arduino Nano.
2x 18650
- vcc: Connected to pin 1 of the Rocker Switch (SPST).
- gnd: Connected to the GND pin of the Arduino Nano.
Arduino UNO
- 5V: Connected to the VCC pin of the HC-05 Bluetooth Module.
- GND: Connected to the GND pin of the HC-05 Bluetooth Module and the L298N DC motor driver.
- Vin: Connected to the 5V pin of the L298N DC motor driver.
- D3: Connected to the ENA pin of the L298N DC motor driver.
- D4: Connected to the IN1 pin of the L298N DC motor driver.
- D5: Connected to the IN2 pin of the L298N DC motor driver.
- D7: Connected to the IN3 pin of the L298N DC motor driver.
- D8: Connected to the IN4 pin of the L298N DC motor driver.
- D9: Connected to the ENB pin of the L298N DC motor driver.
- D10: Connected to the TXD pin of the HC-05 Bluetooth Module.
- D11: Connected to the RXD pin of the HC-05 Bluetooth Module.
Arduino Nano
- 5V: Connected to the VCC pin of the MPU-6050 and the HC-05 Bluetooth Module.
- GND: Connected to the GND pin of the MPU-6050, the HC-05 Bluetooth Module, and the 2x 18650.
- VIN: Connected to pin 2 of the Rocker Switch (SPST).
- D2: Connected to the INT pin of the MPU-6050.
- D10: Connected to the TXD pin of the HC-05 Bluetooth Module.
- D11/MOSI: Connected to the RXD pin of the HC-05 Bluetooth Module.
- A4: Connected to the SDA pin of the MPU-6050.
- A5: Connected to the SCL pin of the MPU-6050.
MPU-6050
- VCC: Connected to the 5V pin of the Arduino Nano.
- GND: Connected to the GND pin of the Arduino Nano.
- SCL: Connected to the A5 pin of the Arduino Nano.
- SDA: Connected to the A4 pin of the Arduino Nano.
- INT: Connected to the D2 pin of the Arduino Nano.