I am using Nodemcu V3 see link. It is a 3V3 board
I wired it to a SN754410NE chip to control a 12V toy motor. I am actually powering the motor with 9V because it is too fast for my project.
I use the code in this link Code after modifying it to match my pins. I use pins D7 and D8 for the motor and D5 for the speed. The problem is, with D5 connected I hear a faint buzz from the motor and it doesn't spin. When I remove it, it runs like charm. I am confused about having the line
The speed pin is a digital pin even in the example. I tried multiple values with no luck. I even tried a loop to go through all values from 0-255.
I have the battery wired to a 7805. Output from the 7805 powers the SN7544... chip and the nodemcu (using the Vin). The battery + also goes to pin 8 of the motor chip.
Motor is wired to pins 3 and 6 of the chip.
What could be wrong? Could it be the output from the nodemcu is not enough to drive the SN7544 chip?