I just ordered a Megamoto motor control shield specifically for Arduino, but my question is,
do I need a specific library to control DC motors or how do I start the program?
I just need to set up the speed of the motor and make the order of when to start and when to stop.
Any suggestions?
I am just finding libraries for stepper and servo motors =/
I need to know it for my final project that is due in 2 weeks =/ All the help is greatly appreciated.
I have been working on my project for a long time by now, this is the only thing that is missing,
I just need to know how to make a code that makes the DC motor go to a certain velocity, that is it.
This is my first time ever using Arduino, motors and control shields, no one has taught me how to do it, and I am trying to learn by my self.
There are jumpers on the shield that control which PWM pins are used to control the speed of the motors. Pick a position, and use analogWrite() to write a value to the appropriate pin.
If you put the motor A jumper in the D6 position, you can run the motor at half speed using:
analogWrite(6, 127);
Use a larger value to go faster (up to 255), and a smaller value to go slower.