Making Furniture Interactive

September 11, 2007

Lampidy Lamp and Ruler Alert

Filed under: Exercise 2: Add a Switch,Jamin Hegeman — Jamin Hegeman @ 11:00 pm

Part 1

For part one—making my lamp respond—I used a photocell to detect light and had the light fade in if the threshold of light became too low. It would then fade in if the amount of light was higher than the threshold. Not rocket science, but I’m not a rocket scientist.

Lampidy Lamp Setup

I originally took code from the Arduino AnalogInput example, then added bits of the analog fading example, then wrote some of my own code to make sure the light stayed on.

Part 2

I went for simple on this one, and interrupted the current by connection on wire to a push tack and another wire to a second push tack. The connection is made when a metal ruler is place on the push tacks, which act as a holder. An LED lights up to indicate that the ruler is back in its place.

Ruler Switch

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

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

Create a free website or blog at WordPress.com.

%d bloggers like this: