Getting Started with the DEVKIT-MOTORGD | NXP Semiconductors

Getting Started with the DEVKIT-MOTORGD

Last Modified: 2019-03-25 14:51:48Supports Motor Control Shield for DEVKIT

Contents of this document

  • 1

    Build the Setup
  • 2

    Get Software
  • 3

    Program the Base Board

1. Build the Setup

1.1 Get Started with DEVKIT-MOTORGD Motor Control Shield

The DEVKIT-MOTORGD is Arduino UNO compatible, as with its compatible base boards. The inner rows conform to the Arduino standard while the outer rows accommodate propriety NXP function pins. Let's take your DEVKIT-MOTORGD for a test drive! Follow the detailed actions listed below.

1.2 Configure Base Board to be Powered Externally

Driving a motor requires a higher input voltage than what a USB is capable of supplying. The base board will therefore need to be configured to power from an external power supply. On S32K144EVB-Q100, connect J107.1 to J107.2, like so.

You can do the same thing on DEVKIT-MPC5744P. Connect J13.1 to J13.2 and also apply a jumper to J39.

GS-MOTORGD-1.1-1

GS-MOTORGD

GS-MOTORGD-1.1-2

GS-MOTORGD

1.3 Plug in DEVKIT-MOTORGD

Plug in DEVKIT-MOTORGD Arduino-style into the base board. Make sure the pins match up.

GS-MOTORGD-1.2

GS-MOTORGD

1.4 Connect the Motor

Connect a 3-phase motor to DEVKIT-MOTORGD at J13. DEVKIT-MOTORGD supports BLDC (sensored and sensorless) and PMSM. Connect the phase terminals to what suits your application best. NXP sample code uses the Linux 45ZWN24-40 BLDC motor and connects Phase A to White, Phase B to Blue, and Phase C to Green.

GS-MOTORGD-1.3

GS-MOTORGD

If your motor has a hall encoder or position sensor, connect it to the terminal JP1 like so.

GS-MOTORGD-1.3-2

GS-MOTORGD

1.5 Connect the Motor (Alternative)

An alternative motor is the Nanotec DB41M024030-A . The motor ships with its wires like so:

DEKVIT-MOTORGD-1.3.2-1

DEKVIT-MOTORGD-1.3.2-1

The three thick wires are the phases (red, yellow, black) and the five slender wires are the hall sensor (red, black, white, green, blue). To run NXP sample code connect Phase A to Yellow, Phase B to Red, and Phase C to Black.

DEKVIT-MOTORGD-1.3.2-2

DEKVIT-MOTORGD-1.3.2-2

The Hall interface wires follow the same color coding as the Linux 45ZWN24-40. Connect the wires going down from the JP1 label as follows: red, black, white, green, blue, no wire (leave JP1.6 unconnected).

DEKVIT-MOTORGD-1.3.2-3

DEKVIT-MOTORGD-1.3.2-3

1.6 Power it Up

Now, turn on the power. Power the setup through the DEVKIT-MOTORGD. Connect your power to J7. DEVKIT-MOTORGD supports up to 24 V, but this example will use a simple 12 V supply. In any case, powering up will follow the same procedure.

GS-MOTORGD-1.4

GS-MOTORGD

2. Get Software

2.1 Jump Start Your Design

Download Quick Start Guide and sample software to kickstart your design.

Get DEVKIT-MOTORGD Quick Start Guide

The software below is for evaluation purposes only. Its purpose is to show how DEVKIT-MOTORGD supports easy prototyping. The setup steps described on this "Getting Started" page describe general steps that all projects using DEVKIT-MOTORGD would need to go through. Click on the button below to access the full setup instructions for NXP's sample software.

How to setup NXP software example

2.2 Install Your Toolchain

NXP offers a complimentary toolchain called S32 Design Studio (S32DS). The S32 Design Studio is an Eclipse-based IDE that offers comprehensive software writing and debugging capabilities. It supports multiple debuggers including GDB and Lauterbach.

Get S32 Design Studio IDE

NXP also offers the Model-Based Design Toolbox, which is a Simulink-based tool that lets you graphically build your application before generating code.

Get Model-Based Design Toolbox

Click on the buttons below for more information on the toolbox's capabilities with each platform.

Get S32K MBDT Information Get MPC5744P MBDT Information

2.3 Download FreeMASTER

FreeMASTER is a free-to-use debug monitor from NXP. Supports non-intrusive monitoring of variables on a running system. You can display multiple variables changing over time on an oscilloscope-like display or view the data in text form.

GS-MOTORGD-2.3

GS-MOTORGD-2.3

Get FreeMASTER

3. Program the Base Board

Learn how to create a new project in S32 Design Studio IDE for Power Architecture and the basics to create your own code by running an easy example code.

3.1 Get More Training

Both S32K144EVB-Q100 and DEVKIT-MPC5744P support OpenSDA. Plug in USB. Program a motor control program using S32 Design Studio or debug interface of your choice.

S32K144EVB-Q100 DEVKIT-MPC5744P

3.2 Run It

Power-cycle the setup and watch the motor spin.

If you installed NXP sample software following the supplemental tutorial in the previous step, the controls are as follows:

  1. Press SW1 to speed up
  2. Press SW2 to slow down/reverse

GS-MOTORGD-3.2

GS-MOTORGD-3.2

3.3 Control with FreeMASTER

Open the FreeMASTER projects attached with the NXP software. Setup board connection to FreeMASTER and let it run.