Pololu SMC01A User Manual Download Page 6

6

Pololu

Connecting the Motor Controller

There are eight pins on the bottom of the motor 
controller for connecting it to the rest of your system.  
A closeup of the bottom of the PCB is shown to the 
right, in case you have a hard time reading the 
silkscreen on your board.  The eight pin 
labels and the corresponding functions are 
shown in the table.

C o n n e c t i n g   P o w e r .

   

W a r n i n g :  

connecting power incorrectly can cause 
some components to explode.

  Connect 

the ground pin to a ground terminal on 
your robot controller.  If you have a 
separate power supply for just the motors, 
make sure that you connect the negative 
terminal of that supply to the same ground.  
(This situation may arise if, for example, you want to run your robot controller off of a 
9-volt battery and you want to run your motors off of a 12-volt battery.  You will also 
need an independent power supply for the motors if you want to use a personal 
computer as the robot controller.  In that case, you might use a battery for the motor 
supply and use a wall outlet for the PC supply.)  Connect the ‘+’ pin to the positive 
terminal of the motor supply; this terminal may connect only to the motor controller, or 
it may connect to any other device powered by that supply.  

Warning

: the supply 

voltage may not exceed 16 volts or 25 volts, depending on which capacitor you chose 
for C1 in step 5 of assembly.

Reset Input.

  The reset input is optional, but you 

  C

may need to use it to ensure that 

spurious signals sent when your robot controller turns on do not cause the motor 
controller to detect the baud rate incorrectly.

onnect this pin to a 0-5V digital output 

on your robot controller. The line should normally be kept high (+5V), but bringing it 
low (to 0V) for at least 2 microseconds resets the motor controller to its initial state (all 
motors off, waiting for its first serial command).

Serial Input.

   Use a pin on your robot controller that can be used as a TTL-level, 

asynchronous serial output.  Serial data can be sent down this line 8 bits at a time, with 
no parity bit, at any rate between 1200 and 19200 baud.  

Once you choose a baud rate, 

you cannot change it until the motor controller is reset

.  

Important note:

 unlike 

RS-232 serial lines (the standard for serial ports used to connect devices to personal 
computers), this line uses TTL voltages (between 0 and 5 volts). The higher voltages 
used on RS-232 lines will damage the motor controller. If you need to convert RS-232 
levels to TTL levels, you will need to use a level converter such as the MAX220 (made 
by Maxim).  You could also use the simple circuit shown at the top of the next page.  

When building circuits that connect to a PC, be especially careful because you 
could potentially destroy the PC’s serial port.  Before attempting to connect your 
own electronics to a computer, make sure you know what you are doing!

LABEL

FUNCTION

-

+

1
2

M1+

M2-
M2-

M1-

ground (0V)
positive supply (5.6-25V)
reset
serial control input
motor 1, negative output

motor 2, positive output

motor 1, positive output
motor 2, negative output

© 2001
http://www.pololu.com/

Summary of Contents for SMC01A

Page 1: ...tents Safety Warning Parts List Contacting Pololu How to Solder Assembly Instructions Connecting the Motor Controller Using the Motor Controller How the Motor Controller Works Description and Specific...

Page 2: ...se or to the performance of this product This product is not designed for and should not be used in applications where the malfunction of the product could cause injury or damage Parts List The follow...

Page 3: ...er soldering trim excessleadswithdiagonalcutters To solder heat a component lead and the PCB pad and then apply solder until the solder flows onto both the lead and the pad If the solder beads up on t...

Page 4: ...ptions concern the size of the assembled motor controller You can insert the various components into the PCB without soldering to helpdeterminewhichoptionsarebestforyou Should I use IC sockets for U1...

Page 5: ...5 Pololu SMC01A C2 C1 U3 U2 U1 M2 1 2 M1 Next add the tantalum capacitor C2 You may need to bend the leads to make them straight so that they will fit The capacitor is polarized which means it must on...

Page 6: ...o use it to ensure that spurious signals sent when your robot controller turns on do not cause the motor controller to detect the baud rate incorrectly onnect this pin to a 0 5V digital output on your...

Page 7: ...port connector R2 10k R1 4 7k Q1 2N2222 Bold circles indicate pads that are connected to 5V which you can use with the circuit shown on the left SMC01A C2 C1 U3 The above diagram shows a simple circui...

Page 8: ...s byte should always be 0x80 128 in decimal to signify the beginning of a command The start byte is the only byte with the highest bit bit 7 set and it alerts all devices on the serial line that a new...

Page 9: ...or controller to use it successfully However you may need to reset the motor controller to ensure that spurious signals sent when your robot controller turns on do notcausethemotorcontrollertodetectth...

Page 10: ...of 19200 The four numbers in square brackets are the data to be sent and they correspond to the four control bytes for the motor controller The first two bytes should always be 80 and 0 The second 0 m...

Page 11: ...on and off very rapidly 600 times per second and varies the percentage of the time that the switches are on to achieve the speed set by the serial interface For a higher speed the switches are on a l...

Page 12: ...bot controller you can independently set each of two small DC motors the kind typically found in remote control cars and motorized toys to go forward or backward at any of 127 different speeds To cont...

Reviews: