Osu! Keyboard With Arduino Uno

14,921

23

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.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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.

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    17 Discussions

    None
    rakosi2

    3 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
    None
    YSYBrakosi2

    Reply 2 years 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

    None
    DevinC15

    1 year ago

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

    1 reply
    None
    CaffC

    1 year ago

    Where could I find the wiring schematic?

    1 reply
    None
    rakosi2CaffC

    Reply 1 year ago

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

    keyboard without rgb.PNG
    None
    rakosi2VocaloidFC

    Reply 1 year ago

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

    None
    DanielA510TayronL

    Answer 1 year ago

    yep. should be working fine .

    the ATmega32U4 supports the arduino keyboard library.

    None
    rakosi2Richuuu

    Reply 3 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.

    None
    cuttreetop

    3 years ago

    Try with a attyny85 chip.

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