Arduino and ESP32 Controlled Motor System with 5V and 12V 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 a 5V battery, a 5V relay, an Arduino UNO, an ESP32, a 12V battery, a BTS7960 motor driver, a TB6600 micro-stepping motor driver, and a DC motor. The circuit is designed to interconnect these components to achieve a specific functionality, which is controlled by the Arduino UNO and ESP32 microcontrollers.
Component List
5V Battery
- Description: Provides a 5V power supply.
- Pins: +, -
5V Relay
- Description: A relay that operates at 5V.
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
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
ESP32 (30 pin)
- Description: A low-cost, low-power system on a chip microcontroller with integrated Wi-Fi and dual-mode Bluetooth.
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
Battery 12V
- Description: Provides a 12V power supply.
- Pins: -, +
BTS7960 Motor Driver
- Description: A high-current motor driver.
- Pins: Pin 1, Pin 2, Pin 3, Pin 4, Pin 5, Pin 6, Pin 7, Pin 8, Pin 9, Pin 10, Pin 11, Pin 12
TB6600 Micro Stepping Motor Driver
- Description: A micro-stepping driver for stepper motors.
- Pins: ENA-, ENA+, DIR-, DIR+, PUL-, PUL+, B-, B+, A-, A+, GND, VCC
DC Motor
- Description: A simple DC motor.
- Pins: pin 1, pin 2
Wiring Details
5V Battery
+ Pin:
- Connected to Vin pin of ESP32
- Connected to VCC pin of 5V relay
- Connected to 5V pin of Arduino UNO
- Pin:
- Connected to GND pin of ESP32
- Connected to GND pin of 5V relay
- Connected to GND pin of Arduino UNO
5V Relay
VCC Pin:
- Connected to + pin of 5V Battery
GND Pin:
- Connected to - pin of 5V Battery
Arduino UNO
5V Pin:
- Connected to + pin of 5V Battery
GND Pin:
- Connected to - pin of 5V Battery
ESP32 (30 pin)
Vin Pin:
- Connected to + pin of 5V Battery
GND Pin:
- Connected to - pin of 5V Battery
Battery 12V
- + Pin:
- Connected to VCC pin of TB6600 Micro Stepping Motor Driver
- Connected to Pin 5 of BTS7960 Motor Driver
BTS7960 Motor Driver
- Pin 5:
- Connected to + pin of Battery 12V
TB6600 Micro Stepping Motor Driver
- VCC Pin:
- Connected to + pin of Battery 12V
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)