Embedded Artists LPCXpresso User Manual

Hide thumbs Also See for LPCXpresso:

Advertisement

Quick Links

- User's Guide
LPCXpresso Motor Control Kit
Copyright 2011 © Embedded Artists AB
LPCXpresso Motor Control Kit
User's Guide
Get Up-and-Running Quickly and
Start Developing Your Application On Day 1!
EA2-USG-1101 Rev A

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the LPCXpresso and is the answer not in the manual?

Questions and answers

Summary of Contents for Embedded Artists LPCXpresso

  • Page 1 - User’s Guide LPCXpresso Motor Control Kit Copyright 2011 © Embedded Artists AB LPCXpresso Motor Control Kit User’s Guide Get Up-and-Running Quickly and Start Developing Your Application On Day 1! EA2-USG-1101 Rev A...
  • Page 2 Embedded Artists AB. Disclaimer Embedded Artists AB makes no representation or warranties with respect to the contents hereof and specifically disclaim any implied warranties or merchantability or fitness for any particular purpose. Information in this publication is subject to change without notice and does not represent a commitment on the part of Embedded Artists AB.
  • Page 3: Table Of Contents

    LPCXpresso Motor Control Kit - User’s Guide Page 3 Table of Contents 1 Document Revision History 2 Introduction Features ESD Precaution General Handling Care Code Read Protection Other Products from Embedded Artists 2.5.1 Design and Production Services 2.5.2 OEM / Education / QuickStart Boards and Kits...
  • Page 4 LPCXpresso Motor Control Kit - User’s Guide Page 4 5.1.1 Step 1: Mount LPCXpresso LPC1114 board 5.1.2 Step 2: BLDC Motor Preparation 5.1.3 Step 3: Connect Power Supply 5.1.4 Step 4: Loading the Demo Application Installing USB Driver Demo Application...
  • Page 5: Document Revision History

    LPCXpresso Motor Control Kit - User’s Guide Page 5 1 Document Revision History Revision Date Description 2011-02-01 First (incomplete) version 2011-02-09 Second (more complete) version 2011-02-14 Preliminary version 2011-02-26 Corrected some smaller errors in text (demo application is not preloaded) and text in Fig 20.
  • Page 6: Introduction

    Board and the LPCXpresso LPC1114, together forming the LPCXpresso Motor Control Kit. Features Embedded Artists’ LPCXpresso Motor Control Kit makes it possible for you to get started with motor control prototyping immediately. It is a universal platform for low voltage motor control based on NXP’s MCUs.
  • Page 7: Esd Precaution

    The LPCXpresso Motor Control Board has an OLED display. Do not exercise pressure on the display glass area or the flex cable connecting the display to the pcb. That will damage the display.
  • Page 8: Other Products From Embedded Artists

    Page 8 Other Products from Embedded Artists Embedded Artists have a broad range of LPC1000/2000/3000/4000 based boards that are very low cost and developed for prototyping / development as well as for OEM applications. Modifications for OEM applications can be done easily, even for modest production volumes. Contact Embedded Artists for further information about design and production services.
  • Page 9: Introduction

    Board Structure The LPCXpresso Motor Control Board has a structure as outlined in the picture below. The right side contains the power electronics for driving the motor phases. The left side is the controlling side with sockets for different LPCXpresso boards as well as a PLCC44 socket for LPC1xxx processor control.
  • Page 10: Usage Of Cpu Pins

    LPCXpresso Motor Control Kit - User’s Guide Page 10 current can also be measured. For rotor position measurement there are three hall sensor inputs and optional quadrature sensor inputs. These control and measurement possibilities give great flexibility in controlling different kinds of motors.
  • Page 11 LPCXpresso Motor Control Kit - User’s Guide Page 11 QEI-PHB Only available at Only available at Only available at Only available at Only available at Only available at expansion expansion expansion expansion expansion expansion connector connector connector connector connector connector...
  • Page 12: Notes About Lpc1114 Control

    3.3.1 Notes about LPC1114 control The LPC1114 is limited in the number of available pins. All features of the LPCXpresso Motor Control Board cannot be used on the board. The default setup is to control three (of the four) phases. It is illustrated in the grayed column in the table above.
  • Page 13: Notes About Lpc1343 Control

    LPCXpresso Motor Control Kit - User’s Guide Page 13 3.3.3 Notes about LPC1343 control The limitations for LPC1343 are the same as for the LPC1114, as described above. The only difference is that the LPC1343 has an USB interface, which the LPC1114 does not have.
  • Page 14: Lpcxpresso Motor Control Board Design

    Page 14 4 LPCXpresso Motor Control Board Design This chapter contains information about the general design of the LPCXpresso Motor Control Board and how to set the few jumpers on the board. The schematic can be downloaded in PDF from the support page, and is recommended to have printed out while reading this chapter.
  • Page 15: Phase Control

    3A and 18A with trimming potentiometer R127. The input current measurement signal is connected to an analog input on the LPCXpresso target boards, via analog multiplexor U1. Signal AIN-CTRL shall be high to measure the input current. If low, the DC-link current measurement signal is instead connected (the common low-side current of the phase drivers).
  • Page 16: Power Supply

    4.6.2 LPCXpresso LPC176x Note that in case an LPCXpresso LPC176x board shall be used, pin-lists for the two 27 pos edge connectors must also be soldered. Also the 19 signal positions in between the edge connectors must have pin-lists soldered.
  • Page 17: Usb-To-Uart Bridge Interface

    Bridge LEDs for signaling UART communication activity (LED1-LED2) Figure 3 – LPCXpresso Motor Control Board Communication Interfaces 4.7.1 USB-to-UART Bridge Interface There is a UART-to-USB bridge on the board. This is to simplify connection to a PC because serial ports are not so common any more, especially not on laptops. It is the controlling MCU’s UART that is connected to the USB channel.
  • Page 18: Usb Interface

    4.7.2 USB Interface The USB interface (J5 on schematic page 4) is currently only supported by the LPCXpresso LPC1343 and LPC176x boards. The controlling MCU must have an on-chip USB interface. The interface is very straight forward and consists of a mini-B USB connector, ESD protection, VBUS sense and DP pull-up resistor control.
  • Page 19: Debug

    SWD/JTAG interface. In this case there is no need to use J3. Note that in case J3 is used with an LPCXpresso board, the LPC-LINK side of the LPCXpresso board must be disconnected. Else there will be two drivers of the SWD/JTAG interface.
  • Page 20: Default Jumpers Positions

    LPCXpresso Motor Control Kit - User’s Guide Page 20 4.11 Default Jumpers Positions Figure 4 illustrates the default jumper positions as mounted when the board is delivered from Embedded Artists. Figure 4 – Default jumper positions Copyright 2011 © Embedded Artists AB...
  • Page 21: Getting Started

    Step 1: Mount LPCXpresso LPC1114 board Mount the LPCXpresso LPC1114 Board on the LPCXpresso Motor Control Board. Make sure the LPCXpresso board is mounted in the lower position (closest to the OLED). The upper position is for LPCXpresso LPC176x boards.
  • Page 22: Step 2: Bldc Motor Preparation

    LPCXpresso Motor Control Kit - User’s Guide Page 22 5.1.2 Step 2: BLDC Motor Preparation The BLDC motor shall be mounted in two screw connectors, see picture below. Note that the cables from the motor come in two groups. Cables shall NOT be mixed between the two groups. The group with five cables goes to the 5 pos connector and the group with 3 cables goes to the 8 pos connector.
  • Page 23: Step 3: Connect Power Supply

    LPCXpresso LPC1114 board. First make sure that the latest version of the LPCXpresso IDE is installed. The LPCXpresso LPC1114 board can be programmed standalone or inserted into the LPCXpresso Motor Control Board. If it is mounted on the latter, make sure that the external power supply is connected and supply 24V to the board.
  • Page 24 The next step is to select which processor to download to. Select LPC1114/301 from the list that is presented. Then press OK button. Note that this step is sometimes not needed because the LPCXpresso IDE can itself detect which processor it is connected to. Figure 10 –LPCXpresso IDE Target Selection...
  • Page 25 The next step is to browse to the file to download. Press the “Browse” button. Figure 11 – LPCXpresso IDE Program Flash Window Browse to the projects top directory and then “Debug”. In this subfolder there is either a file ending with *.axf or *.bin.
  • Page 26 LPCXpresso Motor Control Kit - User’s Guide Page 26 Figure 13 – LPCXpresso IDE Program Flashing in Progress Copyright 2011 © Embedded Artists AB...
  • Page 27: Installing Usb Driver

    2) Select “Binary Utility” 3) Select “Program Flash” Figure 14 – LPCXpresso IDE Binary Utility Unplug the USB cable to the LPCXpresso LPC1114 board and press the reset push-button. A startup message should be displayed on the OLED. Installing USB Driver The LPCXpresso Motor Control Board contains an USB-to-UART bridge chip (FT232R from FTDI) that connects a UART channel from the controlling MCU to a virtual COM port on the PC/laptop (via USB).
  • Page 28: Demo Application

    Page 28 Demo Application There is a demo application for the included LPCXpresso LPC1114 board. It is not pre-loaded so it has to be downloaded. See section 5.1.4 above for details how to download a new/updated demo application to the LPCXpresso LPC1114 board.
  • Page 29 Build/clean/debug the project from the Quickstart menu (Start here), see picture below. When debugging a project, make sure the LPCXpresso LPC1114 board is connected via USB to the PC because the application will be downloaded to the board via LPC-LINK (SWD/JTAG interface).
  • Page 30: Things To Note/Known Issues

    NXP LPC-family of microcontrollers. The kit has not been designed for end-use in products. The user of the kit must be aware of the current and voltages present. It is possible to damage the LPCXpresso Motor Control board, the BLDC motor and the power supply if improperly used.
  • Page 31: Screw Connectors

    LPCXpresso Motor Control Kit - User’s Guide Page 31 Secondly, R110 is missing. It is a 47Kohm 0603 resistor. It is found on the lower board edge in the middle, see picture below for location. This resistor is important to measure virtual ground correctly.
  • Page 32: Troubleshooting

    It is strongly advised to read through the list of tests and actions that can be done before contacting Embedded Artists. The different tests can help determine if there is a problem with the board, or not. For return policy, please read Embedded Artists’ General Terms & Conditions document.
  • Page 33: Download Demo Application To Lpcxpresso Board

    LPCXpresso LPC1114 board. Connect LPCXpresso Board The second step is to make sure that the LPCXpresso LPC1114 Board is working when connected to the LPCXpresso Motor Control Board. 1. Disconnect the power supply, wait 10 seconds until all voltage indicator LEDs are off. Mount the LPCXpresso LPC1114 Board on the LPCXpresso Motor Control Board.
  • Page 34: Power Electronics And Bldc Motor

    LPCXpresso Motor Control Kit - User’s Guide Page 34 test, be sure to not have anything connected in the USB connector on the LPCXpresso board (or anything connected to the SWD/JTAG interface connector). 4. Verify that the startup message is appearing on the OLED.
  • Page 35: Further Information

    ARMv6-M Architecture Reference Manual. Document identity: DDI 0419B http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0419b/index.html [8] Cortex-M0 Technical Reference Manual. Revision: r0p0 http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0432c/index.html [9] LPCXpresso IDE: NXP's low-cost development platform for LPC families, which is an Eclipse- based IDE. http://ics.nxp.com/lpcxpresso/ [10] LPC1000 Yahoo Group. A discussion forum dedicated entirely to the NXP LPC1xxx series of microcontrollers.

Table of Contents