2.1 MCHV3 Development Board - Setup and Running the 'PMSM FOC using Encoder application PIC32MK MCF'

Setting Up the Hardware

The following table shows the target hardware for the application projects.

Setting Up MCHV3 Development Board

  • Mount the PIC32MK MCF Motor Control Plug In Module on U11 header.
  • Place the “External Opamp Configuration” Matrix board at J4.
  • Motor Connections:
    • Phase U - M1
    • Phase V - M2
    • Phase W - M3
  • Encoder Connections:
    • A+ : HA
    • B+ : HB
    • 5V : +5V
    • 0V : GND
  • Jumper Settings:
    • J11 - VAC ( Short Pin 3 - 4)
    • J12 - IA ( Short Pin 1 - 2)
    • J13 - IB ( Short Pin 1 - 2)
    • J14 - Fault_IP/IBUS ( Short Pin 1 - 2)
  • Power the board with (110V/220V) AC mains. For additional safety, it is recommended to use a current limited power supply while testing this software demonstration on a non-default hardware and motor.
  • Complete Setup

Running the Application

  1. Build and Program the application using its IDE
  2. Press switch PUSHBUTTON to start the motor
  3. Vary potentiometer to change the speed of the motor
  4. Press switch to stop the motor
  5. Monitor graphs on X2C Scope
Refer to the following tables for switch and LED details:
SwitchDescription
PUSHBUTTONTo start or stop the motor
LED D2 StatusDescription
OFFNo fault
ONFault is detected