background image

ROBOT.HEAD to TOE 

Product User’s Manual - 

MDDS30 

 

8.2 Microcontroller Analog/PWM 

 
In Analog/PWM input mode, the speed and direction of the motor is controlled by the

 

 

 

 

 

 

 

 

 

 

   

 

 

 

analog voltage or PWM signal. For analog, the valid input range is from 0 to 5V. While for

 

 

 

 

 

 

 

 

 

 

   

     

 

 

 

PWM, it can accept TTL PWM from 1.3 to 5V for HIGH level (refer to 

Product Specifications

). 

 

NOTE 

The Analog/PWM signal to stop the motor must be available when SmartDriveDuo-30 is 

turned on/reset. Else, the driver will show Input Error until the correct (stop) signal is 

available. 

Stop signal for Analog 

Sign-Magnitude - 

0V 

Locked Anti-Phase - 

2.5V 

Stop signal for PWM 

Sign-Magnitude - 

0%

 duty cycle 

Locked Anti-Phase - 

50%

 duty cycle 

 
Analog input mode is selected by setting SW1 to 0 (Down) and SW2 to 1 (Up). PWM input

 

 

   

 

 

 

     

 

 

     

 

 

 

mode is selected by setting SW1 to 1 (Up) and SW2 to 0 (Down). SW3 – SW6 can be

   

 

 

 

 

   

 

 

 

   

 

   

 

 

 

configured depending on the requirement of the user. 
 

Input Mode 

SW1:SW2 

01 

 
 
 

10 

 

ANALOG INPUT MODE 

The input is analog signal. The filter capacitor is not connected and the 
input signal is not filtered. SW1 is for Input 1 while SW2 is for Input 2. 
 

PWM INPUT MODE 

The input is PWM signal. The filter capacitor is connected and the input 
signal is low pass filtered to be an analog signal. SW1 is for Input 1 while 
SW2 is for Input 2. SW2 must be set to 0 if Sign-Magnitude mode is 
turned on. 
 

Single or 

Mixed Mode 

SW3:SW4 

00 

 

 

 

01 

 
 
 

10 

 
 
 

11 

 
MIXED 

The motor speed is controlled by channel AN1 and direction is controlled 
by channel AN2. 
 

INDEPENDENT RIGHT 

Only motor Right will active, motor Left will inactive. Motor Right is 
controlled by channel IN2 and AN2. 
 

INDEPENDENT LEFT 

Only motor Left will active, motor Right will inactive. Motor Left is 
controlled by channel IN1 and AN1. 
 

INDEPENDENT BOTH 

Both motor is active and can be controlled individually through channel 
IN1 & AN1 for motor Left, and IN2 & AN2 for motor Right. 
 

Exponential 

Mode 

SW5 

 
 

 

 
OFF 

The speed is linear with the input signal. This is for low to medium speed 
motor. 
 

Created by 

Cytron Technologies Sdn Bhd

 – All Rights Reserved 

Back to 

INDEX

  15 

Содержание MDDS30

Страница 1: ...representation or warranty is given and no liability is assumed by Cytron Technologies Incorporated with respect to the accuracy or use of such information or infringement of patents or other intellectual property rights arising from such use or otherwise Use of Cytron Technologies s products as critical components in life support system is not authorized except with express written approval by Cy...

Страница 2: ...ONS 4 BOARD LAYOUT 5 POWER SUPPLY 6 MOTOR CONNECTION 7 SAFETY FEATURES 8 INPUT MODES 8 1 RC Radio Control 8 2 Microcontroller Analog PWM 8 3 Serial Simplified 8 4 Serial Packetized 9 WARRANTY PAGES 2 3 4 6 8 9 10 11 13 15 17 19 21 Created by Cytron Technologies Sdn Bhd All Rights Reserved Back to INDEX 1 ...

