Pin art boards allow users to press objects or parts of the body on one end and see a depth image of it emerge on the other side, and the computer game Portal allows players to seamlessly move objects or themselves between a pair of wormholes. Put these interactive concepts together, and you can create the illusion of a real working pair of portals, albeit with a pin art board halfway through them. On one end is a pin art board halfway submerged through one "portal" with push potentiometers behind each pin. On the other end is the "other half" of that pin art board, with linear actuators behind each pin to mirror the extent to which the corresponding pin on the other end is pushed out. This gives the illusion that it is the same pin art board, and that the portals are working just the way they do in the iconic computer game.
Thursday, September 29, 2022
Sunday, September 25, 2022
Arduino Distance Guessing Game
Goal
For this project, my goal was to make a simple game with the ultrasonic distance sensor. Specifically, one wherein players guess how far they need to place an object in front of the sensor, submitting their guess with a button and being told which side of the target they were on via a pair of LED's. When the player guesses correctly, the target changes and another round starts.
Setup
Fritzing Schematic
Code
Photos
Video Demo
Issues
Citations
Friday, September 9, 2022
Arduino Green/Red Blinker
Video
About
This Arduino setup has two LED's (one green on the left, one red on the right), a switch, and a button. The switch controls which LED is active (respective to left and right on the switch), and the button can be held down to make the active button blink.
I wanted to take what was done in class and build upon it. At first I wondered how I could get creative with just two inputs and two binary LED's, considering either LED basing their state on some discrete math operator of the two inputs (XOR, imply, etc.). I then recalled our previous exercise in blinking, and wondered if I could combine the two exercises.
Making blinking toggleable alongside switching the active LED would make the code need to be synchronous (unlike the delay() method in the Blink example) because the state of the switch would have to be read every update. Sure enough I was able to find a tutorial on writing such code, checking the time every update with mills() and keeping track of the last blink's timestamp.
Link to Code
Tutorials and Resources
Sing-Pong (Arduino/Unity project)
From the start, my goal was to create a voice-controlled game, of course within the limits of Arduino and its microphone component. Sing-P...
