7/22/21 & 7/28/21
Final electronics project of the summer
Using Unity, I am making a pathogen making experience. The experience will be an educational experience teaching users what pathogens are, and how to prevent them. This system would be displayed within a young adult/children's museum setting within a human body exhibition. The experience will include a projection mapped table with four different arcade buttons. The buttons will allow the users to make choices and alter the experience.
The electronics portion of this project will incorporate four momentary switch arcade buttons connected to a Leonardo Arduino. The buttons will trigger events to happen within a Unity patch.
I referenced these videos:
Before using the arcade buttons I prototyped the system using a breadboard and tactile switches. I created a daisy chain using the blue wires, this connected all the ground connection to one ground pin on the Arduino.
I could not find a tutorial online teaching how to work with multiple buttons in the way I was using them specifically. with only four buttons having a different output. Most of the examples seemed to be more complicated than I needed. The code is very similar to the "one button setup" I used previously (7/12/21) only I have four buttons. I simplified the code from 7/12/21 and removed the "else variables" and the "old/new buttons variables" I ended up spending a couple hours adding and subtracting different elements until something worked. This code (shown below) was definitely the hardest/most time consuming part of this build. However, was a good opportunity to challenge myself and illustrate I can work without following tutorials.
Understanding the "(ButtonRead ==0)" was challenging. At first I used a "1" instead of a "0". This is because "1" = on and "0" = off but when the code reads "(ButtonRead ==1)" the code would continuously spit out numbers, not exactly sure why. I very much enjoyed working with this Arduino text editor because it was able t tell me why the code was not working most of the time.
Once I was able to make the small button system work I replaced the tactile switches with arcade buttons. I used spade connectors to connect the wires to the buttons. The wire setup is exactly the same. all the grounds are daisy chained together to one ground pin on the Arduino I din not have to use the pull up or dull down resistor with these buttons.
(bottom view)
(top view) ***The Almond milk box is just a prototype
Once I worked out the exact locations the buttons needed to be in, I replaced the Almond Milk box with a more polished looking foam core.
(bottom view)
(top view)
Picture of the full polished prototype system (the system is off). The buttons are connected to the Arduino Leonardo. The Leonardo is connected to the laptop. The laptop is running a Unity patch. The Unity patch is being project mapped onto the buttons one to one. The user of the system follows the instructions projected onto the foam board and presses the corresponding buttons to progress further into the experience.
(Pictures and videos of the system in action, below)









































