Circuit Documentation
Summary
This circuit is designed to control four "Motor amarillo motorreductor hobby" motors using an "ESP32 - CAM" microcontroller and an "L298N DC motor driver". The motors are powered by a "12v Battery". The ESP32 - CAM is responsible for sending control signals to the L298N driver, which in turn controls the direction and speed of the motors. The battery provides the necessary power for both the motors and the motor driver, while the ESP32 - CAM is powered by the 5V output from the L298N driver.
Component List
Motor Amarillo Motorreductor Hobby
- Description: A yellow hobby gear motor.
- Pins:
vcc,GND
12v Battery
- Description: A 12-volt battery.
- Pins:
-,+
ESP32 - CAM
- Description: A microcontroller module with camera support.
- Pins:
5V,GND,IO12,IO13,IO15,IO14,IO2,IO4,VOT,VOR,VCC,IO0,IO16,3V3
L298N DC Motor Driver
- Description: A dual H-bridge motor driver.
- 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
Motor Amarillo Motorreductor Hobby
- Motor 1:
vccconnected to L298N DC motor driverOUT3GNDconnected to L298N DC motor driverOUT4
- Motor 2:
vccconnected to L298N DC motor driverOUT1GNDconnected to L298N DC motor driverOUT2
- Motor 3:
vccconnected to L298N DC motor driverOUT3GNDconnected to L298N DC motor driverOUT4
- Motor 4:
vccconnected to L298N DC motor driverOUT1GNDconnected to L298N DC motor driverOUT2
12v Battery
-connected to L298N DC motor driverGND+connected to L298N DC motor driver12V
ESP32 - CAM
5Vconnected to L298N DC motor driver5VGNDconnected to L298N DC motor driverGNDIO13connected to L298N DC motor driverIN4IO15connected to L298N DC motor driverIN3IO14connected to L298N DC motor driverIN2IO2connected to L298N DC motor driverIN1
L298N DC Motor Driver
5Vconnected to ESP32 - CAM5VGNDconnected to 12v Battery-and ESP32 - CAMGND12Vconnected to 12v Battery+IN1connected to ESP32 - CAMIO2IN2connected to ESP32 - CAMIO14IN3connected to ESP32 - CAMIO15IN4connected to ESP32 - CAMIO13OUT1connected to Motors 2 and 4vccOUT2connected to Motors 2 and 4GNDOUT3connected to Motors 1 and 3vccOUT4connected to Motors 1 and 3GND
Documented Code
No code has been provided for the ESP32 - CAM microcontroller. The expected code should handle the initialization of the GPIO pins connected to the L298N motor driver and manage the PWM signals to control the speed and direction of the motors.
