Cigar Box Joystick
![IMG_0414.jpg](/proxy/?url=https://content.instructables.com/FFN/49ST/JPADITEU/FFN49STJPADITEU.jpg&filename=IMG_0414.jpg)
![IMG_0415.gif](/proxy/?url=https://content.instructables.com/F0Y/MXUY/JPADITEB/F0YMXUYJPADITEB.gif&filename=IMG_0415.gif)
My local library had a bunch of Cigar Boxes left over from a crafternoon. I had this idea for the next gamer night. Make some USB joysticks….
I had been playing with the usb_game12 code from raphnet/usb_game12 on gutbub
I forked it here for posterity.. https://github.com/rjkorn/usb_game12
We soon realized 6 buttons weren't enough so we added 2 more.
They worked out really well and even morphed in to a monster portable game box in my other instructable...
Putting It Together
![IMG_0417.jpg](/proxy/?url=https://content.instructables.com/FR7/XE9C/JPADITDD/FR7XE9CJPADITDD.jpg&filename=IMG_0417.jpg)
![IMG_2170.jpg](/proxy/?url=https://content.instructables.com/FS5/W3AX/JQQYRZBC/FS5W3AXJQQYRZBC.jpg&filename=IMG_2170.jpg)
![IMG_2169.jpg](/proxy/?url=https://content.instructables.com/FU4/OPG2/JQQYRZBI/FU4OPG2JQQYRZBI.jpg&filename=IMG_2169.jpg)
![IMG_2168.jpg](/proxy/?url=https://content.instructables.com/F0Y/5V6R/JQQYRZBM/F0Y5V6RJQQYRZBM.jpg&filename=IMG_2168.jpg)
![IMG_2167.jpg](/proxy/?url=https://content.instructables.com/F60/VIX5/JQQYRZBQ/F60VIX5JQQYRZBQ.jpg&filename=IMG_2167.jpg)
![IMG_2171.jpg](/proxy/?url=https://content.instructables.com/FC5/B1IL/JQQYRZB5/FC5B1ILJQQYRZB5.jpg&filename=IMG_2171.jpg)
![IMG_2172.jpg](/proxy/?url=https://content.instructables.com/F9D/Q1UV/JQQYRZB1/F9DQ1UVJQQYRZB1.jpg&filename=IMG_2172.jpg)
![IMG_2166.jpg](/proxy/?url=https://content.instructables.com/FI7/6IKL/JQQYRZAX/FI76IKLJQQYRZAX.jpg&filename=IMG_2166.jpg)
I used a clear joystick with color changing LED’s. It needs 12V to run the led's so I added a small boost converter to keep things USB powered.
I 3D printed a small housing to hold the usb port on the back.
A custom designed Atmega board with an Atmega8 provided the USB interface.
I made these proto boards to experiment with usb using the VUSB library
Not bad but my son keeps taking it to use with his retropi. I have to install a Pi in the bottom of the box and make it a complete game system….