Go Down

Topic: Request code buttonbox (Read 229 times) previous topic - next topic

Kevinn1995

Mar 14, 2019, 08:49 pm Last Edit: Mar 14, 2019, 08:50 pm by Kevinn1995
Hello guys,
I have a project going on, making an Arduino Micro based button box. The box was completed 3 months ago, but I can't figure out how to code the thing properly. I tried with different premade sketches, mainly because I don't know anything about coding an arduino and don't want to go through the hassle of learning everything for just this one project as I don't have that much free time to start from zero. (Yeah you can call me lazy)
3 months later I'm beginning to think I made a mistake making the box with an arduino instead of a simpler arcade board or something.
I've come to a point where I'm willing to pay someone (depending on the price) to make me a sketch.
The main problem here is getting the toggle switches to work like they should. Sending one keystroke each time the switch changes state. So flip up is one keystroke, flip down is one keystroke.
I'll include the scematics I made. It's in paint so it's not perfect but should give you an idea how the layout is, how I wired everything and which buttons i used.
Kind regards


patduino

Hi Kevin,

I can't quite tell from the picture whether the switches are in a matrix row/column arrangement.  Is that how you built it?

Pat
There are 10 types of people in the world, those who understand binary, and those that don't.

wvmarle

Looks like a matrix indeed but the arrangement makes it very hard to really see how everything is wired. If it's a matrix it should be quite straightfoward to get to work. It does seem to be an incomplete matrix: some of wires are connected to three, others four, or even five diodes/switches.
Quality of answers is related to the quality of questions. Good questions will get good answers. Useless answers are a sign of a poor question.

Kevinn1995

#3
Mar 15, 2019, 01:49 pm Last Edit: Mar 15, 2019, 01:58 pm by Kevinn1995
It does look a bit like a mess tbh, but it's indeed wired in a matrix with 21 buttons, so a 5x5 with the last matrix only 1 button. The layout matches the box, so it's excact the same. I made the scematics so I could easily follow everything. Also I've wired a diode infront of each button to prevent ghosting when more buttons are active at the same time.

wvmarle

That should be pretty easy to read with the existing matrix libraries.
Quality of answers is related to the quality of questions. Good questions will get good answers. Useless answers are a sign of a poor question.

Go Up