<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Kumar,</p>
    <p>My encoder code was basically cloned from this example:<br>
    </p>
    <p><a class="moz-txt-link-freetext" href="https://petoknm.wordpress.com/2015/01/05/rotary-encoder-and-stm32/">https://petoknm.wordpress.com/2015/01/05/rotary-encoder-and-stm32/</a></p>
    <p>dpa</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 10/27/21 10:33 AM, Doug Paradis via
      DPRGlist wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAOdUW+Y6nvXqFiww8VOWcPp1DJvdh8Q-pFS1VAUDu+RaRmNs6A@mail.gmail.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p style="background-color: #f4eaa5;color: #000000
        ;margin:5px;padding: 2px;text-align: left !important;
        align-content: center; display: block; border: 1px solid
        #000000; font-size: large; font-family: sans-serif;"><strong><em
            style="font-size: 11px;"> [EXTERNAL SENDER]</em></strong></p>
      <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/"
            moz-do-not-send="true">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"
            moz-do-not-send="true"> 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"
            moz-do-not-send="true">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" moz-do-not-send="true">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://secure-web.cisco.com/1zGRxQj7lnUAF8FIMDnpNJtkEVIES2uGOECh8MUVTI1e_eSsuiW-gSWEqWZ3ZQrnFTMdtCBeOSbulG5EMhEZ5JGvEkbbN4IqLOnYByvtLWujnXJrKLmCZ1uMLrpxJGfeu7UZY-9hjdMJwEnHT2T_AfDQnN90hXOp_EeE51ukd6q6ZTCqBBEWLEKHInj-Egd6ViOrGG7wd6Tl15ssepftVu6axpi8U1Lm0D7jAfUC4lHuSwZPk85QYbOKZb_a0ni2M90Q9xts64xc9w46_cTF-Ifm7raO_5NWzM-fphX5cNhc/https%3A%2F%2Fcircuitpython.org%2Fdownloads%3Fq%3DSTM32"
                  target="_blank" moz-do-not-send="true">https://circuitpython.org/downloads?q=STM32</a>)
                are the STM32 boards supported by CircuitPython and <br>
                here (<a
href="https://secure-web.cisco.com/1E3_w710TGBDXrI8NrzhP6jll84149E0LlO1VNltkK8f3imUH1fRrgfMlVLnmBURFBumDYAgyIN5rsGkTvJKfNu4x_Riq9E7aj5GOD9-XGOD3oBWPVeLTPNOkuebyzTqxVIwTp_lZrUjjaE1eBmmcCV6krsSZtI2VJAM4tJhENTULto53CVfea6Nh9B1TodkotNOSScYBbANfh9mHg1wDxFpZ4Hm-xyhXsTgC3GyGTuHkceTb7SJRhpCpjTtzn-XC-EFabAbG597OWjVOyR9oEAWlklv-Xe3DeXn0rD0OlSc/https%3A%2F%2Fcircuitpython.readthedocs.io%2Fen%2F7.0.x%2Fports%2Fstm%2FREADME.html"
                  target="_blank" moz-do-not-send="true">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"
            moz-do-not-send="true">DPRGlist@lists.dprg.org</a><br>
          <a href="http://lists.dprg.org/listinfo.cgi/dprglist-dprg.org"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.dprg.org/listinfo.cgi/dprglist-dprg.org</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
DPRGlist mailing list
<a class="moz-txt-link-abbreviated" href="mailto:DPRGlist@lists.dprg.org">DPRGlist@lists.dprg.org</a>
<a class="moz-txt-link-freetext" href="http://lists.dprg.org/listinfo.cgi/dprglist-dprg.org">http://lists.dprg.org/listinfo.cgi/dprglist-dprg.org</a>
</pre>
    </blockquote>
  </body>
</html>