Category Archives: Physical Computing
Graphing Analog Sensors
I am still a little bit confused about the proper code to use when you want Arduino to send ASCII vs. binary as well as when I want Processing to read ASCII vs. binary. The Arduino Serial.print library reference has become my best friend. This is a very useful program to keep around to [...]
Fun with Tone Output
Arduino Code:
/*
Theremin
Plays tones based on a sensor reading
uses Tone library by Brett Hagman
http://code.google.com/p/arduino-tone/
circuit:
* photoresistor from +5V to analog in 0
* photoresistor from analog pin 0 to ground
* 8-ohm speaker on digital pin 8
created 10 Sep 2009
by Tom Igoe
*/
#include
Tone noiseMaker; [...]
MTA Subway Ticket Machine
Assumptions:
- Press on-screen “Start” button to begin
- Follow on-screen instructions from this point forward
- Choose to refill or get new metrocard
- Choose fare type
- Choose payment method
- Insert payment method
- Select if receipt is desired
- Retrieve ticket and receipt
In the TYPICAL CONTEXT the user finds him- or herself in is one that causes ANXIETY. Usually [...]
PhysComp Final Sketchbook