peepo
November 24, 2025, 5:34pm
1
using simpleFOC shield
what are the wiring connections 10,5,6 I assume are for BLDC pwm connections, (but are 8 A0 & A2 needed?) for the inductance and phase resistance code from this page:
This code is not complete:
I’m not sure how useful it is for the general public, but I wrote some functions to measure gimbal resistance, inductance (both Q and D), and KV in SimpleFOC.
(My doubts about usefulness are related to needing current and position sensors for this, and if you have those, you typically don’t really need to know these motor parameters.)
I plan to do some feed forward control on the current loop, only using the PID for the last bit of error.
With my GBM2804-100T I’m consistently getting 6.3Ω, 2.…
This discussion was most unhelpful and assumes rather a lot:
The FOC algorithm code i use does not use inductance of the motor in any section of the code but i am observing smooth rotation of the motor. I am running in speed mode and closed loop. The position feedback is using digital hall sensors. Is it really required to use inductance parameter and in which section of the code?
Yeah, you need current sense (A0, A2) to be able to determine the inductance and phase resistance. Pin 8 is for the motor enable.