How to wire and code a motor to move back and forth

Thread Starter

Mango Boy

Joined Oct 24, 2020
1
My teacher has given me 2 dc motors, motor chip, wires, breadboard, and a Arduino DUE. I'm supposed to wire and code this on python so it can move back and forth. I already know how to wire it so my motors can move forward. But I have no clue how to wire and code so it can move backwards. Any help would be great! (I'm new to coding)
Motor and Arduinno.png
 

MrChips

Joined Oct 2, 2009
22,096
Welcome to AAC!

Show us the code of what you have done so far to make the motor move.
What is the part number of the motor chip?
 

djsfantasi

Joined Apr 11, 2010
6,962
What’s a “motor chip”? My next question might change depending on your answer...

How do you reverse a DC motor with just a DC motor and batteries?

And don’t forget to answer Mr Chips question!
 
Top