Quantcast
Channel: Wicked Device Support - Latest posts
Viewing all articles
Browse latest Browse all 651

Motor Shield for Arduino - 6 motors

$
0
0

Hi Again,

I have been trying unsuccessfully to program the LEFT side (ODD numbered) motors to turn CCW while the RIGHT side (EVEN numbered) motors to turn CW thus causing a pivot/fast turn. Are there examples/functions for "oddMotorsForward(void)" or "oddMotorsBackward(void)" or "oddMotorsSoftBrake(void)" or something else? I have never used or programmed using shift registers.
I thought something like this:
// void PIVOT
void oddMotorsForward(void){
for(int ii = 0; ii < num_motors-1; ii++){
m[ii+1]->setDirection(DIR_CW); // clockwise
m[ii-1]->setDirection(DIR_CCW); //counterclockwise
/* or m[ii-1]->setBrake(BRAKE_ON); // even brakes on


Viewing all articles
Browse latest Browse all 651

Trending Articles