12.07.2015 Views

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

Programming Manual Elektor Proton Robot - ELEKTOR.se

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Mode RegisterThe mode register <strong>se</strong>lects which mode of operation and I2C data input type the u<strong>se</strong>rrequires. The options being:0, (Default Setting) If a value of 0 is written to the mode register then the meaning of thespeed registers is literal speeds in the range of 0 (Full Rever<strong>se</strong>) 128 (Stop) 255 (FullForward).1, Mode 1 is similar to Mode 0, except that the speed registers are interpreted as signedvalues. The meaning of the speed registers is literal speeds in the range of -128 (FullRever<strong>se</strong>) 0 (Stop) 127 (Full Forward).2, Writing a value of 2 to the mode register will make speed1 control both motors speed,and speed2 becomes the turn value.Data is in the range of 0 (Full Rever<strong>se</strong>) 128 (Stop) 255 (Full Forward).3, Mode 3 is similar to Mode 2, except that the speed registers are interpreted as signedvalues.Data is in the range of -128 (Full Rever<strong>se</strong>) 0 (Stop) 127 (Full Forward)Command registerCommandDec HexAction32 0x20 Re<strong>se</strong>ts the encoder registers to zero48 0x30 Disables automatic speed regulation49 0x31 Enables automatic speed regulation (default)50 0x32 Disables 2 <strong>se</strong>cond timeout of motors (Version 2 onwards only)51 0x33Enables 2 <strong>se</strong>cond timeout of motors when no I2C comms (default)(Version 2 onwards only)160 0xA0 1st in <strong>se</strong>quence to change I2C address170 0xAA 2nd in <strong>se</strong>quence to change I2C address165 0xA5 3rd in <strong>se</strong>quence to change I2C addressBart Huyskens <strong>Manual</strong> <strong>Elektor</strong> <strong>Proton</strong> V1.0 3 April 2011 78

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!