SyRen 50 User’s Guide February 2011 Single Channel 50A continuous/100A peak Brushed motor controller
Basic Information: Input voltage: 6-30V nominal, 33.6V absolute max. Output Current: Up to 50A continuous. Peak loads may be up to 100A for a few seconds. These ratings are for input voltages up to 30V in still air without any additional heatsinking. Recommended power sources are: • • • • 5 to 24 cells NiMH or NiCd 2s to 8s lithium ion or lithium polymer. SyRen motor drivers have a lithium battery mode to prevent cell damage due to over-discharge of lithium battery packs.
Features Synchronous regenerative drive: Going one step farther than just regenerative braking, a SyRen motor driver will return power to the battery any time a deceleration or motor reversal is commanded. This can lead to dramatic improvements in run time for systems that stop or reverse often, like a placement robot or a vehicle driving on hilly terrain.
Hooking up the SyRen motor driver All connections to the SyRen are done with screw terminals. This makes it easy to set up and reconfigure your project. If you’ve never used screw terminal connections before, here is a quick overview.
Motor Terminals M1 and M2 The motor is connected to terminals M1 and M2 as shown below. If the motor runs in the opposite way that you want, you may reverse the motor wires to reverse rotation. The motor connects to terminals M1 and M2 Signal Input Terminals S1 and S2 The input signals that control the SyRen are connected to terminals S1 and S2. S1 is the primary input, and must always be connected.
Power terminals 0V and 5V The 0V and 5V connections are used to power and interface to low-power control circuits. The 5V connection is a 5v power output. This is useful for supplying power to lowcurrent devices, such as a potentiometer or a radio receiver. The 5v terminal is capable of The 5V terminal can be used to power small supplying 100 milliamps if the source battery is 12.6v or less. If the source battery is greater loads, like a potentiometer or a radio receiver.
Figure 2.2: R/C input using a receiver powered from terminal 5V Status and Error LEDs The SyRen 50 has two indicator LEDs. The green LED marked status is used to communicate various information about the current state. Its operation depends on the Status LED on operating mode. For example, if a lithium battery pack is selected, the status LED blinks the number of cells detected. Unless you are in lithium mode, the status LED will usually remain on.
If your robot or device is constructed from insulating materials such as wood or plastic, it is advisable to use the four included plastic standoffs to allow air to circulate. This is shown in Figure 2.3 If your robot or device is constructed from metal, it is usually better to attach the SyRen directly to the frame, without standoffs. This will allow your frame to act as a heat sink and will cause the SyRen to run cooler. This is shown in Figure 2.4 Figure 2.
Operating Modes Overview Mode 1: Analog Input Analog input mode takes one or two analog inputs and uses those to set the speed and direction of the motor. The valid input range is 0v to 5v. This makes the SyRen easy to control using a potentiometer, the PWM output of a microcontroller (with an R-C filter) or an analog circuit. Major uses include joystick or foot-pedal controlled vehicles, speed and direction control for pumps and machines and analog feedback loops.
Lithium cutoff: Switch 3 of the DIP switch block selects lithium cutoff. If switch 3 is in the down position as shown the SyRen will automatically detect the number of series lithium cells at startup, and set a cutoff voltage of 3.0 volts per cell. The number of detected cells is flashed out on the Status LED. Lithium Cutoff enabled If the number of cells detected is too low, your battery is in a severely discharged state and must be charged before operation.
Mode 1: Analog Input Analog input mode is selected by setting switches 1 and 2 to the UP position. Switch 3 should be either up or down, depending on the battery type being used. Inputs S1 and S2 are configured as analog inputs. The output impedance of the signals fed into the inputs should be less than 10k ohms for best results. If you are using a potentiometer to generate the input signals, a 1k, 5k or 10k linear taper pot is recommended. Remember to connect 0V to the ground of your control circuit.
Option 4: Max Speed – Single Direction This option is set by flipping switch 5 OFF, or down, and flipping switch 6 ON, or up. Max Speed Mode allows you to connect another potentiometer to S2 and set the max speed. If you set this potentiometer to 50%, the Max Speed Mode – potentiometer on S1 will scale between 0% and 50% over Single Direction the entire length of its travel. This mode is very useful if you are, for example, running off of 24V and want to limit the top speed somewhere around 14V.
Note on using filtered PWM in Analog Mode Figure 4.1: Fast filtering Figure 4.2: Very smooth filtering If you are using a filtered PWM signal from a microcontroller to generate the analog voltage, an R-C filter with component values 10k ohms and at least .1uf is recommended as shown in Figure 4.1. This will provide a fast response to changes in duty cycle, and is suitable for PWM rates of 20+kHz. Using a larger value filter capacitor such as 47uf (Figure 4.
Mode 2: R/C Input R/C input mode is used with a standard hobby Radio control transmitter and receiver, or a microcontroller using the same protocol. R/C mode is selected by setting switch 1 to the DOWN position and switch 2 to the UP position. If running from a receiver, it is necessary to obtain one or more servo pigtails and hook them up according to figure 5.1. If there are only motor drivers being used it is acceptable to power the receiver directly from a SyRen as shown.
Switch 6: R/C Failsafe Timeout In all the R/C modes, if switch 6 is set to the UP position, then Timeout Failsafe mode is active. This will bring the motor to a stop if the servo signal is interrupted. Once several valid control signals are sent, the motor will restart. R/C Failsafe Timeout Disabled This is useful to prevent to robot driving away if it encounters interference, drives out of range, or if the transmitter is inadvertently de-activated. Many robot competitions require this feature.
Mode 3: Simplified Serial Mode Simplified serial uses TTL level single-byte serial commands to set the motor speed and direction. This makes it easy to interface to microcontrollers and PCs, without having to implement a packet-based communications protocol. Simplified serial is a one-direction only interface. The transmit line from the host is connected to S1. The host’s receive line is not connected to the SyRen. Because of this, multiple drivers can be connected to the same serial transmitter.
Option 1: Standard Simplified Serial Mode Serial data is sent to input S1. The baud rate is selected with switches 4 and 5. Commands are sent as single bytes. Sending a value of 0 will cause the motor to drive full forward, and sending a value of 255 will cause the motor to drive reverse. A value of 127 will cause the motor to stop.
Mode 4: Packetized Serial Mode Packetized Serial uses TTL level multi-byte serial commands to set the motor speed and direction. Packetized serial is a one-direction only interface. The transmit line from the host is connected to S1. The host’s receive line is not connected to the SyRen 50. Because of this, multiple SyRens can be connected to the same serial transmitter.
Address Byte Configuration: Address bytes are set by switches 4, 5 and 6. Addresses start at 128 and go to 135.
Commands: The command byte is the second byte of the packet. There are four possible commands in packetized serial mode. Each is followed by one byte of data 0: Drive forward (decimal 0, binary 0b00000000, hex 0h00) This is used to command the SyRen 10 and 20 to drive forward. Valid data is 0-127 for off to full forward drive. If a command of 0 is given, the SyRen will go into power save mode after approximately 4 seconds.
Checksum: To prevent data corruption, each packet is terminated with a checksum. If the checksum is not correct, the data packet will not be acted upon. The checksum is calculated as follows: Checksum = address byte +command byte +data byte The checksum should be added with all unsigned 8 bit integers, and then ANDed with the mask 0b01111111 in an 8 bit system. Example of Packetized Serial: The following is an example function for commanding a pair of SyRen 10s or 20s using Packetized Serial Mode.