October 17, 2018
The midterm assignment for Introduction to Physical Computing was to build a Halloween related project that utilized serial communication between an Arduino and a computer. I continued my ghosted phone fabrication project and coded a React app to send a serial signal to an Arduino Uno that would then send a digital signal to a transistor thereby activating a DC motor attached to the wooden phone.
The 1.2V DC motor for this project came from an electric razor I found in ITP’s junk shelf. Since I was upcycling razor components, I first tested a basic circuit with the DC motor by connecting it to a single AA battery (video). This confirmed the motor still worked when given an electrical current. Then I modified the Arduino Transistor Motor Control tutorial circuit into a simpler circuit that activated the DC motor directly from an Arduino digital pin (video). The final test was to build a simple webpage with an HTML button that wrote a serial signal to the Arduino using p5.serialport library (Arduino code, sketch.js code).
Once I had a working React application with a chat component, I sketched out the different message paths that all eventually led to being ghosted (i.e. “game over”).
The final steps were to add some UI polish to the React web application. Here are some attribution links for assets used:
And here’s a final video demo of the web application triggering the serialized ghosted event.
Some thoughts I had if I continue to iterate on this idea:
NYU ITP documentation blog.
Words are my own.