Build Your Own Arcade Controls Forum
Main => Main Forum => Topic started by: DrakeTungsten on April 19, 2019, 11:07:52 am
-
I've seen cheap keyboard encoders dismissed in these forums, and I understand you get what you pay for. But I don't know in what way cheaping out hurts you. I'm building a music-playing dingus which will have only four buttons - pause, stop, next song, previous song. These buttons aren't going to get a lot of use, and certainly won't be used simultaneously like happens in gaming. Would I be OK using a cheap encoder for this purpose?
-
Would I be OK using a cheap encoder for this purpose?
Absolutely! A knockoff Arduino Pro Micro like the $5 - $9 ones on eBay (https://www.ebay.com/itm/Arduino-Pro-Micro-ATmega32U4-5V-16MHz-Replace-ATmega328-Pro-Mini-Leonardo-USB/222383274330?epid=1042391255&hash=item33c713795a:g:3CkAAOSwubRXMmnp:sc:USPSFirstClass!68124!US!-1) or Amazon (https://www.amazon.com/OSOYOO-ATmega32U4-arduino-Leonardo-ATmega328/dp/B012FOV17O/) will work just fine.
Use either a keyboard encoder sketch if you can do simple coding or a firmware like KADE miniArcade 2.0.
Scott
-
Thanks Scott.
As long as you're willing to give basic Arduino advice, I have a follow-up question. I've already got an Arduino NFC shield which is going into the dingus, which is what I'm using to select albums to play. My initial research makes it look like I should be able to stack another Arduino shield, like one of those encoders, on top of this shield. Is that something an electronics beginner should be able to tackle?
-
I've never worked with an NFC shield, so no idea how to modify the code so one Arduino will act as both a 4-input encoder and NFC reader. :dunno
- It should be possible for even a mildly-talented Code Monkey to do that -- too bad I've only evolved to the level of Code Paramecium. :lol
It would be a lot easier to have the NFC reader Arduino on one USB port and an encoder Arduino on another. (separate, not stacked)
As long as the music-playing software you're using is looking for keystrokes, the two Arduino approach should work the same as plugging two keyboards into a computer.
Scott
-
Thanks Scott.
As long as you're willing to give basic Arduino advice, I have a follow-up question. I've already got an Arduino NFC shield which is going into the dingus, which is what I'm using to select albums to play. My initial research makes it look like I should be able to stack another Arduino shield, like one of those encoders, on top of this shield. Is that something an electronics beginner should be able to tackle?
I've
I was in the planning stages of doing something very similar - except using RFID and a pi. Are you writing the player code yourself? Or using an existing project? I've been thinking of using this: https://github.com/MiczFlor/RPi-Jukebox-RFID
But would love options!
-
I wrote the player myself. I used the Bass library, which was easy enough to learn. I also found the Arduino fairly easy to code for. I'm usually one to complain about inadequate documentation, but still found both of these things relatively easy to just get done what I want without needing to hunt through too many sources for direction.
The NFC interface is one of three I'm using. It's purpose is, unsurprisingly, for starting an album when I'm not at my PC, or for a guest to easily play an album. When I'm already at the PC, though, I have a browser-based interface and a more command-like interface.
Thanks again to Scott. Sounds like I'll go for two discrete devices. I toyed with the idea of using NFC for the control functions as well (instead of buttons - something like a cube whose faces activate different functions when held to the NFC reader), but that seems more like using NFC just because you can, not because it's the best option.
-
Glad to assist. :cheers:
If you want to do something a bit different for the four buttons, how about some LED triangle or square/rectangle buttons with custom printed inserts?
- For previous song, a triangle button pointing left with a "<<" icon insert or a square/rectangle button with a "|<<" icon insert, etc.
If you don't have the depth behind the panel for LED buttons, perhaps some 24mm or 30mm Seimitsu PS-14-GN-C buttons?
- Wide variety of colors to choose from and they have a clear plunger cover to protect printed inserts.
Scott
-
I don't have the housing built yet, or even a design definitively decided on, so yeah, button choice (and encoder) is in my next step or two.