Страница 3: ...ide smart features such as multiple input mode and thermal protection SmartDriveDuo 30 s feature makes driving a robot with differential drive a truly plug and play experience Some of the features for SmartDriveDuo 30 are summarized as below Bi directional control for dual brushed DC motor Support motor voltage from 7V to 35V Maximum current up to 80A peak 1 second 30A continuously each channel On...

Страница 4: ...artDriveDuo 30 Code MDDS30 1 2 Grove 4 Pin Buckled 20cm Cable Code WR EX GROVE 2 3 2561 3 Ways Connector Extension Wire Code WR EX 2561 03 2 Optional External Fan Not included No ITEMS QUANTITY 1 DC5V Brushless Fan 40 x 40 x 20mm Code FAN 05 040040020 1 2 PCB Stand Screw Screw 30mm Code SD SS 30 4 3 Bolt M3 x 25mm Code HD PM M3 25 4 4 M3 Nut Code HD PM M3 NUT 4 Created by Cytron Technologies Sdn B...

Страница 5: ...ROBOT HEAD to TOE Product User s Manual MDDS30 3 PRODUCT SPECIFICATIONS Dimension unit in mm MDDS30 main board MDDS30 height Created by Cytron Technologies Sdn Bhd All Rights Reserved Back to INDEX 4 ...

Страница 6: ...ax Unit 1 Input Voltage Motor Supply Voltage 7 35 V 2 I MAX Max Continuous Motor Current 30 A 3 I PEAK Peak Motor Current 80 A 4 V IOH Logic Input HIGH Level 1 3 5 V 5 V IOL Logic Input LOW Level 0 0 7 V Depends on the room temperature Must not exceed 1 second Created by Cytron Technologies Sdn Bhd All Rights Reserved Back to INDEX 5 ...

Страница 7: ...al block NO POLARITY PROTECTION please double check the connection before power up Please use wire with proper thickness to support the expected current D MOTOR LEFT TERMINAL BLOCK Connect to motor LEFT at your mobile robot User can screw to lock the wire to the terminal block or solder the wire directly to the pad at bottom layer Please use wire with proper thickness to support the expected curre...

Страница 8: ...ressed current flows from output MLA to MLB Vice Versa L MOTOR RIGHT TEST BUTTON Fast test to check driver functionality for motor RIGHT If MRA is pressed current flows from output MRA to MRB Vice Versa M RC INPUT PIN This pins specially for RC receiver input wire RC1 for forward reverse and RC2 for steering N ANALOG PWM INPUT PIN GROVE AN1 Analog PWM signal for motor LEFT AN2 Analog PWM signal fo...

Страница 9: ...Y PROTECTION ON MDDS30 PLEASE DOUBLE CHECK THE CONNECTION BEFORE CONNECTING TO THE BATTERY NOTE If a power supply that cannot sink current is being used example bench top and AC to DC switching power supply the input voltage will rise when the driver is regenerating motor is slowing down or being pushed by external force Thus it is important to connect a battery with same voltage in parallel with ...

Страница 10: ...ies to the driver is very risky and might burn the motor driver When the robot is being pushed power will be generated by the motor If the battery is connected the generated power will flow to the battery and charge it If the battery is not connected the generated power has nowhere to go and the voltage will rise If the generated voltage is higher than what the motor driver can handle components m...

Страница 11: ... will not be cut out Thus it is user s responsibility to stop the motor driving and replace battery to avoid further damage to the battery If other types of battery is used to power the board e g NiMH NiCD SLA the under voltage warning will still be shown In this case user may ignore the warning and he she needs to estimate when to replace the battery by him herself 3 Over Voltage Protection Error...

Страница 12: ...rial Simplified 4 Serial Packetized The DIP switch settings for each mode and the function for input pin are summarized on the table below DIP Switch 1 2 3 4 5 6 RC 0 0 CHANNEL 00 Mixed 01 Independent Right 10 Independent Left 11 Independent Both 0 Linear 1 Exponential 0 RC 1 MCU Analog 0 1 0 Locked Anti Phase 1 Signed Magnitude PWM 1 0 Serial Simplified 1 1 0 BAUDRATE 000 1200 001 2400 010 4800 0...

