Your topic was MOVED to its current forum category which is more appropriate than the original as it has nothing to do with Installation and Troubleshooting of the IDE
Members are reluctant to download and unzip zip files because of the security risk. Also it is a pain in the a$$. Please read the forum guidelines to see how to properly post code and some information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in code tags.
Also, please post a schematic. Written descriptions are always more ambiguous than a drawing. Hand drawn, photographed and posted is fine. Include all pin names/numbers, components, their part numbers and/or values and power supplies.
Yes that's the problem!
What does you mean by: Is there any loose contacts in your setup?
Yes the receiver(esp8266) receives that I click CCW but it's actually still CW.
Hello, Actually You was right! Pin D2 was not turning on the led and all the other motor pins were working! D2 pin is connected to IN3 on the motor driver. Am 90% sure pin D2 is not turning on because of the programing, The reason am sure is because the esp8266 is new it's only 2 weeks old since the time I purchase!
Hello, Here is a better diagram.
For some reason D2 is working!
I think the error is from the library I got this library following a video It can control motor fully as it says! the HTML webpage was fake it was just controlling start,stop and speed. But I figured a way to control everything but motor 2 is only going CW.
So please check the library and the code.
diagram: