Mechanical designs are all around us. The controller has 3 primary functions. It creates an ergonomic and fun interface to the game. It creates a mechanical interface to the buttons, switches and joysticks on a controller, and it protects the electronics with a plastic housing.
With modern manufacturing techniques, we can use the CAD files to create Code to machine the cases using a CNC Router as seen here:
In this activity you will build the case for your arduino to protect it and shrink the form factor of the electronics to build a handheld controller. Lastly you will use your CAD assembly to guide the design of a 3D printed case cover that allows the user to press the buttons while protecting the electronics.
Copy the engineering notebook template to your notebook and document your work as you go:
3.8.4 - Prototype Controller (ENET)
Now we will assemble the controller case. Follow along with the presentation to build the controller case:
Once you have built the case, wire the following circuit:
Now work through 3.2.8 again to verify your arduino communicates with Firmata and then trouble shoot your circuit using the Firmata Face Program.
Connect the arduino
Open Arduino IDE
Set the COM port
Upload Standard Firmata
Open Processing
Run Firmata Blink and verify Arduino->Computer communication
Run Firmata Face and and test the buttons on your new circuit
Run your own Firmata Game Code and verify your controller works!
Now that you have gotten your controller prototype working you can complete your CAD design to be able to print a top case to your controller. Review following overview video to develop your CAD design.
Once your CAD is complete, you can export a mesh file (.STL) and import it into Prusa Slicer.
Get help from your teacher to set up the print and make sure the first layer works correctly.
Then assemble your full case when the print is done and you are good to go!