Страница 13: ...eiver INDEPENDENT RIGHT Only motor Right will active motor Left will inactive Motor Right is controlled by channel RC2 INDEPENDENT LEFT Only motor Left will active motor Right will inactive Motor Left is controlled by channel RC1 INDEPENDENT BOTH Both motor is active and can be controlled individually through channel RC1 and RC2 Recommended this mode if controlled using Microcontroller Exponential...

Страница 14: ... not need to send the pulse continuously to the SmartDriveDuo 30 Instead it only needs to send a single pulse when the speed or direction of the motor needs to be changed 0 OFF 1 ON X Don t care Common DIP switch settings for RC input mode RC Mode with RC transmitter receiver Mixed ON 1 2 3 4 5 6 7 8 Sample connection for MDDS30 with RC receiver The channels on RC receiver is depend on your RC con...

Страница 15: ...oth ON 1 2 3 4 5 6 7 8 Sample connection for MDDS30 with CT UNO or Arduino Genuino Uno and Base Shield V2 This connection is recommended for beginner Arduino Uno sample code is provided at the following link GitHub Created by Cytron Technologies Sdn Bhd All Rights Reserved Back to INDEX 14 ...

Страница 16: ...NALOG INPUT MODE The input is analog signal The filter capacitor is not connected and the input signal is not filtered SW1 is for Input 1 while SW2 is for Input 2 PWM INPUT MODE The input is PWM signal The filter capacitor is connected and the input signal is low pass filtered to be an analog signal SW1 is for Input 1 while SW2 is for Input 2 SW2 must be set to 0 if Sign Magnitude mode is turned o...

Страница 17: ...and AN2 controls the speed of the motor Motor stops when the input is 0V and run at full speed when the input is 5V IN1 and IN2 is digital inputs and it controls the direction of the motor respectively 0 OFF 1 ON X Don t care Common DIP switch settings for PWM input mode PWM input mode with microcontroller Independent Both ON 1 2 3 4 5 6 7 8 Sample connection for MDDS30 with CT UNO or Arduino Genu...

Страница 18: ...ate 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...

Страница 19: ...1 1 1 1 1 191 motor RIGHT full speed CW 7 1 1 0 0 0 0 0 0 192 motor RIGHT stop 8 1 1 1 1 1 1 1 1 255 motor RIGHT full speed CCW Common DIP switch settings for Serial Simplified mode Serial Simplified mode with microcontroller Baudrate 9600bps ON 1 2 3 4 5 6 7 8 Sample connection for MDDS30 with CT UNO or Arduino Genuino Uno and Base Shield V2 This connection is recommended for beginner Arduino Uno...

Страница 20: ...tically based on this byte After that SmartDriveDuo 30 is ready to read full packet 4 bytes and the baudrate cannot be changed without power recycle power off and on or reset button NOTE When the driver is powered up and waiting for the header byte the error LED will blink and indicate that there is input error SmartDriveDuo 30 may take up to 500ms to start up after power is applied Sending a dumm...

Страница 21: ...e controlled 0 for motor LEFT and 1 for motor RIGHT Bit 4 7 is not used 3 Command 0 255 Value 127 stops the motor 0 is full reverse and 255 is full forward 4 Checksum 0 255 The value for checksum must be the result of Header Address Command Common DIP switch settings for Serial Packetized mode Serial Packetized mode with microcontroller Address 0 ON 1 2 3 4 5 6 7 8 Sample connection for MDDS30 wit...

Страница 22: ...covered under warranty Warranty does not cover freight cost for both ways Prepared by Cytron Technologies Sdn Bhd www cytron com my No 1 Lorong Industri Impian 1 Taman Industri Impian 14000 Bukit Mertajam Penang Malaysia Tel 604 548 0668 Fax 604 548 0669 Email support cytron com my sales cytron com my Created by Cytron Technologies Sdn Bhd All Rights Reserved Back to INDEX 21 ...

Отзывы: