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

Diode component (for making a matrix of switches) #349

Open
gmeader opened this issue Apr 27, 2022 · 5 comments
Open

Diode component (for making a matrix of switches) #349

gmeader opened this issue Apr 27, 2022 · 5 comments
Labels
enhancement New feature or request open for vote Vote at https://wokwi.com/features

Comments

@gmeader
Copy link

gmeader commented Apr 27, 2022

I'd like a diode component - needed to create a matrix (rows and columns) of pushbuttons, where more than one button can be active at the same time.

(I'm using the keypad matrix for now, but I need a different configuration - different numbers of switches placed in different locations.
I guess an alternative to implementing a diode would be to add a keypad (or more attributes to the current keypad) that is visually separable into individual switches with a configurable number of rows and columns driving the matrix.

Here's info about this use case:
(https://arduino.stackexchange.com/questions/66691/which-kind-of-diodes-i-should-use-in-buttons-keys-matrix-input-making-gaming-k

@gmeader gmeader added the enhancement New feature or request label Apr 27, 2022
@urish urish added the open for vote Vote at https://wokwi.com/features label Apr 27, 2022
@urish
Copy link
Contributor

urish commented Apr 27, 2022

Thanks! I opened this for voting.

As far as I can tell, the Keypad Matrix does not have any diodes, so you'd still need the diodes even if you used it.

@GModal
Copy link

GModal commented Dec 19, 2023

I've written a Digitech FS300 footswitch - to - pi pico MIDI controller, and a diode would be very helpful. The code works, but could use a little refinement.

The FS300 uses a stereo cable (tip-ring-gnd), two diodes and three foot switches...the logic separating three switches ->into-> two GPIO inputs cannot be simulated without the diodes.

@urish
Copy link
Contributor

urish commented Jan 2, 2024

Hi @Phetdanai, you keep adding comments that are not related to the topic of the issue. Can you please stop?

@campidelli
Copy link

That would be great!

I tried it with LEDs, which are essentially diodes, but it didn't work:

Not working (with LEDs) https://wokwi.com/projects/407280521016985601
Not working (with LEDs inverted) https://wokwi.com/projects/407280651790158849
Working (without LEDs) https://wokwi.com/projects/407281782665874433

I would like to scale this up to use a shit register together, like the following, but it doesn't work :(
https://wokwi.com/projects/407277725732051969

@drf5n
Copy link

drf5n commented Oct 8, 2024

That would be great!

I tried it with LEDs, which are essentially diodes, but it didn't work:

Not working (with LEDs) https://wokwi.com/projects/407280521016985601 Not working (with LEDs inverted) https://wokwi.com/projects/407280651790158849 Working (without LEDs) https://wokwi.com/projects/407281782665874433

I would like to scale this up to use a shit register together, like the following, but it doesn't work :( https://wokwi.com/projects/407277725732051969

Thanks for the demos.

Here's another, much larger non-working diode attempt which also doesn't work:

https://wokwi.com/projects/386828635161861121

Here's a working one built with custom chips:

https://wokwi.com/projects/410325174113969153 per https://discord.com/channels/787627282663211009/1289692132776476853/1289786828915740704

And another doing change-detection:

https://wokwi.com/projects/411181034370782209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request open for vote Vote at https://wokwi.com/features
Projects
None yet
Development

No branches or pull requests

6 participants
@urish @drf5n @campidelli @gmeader @GModal and others