NodeMCU ESP8266 to Adafruit Motor Shield V1. This is an old motor driver. I couldn't find any esp8266 connection with this motor driver anywhere. I made a connection in this way. I hope I could help. I would be very happy if you help me develop the robot.
View the Project on GitHub mahirgul/wifi-nodemcu-robot-esp8266
NodeMCU ESP8266 to Adafruit Motor Shield V1. This is an old motor driver. I couldn’t find any esp8266 connection with this motor driver anywhere. I made a connection in this way. I hope I could help. I would be very happy if you help me develop the robot.
Thank you Muhammad Ansar https://github.com/embeddedlab786/Wifi_Robot
command | movement | – | command | movement |
---|---|---|---|---|
F | forward | B | back | |
L | left | R | right | |
S | Stop |
dataArray[0] = 39; //Forward
dataArray[1] = 216; //Back
dataArray[2] = 149; //Left
dataArray[3] = 106 ;//Right
74HC595 Out | Bits | number | motor | direction |
---|---|---|---|---|
QC | 2 | 4 | M1 | clockwise |
QD | 3 | 8 | M1 | counterclockwise |
QB | 1 | 2 | M2 | clockwise |
QE | 4 | 16 | M2 | counterclockwise |
QF | 5 | 32 | M3 | clockwise |
QH | 7 | 128 | M3 | counterclockwise |
QA | 0 | 1 | M4 | clockwise |
QG | 6 | 64 | M4 | counterclockwise |
Example: We add the numbers of clockwise rotations so that all engines go forward.
Motor 1 | + | Motor 2 | + | Motor 3 | + | Motor 4 | = | Calculate |
---|---|---|---|---|---|---|---|---|
4 | + | 2 | + | 32 | + | 1 | = | 39 |
shiftOut(dataPin, clockPin, MSBFIRST, b);
https://mahirgul.github.io/wifi-nodemcu-robot-esp8266/