Works only 1st motor with Me Encoder Motor Driver


#1

Hello!

I have a problem with old revision of Me Encoder Motor Driver (I’m using it with Arduino Uno).

I don’t know why, but working only first motor (I’m getting from it good data and it’s speed is OK). The second is only quet buzzing. I’ve tried to connect 2nd motorto 1st slot and 1st motor to 2nd slot - and it works! So, it looks like problem not in motors.
What I’m doing wrong?

Here is the code:

#include “MeOrion.h”
#include <Wire.h>
#include <SoftwareSerial.h>

float SpeedRevMinLeft = 0,
SpeedRevMinRight = 0;

MeEncoderMotor motor1(0x09, SLOT1);
MeEncoderMotor motor2(0x09, SLOT2);

void setup()
{
motor1.begin();
motor2.begin();

motor1.runSpeed(255);
motor2.runSpeed(255);

Serial.begin(9600);
}

void loop()
{
SpeedRevMinLeft = motor1.getCurrentSpeed();
SpeedRevMinRight = motor2.getCurrentSpeed();

Serial.print(SpeedRevMinLeft);
Serial.print(" ");
Serial.print(SpeedRevMinRight);
Serial.println();
}


#2

Looks like the problem in Makeblock board’s I2C, but no idea how to solve it.


#3