Hi new member here. 48v 750w bldc design question

Hi everyone great community. I already learned so much reading docs.

I want to make myself a 48v 750 bldc it has sensors. I am leaning towards stm32g4. But i am more familiar with samd21. I just want to have 3 phase independent xurrent voltage measure. Probably not necessary but still a good challange.

So question is what do i get with g4 compared to sam21 ?

Hi @Oytun_Yilmaz , welcome to SimpleFOC!

A STM32G4 MCUs can be clocked up to 170MHz, and depending on the exact model, has up to 5 ADCs, OPAMPs and comparators, many timers, CORDIC for hardware trig functions and more. It’s not really a fair comparison to the SAMD21… it would be fairer to compare it to a SAMD51, but I think the G4 is still a bit better.

So I’d say SAMD21 is sufficient to run SimpleFOC but a G4 is excellent for SimpleFOC :wink:

Depending on how much you optimize I’d say your loopFOC frequency would be around 2-3kHz on the SAMD21 but more like 10kHz on the G4, and even more if you optimize things.

Thank you ! Everything I read points to g4 being the best choice, so I will go from there