Mbot Ranger Motors not working


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. */



The onboard motors are encoder motors, not DC motor.


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


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