How can i write a custom program with ST MC?
I got the MCSDK example working, but how can i go further?
Can i write custom code that controls the motor without Motor Pilot?
[STEVAL-SPIN3201 // maxon BLDC motor]
I got the MCSDK example working, but how can i go further?
Can i write custom code that controls the motor without Motor Pilot?
[STEVAL-SPIN3201 // maxon BLDC motor]
Hello @KToth.1
Yes you can !
The generated project contains source code that you are free to change.
All the Algorithm execution is done under interrupt, so the while loop in main.c file is the place where you should start.
All the library API are defined in mc_api.h
Do not hesitate to generate a potentiometer example for instance, and analyse the code.
The implementation of the potentiometer reading is done in a dedicated function called from main.c.
Just be aware that SPIN3201 is quite limited in RAM and Flash, so your applicative code must be pretty small.
Regards
Cedric
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.