<div dir="ltr">Kumar,<div> See STM32L475RG datasheet sections 3.24.2 and 3.24.4 to see which timers support the encoder mode. Here are some links to get you started: <a href="https://deepbluembedded.com/stm32-timer-encoder-mode-stm32-rotary-encoder-interfacing/">https://deepbluembedded.com/stm32-timer-encoder-mode-stm32-rotary-encoder-interfacing/</a> and<a href="https://www.st.com/resource/en/application_note/dm00042534-stm32-crossseries-timer-overview-stmicroelectronics.pdf"> https://www.st.com/resource/en/application_note/dm00042534-stm32-crossseries-timer-overview-stmicroelectronics.pdf</a> and <a href="https://www.st.com/content/ccc/resource/training/technical/product_training/group0/2f/ec/a2/2a/74/48/4c/67/STM32G4-WDG_TIMERS-General_Purpose_Timer_GPTIM/files/STM32G4-WDG_TIMERS-General_Purpose_Timer_GPTIM.pdf/jcr:content/translations/en.STM32G4-WDG_TIMERS-General_Purpose_Timer_GPTIM.pdf">https://www.st.com/content/ccc/resource/training/technical/product_training/group0/2f/ec/a2/2a/74/48/4c/67/STM32G4-WDG_TIMERS-General_Purpose_Timer_GPTIM/files/STM32G4-WDG_TIMERS-General_Purpose_Timer_GPTIM.pdf/jcr:content/translations/en.STM32G4-WDG_TIMERS-General_Purpose_Timer_GPTIM.pdf</a> .</div><div><br></div><div> There are several YouTube videos also. Use search terms: STM32, Timers, Quadrature Encoders, Encoder Mode. </div><div><br></div><div> STM32CUBEMX should be a good tool to help set up the timers. David Ackley and David Anderson most likely have example code that they may share.</div><div><br></div><div>Regards,</div><div>Doug P.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 25, 2021 at 9:59 AM Thalanayar Muthukumar via DPRGlist <<a href="mailto:dprglist@lists.dprg.org">dprglist@lists.dprg.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div id="gmail-m_8141513221460779293gmail-:2tf" aria-label="Message Body" role="textbox" aria-multiline="true" style="direction:ltr;min-height:85px"><div>Have any of you worked with CircuitPython (not Micropython) on any of the STM32 boards? The reason I ask is that for some of the peripheral boards like motor controllers from Adafruit, they are supported on CircuitPython and not MicroPython.</div><div><br></div><div>These (<a href="https://circuitpython.org/downloads?q=STM32" target="_blank">https://circuitpython.org/downloads?q=STM32</a>) are the STM32 boards supported by CircuitPython and <br>here (<a href="https://circuitpython.readthedocs.io/en/7.0.x/ports/stm/README.html" target="_blank">https://circuitpython.readthedocs.io/en/7.0.x/ports/stm/README.html</a>) is guidance on how to support new STM32 boards in CircuitPython.</div><div><br></div><div>During the weekend, I was able to get my NUCLEO board working with I2C OLED and BNO055, thanks to help from Jim Merkle and other folks from the Personal Robotics and Adafruit Discord Servers.</div><div><br></div><div>Regards.</div><div>- Kumar</div></div></div>
_______________________________________________<br>
DPRGlist mailing list<br>
<a href="mailto:DPRGlist@lists.dprg.org" target="_blank">DPRGlist@lists.dprg.org</a><br>
<a href="http://lists.dprg.org/listinfo.cgi/dprglist-dprg.org" rel="noreferrer" target="_blank">http://lists.dprg.org/listinfo.cgi/dprglist-dprg.org</a><br>
</blockquote></div>