Skip to main content
texgabry
Associate
July 17, 2013
Question

Additional analog inputs while using FOC library

  • July 17, 2013
  • 2 replies
  • 590 views
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
This topic has been closed for replies.

2 replies

Gigi
ST Employee
July 18, 2013
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
texgabryAuthor
Associate
July 18, 2013
Posted on July 18, 2013 at 11:46

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