KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board Important notice NXP provides the enclosed product(s) under the following conditions: This evaluation kit is intended for use of ENGINEERING DEVELOPMENT OR EVALUATION PURPOSES ONLY. It is provided as a sample IC pre-soldered to a printed circuit board to make it easier to access inputs, outputs, and supply terminals.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board Getting started 3.1 Kit contents/packing list The kit contents include: • Assembled and tested evaluation board/module in an anti-static bag • Quick Start Guide, Analog Tools • Warranty card 3.2 Jump start NXP’s analog product development boards provide an easy-to-use platform for evaluating NXP products.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board 3.4 System requirements The kit requires the following: ® • USB-enabled PC with Windows XP or higher Getting to know the hardware 4.1 Board overview The evaluation board features the dual H-bridge ICs, which features the ability to drive either a single two phase stepper motor or two brushed DC motors.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board 4.4 Board description The following sections describe the additional hardware used to support the dual H- bridge driver. Figure 2. Board description Table 2. Board description Name Description 16-pin QFN H-bridge motor drive IC (MC34933)
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board Table 3. LED display LED ID Description Indicates when power is supplied to the board via JP2 4.4.2 Test point definitions The following test points provide access to signals on the board. Table 4. Test point definitions...
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board 4.4.5 Screw terminal connections The board features screw terminal connections to allow easy access to device signals and supply rails. Table 7. Screw terminal connections Name Signal Signal description name VPWR_IN Power input (5.0 V to 9.0 V)
Page 8
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board board makes use of the USB, built in LEDs, and I/O ports available with NXP’s Kinetis KL2x family of microcontrollers. The main functions provided by the FRDM-KL25Z are to allow control of a stepper motor using a PC computer over USB, and to drive the necessary inputs on the evaluation kit to operate the motor.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board FRDM LV stepper motor FRDM-KL25Z Header Name Header Name PTC2 AUX_IO5 PTB3 PTB2 AUX_AN2 PTB1 AUX_AN1 PTB0 Installing the software and setting up the hardware The latest version of the Motor Control GUI is designed to run on any Windows 10, Windows 8, Windows 7, Vista, or XP-based operating system.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board Figure 4. Setup for Stepper motor Figure 5. Setup for DC motors 6.2 Step-by-step instructions for setting up the hardware using Motor Control GUI When using the board make sure that the following operating parameters are followed or damage may occur.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board In order to perform the demonstration example, first set up the evaluation board hardware and software as follows: 1. Setup the FRDM-KL25Z to accept code from the mbed online compiler. mbed is a developer site for ARM based microcontrollers. The instructions are at mbed.org (https://mbed.org/handbook/mbed-FRDM-KL25Z-Upgrade).
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board Figure 6. Select components GUI 6.4 Downloading the LVHBridge component and example projects The examples used in this section are based on a preconfigured CodeWarrior project. You must first download the project and its associated components: 1.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board Folder name Folder contents LVH_K20D50M_stepper_bitIO Example project intended to control stepper motor using FRDM-34933EVB H-Bridge board and FRDM-K20D50M MCU board LVH_K20D50M_stepper_ramp_bitIO Example project intended to control stepper motor using FRDM-34933EVB H-bridge board and FRDM-K20D50M MCU board.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board 5. If the import is successful, the LVHBridge component appears in Components Library -> SW -> User Component. Note that the component ChannelAllocator is not visible, because it is not designed to be accessible.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board 6.4.2 Import an example project into CodeWarrior The following steps show how to import an example project from the downloaded zip file into CodeWarrior. 1. In the CodeWarrior menu bar, click File -> Import…...
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board 2. Choose the MCU class to be used in the freedom MCU board (MKL25Z128 in this example). Then select the connections to be used. 3. Select the Processor Expert option, and then click Finish.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board 6.5.2 General settings of LVHBridge component H-bridge model is on top of the tree structure in the Component Inspector view. ActiveMode defines the H-bridge device operational mode (normal or power-conserving sleep mode), which is controlled by the enabling pin. Selection of the enabling pin is in the Enable Pins group.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board Figure 8. Selection of a FRDM-KL25Z MCU primary and a secondary timer device H-bridge 1 MCU Interface and H-bridge 2 MCU Interface allow you to set H-bridge control function. The H-bridge 2 MCU Interface is shown only for dual H-bridge models (for example MC34933).
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board 2. Set the Control Mode property. There are two ways to control the DC brushed motor: • Speed control - motor speed is controlled by your settings. The TimerUnit_LDD component is used to generate the PWM signal. The PWM Frequency property is visible in this mode only.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board 6.5.4 Setting up a project to control a stepper motor Select the dual H-bridge model you want to configure and set Stepper in the Motor Control property. Note that the dual H-bridge model is required, because a two phase bipolar stepper motor has four inputs.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board of the linked TimerUnit_LDD component. By default the Counter frequency is set automatically by LVHBridge component. In some cases the frequency value does not have to be set appropriately (user wants to set a different value or an error has occurred).
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board Figure 11. Stepper mode configuration that affects minimum full-stepping speed Possible values for the timer input frequency (counter frequency property in TimerUnit_LDD) are shown in Table 11. Input frequency values depend on LVHBridge component settings. Note that two frequency values are needed in "full-step and micro- step mode".
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board Mode LVHBridge component properties Primary timer input frequency Secondary description timer input Timer device Secondary Output Motor Values Min. Max. frequency control control timer mode 2nd value 2nd value for micro- for Micro- step:1.2 MHz...
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board where: Counter_frequency = input frequency of the timer device 65536 = maximum value of TimerUnit_LDD counter (16-bit counter) Adding 1 ensures that the 16-bit counter does not overflow (which is the point of the...
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board Figure 15. Component TimerUnit_LDD timing dialog - select input frequency 6.5.6 Generating application code After configuration, generate the source code by clicking the icon in the upper right corner of the Components screen. Figure 16. Generating the source code The driver code for the H-bridge device is generated in the Generated_Code folder in the project view.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board Figure 17. Generated files 6.5.7 Using the interface Application code can be written and tested in the project. For example, you can open the LVHBridge component method list, drag and drop RotateProportional to main.c (see Figure 18), add any necessary parameters, then compile the program.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board Figure 18. Using the interface To compile, download and debug on board, click compile, and then click the debug icon in the toolbar. CodeWarrior downloads and launches the program on board as shown in Figure Figure 19.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board 6.6 Stepper motor control application notes The LVHBridge component is designed to control a two phase bipolar stepper motor. Because a stepper motor uses electrical commutation to rotate, it requires a dual H- bridge device. The basic control method is full-stepping which fully powers each coil in sequence.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board Figure 21. Signals of logic input pins generated by the MCU in full-step mode Figure 22. Output of the H-bridge device in full-step mode 6.6.2 Micro-step control mode Micro-stepping allows for smoother motor movement and increased precision. The current varies in motor windings A and B depending on the micro-step position.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board where: = the current in winding A = the current in winding B = the maximum allowable current θ = the electrical angle In micro-step mode, a full-step is divided into smaller steps (micro-steps). The LVHBridge component offers 2, 4, 8, 16 and 32 micro-steps per full-step.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board micro-step position. Current values applied to the stepper motor coils are depicted in Figure Figure 24. Logic input pin signals generated by the MCU in micro-step mode Figure 25. Logic Analyzer output Figure 26. H-bridge device output in micro-step mode KTFRDM34933EVBUG All information provided in this document is subject to legal disclaimers.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board 6.7 Frequently asked questions Q: How do I set up the LVHBridge component when two or more components with conflicting values are configured to control brushed motors? Figure 27. Conflict in the required values for components in the project A: You can use more LVHBridge components in same project.
KTFRDM34933EVBUG NXP Semiconductors FRDM-34933EVB evaluation board Schematics, board layout and bill of materials Board schematics, board layout and bill of materials are available in the download tab of the tool summary page. See Section 8 "References" for link to the relevant tool summary page.
NXP does not modifications or additions. NXP Semiconductors does not give any convey any license under its patent rights nor the rights of others. NXP sells...
Need help?
Do you have a question about the KTFRDM34933EVBUG and is the answer not in the manual?
Questions and answers