Osu! Keyboard With Arduino Uno

12,748

22

17

About: I love to watch Anime and play Osu!

Hello. I wanted to get a Osu!Keyboard for the game Osu! for quite a while now. There are already keyboards for Osu! like thnikk's Osu! Keypads or Noodlefighter's nono Keyboard.

I have finally decided to get a keyboard but thnikk charges between $21 for his basic and $36 for his RGB version plus $2 for keycaps. The nono keyboard is $40 plus $12 shipping from the Osu! store.

I liked thnikk's keyboard for his simplistic design, and I figured out that he uses Teensy LC from his website for his RGB version witch is like an Arduino and even uses the same IDE as an Arduino.I have an Arduino Uno laying around that I am not using and decided to use it for this project.

Currently the code only turns on an LED when the button it pushed. I may put an RGB LED in it but for now this is fine.

Step 1: List of Material

Components

  1. Key Switches You can use any switches you want. I got 9 Gaterons for $5.99 but you can also use Cherry MX.
  2. Wire I am going to use breadboard male to female wire but you can use servo extenders or solder wires onto the switches. I received 40 pcs for $1.18 on ebay.
  3. KeyCaps I purchased the WASD Keycap Sampler for $5 plus $2.54 shipping.
  4. Plastic Box I found a plastic box laying around the house that I can use.
  5. Arduino I am using a Uno but if you use a Leonardo, Duo, or Teensy as they have built in USB support.
  6. LED (optional)

Tools

  1. Cutters
  2. Soldering Iron if you prefer it.

Total Cost = $14.71

Step 2: Programming an Arduino Uno

First we are going to upload the arduino sketch like we normally would. Feel free to modify to code to how you like it.

Step 3: Uploading Keyboard Firmware for AtMega 16u2

Follow the instructions from arduino.cc/en/Hacking/DFUProgramming8U2 to upload the Arduino-keyboard-0.3.hex from mitchtech.net/arduino-usb-hid-keyboard/ to the secondary microcontroller. Incase you want to reprogram your arduino again, you will need to either reflash the 16u2 with this firmware from Arduino or flash the AtMega 328p chip with an ISP like the usbasp.

Step 4: Build the Case

I took the box and cut two hole for buttons in the middle of the box. I made the holes smaller than the buttons and filed out the hole to make them fix perfectly.

I screwed the arduino onto the bottom of the box to hold it in place.

I soldered the jumper wire to the buttons because the female end does not fit the pins on the button.

Share

    Recommendations

    • Big and Small Contest

      Big and Small Contest
    • PCB Contest

      PCB Contest
    • Make it Glow Contest 2018

      Make it Glow Contest 2018

    17 Discussions

    0
    None
    rakosi2

    2 years ago

    I did put in RGB lighting with the WS2128B a long time ago with lighting affects. If people want it then I can make another instructables

    2 replies
    0
    None
    YSYBrakosi2

    Reply 1 year ago

    i am interested in the code and would maybe get these leds so could you maybe show me the code per direct message or make another post

    0
    None
    DevinC15

    4 months ago

    Just wondering if you could send me the hex files for the arduino. I cannot find them anywhere

    1 reply
    0
    None
    CaffC

    9 months ago

    Where could I find the wiring schematic?

    1 reply
    0
    None
    rakosi2CaffC

    Reply 6 months ago

    sorry for the late reply I did not see your comment.

    keyboard without rgb.PNG
    0
    None
    rakosi2VocaloidFC

    Reply 6 months ago

    The switches are connected between Ground and Input pins. I use the internal pullup to avoid needing resistors.

    0
    None
    DanielA510TayronL

    Answer 6 months ago

    yep. should be working fine .

    the ATmega32U4 supports the arduino keyboard library.

    0
    None
    rakosi2Richuuu

    Reply 2 years ago

    I would preferred to use a Teensy board as there is built in usb host support and is small but I do not own a small board and had the uno laying around doing nothing. I did not want to buy another board just for this project. I only have an arduino uno and a duo and the duo is too large and way overkill.

    0
    None
    cuttreetop

    3 years ago

    Try with a attyny85 chip.

    0
    None

    Great custom keyboard. I have done similar things to make foot switches for gaming.