cancel
Showing results for 
Search instead for 
Did you mean: 

Additional analog inputs while using FOC library

texgabry
Associate
Posted on July 17, 2013 at 12:54

Hi, I'm planing to use the FOC library (using v3.3) for a brushless motor.

The library takes care itself for the input for current (dual insulated current sensor), voltage, temperature, but it takes all the two ADC of the stm32f103 md chip.

What i the most correct way to make an application that samples also some other slow-changing analog input? Maybe a potentiometer for the speed of a fan, an input for the internal/external temperature...

Any help would be appreciated, thanks!!

#motor-control-foc-library
2 REPLIES 2
Gigi
Senior
Posted on July 18, 2013 at 09:11

Ciao Gabry

You can use the MC_RequestRegularConv, MC_GetRegularConv, MC_RegularConvState functions that has been implemented for this purpose.

Take a look at the STM32 PMSM FOC FW Library v3.3 help file present in the documentation folder in the section Modules->STM32_PMSM_MC_Application->MC Tasks->MC Tasks exported methods

Ciao

Gigi

texgabry
Associate
Posted on July 18, 2013 at 11:46

Thank you very much, this was exactly the hint I was looking for!