As computing becomes more ubiquitous in our objects, designers need to be more aware of how to design meaningful interactions into electronically enhanced objects. At the University of Washington, a class of junior Interaction Design majors is exploring this question. These pages chronicle their efforts.

Thursday, April 19, 2012

Reema + Jill: Sensor_Using a Potentiometer

We wanted to experiment with different sensors and controlling analog input. We experimented with using a potentiometer to control the rate at which the LED (that we connected) blinked. First, we connected our wires to the Arduino board. The first wire went from ground to one of the outer pins of the potentiometer. The second went from five volts to the other outer pin of the potentiometer. The third went from analog input zero to the middle pin of the potentiometer. We attached an LED as well, and connected it to the Arduino board at pin thirteen. After we put in our code, turning the knob of the potentiometer adjusted the rate at which the LED blinked. We then experimented with the sensorValue in the code, which is the variable that stores the value coming in from the sensor. See our code and images below.




No comments:

Post a Comment