Wi-Fi Controlled Battery-Powered Dual Motor Driver with ESP8266
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes a SparkFun ESP8266 Thing - Dev Board, an L298N DC motor driver, two motors with reducers, and a 4 x AAA Battery Mount. The ESP8266 microcontroller is used to control the motors via the L298N motor driver. The circuit is powered by a 4 x AAA battery pack.
Component List
SparkFun ESP8266 Thing - Dev Board
- Description: A development board based on the ESP8266 WiFi microcontroller.
- Pins: GND, VCC, GPIO2, GPIO14, RESET, U0TXO, U0RXI, USBVCC, 9, VIN, GPIO5, GPIO0, GPIO4, GPIO13, GPIO12, GPIO16, ADC, GPIO15
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
Motor with Reducer (Motor 1)
- Description: A DC motor with a gear reducer.
- Pins: 3 - 6 VCC, GND
Motor with Reducer (Motor 2)
- Description: A DC motor with a gear reducer.
- Pins: 3 - 6 VCC, GND
4 x AAA Battery Mount
- Description: A battery holder for four AAA batteries.
- Pins: -, +
Wiring Details
SparkFun ESP8266 Thing - Dev Board
- GND is connected to GND of the L298N DC motor driver.
- GPIO12 is connected to IN4 of the L298N DC motor driver.
- GPIO13 is connected to IN2 of the L298N DC motor driver.
- GPIO4 is connected to IN1 of the L298N DC motor driver.
- GPIO5 is connected to IN3 of the L298N DC motor driver.
- VIN is connected to + of the 4 x AAA Battery Mount.
- GND is connected to - of the 4 x AAA Battery Mount.
L298N DC Motor Driver
- GND is connected to GND of the SparkFun ESP8266 Thing - Dev Board.
- IN4 is connected to GPIO12 of the SparkFun ESP8266 Thing - Dev Board.
- IN2 is connected to GPIO13 of the SparkFun ESP8266 Thing - Dev Board.
- IN1 is connected to GPIO4 of the SparkFun ESP8266 Thing - Dev Board.
- IN3 is connected to GPIO5 of the SparkFun ESP8266 Thing - Dev Board.
- OUT1 is connected to 3 - 6 VCC of Motor 1.
- OUT2 is connected to GND of Motor 1.
- OUT3 is connected to 3 - 6 VCC of Motor 2.
- OUT4 is connected to GND of Motor 2.
Motor with Reducer (Motor 1)
- 3 - 6 VCC is connected to OUT1 of the L298N DC motor driver.
- GND is connected to OUT2 of the L298N DC motor driver.
Motor with Reducer (Motor 2)
- 3 - 6 VCC is connected to OUT3 of the L298N DC motor driver.
- GND is connected to OUT4 of the L298N DC motor driver.
4 x AAA Battery Mount
- + is connected to VIN of the SparkFun ESP8266 Thing - Dev Board.
- - is connected to GND of the SparkFun ESP8266 Thing - Dev Board.
Code
No code is provided for this circuit.