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

ESP8266 NodeMCU Controlled Dual Motor Driver with Environmental Sensing and OLED Display

View and Edit Project In Cirkit DesignerImage of ESP8266 NodeMCU Controlled Dual Motor Driver with Environmental Sensing and OLED Display

Circuit Documentation

Summary

This circuit is designed to control two hobby gearmotors using an ESP8266 NodeMCU microcontroller and an L298N DC motor driver. The system is powered by two 9V batteries connected in parallel. The ESP8266 NodeMCU interfaces with an OLED display for user feedback, a DHT11 sensor for temperature and humidity readings, and an LM393 comparator for additional input. A rocker switch (SPST) is used to control the power supply to the motor driver. The circuit is likely intended for a small robotic or automation project where motor control and environmental feedback are required.

Component List

Rocker Switch (SPST)

ESP8266 NodeMCU

Hobby Gearmotor with 48:1 Gearbox (x2)

L298N DC Motor Driver

LM393

DHT11

OLED 1.3"

9V Battery (x2)

Wiring Details

Rocker Switch (SPST)

ESP8266 NodeMCU

Hobby Gearmotor with 48:1 Gearbox

L298N DC Motor Driver

LM393

DHT11

OLED 1.3"

9V Batteries

Documented Code

There is no code provided for the microcontroller. The expected code should initialize and configure the GPIO pins for communication with the OLED display, DHT11 sensor, and LM393 comparator. It should also include routines for controlling the motor driver to operate the gearmotors based on inputs from the comparator or other sensors. Additionally, the code should handle the display of information on the OLED screen and possibly include Wi-Fi functionality for remote monitoring or control, leveraging the capabilities of the ESP8266 NodeMCU.