RP2040 Feather and Adafruit I2C Stemma QT Rotary Encoder

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
hvrper000
 
Posts: 3
Joined: Fri Sep 16, 2022 7:39 pm

RP2040 Feather and Adafruit I2C Stemma QT Rotary Encoder

Post by hvrper000 »

I have a I2C Stemma QT Rotary Encoder connected to the I2C port on the Feather RP2040 Pico. I am essentially using the sample code that is on the Adafruit I2C Rotary Encoder page and am having trouble with missed steps. In fact most of the steps get missed. For now I am just trying to print the step movement to the screen in Thonny but I cant get the steps to get picked up consistently. Does anyone have any ideas why this doesn't work consistently and how i can fix it? Thank you.
Attachments
code.py-rotary encoder.py
(1.9 KiB) Downloaded 1 time

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: RP2040 Feather and Adafruit I2C Stemma QT Rotary Encoder

Post by adafruit_support_carter »

Try the simpletest example and see if it behaves the same way:
https://github.com/adafruit/Adafruit_Ci ... pletest.py

Also, should be able to use the built in board.STEMMA_I2C() bus when setting up seesaw, ex:

Code: Select all

seesaw = seesaw.Seesaw(board.STEMMA_I2C(), 0x36)

User avatar
hvrper000
 
Posts: 3
Joined: Fri Sep 16, 2022 7:39 pm

Re: RP2040 Feather and Adafruit I2C Stemma QT Rotary Encoder

Post by hvrper000 »

That code works perfectly. Thank you for the help.

User avatar
hvrper000
 
Posts: 3
Joined: Fri Sep 16, 2022 7:39 pm

Re: RP2040 Feather and Adafruit I2C Stemma QT Rotary Encoder

Post by hvrper000 »

I spoke too soon. It worked at first and then the issue returned. I swapped out the rotary encoder and the new one worked perfectly. I went to pull the knob off the other rotary encoder before tossing it in the trash and the whole encoder pulled up. I did not realize that I had only pushed the pieces together and had not soldered them. Sorry for that. However I do appreciate the additional recommendation about the I2C port.

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”