Let's show how we can make a game controller like this!
It is a game controller for computer based on electronic chip called arduino Leonardo to use the human device interface to act like keyboard or muse when connected with any computer.
By design this controller you can program it to suit your favorite game and change the functionality of every button.
I made this steps to make my cardboard model.
Step 1:
I imagined and put an initial design in my mind.
Step 2:
I drew a freehand sketch.
Step 3:
Search about products like your project.
Step 4:
I simplified the design and make it smooth.
Step 5:
Now it is time to make it using cardboard :)
Final cardboard model
After I designed the cardboard model, got the initial model, and determined the positive and negative points with my instructor Eng.Ahmed Ibrahim and colleagues. I started the CAD design considering the design updates.
Step 1: Put the initial values of height, width, and material thickness.
Step 2: Started with the base.
Step 3: Then made the wood sheet of the side.
Step 4: Then made the top of the controller.
Step 5: Combine between three parts.
Step 6: Made the slots and holes of the electronics components.
Step 7: Finally, I exported the sketches as DXF for the laser cuter.
Game Controller Desing
I used a Laser Cutter machine to fabricate my enclosure.
First, I imported the sketches of the three parts of the Lease Work program.
Then I selected all lines and prepare them to cut under power: 70 and speed: 15 for the Laser machine.
Now My file is ready to upload to the machine:
So I make downloaded the file and selected it from the machine's storage it was called "MoAMD7", then I selected TrackFrame to make sure all parts would print on the wood sheet.
then selected WorkTime Preview to calculate the total time to finish the cutting it was "7.31m".
Now we are sure all things are good let's start.
Note: Put all standard dimensions of your design on the CAD params.
It is simple from the "Modify" list you should click "Change parameters"
Now you can add user parameters for all design dimensions and can change or modifying later.
Components:
Note:
Tilt sensor KY020 isn't the best choice for this game controller because it is so sensitive to any vibration so I can't actually determine the direction of the game controller. (It works without efficacy.)
So I recommend for use an analog tilt sensor.
Hardware Components
Wiring Digram
Initial variables and pins mode
2. Buttons mode
First, I defined the variables of the sensors' pins and set the mode of every pin as an input_pullup mode.
And include the Keyboard library to use the human device interface to make arduino act as keyboard.
Then I made two modes using a switch while the button is HIGH inter the motion mode otherwise enter the buttons mode.
3. Motion mode
I got a new experience and new methodology to fabricate projects from zero.
I learned... :
Deal with Arduino Leonardo.
Deal with new sensors like KY020.
New CAD program (Fusion).
Using laser cutter machine.
Finally, I got new friends :).