Physical Computing – Week 2 (Analog in)

Analog in; tracking changes with variables

Beginning with a simple potentiometer connected to analog pin 0, I was able to variably dim an LED:


Next I used the photo sensor instead mapping the sensor value so that the LED would be at full brightness when the sensor was exposed to light and off in shadow.

Finally I decided to use the force sensor but mapped it incrementally to 3 different LED’s so that each would turn on in succession as I squeezed the sensor harder:

This entry was posted in Fall 2010, Physical Computing. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">