This is my make-through for the week's assignment. Grab a cup of coffee!
I saw this game controller accidentally in my nephew so i decided to make a game controller like it .
but i went through more challenges :
the design which has curves which is not easy to be done from the flat wood by the laser cutter. how can I design it using fusion 360 and how can it be perfectly fabricated by the laser cutter?
Arduino Uno with Atmega328 microcontroller ( its brain ) which I used to use cannot easily communicate with computer by USB-b class connector . so how can we control and connect between pc & my game controller ?
wiring six push bottoms together
Let's see which one I solved and which one I couldn't :D
Top bottom
sketching a rectangle then I drew circle the mirrored it then I made an offset leaving 2 mm in the circles and continuing to the rectangle lines.
extruded then Project the tap and holes for the screws which made in the sides in the flat pattern then Extruded cut
then I copied the top body for the bottom body
2.sides
I needed to make a curve and it only happen by living hinge patterns but to know where can you create the pattern , I went to the sheet metal where I flanged the offset lines which made in the circular then automatically the bend lines were made and i started to draw the pattern between them.
*Pattern*
I draw colinear lines .
use dimensions and equal tools to make it with same dimensions and gaps
I wanted to bend the tap also so I had to make sure that it has pattern also, one line cut and the other doesn't. _look at the last picture_
I applied the rectangular pattern, choose Spacing the gap between my pattern was 1.8 so i made the distance 3.6 because I had two gaps
3.front & back
sketching a rectangle adding the T-slot then I extruded 3mm
assemble it with the Top which is the same as bottom
Project for Arduino USB
after assembling the side I found that i had to reverse the fits
4-mounting
here my hero was graced website which helped me to get STEP file for the components and assemble them in my design, so i easily knew and extruded cut circles for screws and push button and Arduino, also the USB sockets.
I didn't leave suitable distance between the sides and the edges of the bottom where I didn't find distance to put joints and T-slots. so i went through new sketch.
after sketching I wanted to Extrude . but it couldn't and i didn't know why since I saw that I didn't click to show profile first which was "sad short story"
I spent time trying to apply Parameter feature using this video but unfortunately it didn't work very well but i learnt and i will try it again. i found that i can make the living hinge without using parameter.
the sheet metal body can't turn into components and the body can't be assemble I solved it by extruding small part as new body then combining but while combining I made this small part as the target body so the sheet metal body and it helped me to turn it into components and easily assemble it.
after finishing the design and before i get the DXF file to fabricate the design became cut from the middle and i was shocked why? but i found that happened because i edited the main sketch & drew a center line without clicking construction line.
sketching all parts as DXF file
import them at Laserworkv6 software
moving them beside the origin point
deleting any extra lines
power 75 and the speed 15
opening the machine
choosing my origin point of the wood sheet in the laser cutter machine.
press file getting my file then it started to fabricate my project.
Problem: after fabricating the Top part doesn't fit the push bottom that's because i grab the wrong STEP of push bottom from Grabcad
Potential Solution: I brought this instead .
the material which i used to run the circuit was:
before I started to wire I mounted the components first.
first I searched on google about the differences between Arduino Uno and Arduino Leonardo. i find this lazy article and I found why do we use the Leonardo not UNO :
Arduino Leonardo supports a microcontroller (Atmega32u4) which has a built-in support for USB. It also has a USB communication port which helps you to directly run your sketches. Since Leo doesn’t require an additional microcontroller for communication, but UNO requires on
while wiring I had a problem which I never thought that may happen ,i had limited amount of push button and while testing two of them doesn't work . i didn't have enough time to buy.
potential solution:
i decided to open it and trying to know where is the problem ?
one of them the problem was that the knife of switch can't reach to close the circuit so I pushed it
second one was that it is closed very well so it was very rigid
but when I opened slightly , it got its flexibility
basically we need to connect the Arduino Leonardo with our laptop it's easily done by Keyboard.h library which we installed from Arduino app so that was the first step.
the most important thing to know here was keyboard modifiers _how can you tell your PC which bottom to press and when? _ from this link
I couldn't find the space modifiers but I saw it in Mina magdy documentation .
define function helped me a lot because I changed the pins more than one time
t
I forget to write 2 push bottoms here & this caused a disturbance while testing
here the starting of the loop in which i needed to press Up after pressing the upper push bottom
which means Keyboard.press (KEY_UP_ARROW)
While working on this projects i believed on only one this that failure trying again and Practicing are the only thing which help you learn so i tried to practice each tool more.
finally fusion360 became more friendly because I tried design the project more than one time. and happily turning this cardboard into smart game controller.
also the laser cutter machine.
i learnt more about kerf and how it can affect our dimensions .