Hey folks,
I’ve setup the B-G431B-ESC1 with an old EMAX RS2205 I’ve got lying around that should have plenty of power for my application. I feed it with 15V.
The motor has 14 magnets, and my understanding is this means it is a 7 pole pair variant.
I’ve ran through the setup guide and both the encoder as well as PWM “just work”.
But when I go to the third step and try some angle control, nothing works properly. The motor is jittery and very noisy, jerks around through calibration, and angle control isn’t working.
I’ve got two identical setups and they both exhibit the same behavior.
Any suggestions as to what could be the problem?
Code is here: /** * B-G431B-ESC1 position motion control example with encoder * */#in - Pastebin.com - I added a print into the loop to see if driving the motor would upset the I2C comms an I don’t get good angle data, but that wasn’t the case and the behavior is the same without.
Oh, and as a side note: there’s a STM32 arduino release 3.0.0 that does not work with SimpleFOC so I downgraded to 2.12.0. No idea if you can safeguard against this or fix the code base that it works in both versions.


