Manual

ROBOT.HEAD to TOE
Product User’s Manual - MDDS30
Created by Cytron Technologies Sdn Bhd All Rights Reserved
Back to INDEX 19
8.3 Serial Simplified
In Serial Simplified mode, SmartDriveDuo-30 is controlled by using the UART interface. IN1
pin is connected to the UART receive pin. IN2, AN1 and AN2 pins are not used in this mode.
Serial Simplified mode is selected by setting SW1, SW2 to 1 (Up) and SW3 to 0 (Down). SW4
SW6 can be configured depending on the requirement of the user.
Input Mode
SW1-SW3
110
SERIAL SIMPLIFIED MODE
UART
Baudrate
SW4-SW6
000
001
010
011
100
101
110
111
1200
2400
4800
9600
19200
38400
57600
115200
0 - OFF 1 - ON X - Don’t care
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 for selecting motor LEFT.
1 for selecting motor RIGHT.
Bit 6 (Direction):
0 to set motor direction to CW.
1 to set motor direction to CCW.
Bit 0 - 5 (Speed):
0b000000 or 0 (decimal) to stop.
0b111111 or 63 (decimal) to full speed.