"Idea" ►"Imagination" ►"Science"►"Learn" ►"Play"
Our idea is to build a Game controller use it in a video game on PC, so we first make it from cardboard to see how it look like as a demo, then use 3D design software to make it more advanced then cut some wood sheet using CAD tool ( laser cutting Machin to cut the wood into the design that we made then mount the electronics and make some code and upload it to Arduino.
Step 1: Imagine a game controller without measuring the correct dimension.
Step 2: Throw your fancy onto the cardboard.
Step 3: Cut the cardboard.
Step 4: Mount the electronic devices on the cardboard.
Step 5: Find out that the thickness of the body is not large enough and its square sides are uncomfortable for the hand to handle
Problem: sides were so sharp.
Potential Solution: collecting more data.
Step 1: Measure the correct dimension of the electronics component for each side, using tools like the caliper tool to master every tinny dimension even the dimension of the holes for mounting the screws.
Step 2: Designing the case of the game controller using ( fusion 360 ) software, the design as shown in the images file take a lot of processes,
processes#1: Sketching first makes a rectangle using the dimension of Arduino Leonardo as the base that you will centralize I to design the sketch on it second after taking the measurements of the last of the electronics component sketch it in descent is not too big not too small, that allows the case to handle the electronic component and at the same time allow you to to handle the controller comfortably. figuring out that the carved sides were more comfortable to handle so I changed the sides to be carved smoothly; after finishing sketches make extrude to them to make bodies, then move them to be sure everything fits in the right place.
Step 3:prepare design for using a laser cutting machine; After making a rectangular sketch with 30cm, 50cm as the measurement of wood sheet that will be cutting the design on using laser cutting machine move the bodies to fit on it then make new sketch and project the bodies on it.
Step 4:projection problems; figuring out that I have to chose every point surrounding the carves to be projected ,simply the Wight dot means it connected and projected well ,[by the way delete the lines and the extra black dots after connecting the new dots and lines together to make it easy to your self]then save this sketch as DXF file type then import it to the Laser Work software .
Step 5:colecting the needed bodies, find this(L) tool useful to collect the needed bodies you can use any tool you want just be carful to don't broke the wood that you need.
Step 1: wandering about the type of file that that I can use to engrave, I think PNG type will be grate.
Step 2: downloading the Black and Wight image.
Step 3: use photoshop software to edit the image and convert it to PNG file.
Step 1: Asimpling all parts together: at first I have tied the electric component with screws using 3mm of screws width and tied it with some screw nuts.
Step 2: Soldering the wire, I have soldered the wire to the bottoms then connect them to the Arduino pins and to the breadboard .
Step 3: Upload the code from pc to Arduino Leonardo. the code down below ,define the character and pins.►►
delay(1000); for waiting 1 sec
Serial.println("Arrows"); //to print on serial screen.
Step 3: Testing.
Step 3: Have fun.
(void loop ) is condition for looping the code
Serial.begin(9600); to define the serial monitor
Keyboard.begin(); to define Keyboard
Mouse.begin(); to define Mouse
the code in the image upper below for define looping &
mouse x range of movement and ( if )condition to give the order when the mouse moves and when to click if the button was clicked on it.
the code in the image upper below for counting how many second have been based and while pressing the three keys and make the second character equal zero and vice versa to controlling the y axis or not .
the code in the image upper below for moving the y axis using the button pin (2)&(3) and counting how many second have been based and while pressing the three button (2)&(3)&(6) for make an changeable character for right click;
and show how many second passed on serial monitor.
the ( if )condition in the code in the image upper below for make right click works if there are two second have been passed or make the button press space button on keyboard if pressed for tow second on three buttons that connected to pins (4)&(5)&(6).
the code in the image upper below for make two character
to count on it how many second have been passed when it passed ( 7 )second change from ( Alpha ) witch tend to alpha pit buttons on keyboard (w),(s),(a)&(d) to (Arrow )mood;
and vice versa when pressing on two buttons (4)(5)for 7 second .
the code in the image upper below for giving order to press arrows on keyboard when it at (Arrow )mood.
the ( if )condition in the code in the image upper below for to give order to press the alpha pit buttons (w),(s)&(a),(d) when it at Alpha mood .
the ( else )condition in the code in the image upper below to release all the Keyboard & Mouse pressing and moving orders when nothing pressed .(no signal goes to Arduino).
Game it to learn it"
This project full with information.
I have learn how many soft wear code be useful together ,like you can make any thing with any thing
use your imagination what ever what
put the sensor at 180 degree for best result
you can take reading from the sensors as digital or analog reading BUT ( analog reading highly recommended ); BECAUSE the sensors have internal resistor that changes its resistance when sensor moves so its like potentiometer
Download what you want from the buttons down below