Rebecca Riggs-Analog Sensing

This system uses the light sensor to detect how bright it is in the room. If it is bright in the room, it turns the red LED on. If it is dark in the room, it turns the yellow LED on. The threshold of brightness is determined by the potentiometer.

Arduino Sketch: <a title=”Arduino Sketch: analog_sensing” href=”http://code.arc.cmu.edu/~gregsaul/sketchDropBox/uploads/analog_sensing-1.pde” target=”_blank”>analog_sensing</a>

Advertisements

No comments yet

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

%d bloggers like this: