34
January 2008 Rev 2 1/34 AN1794 Application note PractiSPIN evaluation system configuration and set up guide Introduction PractiSPIN is an evaluation and demonstration system that can be used with several STMicroelectronics motor driver integrated circuit devices. The system consists of a Graphical User Interface (GUI) program which runs on an IBM-PC under windows, a common ST7 based interface board that communicates with the PC and the practiSPIN software via a serial COMM port, and a device specific evaluation or target board that connects to the ST7 interface board via a standard 34 pin ribbon cable interface, as shown in Figure 1. The target PCB connects to the motor or motors and to a user supplied DC power supply generally in the range of 12 to 48 Vdc. The practiSPIN system is designed to operate the device being evaluated (the target device) under control of the practiSPIN software. Depending on which target device is being used, the practiSPIN software can operate the device to drive a stepper motor, 1 or 2 DC motors or a brushless DC (BLDC) motor. Figure 1. System block diagram www.st.com

PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

January 2008 Rev 2 1/34

AN1794Application note

PractiSPIN evaluation systemconfiguration and set up guide

IntroductionPractiSPIN is an evaluation and demonstration system that can be used with several STMicroelectronics motor driver integrated circuit devices. The system consists of a Graphical User Interface (GUI) program which runs on an IBM-PC under windows, a common ST7 based interface board that communicates with the PC and the practiSPIN software via a serial COMM port, and a device specific evaluation or target board that connects to the ST7 interface board via a standard 34 pin ribbon cable interface, as shown in Figure 1. The target PCB connects to the motor or motors and to a user supplied DC power supply generally in the range of 12 to 48 Vdc.

The practiSPIN system is designed to operate the device being evaluated (the target device) under control of the practiSPIN software. Depending on which target device is being used, the practiSPIN software can operate the device to drive a stepper motor, 1 or 2 DC motors or a brushless DC (BLDC) motor.

Figure 1. System block diagram

www.st.com

Page 2: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

Contents AN1794

2/34

Contents

1 System overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

1.1 Target board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

1.2 Control interface board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

2 Starting practiSPIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

3 Stepper motor drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

3.1 Constant speed mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

3.2 Indexing mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

4 DC motor drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

4.1 Dual DC motor control mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

5 BLDC motor drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

5.1 BLDC motor control mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

6 EVAL6205N board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

