I'm using this code to run a DC motor and fairly new so I have a couple questions.
How does the motor switch directions without a button for the circuit? I followed this video for the circuitry and they provided the code, but I'm confused how the motor changes direction.
Same with speed. How will that be adjusted? Is it just changing the voltage to the required speed?
How hard would it be to program a simple button for going each direction and would I have to completely change the schematic I'm using?
Thank you to whoever can help me,
D
P.S. Here is a link to the video I used. I'm using the exact same wire setup.
No buttons. If you read the code, it steps the motor in one direction for 800 steps, then waits a second, then in the other direction for 800 steps, then waits a second...
Perehama:
No buttons. If you read the code, it steps the motor in one direction for 800 steps, then waits a second, then in the other direction for 800 steps, then waits a second...
Ok, that makes sense. So if I wanted to change the distance it travels I have to specify it to run more than 800 steps?
Would changing the orientation of the dip switches effect that as well?