vedderb / bldc

The VESC motor control firmware
2.14k stars 1.34k forks source link

SinCos Encoder HZM Motor #537

Open ltwin8 opened 1 year ago

ltwin8 commented 1 year ago

Hello, I would like to drive an Heinzmann Motor with the VESC, the setup for FOC worked, it already Spins. However I would like to use the Encoder build into the motor, I am aware of its drawbacks.

HW used is the Trampa vesc6 MK3 (75A I think) Compiler used as in the readme (windows)

I know I need to include #define HW_HAS_SIN_COS_ENCODER as in PR #81, but where do I need to define it?

If possible, could one provide a compiled FW?

thank for the help

ltwin8 commented 1 year ago

The software (vesc-tool platinum) requests that i enable encoder in firmware if i try to let it check offsets and so on.

Settings are Encoder, SinCos Encoder.

connectes Sin and Cos to ADC1 and ADC2.