NodeMCU is flashed with latest Micropython 1.9.2, powering the motor shield from 2×18650 lion batteries (approx 7.5 volts), using a shortcut between VIN and VM, so only one power for controller and motor. The code is after many hours of looking for the problem very simple:
Code: Select all
import micropython
import machine
a1 = machine.Pin(5, machine.Pin.OUT)
a2 = machine.Pin(0, machine.Pin.OUT)
b1 = machine.Pin(4, machine.Pin.OUT)
b2 = machine.Pin(2, machine.Pin.OUT)
a1.value(1)
a2.value(1)
b1.value(1)
b2.value(1)
I bought several pieces of those motor shields and all of them are the same. No output voltage on motor pins.
Photo of my super simple setup
(on photo the power LED is off, but of course, I know about that power switch ).
Does anybody have any idea? I tried also program the pins using Arduino IDE (reflashed the NodeMCU), but no luck too.