6.1 Vref offset adjustment (R18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

6.2 Current scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

7 EVAL6206N board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

7.1 Vref offset adjustment (R18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

7.2 Current scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

8 EVAL6206PD board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

8.1 Vref offset adjustment (R18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

8.2 Current scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

9 EVAL6207N board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

9.1 Vref offset adjustment (R18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

9.2 Current scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

10 EVAL6208N board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

10.1 Vref offset adjustment (R18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Page 3: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 Contents

3/34

10.2 Current scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

11 EVAL6208PD board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

11.1 Vref offset adjustment (R18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

11.2 Current scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

12 EVAL6235 board configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

12.1 Vref offset adjustment (R18) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

12.2 Current scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

13 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

Page 4: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

List of figures AN1794

4/34

List of figures

Figure 1. System block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Figure 2. ST7 interface board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6Figure 3. EVAL6205N schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13Figure 4. EVAL6206 schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16Figure 5. EVAL6206PD schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Figure 6. EVAL6207N schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Figure 7. EVAL6208N schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Figure 8. EVAL6208PD schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Figure 9. EVAL6235 schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

Page 5: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 System overview

5/34

1 System overview

To illustrate the operation of the practiSPIN system, we will look at one typical device supported by the system.

The L6207 includes two independent full or H bridges with separate logic inputs and current control functions.

The two bridges are designated A and B and their output pins designated as OUT1A, OUT2A, OUT1B, and OUT2B. These outputs are controlled independently by logic inputs IN1A, IN2A, IN1B, and IN2B respectively.

A logic high or low on any of these inputs will drive its corresponding output to the positive supply rail or to ground. Both of the A outputs will be forced to an off (high impedance) state if the ENA pin is taken logic low, as will the B outputs if ENB is taken low. The L6207 is thus controlled by six logic inputs: IN1A, IN2A, and ENA controlling bridge A and IN1B, IN2B, and ENB controlling bridge B. Each bridge also has an analog control signal, VREFA and VREFB, which control the current.

1.1 Target boardThe L6207 target board gives access to the bridge A and B outputs at connectors CN3 and CN4 respectively.

When driving a stepper motor, the two wires from one of the motor windings will connect to CN3 and the other winding will connect to CN4. Swapping between the two connectors or swapping the polarity at a given connector will only reverse the sense of motor direction. DC supply power in the range of 12 to 48 Vdc is connected at CN1. The polarity marked on the board silkscreen must be strictly observed! The eight control signals are taken from the 34-pin ribbon header (CN5) and are driven by the control interface PCB via a short flat cable.

1.2 Control interface boardThe control interface PCB is based on an ST72F264 microcontroller. The micro includes a UART and communicates with the practiSPIN software via 9 pin D connector P1 employing a standard RS232 interface.

The micro is based on flash memory and its firmware includes a write protected boot-loader routine that allows the practiSPIN software to update or change the operating program in the ST7 as required for different target boards. 5 Vdc power for the board is received via the 34-pin ribbon cable from the target board or can be directly supplied at J2 if jumper WJ1 is removed. The eight control signals for the target board are generated by the ST7 micro. The six logic signals are generated directly by six of the eight pins of port B while the two analog current references (VREFA and VREFB) are generated by pulse width modulated (PWM) signals generated by the ST7 along with an offset adjusting circuit controlled by potentiometer R18.

Page 6: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

System overview AN1794

6/34

Figure 2. ST7 interface board

Page 7: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 Starting practiSPIN

7/34

2 Starting practiSPIN

Since the practiSPIN system is capable of supporting several driver IC's and driving different types of motors the user must first select the type of motor to be driven and the driver IC that will be evaluated.

1. Target board set up: configure the jumpers/switches on the target board and the ST7 interface board as described in the paragraph for the specific evaluation board being used.

2. Control board - PC connection: connect the ST7 interface board to a serial COMM port of the PC via a standard (straight through) 9 pin D connector cable.

3. Power up: energize the power supply.

4. Start practiSPIN software: on the PC, start the practiSPIN program.

5. Motor type selection: on the first screen of the practiSPIN software, the user can select the appropriate type of motor for the device under evaluation. Click on the appropriate motor type.

6. Communication settings: click the drop down list under "port selection" and select the COMM port being used. Baud rate and other communication parameters are fixed on both sides of the link and do not need to be set.

7. Establish COMM link: click the "Connect With ST7 Hardware". At this point the practiSPIN software will transmit several commands to the ST7 to initialize the processor. The practiSPIN software will read the revision code of the firmware currently stored in the flash memory of the ST7 and determine if the correct version of firmware resides in the ST7. If the practiSPIN software detects that a firmware update is necessary, either because there is an old version of firmware or the firmware currently in the flash memory is not the correct firmware for the motor type selected, one or more dialogue boxes will appear asking if the program should proceed with the update. Accept the updates and the practiSPIN software will automatically update the firmware. The system will then initialize the settings to the last stored settings and open the appropriate practiSPIN software for the selected motor type.

8. Calibrate current setting: when communication is established the user has the option to adjust the offset and maximum current settings. If this is the first time you use the system, calibration may be needed to adjust out the offset in the reference bias circuitry. Calibration ensures that the reference voltage provided to L62XX IC follows the practiSPIN software current settings. Calibration is a two-step process; first the offset is adjusted then the maximum current is set.

a) To null out the offset, click on CALIBRATE ZERO then adjust R18 (on ST7 board) until voltage at Vref pin(s) of the L62XX device is zero. Measurement points on each board are listed in the set up section for each target board.

b) The maximum current, corresponding to 100% current setting in the practiSPIN software, can be adjusted using the Vref potentiometers on the target board. If the potentiometers are set to full scale (clockwise) the reference applied to the input of the device is typically about 0.88 V. The full-scale peak current is equal to Vref/Rsense where Rsense is the composite value of the sense resistor on the board. To set the maximum current, click on CALIBRATE MAX and trim the Vref potentiometer(s) on the EVAL62XX board to set the desired reference. If you plan to use microstepping, consider reducing the maximum Vref to the real peak value you will use, allowing setting the software current controls near to 100%, avoiding poor Vref resolution.

Page 8: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

Stepper motor drive AN1794

8/34

3 Stepper motor drive

After the system has established the connection to the interface board, it will initialize the settings to the last stored settings and open the appropriate GUI for the selected motor type. For the Stepper motor, the system can operate in either a constant speed or positioning (indexing) mode. The constant speed mode can easily be used to see that the system is working.

3.1 Constant speed mode1. Speed control screen: a large blue button at the bottom of the screen should read,

"switch to INDEXING MODE". If the button reads, "switch to SPEED CONTROL MODE", click the button once to go to speed control mode.

2. Stepping mode: in the stepping mode box, select either Normal or Half Step. Microstepping mode is only available when using the L6208.

3. Device selection: in the device selection box, select the device being evaluated.

4. direction: in the direction box, click the toggle switch to pick forward or reverse. This is somewhat arbitrary since we probably don't know what the direction sense of the motor will be. Once the motor is running, toggle this switch to reverse the motor direction if desired. To reverse the meaning of the forward and reverse designations, disable the motor (orange disable button at bottom of screen) and then swap the motor wires at either CN3 or CN4.

5. Decay mode: only the L6208 allows the selection of fast or slow decay. Set the toggle switch to slow decay.

6. Accel rate: set the accel rate to about 1000 steps per second per second (steps/sec2). In the practiSPIN system all motion parameters are given in terms of the basic units of steps and seconds: position in steps, velocity in steps/sec, and accel/decel in steps/sec2. In order to relate these settings to rotations, RPM, and RPM/second it is necessary to know the number of steps (or half steps) per rotation for the stepper motor being used. A common value is 200 steps or 400 half steps per rotation.

7. Running speed: set running speed to about 100 steps/sec.

8. Decel rate: set decel. rate to about 1000 steps/sec2.

9. Accel current: set accel current to about 25%. This is an initial guess as to the required setting and may need further adjustment. Generally higher accel rate settings require higher accel current settings so that the stepper motor does not start to "slip poles" and fall behind the desired position. Since we have initially set the acceleration rate setting quite low, 25% is probably adequate.

10. Running current: set the running current to 25%. In practice the running current can often be set to a lower value than the accel current since the torque requirement is generally less during the constant speed part of the move. A lower running current setting can help to keep the device and the motor running cooler.

11. Decel current: set the decel current to 25%. Since friction aids in decelerating the motor it may also be possible to set the decel current lower.

12. Holding current: set the holding current to 25%. Whenever the motor is stopped (after a run,) this level of current will circulate in the motor so that it will hold position against any mechanical disturbance.

Page 9: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 Stepper motor drive

9/34

In the case of a strong static load (perhaps a gravity load of some sort) it may be necessary to increase this setting. If not much holding torque is required, then the setting can be reduced so that operating temperatures can be held to a minimum.

Note: Holding current will be turned off (bridge completely disabled) whenever the disable button is clicked.

13. Run: make sure that the motor is free to turn in either direction and click the run button. The motor should quickly come up to speed ((100 steps/sec) / (1000 steps/sec2) = 0.1 sec.). To change the motor direction, click the direction toggle switch. If the motor does not run click the stop button, increase all four current settings to 50%, and click run button. If the motor still does not run an oscilloscope and current probe should be used to observe the motor current.

14. Stop: click stop to stop the motor.

After the basic operation of the system has been verified, the acceleration rates, top speed, and current settings can be adjusted to see how the motor responds.

3.2 Indexing modeThe system can be switched to operate in the positioning (indexing) mode by clicking on "switch to INDEXING MODE". In the indexing mode a new box appears on the right of the screen. You can enter up to twelve indexed movements in the box and the wait time between each movement. When started, the software will execute each movement by accelerating up to the peak speed, moving the required number of steps and then decelerating back to a stop so that the total distance moved is the number of steps indicated, then wait the indicated time before starting the next movement. A negative number entered in the relative position will cause the motor to run in the "reverse" direction.

Page 10: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

DC motor drive AN1794

10/34

4 DC motor drive

After the system has established the connection to the interface board, it will initialize the settings to the last stored settings and open the appropriate practiSPIN software for the selected motor type. For DC motor drive, the system operates in an open loop duty cycle control mode with cycle-by-cycle current limit.

4.1 Dual DC motor control mode1. Direction: in the direction box for each motor, click the toggle switch to pick forward or

reverse. This is somewhat arbitrary since we probably don't know what the direction sense of the motor will be. Once the motor is running, toggle this switch to reverse the motor direction if desired. To reverse the meaning of the forward and reverse designations, disable the motor (orange disable button at bottom of screen) and then swap the motor wires at either CN3 or CN4.

2. Braking: toggle the "Brake when Stop" switch to the OFF position for both motors. This will cause the motor to coast to rest when stopped, with the bridge placed in a high impedance state. If desired this function can later be toggled on but some care should be exercised. Braking will effectively short out the motor armature through two transistors in the bridge, which could cause excessive current and power dissipation if the motor and load have a large moment of inertia (thus a large amount or stored mechanical to be dissipated) or the motor has a very low resistance (resulting in a large current flow). Most smaller DC motors with several ohms of resistance do not pose a risk.

3. Current: set the current for both motors to approximately 25%. This is an initial guess as to the required setting and may need further adjustment.

4. Voltage: set the voltage for both motors to approximately 50%.

5. Run: make sure that the motors are free to turn in either direction and click the run button. the motors should come up to approximately half of the speed that would be expected at this supply voltage. To change the motor direction, click the direction toggle switch. If the motors do not run click the STOP button, increase both current settings to 50%, and click RUN button. If the motors still do not run an oscilloscope and current probe should be used to observe the motor current

6. Stop: click stop to stop the motor.

After the basic operation of the system has been verified, adjust voltage, current, direction and other parameters to evaluate the system.

Page 11: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 BLDC motor drive

11/34

5 BLDC motor drive

After the system has established the connection to the interface board, it will initialize the settings to the last stored settings and open the appropriate practiSPIN software for the selected motor type. For BLDC motor drive, the system operates in an open loop duty cycle control mode with cycle-by-cycle current limit.

5.1 BLDC motor control mode1. Direction: in the direction box for each motor, click the toggle switch to pick forward or

reverse. This is somewhat arbitrary since we probably don't know what the direction sense of the motor will be. Once the motor is running, toggle this switch to reverse the motor direction if desired.

2. Braking: toggle the "Brake when Stop" switch to the OFF position. This will cause the motor to coast to rest when stopped, with the bridge placed in a high impedance state. If desired this function can later be toggled on but some care should be exercised. Braking will effectively short out the motor armature through three transistors in the bridge, which could cause excessive current and power dissipation if the motor and load have a large moment of inertia (thus a large amount or stored mechanical to be dissipated) or the motor has a very low resistance (resulting in a large current flow). Most smaller BLDC motors with several ohms of resistance do not pose a risk.

3. Current: set the current to approximately 25%. This is an initial guess as to the required setting and may need further adjustment.

4. Voltage: set the voltage to approximately 50%.

5. Run: make sure that the motor is free to turn in either direction and click the run button. The motor should come up to approximately half of the speed that would be expected at this supply voltage. To change the motor direction, click the direction toggle switch. If the motor does not run click the stop button, increase the current settings to 50%, and click run button. If the motor still does not run an oscilloscope and current probe should be used to observe the motor current.

6. Stop: click stop to stop the motor.

After the basic operation of the system has been verified, adjust voltage, current, direction and other parameters to evaluate the system.

Page 12: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

EVAL6205N board configuration AN1794

12/34

6 EVAL6205N board configuration

The schematic of the EVAL6205N board is shown in Figure 3. To use the EVAL6205N board with practiSPIN system, the following configuration settings must be made on the EVAL6205N:

1. Component updates: depending on the revision of the board, some or all of the following changes may be required (or desirable):

a) To assure safe overcurrent operation: change C6 and C7 to 5.6 nF Change R5 and R6 to 100 kΩ.

b) To assure an adequate 5 V supply, R2 may need to be changed. The minimum value for R2 is (Vs-5)/(0.03+I) Ω . Where: Vs is the supply voltage and I is any additional load placed on the 5 V supply (in amps).

2. JP1: place JP1 in the INT position to enable the on-board 5 Vdc supply.

3. JP2 and JP3: install JP2 and JP3 to assure proper timing operation of the L6205's internal high side overcurrent protection.

4. JP4 and JP5: install JP4 and JP5 to configure the Vref circuits.

5. R17 & R21: adjust multi-turn trim potentiometers R17 and R21 fully clockwise.

Note: A slight click can be heard from the pot when it reaches its end of travel.

6. R23 Adjust multi-turn trim pot R23 to the middle of its range. This pot sets the frequency of the cycle-bycycle current controller and can be fine tuned while observing the motor current on an oscilloscope or by simply adjusting to raise the frequency of the audible switching noise to an inaudible level if required.

7. Motor connections: connect the motor coils at CN3 and CN4. When driving a stepper motor, one winding is connected to CN3 and the second winding is connected to CN4. For operation with 2 DC motors one motor is connected to each connector.

8. Power supply: connect, but do not energize, a 12 to 48 Vdc power supply at CN1 (positive to Vin and negative to GND).

9. Using a 34 pin ribbon cable connect the EVAL6205N board to the control interface board. The two boards should be placed on the bench so that their 34 pin headers are side by side with the ribbon cable going straight across. Set the following on the ST7 interface board.

10. WJ1: install WJ1 on the ST7 based control interface board. This allows 5 Vdc power to be obtained from the target board.

11. JP1 and JP2 and R18: install the JP1 and JP2 jumpers to short the center and left pins together as shown in Figure 2. This is critical as excessive motor current can result from misplacement of these jumpers! Set potentiometer R18 to about 50%.

Page 13: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 EVAL6205N board configuration

13/34

Figure 3. EVAL6205N schematic

R11

_4

INT6

C2

R22

R4

IN2

CN

1

12

INT0

IN1

JP3

CN

5

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33

2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34

Pul

lUp

VR

EFB

IN4

C6

_2

2

R18

VR

EF_

B

VR

EF_

A

TOUTA

1 P2.6

Pul

lUp

R19

+5V

R1

IN4

TINB0

P2.1

CN

3

1 2

JP4

D1

D3

C9

_2

EN

BOC

MPB1/ICAPB1

P4.3

3

R8

_4

C1

EN

B

ext.

GN

D

D2 R12

SENSE_B

TOUTP

B1 2.7

CW

R16

C12

R3

CN

2

1 2

TINA1

P2.4

IN2

R9LI

MIT

_B

Pul

lUp

SENSE_A

TINA0

P2.0

VR

EFA

R13

LIM

IT_A

JP2

R10

C5

SE

NS

E_A

OCMPA1

P4.2

Pul

lUp

R14

R15

int.

VC

CR

EF

EN

A

CW

JP1

13

2

C8

IN3

4

R17

C11

INT2

_3

IN1

R21

C7

U1

L620

5718

1 2

3

4

5

6

8

9 1011

12

13

14

16

15

17

19

20

OU

T1B

OU

T2A

IN1

IN2

SENSEA

OU

T1A

GND

GND

SENSEB

IN3

IN4

EN

B

VBOOT

OU

T2B

VSB

GND

GND

VSA

VCP

EN

A

_3

SE

NS

E_B

INT3

CW

1

U2

L650

6Dip

5

6

7

8

141312114

15

17

10

1

16 3

18

2

9In1

In2

In3

In4

Out1Out2Out3Out4

EN

Vsense2

Vref2

Vsense1

R/C

Vref1 Sync

VC

C

Osc_Out

GN

D

Pul

lUp

R2

CN

4

12

C10

R20

C13

TOUTB

0 P2.3

Pul

lUp

_1

JP5

R6

R5

ADC_

REF

IN3

+5V

R23

EN

A

TINB1

P2.5

C4

R7

_1

LIM

IT_A

Pul

lUp

C3

LIM

IT_B

Page 14: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

EVAL6205N board configuration AN1794

14/34

6.1 Vref offset adjustment (R18)Using a voltmeter monitor the voltage at jumper JP4 or JP5 the EVAL6205N board with respect to GND (CN1) when calibrating the offset.

6.2 Current scalingWhen potentiometers R17 and R21 are set full clockwise, a 100% current setting on the practiSPIN software screen corresponds to a Vref of approximately 0.88 Vdc or a peak motor current of about 2.64 A.

The peak current can be set to a lower value by adjusting R17 and R21. The reference voltage inputs can be monitored at JP4 and JP5.

Page 15: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 EVAL6206N board configuration

15/34

7 EVAL6206N board configuration

The schematic of the EVAL6206N board is shown in Figure 4. To use the EVAL6206N board with practiSPIN system, the following configuration settings must be made on the EVAL6206N:

1. Component updates: depending on the revision of the board, some or all of the following changes may be required (or desirable):

a) To assure safe overcurrent operation:

– Change C6 and C7 to 5.6 nF

– Change R5 and R6 to 100 kΩb) To assure an adequate 5 V supply, R2 may need to be changed. The minimum

value for R2 is (Vs-5)/(0.03+I) Ω . Where: Vs is the supply voltage and I is any additional load placed on the 5 V supply (in amps).

2. JP1: place JP1 in the INT position to enable the on-board 5 Vdc supply.

3. JP2 and JP3: install JP2 and JP3 to enable the L6206's internal high side overcurrent protection.

4. JP4 and JP5: install JP4 and JP5 to set internal overcurrent threshold to maximum. If desired, these jumpers can be left out and the overcurrent levels may be set using potentiometers R7 and R8.

5. JP6 and JP7: install JP6 and JP7 to configure the Vref circuits.

6. R20 and R26 adjust multi-turn trim pots R20 and R26 fully clockwise.

Note: A slight click can be heard from the pot when it reaches its end of travel.

7. R29: adjust multi-turn trim pot R29 to the middle of its range. This pot sets the chopping frequency of the L6506 current controller and can be fine tuned while observing the motor current on an oscilloscope or by simply adjusting to raise the frequency of the audible switching noise to an inaudible level if required.

8. Motor connections: connect the motor coils at CN3 and CN4. When driving a stepper motor, one winding is connected to CN3 and the second winding is connected to CN4. For operation with 2 DC motors one motor is connected to each connector.

9. Power supply: connect, but do not energize, a 12 to 48 Vdc power supply at CN1 (positive to Vin and negative to GND).

10. Using a 34 pin ribbon cable connect the EVAL6205N board to the control interface board. The two boards should be placed on the bench so that their 34 pin headers are side by side with the ribbon cable going straight across. Set the following on the ST7 interface board.

11. WJ1: install WJ1 on the ST7 based Control Interface Board. This allows 5 Vdc power to be obtained from the target board.

12. JP1 and JP2 and R18: install the JP1 and JP2 jumpers to short the center and left pins together as shown in Figure 2. This is critical as excessive motor current can result from misplacement of these jumpers! Set potentiometer R18 to about 50% .

Page 16: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

EVAL6206N board configuration AN1794

16/34

Figure 4. EVAL6206 schematic

TOUTB0

P2.3

R9

R24

CN

2

1 2 CN

4

12

_3

OC

DB

R4

ADC_RE

F

_3

Pul

lUp

TINB1

P2.5

C14

Pul

lUp

C4

JP2

OC

DA

C5

INT6

C7

4

R16

R14

R26

R23V

RE

F_A

_4

VR

EF

A

INT0

JP6

EN

A

R20

R22

C12

OC

DA

C8

GN

D

C15

CN

3

1 2

PR

OG

CLB

R7TO

UTA1

P2.6

_2

R18

R10

PR

OG

CL

B SE

NS

E_B

VR

EF

_B

2

VR

EF

B

TINB0

P2.1

C9

R8

R13

_2

_1

OCMPB1

/ICAPB

1 P4.3

+5V

C2

C6

U2

L650

6Dip

5

6

7

8

141312114

15

17

10

1

16 3

18

2

9

In1

In2

In3

In4

Out1Out2Out3Out4

EN

Vsense2

Vref2

Vsense1

R/C

Vref1 Sync

VC

C

Osc_Out

GN

D

int.

JP4

R17

Pul

lUp

TOUTPB

1 2.7

EN

B

CW

R2

JP5

R27

CN

1

12

SE

NS

E_A

SENSE_A

SENSE_B

TINA1

P2.4

OC

DB

JP3

U1

L620

6

1 2

3

24

5

6

7

8

13

10

11 12

9

14

15

16

17

18

19

20

21

22

23

4

IN1

IN2

SENSEA

PROGCLA

OU

T1A

GND

GND

OU

T1B

PROGCLB

SENSEB

IN3

IN4

OCDB

EN

B

VBOOT

OU

T2B

VSB

GND

GND

VSA

OU

T2A

VCP

EN

A

OCDA

IN2

CW

VC

CR

EF

C10

TINA0

P2.0

R3

R5

Pul

lUp

JP7

+5V

D2

OCMPA1

P4.2

R1

EN

B

CW

R15

IN4

IN4

3

C13

CN

5

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33

2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34

_4

D3

R25

R6

R12

R29

IN1

EN

A

Pul

lUp

CW

R21

C1

D1

JP1

13

2

INT2

IN2

Pul

lUp

R11

R2

8

PR

OG

CL

A

IN3

IN1

INT3

CW

_1

Pul

lUp

C11

R19

1

IN3

C3

PR

OG

CLA

ext.

Page 17: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 EVAL6206N board configuration

17/34

7.1 Vref offset adjustment (R18)Using a voltmeter monitor the voltage at jumper JP6 or JP7 the EVAL6206N board with respect to GND (CN1) when calibrating the offset.

7.2 Current scalingWhen potentiometers R20 and R26 are set full clockwise, a 100% current setting on the practiSPIN software screen corresponds to a Vref of approximately 0.88 Vdc or a peak motor current of about 2.64 A.

The peak current can be set to a lower value by adjusting R17 and R21. The reference voltage inputs can be monitored at JP6 and JP7.

Page 18: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

EVAL6206PD board configuration AN1794

18/34

8 EVAL6206PD board configuration

The schematic of the EVAL6206PD board is shown in Figure 5. To use the EVAL6206PD board with practiSPIN system, the following configuration settings must be made on the EVAL6206PD:

1. Component updates: depending on the revision of the board, some or all of the following changes may be required (or desirable):

a) To assure safe overcurrent operation:

– Change C6 and C7 to 5.6 nF

– Change R4 and R5 to 100 kΩb) To assure an adequate 5 V supply, R1 may need to be changed. The minimum

value for R1 is (Vs-5)/(0.03+I) Ω . Where: Vs is the supply voltage and I is any additional load placed on the 5 V supply (in amps).

2. JP1: place JP1 in the INT position to enable the on-board 5 Vdc supply.

3. JP2 and JP3: install JP2 and JP3 to enable the L6206's internal high side overcurrent protection.

4. JP4 and JP5: install JP4 and JP5 to set internal overcurrent threshold to maximum. If desired, these jumpers can be left out and the overcurrent levels may be set using potentiometers R6 and R7.

5. R16 and R22: adjust multi-turn trim pots R16 and R22 fully clockwise.

Note: A slight click can be heard from the pot when it reaches its end of travel.

6. R25 Adjust multi-turn trim pot R25 to the middle of its range. This pot sets the chopping frequency of the L6506 current controller and can be fine tuned while observing the motor current on an oscilloscope or by simply adjusting to raise the frequency of the audible switching noise to an inaudible level if required.

7. Motor connections: connect the motor coils at CN3 and CN4. When driving a stepper motor, one winding is connected to CN3 and the second winding is connected to CN4. For operation with 2 DC motors one motor is connected to each connector.

8. Power supply: connect, but do not energize, a 12 to 48 Vdc power supply at CN1 (positive to Vin and negative to GND).

9. Using a 34 pin ribbon cable connect the EVAL6205N board to the control interface board. The two boards should be placed on the bench so that their 34 pin headers are side by side with the ribbon cable going straight across.

Set the following on the ST7 interface board

WJ1: Install WJ1 on the ST7 based control interface board. This allows 5 Vdc power to be obtained from the target board.

JP1 and JP2 and R18: install the JP1 and JP2 jumpers to short the center and left pins together as shown in Figure 2. This is critical as excessive motor current can result from misplacement of these jumpers! Set potentiometer R18 to about 50%.

Page 19: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 EVAL6206PD board configuration

19/34

Figure 5. EVAL6206PD schematic

R2

4

CN

4

12

C6

C3

CN

1

12

TINA1 P

2.4

R7

PR

OG

CLA

VR

EF

_A

_4

_2

IN2

SE

NS

E_A

R9

JP5

EN

ATI

NA0

P2.0

OC

DA

C11

R1

R1

9

R4

C13

CW

R6

C14

OCMPA1

P4.2

R14

PR

OG

CLB

A0IN6

P7.6

CW

_2

ext.

R18

R2

1

VR

EF

_B

VR

EF

A

INT2

C12

OC

DB

PR

OG

CLB

R2

0

_1

VC

CR

EF

R11

int.

TOUTB0

P2.3

R5

R1

7

C2

Pul

lUp

D1

13

2

R15

TINB1

P2.5

R22

Pul

lUp

SE

NS

E_A

EN

B

CN

2

1 2

SE

NS

E_B

L6206PD

JP4

SENSE_A

SENSE_B

IN3

VR

EF

B

INT6

JP2

EN

B

C1

CW

Pul

lUp

INT3

Pul

lUp

JP3

R26

Pul

lUp

INT0

R2

CN

3

1 2

R13

IN1

TOUTA1

P2.6

CW

R16

ADC_RE

F

C15

IN4

R3

IN1

_4

Pul

lUp

C9

EN

A

TINB0

P2.1

Pul

lUp

CW

C8

IN2

R12

C5

_1

R10

C10

+5V

IN3

OC

DA

OCMPB1

/ICAPB

1 P4.3

+5V

CN

5

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33

2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34

SE

NS

E_B

C4

PR

OG

CLA

IN4

_3

R25

JP1

13

2

OC

DB

A1IN6

P8.1

D2

_3

U2

5

6

7

8

161514134

17

19

12

1

18 3

20

2

91011

In1

In2

In3

In4

Out1Out2Out3Out4

EN

Vsense2

Vref2

Vsense1

R/C

Vref1 Sync

VC

C

Osc_Out

GN

DN

CN

C

U1

36

10

1

12

30

11

18

33

19

9

26

4

7 28

298 27

24

13

15

25

22

5 32

2 3 6 14

16

17

20

21

23

31

34

35

GND

IN1

GND

SENSEA

VBOOT

IN2

GND

VSB

GND

PROGCLA

IN3

VSA

VCP PROGCLB

EN

B

EN

A

IN4

OCDB

OCDA

OU

T1A

SENSEB

OU

T1B

OU

T2A

OU

T2BNC

NC

NC

NC

NC

NC

NC

NC

NC

NC

NC

NC

TOUTPB1

2.7

STMicro

elec

tronic

s In

dustri

al&Pow

er Sup

ply Ap

plicat

ion LA

B

C7

R8

R23

Page 20: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

EVAL6206PD board configuration AN1794

20/34

8.1 Vref offset adjustment (R18)Using a voltmeter monitor the voltage at the junction of R12 and R16 or the Junction of R20 and R22 on the EVAL626PD board with respect to GND (CN1) when calibrating the offset.

8.2 Current scalingWhen potentiometers R16 and R22 are set full clockwise, a 100% current setting on the practiSPIN software screen corresponds to a Vref of approximately 0.88 Vdc or a peak motor current of about 4.4 A. The peak current can be set to a lower value by adjusting R16 and R22.

Page 21: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 EVAL6207N board configuration

21/34

9 EVAL6207N board configuration

The schematic of the EVAL6207N board is shown in Figure 6. To use the EVAL6207N board with practiSPIN system, the following configuration settings must be made on the EVAL6207N:

1. Component updates: depending on the revision of the board, some or all of the following changes may be required (or desirable):

a) To assure safe overcurrent operation:

– Change C6 and C7 to 5.6 nF

– Change R3 and R4 to 100 kΩb) To assure an adequate 5 V supply, R2 may need to be changed. The minimum

value for R2 is (Vs-5)/(0.03+I) Ω . Where: Vs is the supply voltage and I is any additional load placed on the 5 V supply (in amps).

2. JP1: place JP1 in the INT position to enable the on-board 5 Vdc supply.

3. JP2 and JP3: install JP2 and JP3 to assure proper timing operation of the L6207's internal high side overcurrent protection.

4. R15 and R18: adjust multi-turn trim pots R15 and R18 fully clockwise.

Note: A slight click can be heard from the pot when it reaches its end of travel.

5. R6 and R7: adjust multi-turn trim pots R6 and R7 to the middle of their range. These pots set the off time of the cycle by cycle current controller and can be fine tuned while observing the motor current on an oscilloscope or by simply adjusting to raise the frequency of the audible switching noise to an inaudible level if required.

6. motor connections: connect the motor coils at CN3 and CN4. When driving a stepper motor, one winding is connected to CN3 and the second winding is connected to CN4. For operation with 2 DC motors one motor is connected to each connector.

7. Power supply: connect, but do not energize, a 12 to 48 Vdc power supply at CN1 (positive to Vin and negative to GND).

8. Using a 34 pin ribbon cable connect the EVAL6207N board to the control interface Board. The two boards should be placed on the bench so that their 34 pin headers are side by side with the ribbon cable going straight across. Set the following on the ST7 interface board

9. WJ1: install WJ1 on the ST7 based Control Interface Board. This allows 5 Vdc power to be obtained from the target board.

10. JP1 and JP2 and R18: install the JP1 and JP2 jumpers to short the center and left pins together as shown in Figure 2. This is critical as excessive motor current can result from misplacement of these jumpers! Set potentiometer R18 to about 50%.

Page 22: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

EVAL6207N board configuration AN1794

22/34

Figure 6. EVAL6207N schematic

R2

L6207

Pul

lUp

C4

ADC_R

EF

VR

EFB

VC

CR

EF

EN

A

LIM

IT_A

GN

D

IN1

IN2

R11

R1

5

C1

0

R13

LIM

ITB

C8

OCMPA

0/ICAPA0 P3.2

CW

C5

EN

B

VR

EF

B

A0IN6

P7.6

JP2

LIM

IT_B

R6

R8

IN2

SE

NS

E_A

R14

IN3

U1

1 2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

IN1A

IN2A

SENSEA

RCA/INH

OU

T1

A

GND

GND

OU

T1

B

RCB

SENSEB

IN1B

IN2B

VREF B

EN

B

VBOOT

OU

T2

B

VSB

GND

GND

VSA

OU

T2

A

VCP

EN

A

VREF A

C6

OCMPA

1 P4.2

R7

D3

Pu

llUp

R1

CN

1

12

CN

4

12

CW

VC

CR

EF

D1

LIM

IT_A

INT0

R5

RC

A/IN

H

VR

EF

A

CN

5

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33

2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34

CW

Pul

lUp

INT2

SE

NS

EA

D2

IN3

TINPAO P2.0

C7

IN4

C2

VR

EF

_A

ext.

C3

TOUTA1 P2.6

EN

B

EN

A

C1

R1

8

LIM

IT_B

R12

TOUTB1 P2.7

R3

int.

IN1

JP1

13

2

R9

+5V

JP3

TOUTAO P2.2

LIM

ITA

CN

2

1 2

C1

1

VR

EF

_B

RC

A/IN

H

+5V

CN

3

1 2

C9

LIM

IT_B

A1IN6

P8.1

IN4

SE

NS

EB

R1

6

R1

7

LIM

IT_A

OCMPB

0 P3.3

OCMPB

1/ICAPB1 P4.3

R4

VR

EFA

SE

NS

E_B

R10

TINPB0 P2.1

Page 23: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 EVAL6207N board configuration

23/34

9.1 Vref offset adjustment (R18)Using a voltmeter monitor the voltage at the VrefA or VrefB test point on the EVAL6207N board with respect to GND (CN1) when calibrating the offset.

9.2 Current scalingWhen potentiometers R20 and R26 are set full clockwise, a 100% current setting on the practiSPIN software screen corresponds to a Vref of approximately 0.88 Vdc or a peak motor current of about 2.64 A.

The peak current can be set to a lower value by adjusting R15 and R18. The reference voltage inputs can be monitored at the VrefA or VrefB test point.

Page 24: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

EVAL6208N board configuration AN1794

24/34

10 EVAL6208N board configuration

The schematic of the EVAL6208N board is shown in Figure 7. To use the EVAL6208N board with practiSPIN system, the following configuration settings must be made on the EVAL620A:

1. Component updates: depending on the revision of the board, some or all of the following changes may be required (or desirable):

a) To assure safe overcurrent operation:

– Change C6 to 5.6 nF

– Change R9 to 100 kΩb) To assure an adequate 5 V supply, R2 may need to be changed. The minimum

value for R2 is (Vs-5)/(0.03+I) Ω . Where: Vs is the supply voltage and I is any additional load placed on the 5 V supply (in amps).

2. JP1: place JP1 in the INT position to enable the on-board 5 Vdc supply.

3. Switches place all four of the switches in the right (toward the L6208) position.

4. R20 and R24: adjust multi-turn trim pots R20 and R24 fully clockwise.

Note: A slight click can be heard from the pot when it reaches its end of travel.

5. R11 and R12: adjust multi-turn trim pots R11 and R12 to the middle of their range. These pots set the off time of the cycle by cycle current controller and can be fine tuned while observing the motor current on an oscilloscope or by simply adjusting to raise the frequency of the audible switching noise to an inaudible level if required.

6. Motor connections: connect the motor coils at CN3 and CN4. When driving a stepper motor, one winding is connected to CN3 and the second winding is connected to CN4. For operation with 2 DC motors one motor is connected to each connector.

7. Power supply: connect, but do not energize, a 12 to 48 Vdc power supply at CN1 (positive to Vin and negative to GND).

8. Using a 34 pin ribbon cable connect the EVAL6208N board to the control interface Board. The two boards should be placed on the bench so that their 34 pin headers are side by side with the ribbon cable going straight across. Set the following on the ST7 interface board.

9. WJ1: install WJ1 on the ST7 based control interface board. This allows 5 Vdc power to be obtained from the target board.

10. JP1 and JP2 and R18: install the JP1 and JP2 jumpers to short the center and left pins together as shown in Figure 2. This is critical as excessive motor current can result from misplacement of these jumpers! Set potentiometer R18 to about 50%.

Page 25: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 EVAL6208N board configuration

25/34

Figure 7. EVAL6208N schematic

Pul

lUp

R1

0

int.

CW

R2

CL

OC

K

VR

EF

A

CW

/CC

W

EN

R14

VR

EF

B

R19

R9

C6

D2 R

12

R3

EN

CW

GN

DP

ullU

p

C2

CN

1

12

VR

EF

B

Pu

llUp

S1

9

11

16

8

1

15

10

14

2

13

3

12

4

5

6

7

CN

4

12

DIA

GC

N5

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33

2 4 6 81

01

21

41

61

82

02

22

42

62

83

03

23

4

R4

CO

NT

RO

L

Pul

lUp

R5

CL

OC

K

C4

RC

A

CW

R1

R21

CW

/CC

WC

9

RE

SE

T

R15

C7

CL

OC

K

CLO

CK

FAST

R7

VC

CR

EF

Pul

lUp

C1

R2

0

SLOW

D1

JP1

13

2

DIA

G

RC

A

+5V

CN

2

1 2

CW

VR

EF

A

FULL

R17

DIA

G

CO

NTR

OL

C5

HA

LF

/FU

LL

D3

R1

1

VR

EF

B

HALF R22

R8

R2

4

C8

RC

B

L6208N

R6

C1

0

R1

3

U1

3

4

1

9

13

24

2

11

10

14 2312

5

6

7

8

15

16

17

18

19

20

21

22

SENSEA

RCA

CLO

CK

RCB

CO

NT

RO

L

VREF A

CW

/CC

W

VREFB

SENSEB

EN

RE

SE

T

HA

LF/F

ULL

OU

T1A

GND

GND

OU

T1B

VBOOT

OU

T2B

VSB

GND

GND

VSA

OU

T2A

VCP

CN

3

1 2

VR

EF

A

HA

LF/F

ULL

ext.

R16

EN

CW

R18

Pul

lUp

+5V

RE

SE

T

CCW

RC

A

Pul

lUp

C3

Page 26: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

EVAL6208N board configuration AN1794

26/34

10.1 Vref offset adjustment (R18)Using a voltmeter monitor the voltage at the VrefA or VrefB test point on the EVAL6208N board with respect to GND (CN1) when calibrating the offset.

10.2 Current scalingWhen potentiometers R20 and R21 are set full clockwise, a 100% current setting on the practiSPIN software screen corresponds to a Vref of approximately 0.88 Vdc or a peak motor current of about 2.64 A.

The peak current can be set to a lower value by adjusting R15 and R18. The reference voltage inputs can be monitored at the VrefA or VrefB test point

After tube recognition the microcontroller will set the right run frequency for the connected lamp.

Page 27: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 EVAL6208PD board configuration

27/34

11 EVAL6208PD board configuration

The schematic of the EVAL6208PD board is shown in Figure 8. To use the EVAL6208PD board with practiSPIN system, the following configuration settings must be made on the EVAL6208PD:

1. Component updates: depending on the revision of the board, some or all of the following changes may be required (or desirable):

a) To assure safe overcurrent operation:

– Change C12 to 5.6 nF

– Change R21 to 100 kΩb) To assure an adequate 5 V supply, R1 may need to be changed. The minimum

value for R1 is (Vs-5)/(0.03+I) Ω . Where: Vs is the supply voltage and I is any additional load placed on the 5 V supply (in amps).

2. JP1: place JP1 in the INT position to enable the on-board 5 Vdc supply.

3. Switches: place all four of the switches in the right (toward the L6208) position.

4. R8 and R17: adjust multi-turn trim pots R8 and R17 fully clockwise.

Note: A slight click can be heard from the pot when it reaches its end of travel.

5. R10 and R11: adjust multi-turn trim pots R10 and R11 to the middle of their range. These pots set the off time of the cycle by cycle current controller and can be fine tuned while observing the motor current on an oscilloscope or by simply adjusting to raise the frequency of the audible switching noise to an inaudible level if required.

6. Motor connections: connect the motor coils at CN3 and CN4. When driving a stepper motor, one winding is connected to CN3 and the second winding is connected to CN4. For operation with 2 DC motors one motor is connected to each connector.

7. Power supply: connect, but do not energize, a 12 to 48 Vdc power supply at CN1 (positive to Vin and negative to GND).

8. Using a 34 pin ribbon cable connect the EVAL6208PD board to the control interface board. The two boards should be placed on the bench so that their 34 pin headers are side by side with the ribbon cable going straight across. Set the following on the ST7 interface board.

9. WJ1: install WJ1 on the ST7 based control interface board. This allows 5 Vdc power to be obtained from the target board.

10. JP1 and JP2 and R18: install the JP1 and JP2 jumpers to short the center and left pins together as shown in Figure 2. This is critical as excessive motor current can result from misplacement of these jumpers! Set potentiometer R18 to about 50%.

Page 28: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

EVAL6208PD board configuration AN1794

28/34

Figure 8. EVAL6208PD schematic

FULL

R1

9TOUTA1 P2.6

SLOW

Pul

lUp

VR

EF

A

R1

6R

10

+5V

CW

/CC

W

TINB1 P2.5

SE

NS

EA

RC

A

VR

EF

B

VR

EF

_A

CW

/CC

W

OCMPA1 P4.2

FAST

CW

C6

D1

13

2

TOUTA0 P2.2

R2

RE

SE

T

CN

5 CO

N34

A

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33

2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34

TINA0 P2.0

CN

4

12

Pul

lUp

R5

ADC_REF

C1

2

R9

C9

CO

NTR

OL

CW

EN

Pul

lUp

VR

EF

B

R2

1

R7

C2

R4

VR

EF

A

CW

C5

R6

C3

R1

1

CCW

CN

1

12

VIN

S1

9

11

16

8

1

15

10

14

2

13

3

12

4

5

6

7

HALF

CL

OC

K

+5V

R13

VR

EF

_B

TINA1 P2.4

R8

C4

C1

CO

NTR

OL

TOUTB1 P2.7

ext.

HA

LF/

FUL

L

CW

R3

GN

D

D2

Pul

lUp

int.

R1

Pu

llUp

Pu

llUp

SE

NS

EB

U1

1

10

36

12

30

28

18

33

19

11

13

4

7

9

29

24

27 8

26

15

25

225 322 3 6 14 16 17 20 21 23 31 34 35

GND

CL

OC

K

GND

SENSEA

VBOOT

CO

NTR

OL

GND

VSB

GND

CW

/CC

W

RCA

VSA

VCP

VREF A

EN

RCB

HA

LF/

FUL

L

RE

SE

T

VREFB

OU

T1A

SENSEB

OU

T1B

OU

T2A

OU

T2BNC

NC

NC

NC

NC

NC

NC

NC

NC

NC

NC

NC

RC

AEN

DIA

G

OCMPB1/ICAPB1 P4.3

CL

OC

K

C8

EN

JP1

JUM

PE

R 3

x1

13

2

R14TOUTB0 P2.3

R12

R1

7

CLOCK

CN

3

1 2

C7

CW

CN

2

1 2

RE

SE

T

STMicroelectronics Industrial&Power Supply Application LAB

R1

8

R2

0

CL

OC

K

Pul

lUp

VC

CR

EF

R15

HA

LF/

FUL

L

DIA

G

L6208PD

Page 29: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 EVAL6208PD board configuration

29/34

11.1 Vref offset adjustment (R18)Using a voltmeter monitor the voltage at the VrefA or VrefB test point on the EVAL6208PD board with respect to GND (CN1) when calibrating the offset.

11.2 Current scalingWhen potentiometers R8 and R17 are set full clockwise, a 100% current setting on the practiSPIN software screen corresponds to a Vref of approximately 0.88 Vdc or a peak motor current of about 4.4 A. The peak current can be set to a lower value by adjusting R15 and R18. The reference voltage inputs can be monitored at the VrefA or VrefB test point.

Page 30: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

EVAL6235 board configuration AN1794

30/34

12 EVAL6235 board configuration

The schematic of the EVAL6235 board is shown in Figure 9. To use the EVAL6235 board with practiSPIN system, the following configuration settings must be made on the EVAL6235:

1. Component updates: depending on the revision of the board, some or all of the following changes may be required (or desirable):

a) To assure safe overcurrent operation:

– Change C6 and C7 to 5.6 nF

– Change R6 to 100 kΩ and remove R2

b) To assure an adequate 5 V supply, R1 may need to be changed. The minimum value for R1 is (Vs-5)/(0.03+I) Ω . Where: Vs is the supply voltage and I is any additional load (such as Hall sensors) placed on the5 V supply (in amps).

2. JP1 and JP2: install JP1 and JP2 to enable the on-board 5 Vdc supply.

3. Switches: place all four switches in the down (away from U2) position.

4. R22: adjust multi-turn trim pot R22 fully clockwise.

Note: A slight click can be heard from the pot when it reaches its end of travel.

5. R10: adjust multi-turn pot R10 to the middle of its range. This pot sets the off time of the cycle by cycle current controller and can be fine tuned while observing the motor current on an oscilloscope or by simply adjusting to raise the frequency of the audible switching noise to an inaudible level if required.

6. Hall sensors: connect the hall sensors of the BLDC motor at CN5. Connect the power supply wires from the hall sensors at pins GND and P5V. Hall sensors are notorious for being destroyed by reversed polarity! Know, don't guess, the proper polarity! Connect H1, H2, and H3 signals to their respective pins.

7. Motor connections: connect the three motor armature wires at CN3 being careful to match the phasing to the hall sensor connections. Please refer to the L6235 data sheet for a description of the proper phase relationship between the motor phases and the Hall sensors.

Note: There are six possible ways to connect the three armature wires to CN3. While only one connection will give proper performance, one or two of the other possible connection may cause the motor to turn but with very poor performance and, perhaps, high motor currents even if the system is unloaded.

8. Power supply: connect, but do not energize, a 12 to 48 Vdc power supply at CN1 (positive to Vin and negative to GND).

9. Using a 34 pin ribbon cable connect the EVAL6208PD board to the control interface board. The two boards should be placed on the bench so that their 34 pin headers are side by side with the ribbon cable going straight across. Set the following on the ST7 interface board.

10. WJ1: install WJ1 on the ST7 based control interface board. This allows 5 Vdc power to be obtained from the target board.

11. JP1 and JP2 and R18: install the JP1 and JP2 jumpers to short the center and left pins together. This is critical as excessive motor current can result from misplacement of these jumpers! Set potentiometer R18 to about 50%.

Page 31: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 EVAL6235 board configuration

31/34

Figure 9. EVAL6235 schematic

R2

TP

EN

ABL

E

A0IN6 P

7.6

R5

H3

ADC_REF

H1

PullU

p

VR

EF

CW

R7

C5

R12

C9

R4

SEN

SE

P2.6

S1

9

11

16

8

1

15

10

14

2

13

3

12

4

5

6

7

P3.1

R21

C3

P2.1

OCMPA1 P4.2

VR

EF

VC

CR

EF

C1

R6

U1

L623

5

5

3

16

4

21

8

1

2

9

13

2311

10

14 2412

6

7

15

17

18

19

20

22

OUT

1

SENSE1

OUT

3

RCOFF

OUT

2

TACHO

H1

DIAG

RCPULSE

VREF

H2

FWR/

REW

SENSE2

BRAK

E

H3

ENAB

LE

GND

GND

VBOOT

VSB

GND

GND

VSA

VCP

BRA

KE

CN1 12

FRW

/REW

INT2

+ -

U2B

LM35

8

5 67

8 4

PullU

p

H2

C8

C10

INT3

TP

C12

R1 P2

.2

C11

R13

+5V

Pul

lUp

D3

FWR

9

+5V

H1

+5V

H1

TINA

0 P2.

0

CN

4

1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33

2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34

REV

L6235

CW

R17

H3

R11

R16

R22

P2.4

BRAKE

TP

C6

CN

3

1 2 3

C7

RC/

INH

+5V

HALL CON

CW

C2

R3

ENA

BLE

DIA

G

CN

2

1 2

P2.5

Pul

lUp

R10

R14

BR

AKE

H2

D1

R19

P2.7

R8

+5V

VCCR

EF

ENH

1

R15

DIA

G

+-

U2A

LM35

8

321

84

Pullu

p

TRQ

C4

H2

R18

R20

JP2

H3

D2

CN5 1 2 3 4 5

JP1

FRW

/REV

SPEED

Page 32: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

EVAL6235 board configuration AN1794

32/34

12.1 Vref offset adjustment (R18)Using a voltmeter monitor the voltage at the junction of R17 and R20 on the EVAL6235N board with respect to GND (CN1) when calibrating the offset.

12.2 Current scalingWhen potentiometer R22 is set full clockwise, a 100% current setting on the practiSPIN software screen corresponds to a Vref of approximately 0.88 Vdc or a peak motor current of about 4.4 A. The peak current can be set to a lower value by adjusting R22. The reference voltage inputs can be monitored at the junction of R17 and R20.

Page 33: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794 Revision history

33/34

13 Revision history

Table 1. Document revision history

Date Revision Changes

21-Jun-2004 1 Initial release

29-Jan-2008 2 Document reformatted. No content change

Page 34: PractiSPIN evaluation system configuration and set up guide...8. Decel rate: set decel. rate to about 1000 steps/sec2. 9. Accel current: set accel curren t to about 25%. This is an

AN1794

34/34

Please Read Carefully:

Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve theright to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at anytime, without notice.

All ST products are sold pursuant to ST’s terms and conditions of sale.

Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes noliability whatsoever relating to the choice, selection or use of the ST products and services described herein.

No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of thisdocument refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party productsor services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of suchthird party products or services or any intellectual property contained therein.

UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIEDWARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIEDWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWSOF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.

UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOTRECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAININGAPPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVEGRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.

Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately voidany warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, anyliability of ST.

ST and the ST logo are trademarks or registered trademarks of ST in various countries.

Information in this document supersedes and replaces all information previously supplied.

The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.

© 2008 STMicroelectronics - All rights reserved

STMicroelectronics group of companies

Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America

www.st.com