ps70 [dot] raphi [dot] website [slash] input devices

A Website Chronicling the Coursework of Raphi Halff for PS70: Intro to Digital Fabrication

Input Devices

Idea

For this assignment I focused on incorporating sensors I would likely use in my final project (interactive narrative). The story involves a letter sent to some kind of unfaithful lover. Contrary to our expectations, the lover does not cry upon receiving the letter, but gruffly tosses it into the trash. Here the reader has a choice: First, a basic homemade capacitative sensor to "embark" on the journey. Keep the envelope closed, nothing happens; open it, we begin. Second, after opening the letter and presumably reading its contents the reader can "cry" or not. Here each "right" decision simply moves the narrative along with a basic prompt sent to an LCD screen. The "wrong" action does nothing. Of course there are endless options to explore and this could be made much more complex.

Circuitry

The circuitry is very simple, as you can tell by this hideous drawing that helps no one:

I don't include here the wiring for the LCD, which is using a backpack to let it use SCL/SDA.

Programming

I essentially combined and modified the sample sketches for a capacitative sensor and the water quality sensor (KS0429 keyestudio TDS Meter V1.0). The readings for the capacitive sensor were somewhat imprecise in that they fluctuated even when there was no motion and never zeroed out. This, however was not important to me since I was aiming to use it to detect open or closed. This was easily done by setting a threshold of about 35 (out of 1023). In an open state the sensor readout was somehwere between 0 and 35. Closed, as you can see in the graph, the readout hovered somehwere above 100. The big jumps are the result of me briefly applying pressure to the envelope, fully closing the circuit.

For the TDS water quality sensor, I did the same thing, taking several measurements of tap water values against soapy water values (there's no salt in the lab). Tap water TDS value seems never to go above 330 ppm, but of course this depends on the tap water...

Download the arduino code here.

And please enjoy this demo!