Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend rotary encoder to work with GPIO expanders #260

Closed
Budman1758 opened this issue Sep 17, 2022 · 2 comments
Closed

Extend rotary encoder to work with GPIO expanders #260

Budman1758 opened this issue Sep 17, 2022 · 2 comments
Labels
brainstorming Ideas for the future difficulty: medium Looks like it will take a while, but not impossible enhancement New feature or request Plugin related

Comments

@Budman1758
Copy link

Is it possible to expand the available GPIO to use to expander chips such as the MCP23017 or the PFC8474?

I have a unit that's going to be in my truck that needs a bunch of inputs. I need at least 4 rotary encoders and multiple other switches. Extending to other GPIO chips would go a long way to making this possible.

@enesbcs
Copy link
Owner

enesbcs commented Sep 18, 2022

In theory, i can modify Rotary plugin to read existing MCP/PCF plugin states, with Interrupt pin setted up and wired, using the implemented callbacks...

Although while i tested and imlemented Rotary python plugin on my Raspberry Pi, i see that the integrated GPIO access is a bit slow, this results sometimes rotary encoder reading errors, but it mostly works... GPIO access through I2C is much slower than Pi native GPIO access, so i doubt that it will ever work reliably. I guess it needs some testing and a lots of time also.

@enesbcs enesbcs added enhancement New feature or request difficulty: medium Looks like it will take a while, but not impossible brainstorming Ideas for the future Plugin related labels Sep 18, 2022
@enesbcs
Copy link
Owner

enesbcs commented Dec 25, 2023

Encodes definitely needs real-time GPIO access.

I2C encoders may be a viable option for a Raspberry Pi, it will be added sometime.
#262

@enesbcs enesbcs closed this as completed Dec 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
brainstorming Ideas for the future difficulty: medium Looks like it will take a while, but not impossible enhancement New feature or request Plugin related
Projects
None yet
Development

No branches or pull requests

2 participants