Manual
ROBOT . HEAD to TOE
Product User’s Manual – MDDS10
8.3 SERIAL SIMPLIFIED MODE
In Simplified Serial mode, SmartDriveDuo-10 is controlled by using the UART interface.
DIG1 pin is the UART Rx. DIG2, AN1 and AN2 pins are not used in this mode.
A single byte of data is all you need to control the speed and direction for each motor. First
MSB bit is to select which motor to control, and the rest bits is to control.
Bit
7 (MSB)
6
5
4
3
2
1
0 (LSB)
Function
Channel
Direction
Speed
Bit 7 (Channel): 0 - motor LEFT, 1 - motor RIGHT.
Bit 6 - 0: Control motor direction and speed.
Example: Value in Decimal
● 0 or 64 - motor LEFT stop.
● 63 - motor LEFT full forward.
● 127 - motor LEFT full reverse.
● 128 or 192 - motor RIGHT stop.
● 191 - motor RIGHT full forward.
● 255 - motor RIGHT full reverse.
Simplified Serial mode is selected by setting SW1, SW2 to 1 (Up) and SW3 to 0 (Down).
SW4 – SW6 are used to select the UART baud rate.
Input Mode
SW1 - SW3
110
Simplified Serial Mode
UART Baud Rate
SW4 - SW6
000
001
010
011
100
101
110
111
Baud Rate
1200
2400
4800
9600
19200
38400
57600
115200
0 - OFF 1 - ON X - Don’t Care
Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved 18