Arduino-Controlled Solar-Powered Dual DC Motor Driver with Bluetooth Connectivity
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates an Arduino UNO microcontroller with a variety of components including an HC-05 Bluetooth module, an L298N DC motor driver, multiple DC motors, a solar panel, an NPF570 battery, a 24/12V buck converter, a TP4056 battery charging module, and a rocker switch. The circuit is designed to control DC motors, manage power from a solar panel and battery, and communicate via Bluetooth.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P.
- It has 14 digital input/output pins, 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header, and a reset button.
L298N DC Motor Driver
- A high-power motor driver capable of driving up to 2 DC motors.
- It has inputs for motor control signals and power supply connections.
DC Motor
- An electric motor that runs on direct current (DC) electricity.
- Typically has two connection pins for power and ground.
HC-05 Bluetooth Module
- A wireless communication module that allows for Bluetooth communication.
- It has pins for enabling the device, power supply, and serial communication.
Solar Panel
- A panel designed to absorb the sun's rays as a source of energy for generating electricity.
- It has positive and negative terminals for power output.
NPF570 Battery
- A rechargeable battery that provides power to the circuit.
- It has positive and negative terminals.
24/12V Buck Converter
- A DC-DC converter that steps down voltage from a higher level to a lower level.
- It has input and output terminals for voltage and ground.
Rocker Switch
- A switch that allows for breaking the circuit connection.
- It has two terminals for opening or closing the circuit.
TP4056 Battery Charging Module
- A module used for charging lithium batteries and protecting them from overcharging.
- It has terminals for battery connection and power input/output.
Wiring Details
Arduino UNO
3.3Vconnected to HC-05 EN pin.5Vconnected to HC-05 VCC pin.GNDconnected to TP4056 B-, L298N GND, and HC-05 GND.Vinconnected to 24/12V Buck 5V output.D1(TX) connected to HC-05 RXD pin.D0(RX) connected to HC-05 TXD pin.
L298N DC Motor Driver
GNDconnected to Arduino UNO GND, TP4056 B-, and NPF570 Battery -.12Vconnected to NPF570 Battery + through Rocker Switch.OUT1andOUT2connected to one pair of DC Motor pins.OUT3andOUT4connected to another pair of DC Motor pins.
DC Motors
- Each motor has one pin connected to an OUT pin on the L298N and the other pin to another OUT pin on the L298N.
HC-05 Bluetooth Module
ENconnected to Arduino UNO 3.3V.VCCconnected to Arduino UNO 5V.GNDconnected to Arduino UNO GND.TXDconnected to Arduino UNO D0.RXDconnected to Arduino UNO D1.
Solar Panel
+connected to 24/12V Buck VIN+.-connected to 24/12V Buck GND and Arduino UNO GND.
NPF570 Battery
+connected to L298N 12V through Rocker Switch.-connected to TP4056 B- and Arduino UNO GND.
24/12V Buck Converter
VIN+connected to Solar Panel +.VIN-andGNDconnected to TP4056 IN- and Arduino UNO GND.5Vconnected to Arduino UNO Vin.
Rocker Switch
- One terminal connected to NPF570 Battery +.
- Other terminal connected to L298N 12V.
TP4056 Battery Charging Module
B-connected to NPF570 Battery - and Arduino UNO GND.B+connected to NPF570 Battery + through Rocker Switch.IN-connected to 24/12V Buck GND and Arduino UNO GND.IN+connected to 24/12V Buck 5V.
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:
}
Note: The provided code for the Arduino UNO is a template with empty setup and loop functions. Additional functionality must be implemented to control the motors and handle Bluetooth communication.