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

Battery-Powered Arduino and ESP32 Controlled Servo System with BMS and TP4056 Charging

View and Edit Project In Cirkit DesignerImage of Battery-Powered Arduino and ESP32 Controlled Servo System with BMS and TP4056 Charging

Circuit Documentation

Summary

This document provides a detailed overview of a circuit that includes various components such as batteries, a Battery Management System (BMS), a TP4056 charger module, a DC-DC boost converter, an Arduino UNO, an ESP32, a servo motor, a rocker switch, and a PAM8403 amplifier. The circuit is designed to manage power distribution, control a servo motor, and amplify audio signals.

Component List

  1. 3.7v Battery

    • Pins: +, -
    • Description: Provides power to the circuit.
    • Purpose: Power source.
  2. BMS (Battery Management System)

    • Pins: B+, B2, B1, B-, P-, P+
    • Description: Manages the charging and discharging of the batteries.
    • Purpose: Battery management.
  3. TP4056

    • Pins: OUT-, B-, B+, OUT+, IN-, IN+
    • Description: Lithium-ion battery charger module.
    • Purpose: Charging the batteries.
  4. DC-DC Boost Converter

    • Pins: VIN-, VIN+, VOUT+, VOUT-
    • Description: Boosts the voltage from the battery to a higher level.
    • Purpose: Voltage conversion.
  5. Arduino UNO

    • 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
    • Description: Microcontroller board.
    • Purpose: Control and processing.
  6. ESP32

    • 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
    • Description: Wi-Fi and Bluetooth microcontroller.
    • Purpose: Wireless communication and control.
  7. MG996R (Servo Motor)

    • Pins: GND, VCC, SIG
    • Description: High-torque servo motor.
    • Purpose: Actuation.
  8. Rocker Switch

    • Pins: 1, 2
    • Description: On/Off switch.
    • Purpose: Power control.
  9. PAM8403

    • Pins: 5vIN+, GND/IN-, R-INPUT, GND, L-INPUT, L-, L+, R+, R-
    • Description: 3W stereo audio amplifier.
    • Purpose: Audio amplification.

Wiring Details

3.7v Battery

BMS

TP4056

DC-DC Boost Converter

Rocker Switch

Arduino UNO

ESP32

MG996R (Servo Motor)

PAM8403

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:

}

Additional Documentation (documentation.txt)

This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and documented code. Each component is described, and its connections are detailed to ensure clarity and ease of understanding.