ESP32 Wi-Fi Controlled Dual Motor System with Relay Switching
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP32 microcontroller, two 12V geared motors, two two-channel 5V relays, and a 12V power supply. The ESP32 controls the relays, which in turn control the motors. The power supply provides the necessary voltage for the motors and relays.
Component List
ESP32
- Description: A powerful 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
12V Geared Motor
- Description: A motor with a gearbox to provide high torque at low speeds.
- Pins: Terminal 1, Terminal 2
Two Channel Relay 5V
- Description: A relay module that can control two separate circuits.
- Pins: VCC, IN2, IN1, GND, NC2, C2, NO2, NC1, C1, NO1
12V Power Supply
- Description: A power supply that provides 12V DC.
- Pins: +, -
Wiring Details
ESP32
- D18 is connected to IN2 of the first Two Channel Relay 5V.
- D5 is connected to IN1 of the first Two Channel Relay 5V.
- D4 is connected to IN2 of the second Two Channel Relay 5V.
- D2 is connected to IN1 of the second Two Channel Relay 5V.
- GND is connected to GND of both Two Channel Relay 5V modules and the 12V power supply.
12V Geared Motor (First Motor)
- Terminal 1 is connected to C2 of the second Two Channel Relay 5V.
- Terminal 2 is connected to C1 of the second Two Channel Relay 5V.
12V Geared Motor (Second Motor)
- Terminal 1 is connected to C2 of the first Two Channel Relay 5V.
- Terminal 2 is connected to C1 of the first Two Channel Relay 5V.
Two Channel Relay 5V (First Relay)
- IN2 is connected to D18 of the ESP32.
- IN1 is connected to D5 of the ESP32.
- NC2 and NC1 are connected to - of the 12V power supply.
- GND is connected to GND of the ESP32 and the 12V power supply.
- VCC is connected to 3V3 of the ESP32.
- C2 is connected to Terminal 1 of the first 12V Geared Motor.
- C1 is connected to Terminal 2 of the first 12V Geared Motor.
- NO2 and NO1 are connected to + of the 12V power supply.
Two Channel Relay 5V (Second Relay)
- IN2 is connected to D4 of the ESP32.
- IN1 is connected to D2 of the ESP32.
- NC2 and NC1 are connected to - of the 12V power supply.
- GND is connected to GND of the ESP32 and the 12V power supply.
- VCC is connected to 3V3 of the ESP32.
- C2 is connected to Terminal 1 of the second 12V Geared Motor.
- C1 is connected to Terminal 2 of the second 12V Geared Motor.
- NO2 and NO1 are connected to + of the 12V power supply.
12V Power Supply
- + is connected to NO2 and NO1 of both Two Channel Relay 5V modules.
- - is connected to NC2 and NC1 of both Two Channel Relay 5V modules and GND of the ESP32.
Code
No code is provided for this circuit.