Final outcome
(I did those similar output prototypes before:)
used a transistor to control the time of on & off
used a transistor to control the time of on & off
Our objective for this assignment was to experiment with both digital and analog forms of communication using two slime formulations and p5.js.
Our first experiment measured the resistance of rice slime — created by Wes using rice, salt and water — as an input to inform a graphic element that Yibo coded in p5.js.
Our second experiment explored magnetic slime — created by Gretchen using psyllium, algae, sea salt, activated charcoal, iron filings, and water — as a switch in a digital circuit.
Solved: the serial port we see on the arduino ide is something in the arduino!
We can actually set the initial state of a read pin so that it won't float without a pullup/pulldown resistor.