Skip to main content
16 events
when toggle format what by license comment
S May 8, 2019 at 7:38 history suggested Kromster CC BY-SA 4.0
Removed unneeded exposition
May 8, 2019 at 6:27 review Suggested edits
S May 8, 2019 at 7:38
Jan 16, 2016 at 16:27 comment added frarugi87 @yakcyll Well, with 12 pins you can wire up to 36 buttons. And all of them can be simultaneously pushed (you just have to use a scanning frequency larger than the responsiveness you want). Anyway this is easily achieved since usually you want the buttons to respond within tens (even 50) of milliseconds and you can scan it at more than 10 times that frequency)
Jan 15, 2016 at 17:02 comment added yakcyll @frarugi87, if you consider analog pins, yes, that amounts to 18! However, when I first asked the question I wasn't sure if I can utilize analog pins for this purpose; I thought I'm limited to 12 digital pins available on an Uno, hence the question. I didn't think of wiring them into a matrix though; will have to find out how to do it to allow for a maximum number of simultaneously pressed buttons, but thanks a bunch for the suggestion!
Jan 15, 2016 at 10:51 history tweeted twitter.com/StackArduino/status/687950100409221120
Jan 15, 2016 at 10:22 comment added frarugi87 was that there are not enough digital input pins what? why? how? I mean... You have 20 pins. If 2 are used for the serial communication, you still have 18 pins. Connect them in a matrix, and you have 81 possible buttons. Aren't 81 buttons enough for your controller? ;)
Jan 14, 2016 at 22:43 comment added yakcyll @Nick, ah right, Leonardo does have native USB support and more digital input pins available! Since I already have an Uno to spare, I'll proceed with this one for the time being, but will certainly consider buying a Leo for future projects of similar kind. Thanks!
Jan 14, 2016 at 22:25 comment added Nick Gammon You can use V-USB (Virtual USB) instead, try searching for that.
Jan 14, 2016 at 22:23 comment added Nick Gammon In which case I endorse Ignacio's suggestion that you consider another Arduino, for example the Leonardo. I am using one to convert button presses into boilerplate for forums, described here.
Jan 14, 2016 at 22:14 vote accept yakcyll
Jan 14, 2016 at 22:13 comment added yakcyll @Nick, I'd like it to be a "universal" USB controller. I found the UnoJoy project that ought to cover the basics of USB communication in my case; I'll figure out if I can further modify it once I get it running. Also, thanks for moving the question over, I wasn't initially sure which domain it's considered to be specific to.
Jan 14, 2016 at 21:55 comment added Nick Gammon Is the game an Arduino game, or are you planning to control something else, like a PlayStation?
Jan 14, 2016 at 21:49 history migrated from electronics.stackexchange.com (revisions)
Jan 14, 2016 at 21:34 answer added Ignacio Vazquez-Abrams timeline score: 2
Jan 14, 2016 at 21:23 answer added Transistor timeline score: 2
Jan 14, 2016 at 21:07 history asked yakcyll CC BY-SA 3.0