enesbcs / rpieasy

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

Feature Request. I2C rotary encoder support. #262

Closed Budman1758 closed 7 months ago

Budman1758 commented 2 years 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 2 years 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 2 years ago

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

enesbcs commented 2 years ago

Yep with a non-standard connector

Budman1758 commented 2 years 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 12 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 11 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 11 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 7 months ago

Closed as implemented