Stepper Slave

 
 
 

General: Stepper motors are one of the most useful devices in the world of control, automation and robotics. They form the most convenient and versatile bridge between a set of motion rules in a controller (computer) and the motion itself. They can be made to move slowly, quickly, in reverse, pause, complete revolutions, partial revolutions and even individual steps of less than a degree of rotation. With this flexibility of movement coupled with an abundance of torque for relatively little power applied, the stepper motor finds many suitable applications.
    The downside to stepper motors is that they are not as simple to “drive” (electrically speaking) as ordinary DC motors, which just need the required volts and amps to do their bit. Stepper motors need a precise sequence of pulses delivered to the correct winding at the correct time in order to perform their required task. It would be nice if all you had to do was specify the number of steps to take , in what direction and at what speed and the stepper motor obliged. This is the function of the Stepper Slave board.

   
 

stepper slave pc control for stepper motors

   
 

    From the PC these requirements can be specified and “sent” to the Stepper Slave via the control master link. The stepper slave then generates the precise sequence of pulses on the appropriate winding to move the stepper motor accordingly. The Stepper Slave can accommodate two stepper motors operating completely independently using this technique. For example one stepper motor may be sent off to do 1000 steps clockwise at a rate of 1 step every 100ms followed by 100 steps anti-clockwise at 1 step per minute, whilst at the same time motor 2 can be executing it’s own task which might be to do 100 steps clockwise then anticlockwise in a continuous repeating way at a rate of 1 step/sec. The Stepper Slave sorts out the two motors pulse requirements and makes sure both motors are supplied with the correct “drive” to perform the specified tasks.
    The ability to control two motors with independent tasks in this way opens up many possible application areas for the Stepper Slave which are not easily available with other stepper motor drives. Popular applications that take advantage of this are with x-y co-ordinate drive systems where one motor controls the X-position and one controls the Y. Specifying the appropriate sequence of tasks can produce some very elaborate positional oriented control systems.

   
   

connecting stepper motors to a stepper slave

   
         
   

   Since the Stepper Slave also has two digital outputs available for the users program to make use of, it is then possible for these to be used to control a third or 4th axis (albeit in a more simple way) for applications that could, for example, operate a solenoid on the X-Y positioned device. In this way “pick and place” type applications spring to mind. Similarly the Stepper Slave has two digital inputs which are typically used to provide some form of feedback from the controlled device. For example a datum position could be established somewhere in the range of motion detectable and recognized by a sensor connected to one of these inputs.
 

   
    connecting limit switches to a stepper slave    
   


   It is very common for motion control systems to have limits on their range of motion. i.e. it may be that the moving object will reach an end-stop if left to continue or perhaps cause damage by making contact with other objects in the line of travel. For this reason it is often required to have “limit switches” fitted. These are placed to operate when the moving apparatus reaches them. Typically they are simple micro-switches or light-interruption devices. In any case they produce a signal indicating the moving object has reached its desired limit of travel. The stepper slave provides inputs specifically for these devices. For each motor there are two inputs. One for inhibiting forward motion and the other for inhibiting reverse. They are simple digital inputs “pulled up” to the on-board +5v via suitable resistors. This means that all the limit switch device has to do to is connect the input to 0v (GND) to activate this signal to the Stepper Slave. Once activated, the stepper slave will automatically stop the motion in that direction. For example: if motor 1 is currently moving forward, it can be stopped by simply connecting input “1F” to 0v (GND). It should be noted that while the motor is moving forward the action of connecting the reverse limit input to GND (i.e “1R” in this case) will have no effect. Activating a limit switch input takes effect very quickly since it does not rely on any PC communications taking place, i.e. it is handled entirely within the on board microcontroller 

   
                   
   

Pinout of Screw Terminals(TL1 – Control Master Link)

Pin

Signal description

SCN

Cable Screen

A

Comms link connection A

B

Comms link connection B

Pinout of Screw Terminals(TL2 – Board Power)

Pin

Signal description

-

GND (0v or System Ground)

6v

Not Connected

+

Positive Supply (+6v)

Pinout of Screw Terminals(TL3 - Motors)

Pin

Signal description

TS

Transient Suppression

1A

Motor 1 Switching Output A

1B

Motor 1 Switching Output B

1C

Motor 1 Switching Output C

1D

Motor 1 Switching Output D

2A

Motor 2 Switching Output A

2B

Motor 2 Switching Output B

2C

Motor 2 Switching Output C

2D

Motor 2 Switching Output D

Pinout of Screw Terminals(TL4 - GND)

Pin

Signal description

GND

GND (0v or System Ground)

GND

GND (0v or System Ground)

GND

GND (0v or System Ground)

Pinout of Screw Terminals(TL5 – Limit Switch Inputs and General Purpose Inputs and Outputs)

Pin

Signal description

F1

Motor 1 Forward Motion Limit Switch Input

R1

Motor 1 Reverse Motion Limit Switch Input

F2

Motor 2 Forward Motion Limit Switch Input

R2

Motor 2 Reverse Motion Limit Switch Input

I1

General Purpose Digital Input 1

I2

General Purpose Digital Input 2

O1

General Purpose Digital Output 1

O2

General Purpose Digital Output 2

GND

GND (0v or System Ground)

   
                   
         
         
                   
   

   To download a copy of the Control Master manual, right click on the link on the right and choose "save target as". This will allow you to download a PDF copy of the manual . 


Control Master Full Manual

   
                   
   

  You will need Adobe Reader installed on your PC to read this document. Adobe reader is available for free download from Adobe using the link to the right..

   
                   
                   
                   
       

         
                   
 

.      .

 
 

© Copyright pc-control.co.uk 2009