Pcomp Lab: Analog Input

For this lab, we learned how to use an analog input with the Arduino to go precise, granular readings on inputs rather than the simple 0 or 1 of digital.  We start by building a circuit with variable analog resistors.  I used a pair of force-sensing resistors, which read how much pressure is being applied to them.  Here’s the assembled board:

IMG_1486

Once the circuit was assembled and powered, I could apply pressure to one of the sensors and the red LED would light up according to how hard I pressed.  Very cool:

IMG_1490

I went through some of the sketches in the lab, one of which allowed me to print a numerical reading of my analog sensor to the console, like so:

IMG_148090898

The numbers are totally granular, and respond smoothly to how hard I squeeze the sensor.  This could have endless applications, as this number could be translated to control absolutely anything based on any analog sensor reading.

Yea for analog input.

Categories: itp, lab, pcomp

Tagged as: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s