I am trying to get my robot to turn. I am using the MD25 in serial mode, hooked up to an Arduino and 2 EMG30 motors. I looked at the MD25 documentation: http://www.robot-electronics.co.uk/htm/md25ser.htm I noticed in that spec sheet that there is a command called 0x32 SET SPEED2 / TURN So would the following code snippet be correct:?
Does the name TURN need to be somewhere in the code? What are the range of numbers allowed in the second Serial.write(??); command? Is this the correct code to begin with?Code:#define SETSPEED2 0x32 Serial.write(CMD); Serial.write(SETSPEED2); Serial.write( ?? );

Reply With Quote