Skip to end of banner
Go to start of banner

FOC QEI + Hall demo

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Current »

FOC example with the following predefined configuration:

  • Stall detection

  • QEI + Hall sensor

  • Hall sensor calibration

  • Speed range up to 9000 rpm

Follow the instructions on how to interconnect the servomotor:

Program following three binaries using the flasher tool:

The firmware files were built using the netX Studio CDT project FOC Example V1.0.0.1.zip


Press reset and change speed using the potentiometer after calibration is finished:

VID_20230713162950.mp4

As shown, connected to the NXHX 90-MC board is the motor EC-i 30 Ø30 mm with Hall sensors and ENC 16 EASY encoder from Maxon.

To change speed using the potentiometer, __USE_DEMO_POTENTIOMETER should be defined in wscript under Targets.

foc_config_defines = [
    "__FOC_CYCLE_TIME_MS        = 1",
    "__USE_DEMO_POTENTIOMETER   = 1",
    ]

hardware_config_MC_rev3_A.hwc has configured both MENC0 and MENC1, so no HWC configuration needs to be changed, if change testing motor from Maxon (using menc1) to ebm-papst (using menc0). Only the firmware on the application side (NAI file) should be changed accordingly!

Quadrature Decoder (MENC) Hardware Configuration:

  • No labels