background image

 

ROBOT . HEAD to TOE 

                                                                    

Product User’s Manual – 

MDS160A

 

 

 

7.4 PACKETIZED SERIAL MODE 
 

In Packetized Serial mode,

SmartDrive160

is controlled by using the UART interface. Input 1

 

 

 

 

   

   

 

 

 

 

   

is the UART Rx pin and Input 2 is not used in this mode. To control the motor, data sent to

 

 

 

 

 

 

     

 

   

 

 

 

 

 

 

 

   

the driver must be in 4 bytes packet format which includes a header, address, command and

 

 

       

 

 

 

 

   

 

 

 

 

checksum. Up to 16 units of SmartDrive160 can be connected together to a single

 

 

 

 

 

 

 

 

 

 

 

   

 

microcontroller UART port. 
 
Besides that, the SmartDrive160 also incorporates an Auto­Baud feature in Packetized Serial

 

 

 

 

 

   

 

   

 

 

mode. When the driver is first powered up, the host microcontroller must send a header byte

 

 

 

   

 

 

 

 

 

 

 

   

 

 

(Decimal 85) to the driver. The driver will then calculate the baud rate automatically based on

 

   

 

 

 

 

 

 

 

 

 

 

 

   

this character. After that, SmartDrive160 is ready for command and the baud rate cannot be

 

 

 

 

   

 

 

 

 

 

 

 

   

changed without power off and on again.  
 

NOTE:

 

1.

When the driver is powered up and waiting for the header byte, the error LED will

 

 

   

 

 

 

 

 

 

 

 

 

 

 

 

blink and indicate that there is input error. 

2.

SmartDrive160 may take up to 500ms to start up after power is applied. Sending the

 

 

 

   

   

 

 

 

   

 

 

 

header byte for auto baud during this time period may cause undesirable results. Please

 

 

 

 

 

 

 

 

 

 

 

 

 

 

allow a one­second delay between applying power and sending the header byte. 

 
 
Packetized Serial mode is selected by setting

SW1, SW2 to 0 (Down) and SW3, SW4

to

1

 

 

   

   

 

 

     

 

 

 

   

 

(Up)

. SW5 – SW8 are used to select the address. 

 

Input Mode 

SW1 ­ SW4

 

0011 

 

Packetized Serial Mode

 

UART Address 

SW5 ­ SW8

 

0000 ­ 1111 

 

0 ­ 15

 

0 ­ OFF

1 ­ ON

X ­ Don’t Care

 

 
 
 

A packet consists of 4 bytes and the format is shown in the following table. 
 

Byte 

Name 

Value (Decimal) 

Description 

Header 

85 

To indicate the start of packet. 

Address 

0 ­ 15 

Used to identify the driver when multiple units are connected

   

 

 

 

 

 

 

 

 

together. The address byte must match the address configured

 

 

 

 

 

 

 

 

 

with the DIP switch. 

Command 

0 – 255 

Value 127 stops the motor, 0 is full reverse and 255 is full

 

 

 

 

     

 

 

 

   

 

forward. 

Checksum 

0 – 255 

The value for checksum must be the result of 
 A Command

 

 
 
 
 

 

Created by Cytron Technologies Sdn. Bhd. – All Rights Reserved

 

17 

 

Summary of Contents for MDS160A

Page 1: ...ROBOT HEAD to TOE Product User s Manual MDS160A MDS160A SmartDrive160 User s Manual V1 0 Aug 2014 Created by Cytron Technologies Sdn Bhd All Rights Reserved 1...

Page 2: ...view 2 Packing List 3 Product Specifications 4 Board Layout 5 Power Supply 6 Safety Features 7 Input Modes 7 1 RC Input Mode 7 2 Analog PWM Input Mode 7 3 Simplified Serial Mode 7 4 Packetized Serial...

Page 3: ...driving a robot with differential drive a truly plug and play experience Some of the features for SmartDrive160 are summarized as below Bi directional control for a single brushed DC motor Support in...

Page 4: ...rts and components according to the packing lists If there are any parts missing please contact us at sales cytron com my immediately 1 1 x MDS160A SmartDrive160 2 User s Manual can be downloaded from...

Page 5: ...otor Current 160 A 3 I PEAK Peak Motor Current 190 A 4 V IOH Logic Input High Level 3 5 5 V 5 V IOL Logic Input Low Level 0 0 0 5 V 6 5V Output Current 1 A Depends on the room temperature Not applicab...

Page 6: ...otor Terminal B Connect to the moto Swap with Motor Terminal A if the direction is incorrect 5 LED A Turns on when the Motor Terminal A is high and Motor Terminal B is low Indicates the current flows...

Page 7: ...from Motor Terminal B to A and motor will turn CCW or CW depending on the connection 11 Test Button A When this button is pressed current flows from Motor Terminal A to B and motor will turn CW or CC...

Page 8: ...t to connect a battery with same voltage in parallel with the power supply to absorb the current generated by the motor Else the input voltage might rise to a level where SmartDrive160 will be destroy...

Page 9: ...b Overvoltage Protection Error LED blinks 4 times When the motor is slowing down current will be generated and flow back to charge the battery However if the power source cannot absorb the current ge...

Page 10: ...ettings for each mode and the function for input pin are summarized as below Input Mode DIP Switch SW1 SW4 DIP Switch SW5 SW8 Description Input 1 Input 2 RC 0000XXXX SW5 6 SW7 SW8 Single Mix Mode 0X S...

Page 11: ...ROBOT HEAD to TOE Product User s Manual MDS160A Created by Cytron Technologies Sdn Bhd All Rights Reserved 11...

Page 12: ...the right motor of the robot differential drive system Input 1 controls the overall speed as well as forward backward movement of the robot Input 2 controls the left right or pivot movement of the rob...

Page 13: ...tch Mode 00000000 RC Mode Single Channel Mode Exponential Off MCU Mode Off 00000010 RC Mode Single Channel Mode Exponential On MCU Mode Off 00001000 RC Mode Left Mix Mode Exponential Off MCU Mode Off...

Page 14: ...e SW3 SW4 01 Analog PWM Input Mode Single Mix Mode SW5 SW6 0X 10 11 Single Channel Mode The motor speed and direction are controlled by a single channel connected to Input 1 Motor stops when the input...

Page 15: ...Right is just for reference only Actual side of the motor may depends on the Input signal For Watanabe revision the center value is 3V and motor stops if 0 8V Input 2 must be low to enable the driver...

Page 16: ...UART port The Slave Select pin is internally pulled high and it may be left unconnected if not used A single byte of data is all you need to control the speed and direction of the motor Sending byte 1...

Page 17: ...the header byte the error LED will blink and indicate that there is input error 2 SmartDrive160 may take up to 500ms to start up after power is applied Sending the header byte for auto baud during th...

Page 18: ...miss use is not covered under warranty Warranty does not cover freight cost for both ways Prepared by Cytron Technologies Sdn Bhd 19 Jalan Kebudayaan 1A Taman Universiti 81300 Skudai Johor Malaysia T...

Reviews: