Mbot Ranger Motors not working


#1

Hello, I am using the sample code for the ranger motors, but when i upload the code, nothing happens.
#include “MeAuriga.h”

MeDCMotor motor1(M1);

MeDCMotor motor2(M2);

uint8_t motorSpeed = 100;

void setup()
{
}

void loop()
{
motor1.run(motorSpeed); /* value: between -255 and 255. /
motor2.run(motorSpeed); / value: between -255 and 255. */

}


#2

The onboard motors are encoder motors, not DC motor.


#3

Do you want to move the motor (encoder motor) that came with Ranger?


#4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.