-
Notifications
You must be signed in to change notification settings - Fork 0
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
Can I use 3-to-8 demultiplexer to implement 20+8 layout with 24 pins? #1
Comments
Always great to see more old stuff being re-used - I hope your 122 restoration goes well!
Yes that's correct. I've not done much with multiplexers, which is why in favour of keeping the circuit simple I went with a PGA2040. That aside, I think a multiplexer on the 8 output pins should work as long as the pins can still remain floating when not in use. My understanding is that this would be the case with a CD4051BE, which would give 8 outputs for 4, letting the circuit use 24 pins and fit on the Pico. The other alternative I think would be an GPIO expander for some of the 20 input pins, something like a MCP23017, giving 16 inputs for 2. I think the CD4051BE would probably be the more elegant of the two solutions, letting the code still use |
@guruthree Thank you for your reply! I will keep you update 😄 |
Hey! Typing you from my Model M, using an Raspberry Pi Pico + your repo with some changes. Some words about my hardware implementation. |
Fantastic it's working! If the connectors go I believe you can get replacement FFC connectors from Te with part numbers 5-520315-8 and 7-520355-0. I looked into doing a PCB but ultimately decided to solder onto the back of the existing one myself. |
First of all, great project! I found an old model M 122-keys and I want to restore it 😄
As you mention in
README.md
, 26 GPIO pins are not enough for driving 20+8 pins.I looked at .cpp
MatrixScanner::scan()
and, as far as I understand, you set one column high and the other 7 discharged and floating.pico-model-m/MatrixScanner.cpp
Lines 77 to 89 in 6fefd26
Can I drive the 8 columns with 4 GPIO + multiplexer? 3 GPIO pins select one of 2^3=8 pins and 1 GPIO drives the selected column. What you think? Can I have your opinion? 😄
The text was updated successfully, but these errors were encountered: