2.5 MCLV2 Development Board Setup for Position Control

Setting Up the Hardware

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

Setting Up MCLV2 Development Board

  • Mount the ATSAME54 Motor Control Plug In Module on U9 header.
  • Place the “External Opamp Configuration” Matrix board at J14.
  • Motor Connections:
    • Phase U - M1 (White colored wire)
    • Phase V - M2 (Black colored wire)
    • Phase W - M3 (Red colored wire)
  • Encoder Connections: Connect encoder wires as shown below
    • 1 : +5V (Red colored wire)
    • 2 : HA (White colored wire)
    • 3 : HB (Blue colored wire)
    • 8 : GND (Black colored wire)
  • Jumper Settings:
    • JP1 - Curr, JP2 - Curr, JP3 - Curr
    • In order to use RS232 port for X2CScope Communication JP4 - UART, JP5 - UART
    • In order to use USB port for X2CScope Communication JP4 - USB, JP5 - USB
  • Power the board with a 24V DC supply using J2 or BP1-BP2. 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 S2 to start the motor
  3. Vary potentiometer to change the reference rotor position of the motor
  4. Observe waveforms on X2CScope scope view
  5. Press the Switch S2 to stop the motor
Refer to the following tables for switch and LED details:
SwitchDescription
Switch S2To start or stop the motor.
LED D17 StatusDescription
OFFNo fault.
ONFault is detected.