Circuit Documentation
Summary
This circuit is designed to control two DC motors using an Arduino Nano microcontroller and a Drv8833 motor driver. The Arduino Nano is interfaced with an HC-05 Bluetooth module for wireless communication. A 12V battery powers the system, with a buck converter stepping down the voltage to a level suitable for the Arduino Nano and the Drv8833. The motors are connected to the Drv8833, which allows for their speed and direction to be controlled by the Arduino Nano.
Component List
Arduino Nano
- Microcontroller board based on the ATmega328P
- It has a variety of digital and analog I/O pins.
- Used as the main controller for the circuit.
DC Motor (x2)
- Electric motor that runs on direct current (DC) electricity.
- Controlled by the Drv8833 motor driver.
Drv8833
- Motor driver capable of driving two DC motors.
- It receives control signals from the Arduino Nano.
Battery 12V
- Provides the power source for the circuit.
- 12V battery connected to the buck converter.
Buck Converter
- Steps down the voltage from the 12V battery to a lower voltage suitable for the Arduino Nano and Drv8833.
HC-05 Bluetooth Module
- Wireless communication module that enables Bluetooth connectivity.
- Interfaces with the Arduino Nano for remote control.
Wiring Details
Arduino Nano
D1/TXconnected toTXDon HC-05 for Bluetooth communication.D0/RXconnected toRXDon HC-05 for Bluetooth communication.GNDconnected toGNDon HC-05 andGNDon Drv8833.D5connected toIN4on Drv8833 for motor control.D6connected toIN3on Drv8833 for motor control.D9connected toIN2on Drv8833 for motor control.D10connected toIN1on Drv8833 for motor control.VINconnected toOUT+on Buck Converter for power.5Vconnected toVCCon HC-05 for power.
DC Motor #1
pin 1connected toOUT3on Drv8833.pin 2connected toOUT4on Drv8833.
DC Motor #2
pin 1connected toOUT2on Drv8833.pin 2connected toOUT1on Drv8833.
Drv8833
VCCconnected toOUT+on Buck Converter for power.GNDconnected toOUT-on Buck Converter for ground.
Buck Converter
IN+connected to+on 12V Battery.IN-connected to-on 12V Battery.OUT+andOUT-provide power to the Arduino Nano and Drv8833.
HC-05 Bluetooth Module
TXDconnected toD1/TXon Arduino Nano for Bluetooth communication.RXDconnected toD0/RXon Arduino Nano for Bluetooth communication.GNDconnected toGNDon Arduino Nano for ground.VCCconnected to5Von Arduino Nano for power.
Documented Code
Arduino Nano Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
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 functionality.
