[Dprglist] CircuitPython for NUCLEO STM32L476RG
David P. Anderson
davida at smu.edu
Wed Oct 27 09:06:25 PDT 2021
Kumar,
My encoder code was basically cloned from this example:
https://petoknm.wordpress.com/2015/01/05/rotary-encoder-and-stm32/
dpa
On 10/27/21 10:33 AM, Doug Paradis via DPRGlist wrote:
>
> */[EXTERNAL SENDER]/*
>
> Kumar,
> 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:
> https://deepbluembedded.com/stm32-timer-encoder-mode-stm32-rotary-encoder-interfacing/
> <https://deepbluembedded.com/stm32-timer-encoder-mode-stm32-rotary-encoder-interfacing/>
> and 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> and
> 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> .
>
> There are several YouTube videos also. Use search terms: STM32,
> Timers, Quadrature Encoders, Encoder Mode.
>
> 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.
>
> Regards,
> Doug P.
>
> On Mon, Oct 25, 2021 at 9:59 AM Thalanayar Muthukumar via DPRGlist
> <dprglist at lists.dprg.org <mailto:dprglist at lists.dprg.org>> wrote:
>
> 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.
>
> These (https://circuitpython.org/downloads?q=STM32
> <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>)
> are the STM32 boards supported by CircuitPython and
> here
> (https://circuitpython.readthedocs.io/en/7.0.x/ports/stm/README.html
> <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>)
> is guidance on how to support new STM32 boards in CircuitPython.
>
> 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.
>
> Regards.
> - Kumar
> _______________________________________________
> DPRGlist mailing list
> DPRGlist at lists.dprg.org <mailto:DPRGlist at lists.dprg.org>
> http://lists.dprg.org/listinfo.cgi/dprglist-dprg.org
> <http://lists.dprg.org/listinfo.cgi/dprglist-dprg.org>
>
>
> _______________________________________________
> DPRGlist mailing list
> DPRGlist at lists.dprg.org
> http://lists.dprg.org/listinfo.cgi/dprglist-dprg.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dprg.org/pipermail/dprglist-dprg.org/attachments/20211027/19244816/attachment.html>
More information about the DPRGlist
mailing list