NodeMCU V2 Motor Board

Last Updated on 31 May 2019 by Suffocation

For the NodeMCU V2, there is an expansion board with a motor driver. It can be used to control two small motors (up to 1.2 amps) via an L293DD motor driver IC. A stepper motor can also be connected.

It continues to offer two separate connectors for powering the board and the motors. Most of the ESP pins are brought out with an additional ground/power pin, which makes connecting peripherals easier.

Pins D1, D2, D3, and D4 are occupied by the motor driver.

Data

Power Supply: 4.5V to 9V
Motor voltage: 4.5V – 36V
Maximum motor current: 1.2 A

View

Front view

Rear view

Connections

Pin assignment

The motors can be controlled using pins D1 - D4. Further pin assignments can be found in the table below.

Programming

The experimental setup is simple. Plug the ESP8266 onto the board, connect two motors to the corresponding contacts, and load the example program below onto the ESP.

Library

… I haven't found any after a short search, I'd be grateful for any tips.

Own test program

Here is a simple test. It makes both motors turn forwards, turn backwards, and stop.

ESP8266MCUV2Motorplatine

Own lib

I'll probably write a class in the near future that encapsulates all the functions.

Related Posts

Sources

https://cdn.hackaday.io/files/8856378895104/user-mannual-for-esp-12e-motor-shield.pdf
http://www.instructables.com/id/Motorize-IoT-With-ESP8266/

2 thoughts on “NodeMCU V2 Motorplatine

  1. Hello Stefan Krebber,

    One could wire this up via an analogue port (exactly one on the ESP8266) and a voltage divider, and then read out and convert the analogue port in Tasmota. For exact instructions, I would need to read up on it myself first. But it must also be said that the board is very old and has its weaknesses. There are certainly some more modern variants, for example for the D1 Mini or Arduino Wi-Fi with a motor shield. Also, motors can be operated on almost any microcontroller using a motor driver board. This is usually more flexible and also allows stronger motors to be operated. Regards, Stefan

  2. Good day
    I've only just discovered this circuit board for myself and find it very exciting. .
    Is there a way to read the battery level under Tasmota? Or do you have any experience in this area?

Leave a Reply

Your email address will not be published. Required fields are marked *