Motor bouncing between coils (ESP32S3 + SimpleFOC Mini + BGM5010)

Hi there! I am new to SimpleFOC and at a loss. I tried so many combination, googled a lot but cannot find any post describing similar symptoms.

I’ve got an GBM5010 (021-150T) hooked up to an SimpleFOC Mini with an AS5600 encoder running over I2C to a ESP32 (FH4R2).

I tried to upload multiple code example (adjusted for the right pins and voltages) but the only movement I get from the motor is a slow movement between the a pair of coils instead of it turning 90 degrees at initialization.

What could be the problem here?

Hey @Hanjo_Claassen,

Did you try running the open-loop example?
Did you very that your sensor works well using the code from the examples?
You can see the codes and steps in the getting started page:

At the init the movement is actually very slow and the motor moves just a bit (one electrical angle) not really 90 degrees, maybe more like 5-10 degrees depending on the number of pole pairs that you have.

Hi @Antun_Skuric!

Yes I did run the example sketch for the magnetic I2C and that worked fine. I got an output of 2*PI for a full rotation with 2 decimal accuracy.

I also tried the open-loop example but this also had similar symptoms where tried to turn but then kept wiggling between the coils.

The 5-10 degrees sound more like what it is doing. I got 14 magnets so 7 pole pairs! However then I do not understand why the find pole pair sketch does not work. It always spits out a PP way too high.

First I thought it could be a accuracy issues on the sensor side but that does not explain why the open-loop sketch did not work.

So yeah, if the open loop does not move. Then you have either a driver issue, (ex.the driver does not output one phase correctly for example) or the microcontroller issue (ex. Microcontroller pins chosen do not output pwm correctly).

Did you try using some other pins?

Can you show us a picture of your setup or describe the connections you made?

Whooo, I GOT SOME MOVEMENT!!!

I started from zero and re-wired everything, making sure to use other pins. Now I got the open-loop example sketch to work!

It does make some kind of ticking noise when turning though. It seems to be linked with the speed of the motor. Is that normal?