Jump to main content

##

# 2.2 MCHV3 Development Board - Setup and Running the 'PMSM FOC using Encoder application PIC32MK MCM'

## Setting Up the Hardware

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

Project Name | Description
--- | ---
mchv3_pic32mk_mcm_pim.X | MCHV3 Development Board PIC32MK MCM Motor Plugin Module Leadshine EL5-M0400-1-24 Motor

### Setting Up MCHV3 Development Board

- Mount the PIC32MK MCM 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:

Switch | Description
--- | ---
PUSHBUTTON | To start or stop the motor

LED D2 Status | Description
--- | ---
OFF | No fault
ON | Fault is detected