2021-05-05 05:36 AM
Hi,
I"m starting new project with brushless motor and I would like to connect two encoders (Rotary and Linear) with 3 hall affects and current measurement.
I would like to check which ST controller "strong "enough for the application
following the parameters of the motor
According to above parameters I need 2 inputs for Rotary encoder at ~700kHz, 2 addition inputs for linear encoder and 3 PWM outputs of 100kHz.
I need to close PID for speed and position loopback with very high resolution, and run SPI communication to the main controller at 10Mb/s.
I have strict restrictions of the pcb size and I have to choose smallest controller.
I have two questions:
Thanks
Solved! Go to Solution.
2021-05-06 01:56 AM
Hi @Lkr.1 and welcome to the ST Community.
I suggest you take a look at our new High performance 3-phase motor controller with embedded STM32G4 MCU: STSPIN32G4
In the 'Tools & Software' tab you can find the dedicated demonstration boards.
The firmware for the board based on Field Oriented Control algorithm can be generate with the software STM32 Motor Control SDK, X-CUBE-MCSDK version 5.Y.0 (or greater).
I hope this post can help you; if so, consider to mark it as best answer by clicking the label "Select as Best".
2021-05-05 05:45 AM
>"I have to choose smallest controller"
smaller packaging i suppose you meant?
I would chose F4 because the last thing you want is run out of processing juice once the hardware has been designed.(you want to keep up with your PID rate and 10Krpm are a lot of rpm)
Maybe some bga packaging?
>How can I know which controller can support 4 encoder inputs (with counter for 700kHz encoder), 3 Halls and PWM of 100kHz?
You need timers for that,
one timer for pwm generation (probably advanced timer1)
The 700kHz encoder handling can be done in hardware with another timer working in input capture mode and some DMA action.
2021-05-06 01:56 AM
Hi @Lkr.1 and welcome to the ST Community.
I suggest you take a look at our new High performance 3-phase motor controller with embedded STM32G4 MCU: STSPIN32G4
In the 'Tools & Software' tab you can find the dedicated demonstration boards.
The firmware for the board based on Field Oriented Control algorithm can be generate with the software STM32 Motor Control SDK, X-CUBE-MCSDK version 5.Y.0 (or greater).
I hope this post can help you; if so, consider to mark it as best answer by clicking the label "Select as Best".
2021-05-06 02:42 AM
Hi,
Thanks for the answer.
I would like to test the STSPIN32G4. I"ll order EVSPIN32G4 evaluation board and update it with my motors.
2021-05-06 03:43 AM
Thanks
I"l check STM32G4 with input capture mode.