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 document provides a detailed overview of a circuit that includes various components such as motor drivers, a battery, an Arduino UNO, a stepper motor driver, a stepper motor, an ESP32, resistors, and a relay module. The circuit is designed to control motors and other peripherals using microcontrollers.

Component List

  1. BTS7960 Motor Driver

    • Description: Motor driver module 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 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
  4. TB660 Stepper Motor Driver

    • Description: Stepper motor driver module.
    • 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: Wi-Fi and Bluetooth microcontroller.
    • 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: Resistor with a resistance of 200 Ohms.
    • Pins: pin1, pin2
  8. Relay module 5v-30v

    • Description: Relay module for switching high-power devices.
    • 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 (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)

This document provides a comprehensive overview of the circuit, including the components used, their connections, and the code for the microcontroller.