Encoder Motor not working with Orion Board


#1

I ordered the Encoder Motor Pack and connected it to my Starter Robot Kit (BT) on Socket 1 of the Orion Board.
Regular DC Motors where disconnected.

After uploading the sample script and turning on the battery the encoder controller lights up with a red led but the motors don’t move.

Any idea what I am doing wrong? Any way I can debug the issue?

To test the encoder motor I am using this example script:

include Makeblock.h
include SoftwareSerial.h
include Wire.h

MeEncoderMotor motor1(0x09, SLOT1); // Motor at slot1
MeEncoderMotor motor2(0x09, SLOT2); // motor at slot2

void setup()
{
pinMode(led, OUTPUT);
motor1.begin();
motor2.begin();
Serial.begin(9600);
}

void loop()
{
motor2.Move(360, 200);

motor1.RunSpeed(150);
delay(2000);
motor1.RunSpeed(0);
delay(2000);

motor1.RunSpeedAndTime(150, 2000);
delay(3000);

motor2.MoveTo(0, 100);
delay(3000);
motor2.RunTurns(3, 100);
delay(9000);
}


#2

Please contact via email ander@makeblock.cc to get help, we are on national vocation now. Sorry for your troubles here.
Una


#3

@patric30, have a try to use the latest library.
Makeblock-Library.zip (171.1 KB)
Decompress the Makeblock folder in the zip to the Arduino default library.
Click “File->Examples”. Here are some test program.


#4

Tried using the new library but I am getting random compiler errors once I try to compile the EncoderMotorTest.ino.

Compiler output:

Arduino: 1.0.6 (Mac OS X), Board: “Arduino Uno”
/Users/Markus/Documents/Arduino/libraries/makeblock/MeEncoderMotor.cpp: In member function ‘void MeEncoderMotor::request(byte*, byte*, int, int)’:
/Users/Markus/Documents/Arduino/libraries/makeblock/MeEncoderMotor.cpp:272: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
/Applications/Arduino.app/Contents/Resources/Java/libraries/Wire/Wire.h:58: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)
/Applications/Arduino.app/Contents/Resources/Java/libraries/Wire/Wire.h:56: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)


#5

Please email to support@makeblock.cc to get coding support directly. Thx


#6