Skip to main content
a_niedworok2
Associate II
May 25, 2013 9:00 AM UTC
Question

STM32 and rotary encoder from Alps

Posted on May 25, 2013 at 11:00

Hello,

i have problem with control of simple rotary encoder form Alps (or Piher | Bourns) on STM32.

Does anyone

have a

ready

solution.

Best regards

Andrew

#poorly-framed-question #stm32
    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    May 25, 2013 11:07 AM UTC
    Posted on May 25, 2013 at 13:07

    There are literally dozens of STM32 parts, do you have a specific series or part in mind?

    [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STM32F107%20Quadrature%20encoder%20example&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=48]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex%5Fmx%5Fstm32%2FSTM32F107%20Quadrature%20encoder%20example&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=48
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    a_niedworok2
    Associate II
    May 25, 2013 10:45 PM UTC
    Posted on May 26, 2013 at 00:45

    Hello,

    Thank you for answer. I make some tests. Now i have problem with vibration of encoder contacts. Timer count random statest. My encoder have mechanical contacts.

    Kind regards

    Andrzej Niedworok

    emalund
    Associate III
    May 26, 2013 1:23 PM UTC
    Posted on May 26, 2013 at 15:23

    My encoder have mechanical contacts.

     

    OUCH!!

    thta limits your speed to 'bounce time' of the contacts. can you live with this.

    also if you believe in the old wifes tale that you can read an encoder by a=clk, b=dir you are dead wrong.

    Erik