Jump to main content

##

# 2.5 MCLV 48V 300W SAMC21 DIM

## Setting Up the Hardware

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

Project Name | Description
--- | ---
qspin_pmsm_foc.X | MCLV-48V-300W SAMC21 Motor DIM Hurst Motor

### Setting Up MCLV-48V-300W Development Board

- Connect the Motor: Attach the 3-phase connections of the motor to the J4 header.
- Power the Board: Supply the board with 24V DC using the J1 or J3 (+, -) header.For added safety, it is recommended to use a current-limited power supply while testing this software demonstration on non-default hardware and motors.
- Insert the SAMC21 Motor Control Dual In-Line Module into the J8 interface header.

## Running the Application

1. Build and Program the application using its IDE
2. Press switch SW2 to start the motor
3. Vary potentiometer to change the speed of the motor
4. Press switch SW2 to stop the motor
5. Press switch SW1 to change the direction of the motor
6. Press switch SW2 again to start the motor
7. Monitor graphs on X2Cscope

Refer to the following tables for switch and LED details:

Switch | Description
--- | ---
Switch SW2 | To start or stop the motor
Switch SW1 | To change the direction of rotation. Direction toggle command is accepted only when motor is stationary.

LED D2 Status | Description
--- | ---
OFF | Motor spin direction is “positive”
ON | Motor spin direction is “negative”

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