Hello,
If this is any help here is the command list: MD25 Serial Documentation
I think your link is not referring to I2C but to Serial communication with the MD25.
The right link must be: MD25 Technical Documentation.
I think there must be a mistake also here:
int receiveFromEncoder(byte reg)
{ //---------------------------------------------------
// reg must be Enc1a or Enc1b
//---------------------------------------------------
I rather think reg must be Enc1a or Enc2a, the beginning adress of the encoders, don't you think I am right ?
I am also trying to use an MD25 to control motors and I don't manage to have them run, even with this example.
When I try reading any register, I get the disappointing 0 value, even for battery rate or #version.
Does anyone know how to do that ?
Also, I didn't know about the communication time of I2C, but when I try to use this with the Serial Monitor I can only print 3 or 4 lines per second. Is it normal ? Won't it ruin the command to the motors ?