Board application setup PMSM

The board application setup for the 3-phase PMSM FOC example incorporates the following:

Hardware Component

Supplier Website

Part Number

Data Sheet

Hardware Component

Supplier Website

Part Number

Data Sheet

NXHX 90-MC development board*1)

Hilscher

7833.100

NXHX 90-MC

NXHX-DH adapter accessory board*1)

Hilscher

7924.100

NXHX-DH

ECl-42.20-K1-B00 with IQ-Encoder 

ebm-papst

932 4220 130

ECI-42.XX-K1

ECl-42.20-K1-B00 connection cable

ebm-papst

992 0160 200

Cable (15 Pins)

EC-i 30 Ø30 mm with Hall sensors*2)

Maxon

539477

EC-i 30 Ø30 mm

Encoder ENC 16 EASY, 1024 pulses*2)

Maxon

499361

ENC 16 EASY

+24V DC / 3A power supply unit

RIGOL

DP832A

DP800 Series

Table 1: Hardware components list with parts order number

Note 1: Please note that one NXHX-DH adapter is included in each NXHX 90-MC board delivery box.

Note 2: Alternative to the ECl-42.20-K1-B00 with IQ-Encoder.

As illustrated in Figure 1, the motor supply is at the same time the power supply for the NXHX 90-MC board. The integrated DC/DC converter of the 3-phase gate driver, with a wide voltage input range, generates the 3.3V single supply for the netX 90. Depending on the motor of choice, the power inverter is designed to enable a DC board supply for a 3-phase BLDC/PMSM of +12V, 24V or 36V.

Hilscher uses as reference in this particular case a 24V/2.5A servomotor from ebm-past, which serves as example for a specific PMSM with integrated digital hall sensors and optional quadrature encoder. The NXHX-DH adapter as depicted provides the power supply for integrated motor electronics and converts the position and speed feedback signals to 3.3V inputs for the netX 90.

Board_application_new.PNG

Figure 1: NXHX 90-MC board application with NXHX-DH adapter

 

The NXHX-DH adapter mirrors the connectors X901 (digital hall sensors), J3, J4 (quadrature encoder interface) and J7 (supply header) of the NXHX 90-MC board. Interconnect X901, J3, J4 and J7 of both boards by plugging the NXHX-DH adapter onto the NXHX 90-MC board. Interconnect the ECl-42.20-K1-B00 and the EC-i 30 Ø30 mm with the NXHX-DH adapter and the NXHX 90-MC board as follows:

Connector X1 NXHX-DH

Connector & Cable ECl-42.20-K1-B00 (Page 16)

Connector & Cable EC-i 30 Ø30 mm

Pin

Signal

Pin

Wire colour

Function

Pin AWG 26

Pin AWG 28

Wire colour

Function

1

HA

1

White

Hall signal

1

 

Yellow

Hall signal

2

A

8

Red

Encoder signal

 

 

 

 

3

HB

2

Brown

Hall signal

2

 

Brown

Hall signal

4

B

9

Black

Encoder signal

 

 

 

 

5

HC

3

Green

Hall signal

3

 

Grey

Hall signal

6

Z

10

Violet

Encoder signal

 

 

 

 

7

DA

 

 

 

 

6

Grey

Encoder signal

8

/DA

 

 

 

 

5

Grey

Encoder signal

9

DB

 

 

 

 

8

Grey

Encoder signal

10

/DB

 

 

 

 

7

Grey

Encoder signal

11

DZ

 

 

 

 

10

Grey

Encoder signal

12

/DZ

 

 

 

 

9

Grey

Encoder signal

13

GND_2

12

Red/Blue

Ground Encoder

 

3

Grey

Ground Encoder

14

GND

5

Gray

Ground Halls

4

 

Blue

Ground Halls

15

+3.3V

 

 

 

 

 

 

 

16

+5V

11

Gray/Pink

Power supply Encoder

 

2

Grey

Power supply Encoder

17

+12V

4

Yellow

Power supply Halls

5

 

Green

Power supply Halls

18

+24V

 

 

 

 

 

 

 

Table 2: Interconnection of the halls and encoder wires

 

Connector J5 NXHX 90-MC

Connector & Cable ECl-42.20-K1-B00 (Page 16)

Connector & Cable EC-i 30 Ø30 mm

Connector J5 NXHX 90-MC

Connector & Cable ECl-42.20-K1-B00 (Page 16)

Connector & Cable EC-i 30 Ø30 mm

Pin

Signal

Pin

Wire color

Function

Pin AWG 20

Wire color

Function

1

MOTA

A

Gray

U

1

Red

U

2

MOTB

B

Brown

V

2

Black

V

3

MOTC

C

Black

W

3

White

W

Table 3: Interconnection of the 3-phase PMSM winding wires

 

The netX 90 requires a hardware configuration, which is a binary file with the extension HWC that is stored on-chip and contains the user's pin assignment. This file is generated using the hardware configuration tool, which is integrated into the netX Studio CDT. Figure 2 shows the GUI of the hardware configuration tool with the configured pin assignment for the 3-phase PMSM FOC example with digital hall sensors and quadrature encoder (see Figure 1). The stored HWC file is processed by the internal ROM code and ensures that the pinout of the netX 90 is configured before any of the software is started.

Figure 2: Pin assignment for the 3-phase PMSM FOC example

 

The inner loop of the FOC requires the assignment of the MPWM pins for the three half bridges and the MADC pins for the three current shunt amplifiers. The configuration interface of the 3-phase gate driver is connected to SPI1_APP. PIO_APP12 is the chip select line for the SPI and PIO_APP8 is the enable signal for the DRV8323RThe outer loop of the FOC requires the assignment of the GPIO[0:2] pins for digital hall sensors and the MENC0 pins for the quadrature encoder. The 3-phase PMSM FOC example enables determining the rotor angular position in either way.

Unit

Ch0

Ch1

Ch2

Ch3

Ch4

Ch5

Ch6

Ch7

ADC0

SIN240_HC (X901)

ISENA (DRV8323R)

TSENS (INTERNAL)

VREF_ADC (INTERNAL)

-

-

-

-

ADC1

-

ISENB (DRV8323R)

VDDIO/2 (INTERNAL)

VREF_ADC (INTERNAL)

-

-

-

-

ADC2

SIN0_HA (X901)

AIM (X901)

POT (R33)

VSENA (J5)

VSENVM (J1)

-

NTC (R39)

-

ADC3

SIN120_HB (X901)

AI (X901)

ISENC (DRV8323R)

VSENB (J5)

-

VSENC (J5)

-

-

Table 4: MADC unit and channel matrix of the NXHX 90-MC board

 

During braking, electrical energy is may fed back into the DC-link through the self-induction of the motor. Without a power supply capable of regenerative feedback, the braking power can cause the DC-link voltage to increase. To prevent damage from overvoltage, it may be necessary to dissipate excess energy as heat, depending on the level of braking power. The brake chopper dissipates this excess energy via a resistor into heat if an adjustable voltage value is exceeded.

The adjustable voltage for the brake chopper is monitored using VSENVM. The brake chopper is not active by default in the source code because the voltage value depends on the power supply, motor, etc. If required, an external braking resistor must be connected to J6. The transistor is controlled by the mpwm_bc or mpwm_bc_s. The shadow register value is automatically adopted in the grid of the MPWM frequency for the current control.