DC Motor not Reversing Directions

I have followed multiple coding examples, and the motor is physically capable of rotating both directions; however, it seems that my code is not doing what I believe it says it should.
No description
No description
5 Replies
AnonEngineering
it looks like you are missing logic power see https://lastminuteengineers.com/l293d-dc-motor-arduino-tutorial/
QuantumMeep
QuantumMeepOP3w ago
i must not understand what that means then because when I use different code it is capable of changing directions with the same wiring, but using my own code it does not
AnonEngineering
well, you may have a code issue as well, but pin 16 should be connected to logic 5v
Arduino Beta
Arduino Beta3w ago
@QuantumMeep
Tag Sent
See <#451158319361556491>
Arduino Bot • Submit bugs on GitHub!
AnonEngineering
using codeblocks makes debugging MUCH easier

Did you find this page helpful?