Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino and ESP32 Controlled Motor and Stepper Motor System with Battery Power

View and Edit Project In Cirkit DesignerImage of Arduino and ESP32 Controlled Motor and Stepper Motor System with Battery Power

Circuit Documentation

Summary

This circuit involves multiple motor drivers, a stepper motor driver, a stepper motor, an Arduino UNO, an ESP32, resistors, a relay module, and a 12V battery. The circuit is designed to control motors and a stepper motor using the Arduino UNO and ESP32 microcontrollers. The relay module is used for switching purposes, and resistors are used for current limiting and signal conditioning.

Component List

  1. BTS7960 Motor Driver

    • Description: Motor driver for high-power motors.
    • 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
  2. 12V 200Ah Battery

    • Description: Power source for the circuit.
    • Pins: GND, 12V
  3. Arduino UNO

    • Description: Microcontroller for controlling the circuit.
    • 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
  4. TB660 Stepper Motor Driver

    • Description: Driver for controlling a stepper motor.
    • Pins: ENA - (ENA), ENA+ (+5V), DIR - (DIR), DIR+ (+5V), PUL - (PUL), VCC, GND, A+, A-, B+, B-, PUL+ (+5V)
  5. Stepper Motor (Bipolar)

    • Description: Bipolar stepper motor.
    • Pins: D, B, C, A
  6. ESP32

    • Description: Microcontroller with Wi-Fi and Bluetooth capabilities.
    • Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
  7. Resistor

    • Description: 200 Ohms resistor.
    • Pins: pin1, pin2
  8. Relay module 5v-30v

    • Description: Relay module for switching.
    • Pins: common contact, normally open, normally closed, trigger, V-, V+

Wiring Details

BTS7960 Motor Driver

12V 200Ah Battery

Arduino UNO

TB660 Stepper Motor Driver

Stepper Motor (Bipolar)

ESP32

Resistor

Relay module 5v-30v

Documented Code

Arduino UNO Code

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

ESP32 Code

No code provided for the ESP32.

This documentation provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and documented code.