I m doing this project that needs to be ready by next Thursday. The problem I encountered was that I failed to control more than one DC Motor. I m using Arduino language to program the script. When it was only one DC Motor, it worked all right. However, I don't know how to control two DC Motors.
Oh yeah, and, my DC Motor can't be going backwards for some reason....what could be the cause?? The motor was labelled as reversible. lol
SuperBruce:
I m doing this project that needs to be ready by next Thursday. The problem I encountered was that I failed to control more than one DC Motor. I m using Arduino language to program the script. When it was only one DC Motor, it worked all right. However, I don't know how to control two DC Motors.
Oh yeah, and, my DC Motor can't be going backwards for some reason....what could be the cause?? The motor was labelled as reversible.
On the risk of sounding like my mom: You started to late if you're in a hurry now...
We need a bit more info on your project. Like: What type of motor, which shield, which arduino and most important: Your code!
Yeah, so the code I just posted was used to control one motor linked to port 3 only. I copied it from adafruit...I can't figure out what to add to control, lets say, an additional motor linked to port 2
I don't see how it works at all with that library, since looking at it that library is for a PIC32, not an Atmel AVR. It runs the motor via hardware timer which is PWM controlling it at 64KHz. Why go that fast? Any cheapie H-bridge driver you buy will not run efficiently at that speed.