wokwi-features icon indicating copy to clipboard operation
wokwi-features copied to clipboard

Diode component (for making a matrix of switches)

Open gmeader opened this issue 2 years ago • 4 comments

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 avatar Apr 27 '22 03:04 gmeader

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.

urish avatar Apr 27 '22 08:04 urish

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.

GModal avatar Dec 19 '23 21:12 GModal

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

urish avatar Jan 02 '24 06:01 urish

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

campidelli avatar Aug 26 '24 11:08 campidelli

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

drf5n avatar Oct 08 '24 12:10 drf5n