PSC28A – Controlling MD10C and MDS40A

Introduction

Are you interested in building a simple robot with motors such as fighting robot? Easily, we can just use a PSC28A without programming to control the motor of the robot from PS2 controller. To do so, we need also some motor drivers to make the motor like DC geared motor to move either in the full speed or slower/controllable speed by Pulse Width Modulation (PWM) and in clockwise (CW) or anti-clockwise (CCW) direction. Now, let me introduce a little bit about the PSC28A‘s I/O terminals. As shown in the Figure 1, there are 2 input terminals, 4 PWM output terminals, 8 digital output terminal (direction), 1 power out terminal that provide 12V to another peripheral such as motor driver, 1 ground terminal for all ground connection and 14 digital output terminals (button). Thus, I think that it is the main knowledge that some robot hobbyist wants to manipulate with. Recently, there are some robot hobbyist ask about how to use MD10C (Enhanced 10A DC Motor Driver) and MDS40A (SmartDrive40) with PSC28A (PS2 I/O Converter). Thus, in this tutorial, I will explain some basic ideas and connections to make it works. Meanwhile, some guides will be given in separate sections according to the different type of motor drivers.

* MDS40A has been discontinued, please check MDS40B (Enhanced SmartDrive 40) as replacement.

 

Figure 1: PSC28A I/O Terminals

**Note: Refer to PSC28A User Manual for more detail description.

Before we started the tutorial, the followings are the hardware and accessories that you might need to be prepared to follow up this tutorial:

Main hardware list:

(i) PSC28A (PS2 I/O Converter): 1 Unit                                (ii) PS2 Controller : 1 Unit

ps2-i-o-converter-3138-280x373Sony-PS2_thumb.jpg

                                                    

(iii) MD10C (Enhanced 10A DC Motor Driver): 2 Units        (iv) MDS40A (SmartDrive40): 2 Units

 MD10C(2)-280x373                                     MDS40A_thumb.jpg               

(v) : 4 Units

dc-geared-motor-107-800x800

Accessories or components list:

(i) Male to Male Jumper Wire (WR-JW-MM65)     (ii) Female to Female jumper wire (WR-JW-FF10)

                        4232-280x373   Jumper(male-male)

(iii) 1kΩ Resistor: 8 Units                                        (iv) Soldering Equipment: 1 Set

                             hakko-soldering-iron-24w-2992-222x296               

(v)  (SLA-12-70): 1 Unit                                       (vi) 12V/1.2Ah Lead Acid (SLA-12-12): 1 Unit       

     12v-7-0ah-lead-acid-82-280x373                                          12v-1-2ah-lead-acid-81-280x373

(vii) Adapter 12V 2A (AD-12-2): 1 Unit              (viii) Screw driver (‘+’ and ‘-’): 1 Unit Each

 adapter-12v-2a-3187-222x296                                                pro-skit-4-in-1-screw-driver-set-2119-280x373

 Now, let’s start the tutorial!

The following shows some ideas to ease the connection of Vcc and Gnd from PSC28A:

 

Figure 2: PSC28A Extended Socket of Vcc and GND

 

Figure 3: PSC28A Extended terminals (Vcc and GND) in close view

**Note: The advantages of this extended socket is to let us ease to connect Vcc and Gnd without much jumpers connection and we do not require breadboard to extend the Vcc and Gnd using jumpers.

 

SECTION 1: CONTROL TWO DC MOTORS BY MD10C WITH PSC28A

 

Figure 4: Completed Connections of 2 DC Motor with MD10C and PSC28A

 

Introduction

In this section, I will explain about the ideas to control DC motor by MD10C with PSC28A. By referring to the MD10C user manual, MD10C is an enhanced version of the MD10B which is designed to drive high current brushed DC motor up to 10A continuously. It offers several enhancements over the MD10B such as support for both locked-anti phase and sign-magnitude PWM signal as well as using full solid state components which result in faster response time and eliminate the wear and tear of the mechanical relay. Some example of application is used to drive motor for robot arms or smaller mobile robot part.

Thus, to control the DC motor in CW and CCW direction with controllable speed, we need to pull up the PWM output port of PSC28A (connected to Vcc with 1k resistor) and then connected to the PWM input of MD10C so that we can use PWM to control the speed of motor. At the same time, we need also pull up the digital output terminal (without PWM) (connected to Vcc with 1k resistor) and then connected to the DIR input of MD10C to control the direction of the motor.

 

Figure 5: PSC28A Extended Socket Connection for MD10C

**Note: Refer to PSC28A User Manual for more detail description.

 

Figure 6: MD10C Connections

**Note: Refer to MD10C User Manual for more detail description.

 

Connection between MD10C and PSC28A

MD10C side

PSC28A side

Both VINPWR OUT (12V supply)
Both NCNo connection needed
DIR (left)L DW (Digital Output terminal)
DIR (right)R DW (Digital Output terminal)
PWM (left)J LY (PWM Output terminal)
PWM (right)J RY (PWM Output terminal)
Both GNDGND

**Note: For DIR and PWM input ports, the connection to the PSC28A output terminals can be changed as long as the PWM output terminal for PWM and digital output terminal for DIR.

 

Connection Diagram

 

Figure 7: Connection diagram between PSC28A and two MD10C with DC motors

**Notes:

1. Please make sure the 12V battery terminals are correct during connect it into MD10C’s input terminals.

2. For pull-up network, we need to connect the PSC28A output terminals to 1kΩ resistor and then connect to Vcc as shown in Figure 7.

3. Please noted that each PSC28A output terminal pull-up SEPARATELY (Refer to Figure 5).

 

By following the connections as shown in Figure 6 correctly, PS2 Controller will have the following functions for the DC motors:

 

Figure 8: PS2 Controller Joystick Navigation for Section 1

Joystick Navigation

Functions description on two DC motors (Left and Right)

Left Joystick (Up)Left motor rotate in one direction
Left Joystick (Down)Left motor rotate in another direction
Right Joystick (Up)Right motor rotate in one direction
Right Joystick (Down)Right motor rotate in another direction

**Notes:

1. The basic idea to understand it is that the joystick navigation of PSC28A that connected to PWM control the speed of motor with one direction and the joystick navigation of PSC28A that connected to DIR control the direction of the motor where the motor will be rotate in the opposite direction of PWM terminal. To make the DIR works, we need simultaneously press the joystick button that connected to PWM and DIR. So, it is better we connect the DIR to joystick navigation of PSC28A that used also by PWM input port.

2. As the alternative way, we can also control the motor by PWM with full speed only. It can be done by simply connect the PWM input port of MD10C to digital input port of PSC28A.

3. All the joystick navigation of PSC28A either for PWM or digital output terminal must be pull-up with 1k resistor to make the connection works.

 

SECTION 2: CONTROL TWO DC MOTORS BY MDS40A WITH PSC28A

 

Figure 9: Completed connections of 2 DC motor with MDS40A and PSC28A

 

Introduction

In this section, I will explain about the ideas to control DC motor by MDS40A with PSC28A. By referring to the MDS40A User Manual, SmartDrive40 is one of the latest smart series motor drivers designed to drive medium to high power brushed DC motor with current capacity up to 80A peak and 40A continuously. MOSFETs are switched at 16 KHz to ensure quiet operation and no annoying whining sound. Besides, it also equipped with a microcontroller unit to provide some smart features such as multiple input mode, current limiting and thermal protection.

Thus, this driver has much application than MD10C due to its multiple input modes such as RC mode, analog/PWM mode, simplified serial mode and packetized serial mode. For example, MDS40A can be used to drive larger motor such as in the big wheel motor on the combat robot. Thus, the user needs to adjust DIP switch to change between the input modes. In this tutorial, I want to share about some ideas to use analog/PWM input mode to control two DC motor. Under analog/PWM mode, it also has some different mode can be used such as single channel mode, exponential mode, sign-magnitude mode, left mix and right mix mode.

Therefore, to control the DC motor by MDS40A with CW and CCW direction and also controllable speed which is similar to MD10C, we use PWM mode with single channel and sign-magnitude mode. Thus, by referring to the MDS40A, the DIP switches need to adjust to be 10010001. When we use the sign-magnitude mode to control the direction, we need also pull up the digital output terminal of PSC28A (connected to Vcc with 1k resistor) of MDS40A and then connected to the IN2 just like for MD10C’s DIR input port. Meanwhile, we need also to pull up the PWM output terminals of PSC28A (connected to Vcc with 1k resistor) and then connected to the IN1 just like for MD10C’s PWM input port.

Figure 10: PSC28A socket connections for MDS40A

 

Figure 11: MDS40A Connections

**Note: Refer to MDS40A User Manual for more detail description.

 

Connection between MDS40A and PSC28A

MDS40A side

PSC28A side

IN1 (Left)J LX (PWM Output terminal)
IN1 (Right)J RX (PWM Output terminal)
IN2 (Left)L RG (Digital Output terminal)
IN2 (Right)R RG (Digital Output terminal)
Both +5VNo connection needed
Both GNDGND

 

Connection Diagram

 

Figure 12: Connection Diagram between PSC28A and two MDS40A with DC motors

**Notes:

1. Please make sure the 12V battery terminals are correct during connect it into MDS40A’s input terminals.

2. DIP Switch logic level: 10010001 (PWM Single Channel, Sign-Magnitude Mode) as shown below:

3. For pull-up network, we need to connect the PSC28A output terminals to 1kΩ resistor and then connect to Vcc as shown in Figure 12.

4. Please be noted that each PSC28A output terminal pull-up SEPARATELY (Refer to Figure 10).

 

By following the connections as shown in Figure 11 correctly, PS2 Controller will have the following functions for the DC motors:

 

Figure 13: PS2 Controller Joystick Navigation for Section 2

Joystick Movement

Functions description on two DC motors (Left and Right)

Left Joystick (Left)Left motor rotate in one direction
Left Joystick (Right)Left motor rotate in another direction
Right Joystick (Left)Right motor rotate in one direction
Right Joystick (Right)Right motor rotate in another direction

**Notes:

1. The basic idea to understand it is that the joystick navigation of PSC28A that connected to IN1 control the speed of motor with one direction and the joystick navigation of PSC28A that connected to IN2 control the direction of the motor where the motor will be rotate in the opposite direction of IN1 terminal. To make the IN2 works, we need simultaneously press the joystick button that connected to IN1 and IN2. So, it is better we connect the IN2 to joystick navigation of PSC28A that used also by IN1 input port.

2. As the alternative way, we can also control the motor by IN1 with full speed only. It can be done by simply connect the IN1 input port of MDS40A to digital input port of PSC28A.

3. All the joystick navigation of PSC28A either for PWM or digital output terminal must be pull-up with 1k resistor to make the connection works.

Apart from that, we can change the mode to observe more results on DC motor, it is a fun process that we could experience with it. To know what logic of DIP switches for different modes, please refer to the MDS40A User Manual.

In a nutshell, we can combine the connection in Section 1 which drive two DC motors by two MD10C and also the connection in Section 2 which drive two DC motors by two MDS40A to build a robot system which have four DC motors and each joystick navigation direction have different function of motor.

That’s all from me, THANK YOU! See you again next time 🙂

Buy

, , ,

Related Post

Simple Manual Robot Platform

Leave a Reply

Your email address will not be published. Required fields are marked *