RP2040 Feather and Adafruit I2C Stemma QT Rotary Encoder
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- hvrper000
- Posts: 3
- Joined: Fri Sep 16, 2022 7:39 pm
RP2040 Feather and Adafruit I2C Stemma QT Rotary Encoder
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 3 times
- adafruit_support_carter
- Posts: 29483
- Joined: Tue Nov 29, 2016 2:45 pm
Re: RP2040 Feather and Adafruit I2C Stemma QT Rotary Encoder
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:
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)
- hvrper000
- Posts: 3
- Joined: Fri Sep 16, 2022 7:39 pm
Re: RP2040 Feather and Adafruit I2C Stemma QT Rotary Encoder
That code works perfectly. Thank you for the help.
- hvrper000
- Posts: 3
- Joined: Fri Sep 16, 2022 7:39 pm
Re: RP2040 Feather and Adafruit I2C Stemma QT Rotary Encoder
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.
Please be positive and constructive with your questions and comments.