tinymovr / Tinymovr

Compact brushless motor controller with FOC, integrated absolute encoder and CAN Bus.
https://tinymovr.com
GNU General Public License v3.0
229 stars 38 forks source link

Motor configurations being re written during calibration #315

Closed norsechurros closed 5 months ago

norsechurros commented 5 months ago

I have these maxon motors that i am trying to configure with the tinymovr R5.1 , but the values get rewritten during call bration. I have attached the datasheet with the highlighted values. I read a similar discussion with regards to a gimbal motor, but my motor is a high current motor that i intend to use on a grounded bot.

EN-21-306.pdf

The phase resistance error is thrown as a result of which the hall sensors onboard the motor are not being calibrated. I have tried applying a bunch of different values for the phase resistances and inductances as well as the calibration current ,none of which seem to work. However, whenever i do run the calibration command the motor seems to move and draw a little bit of current ending with a beep sound, but the tinymovr goes into an error state(errors: flags.PHASE_RESISTANCE_OUT_OF_RANGE ). How do i go about fixing this?

Screenshot from 2024-01-21 12-45-31

yconst commented 5 months ago

A resistance of 0.44Ohms should be accepted by Rx.x firmware, only M5.x firmware rejects resistances lower than 1.0Ohms. Can you post your tm1.hw_revision output?

norsechurros commented 5 months ago

yes sure

edit: i am using the tinymovr studio 1.6.3

image

yconst commented 5 months ago

Ok so this is an older fw version where the hardware revision attribute was not supported. I'd suggest upgrading to the latest firmware, the instructions can be found here: https://tinymovr.readthedocs.io/en/latest/upgrade/upgrade.html#upgrade-using-activeflashlight-and-uart