12. HPM5300_RDC

12.1. Depend on SDK1.10.0

12.2. Overview

High performance motor control applications traditionally require a speed or position sensor for control loop feedback. The position feedback link has a critical impact on the performance of the system. Rotary transformers have become popular Angle sensors due to their advantages such as impact resistance, high temperature resistance, oil pollution resistance, high reliability, and long life.

At present, most of the existing rotary solutions in the market are discrete, with high BOM cost and large board area.

In order to simplify the design, HPM provides a functional rotary decode board integrating excitation op amp circuit, boost DC-DC chip, analog front end, rotary digital converter, rotary signal loss detection and multiple format data (position/speed) output interface.

12.3. hardware solution

HPM5300RDC board has the following functions: two ADC, one uart, one spi, two DAC, QEO output, SEI master/slave, LED display, etc.

HPM5300RDCschematic diagram: 《HPM5300_RDC_REVB》

12.3.1. software solution

The software solution is mainly composed of the following parts:

pwm generates the excitation signal, ADC samples it, and takes the envelope.

12.3.2. TEST

This scheme is divided into two parts:

(1) Hardware test: pwm modulated sinusoidal differential signal (EXC_P/EXC_N), rotary sinusoidal winding signal (OSIN/OCOS) (2) Functional test: Angle and speed observation

12.3.3. test instrument

(1)Motor drive platform

platform

(2)hHPM5300RDC

rdc

12.3.4. testing environment

(1)HPM_RDC decoding software: soft_rdc (2) ozone (3) Jlink (4) RDC board pin description

function

rotary plate location

note

EXC+

J4[5]

rotary exc signal

EXC-

J4[6]

rotary exc signal

COS+

J4[1]

rotary cos signal

COS-

J4[2]

rotary cos signal

SIN+

J4[3]

rotary sin signal

SIN-

J4[4]

rotary sin signal

PWR

J3[5]

24v,150mA

GND

J3[4]

GND

OEXC

R17

PWM

R16

sin

R16

12.3.5. creat project

project_build

12.3.6. hardware test

(1)static state:

  • connect rotary signal to RDC

  • open the hardware_rdc project

  • Connect the debugger to the JTAG interface

  • Run the program

  • measure key signals by oscilloscope:

pwm modulated sinusoidal differential signal:EXC_P(yellow),EXC_N(pink)

EXCPN

Sinusoidal differential signal after the amplifier output signal: EXC+,EXC-

EXC+_

OSIN(yellow),OCOS(pink)

OSIN_OCOS

Differential EXC± Transfer single end :OEXC(pink), osin(yellow)

OEXC

(2)In motion:

  • connect rotary signal to RDC

  • Create and open the soft_rdc project

  • Connect the debugger to the JTAG interface

  • Run the program

  • move the motor manually

  • measure key signals by oscilloscope:

OSIN(yellow),OCOS(pink)

overall_fig

detail_fig

(3)1MhzSVPWM

PWM

PWM_detail

(4)1MhzADC sample

adc_sample

(5)envelope curve sin/cos

sin_cos

12.4. theta/speed calculate

(1)vel10r/s

vel10

(2)vel20r/s

vel20

(3)vel30r/s

vel30

(4)vel40r/s

vel40

(5)vel50r/s

vel50

12.5. API

About software API: API doc .