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! You have the choice of watching a short setup video or following 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.2, like so.
You can do the same thing on DEVKIT-MPC5744P. Connect
J13.2 and also apply a jumper to
1.3 Plug in DEVKIT-MOTORGD
Plug in DEVKIT-MOTORGD Arduino-style into the base board. Make sure the pins match up.
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 Linix BLDC motor 45ZWN24-40 and connects White to Phase A, Blue to Phase B, and Green to Phase C.
If your motor has a hall encoder or position sensor, connect it to the terminal
JP1 like so.
1.5 Connect the Motor (Alternative)
An alternative motor is the
Nanotec DB41M024030-A . The motor ships with its wires like so:
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.
The Hall interface wies follow the same color coding as the Linix 45ZWN24-40. Connect the wires going down from the "
JP1" label as follows: Red, Black, White, Green, Blue, No wire (leave
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 24V, but this example will use a simple 12V supply. In any case, powering up will follow the same procedure.