enesbcs / rpieasy

Easy MultiSensor device based on Raspberry PI
GNU General Public License v3.0
158 stars 33 forks source link

Feature Request. I2C rotary encoder support. #262

Closed Budman1758 closed 5 months ago

Budman1758 commented 1 year ago

I stumbled into these at Adafruit the other day and methinks it would be pretty awesome if these could have support. Would make for much simpler setups. Also ability to support many of them over only 2 GPIO.

https://www.adafruit.com/product/4991

enesbcs commented 1 year ago

It has python example, but as all of it relying on adafruit own libraries it has to be rewritten completely to be used in RPIEasy. Every rotary has an unique Attiny device integrated on it and all of them needs special cabling? Interesting approach.

Budman1758 commented 1 year ago

Pretty sure the cabling is just standard I2C, power and ground. They use that on a lot of their stuff.

enesbcs commented 1 year ago

Yep with a non-standard connector

Budman1758 commented 1 year ago

@enesbcs Would you like me to send you a device and a wiring connector? I have some on the way. Let me know.

enesbcs commented 10 months ago

I've ordered one just for curiosity from Eckstein, Europe.

This board even has not got a rotary encoder on it... LOL :D I hope a standard chinese EC12B will work with it.

enesbcs commented 9 months ago

@Budman1758 Actually 3GPIO needed, as INT pin is mandatory, but yes 8 I2C rotary encoder could be added. Works pretty fast, although i have tested it only one rotary. Support added at commit https://github.com/enesbcs/rpieasy/commit/1bbca1375f90db5f690510040d5d86f896ac1d78

enesbcs commented 9 months ago

Also found a cheaper i2c rotary, which is not made by Adafruit, ordered one of them also for testing: https://www.duppa.net/shop/i2c-encoder-mini/?v=35b5282113b8

enesbcs commented 5 months ago

Closed as implemented