Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP32 microcontroller, an L298N DC motor driver, and a DC Mini Metal Gear Motor. The ESP32 controls the motor driver, which in turn drives the DC motor. The document includes a list of components, wiring details, and the embedded code used in the microcontroller.
Component List
ESP32 (30 pin)
- Description: A powerful microcontroller with built-in Wi-Fi and Bluetooth capabilities.
- 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
DC Mini Metal Gear Motor
- Description: A small, high-torque motor suitable for various applications.
- Pins: IN1, IN2
L298N DC Motor Driver
- Description: A dual H-Bridge motor driver that allows control of two DC motors.
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
Wiring Details
ESP32 (30 pin)
- D25: Connected to L298N DC motor driver IN1
- D26: Connected to L298N DC motor driver IN2
- D12: Connected to L298N DC motor driver ENA
- GND: Connected to L298N DC motor driver GND
- Vin: Connected to L298N DC motor driver 5V
DC Mini Metal Gear Motor
- IN1: Connected to L298N DC motor driver OUT2
- IN2: Connected to L298N DC motor driver OUT1
L298N DC Motor Driver
- IN1: Connected to ESP32 D25
- IN2: Connected to ESP32 D26
- ENA: Connected to ESP32 D12
- GND: Connected to ESP32 GND
- 5V: Connected to ESP32 Vin
- OUT2: Connected to DC Mini Metal Gear Motor IN1
- OUT1: Connected to DC Mini Metal Gear Motor IN2
Code
sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
documentation.txt
