SVSEMBEDDED - YouTube # Subscribe For More Project Videos

WiFi Based DC Motor Speed and Direction Control using NodeMCU


In this tutorial i am going to teach you how to control speed and direction of dc motor using nodemcu WiFi module and l293d motor driver. Nodemcu will serve a web page on your mobile, desktop, laptop or notebook web browser. Web page enlists the dc motor controls. User can control the rotation speed of motor from web page and change the dc motor rotation direction through web page controls. The tutorial also teaches about how to interface h bridge l293d ic with nodemcu esp8266 12e WiFi module.

Two dc motors are used in the project. Dc motors power consumption is 12 volts at 300 mA of current. Nodemcu esp8266 WiFi module works on 3.3 volts TTL logic. We can not power the dc motor directly through the nodemcu output pins. We need an extra power and external circuit which can handle motor heavy power load. Transistor is a best choice to control heavy load with microcontrollers. Transistors base takes 3.3 volts TTL microcontroller output signal and can drive heavy loads across its collector and emitter side. Through transistor we can also control the speed of motor. But the problem lies in direction control of motor. Through a single transistor its not possible to alter the direction of motor rotation. For altering the motor direction we need a combination of transistors. This combination of transistors is know an h bridge driver. Through h bridge circuit we can easily change the rotation direction of motor. H bridge circuit can also effectively be utilized to control the rotation speed of dc motor..
 
Arduino compiler to execute the software code and dumping using usb cable.

Watch Video Demonstration Carefully Till End -- WiFi Based DC Motor Speed and Direction Control using NodeMCU


Block Diagram -- WiFi Based DC Motor Speed and Direction Control using NodeMCU


Hardware Components Used For Project

  • NODE MCU
  • LED INDICATOR
  • USB CABLE
  • ADAPTER POWER SUPPLY
  • DC Motor -2
  • 5v POWER SUPPLY
  • L293D DRIVER IC
  • WIFI MODULE - ESP8266

Softwares Used For Project

  • ARDUINO Studio Interface
  • EMBEDDED C LANGAUAGE
  • ARDUINO ISP USB Programming of all ARDUINO Devices
  • Programs both Flash and EEPROM
  • USB Interface to PC for Programming and Control
  • Takes Power from USB. No need for Additional Power Supply
  • ORCAD SCHEMATIC LAYOUT SOFTWARE

Project Software Code + Schematic Diagram Link Download