asli sevinc

telecommunicating

LAB 1: Digital in & out

November 22, 2008 By: Asli Category: Physical Computing

Last weekend, as I had planned, I went through most of the labs we did this semester. I think it was more helpful than I imagined. To revisit the codes and playing with different values were especially very good for me, because it reminded me of the things I can do with my project.

I’m not ashamed to say that I started from the very beginning, so here is LAB1: Digital in & out.

First, the video I recorded this weekend:


LAB 1: Digital in & out from Asli Sevinc on Vimeo.

Second: The documentation from my first PComp.

1st step: Set up the circuit on the arduino and breadboard using a digital switch and 2 LED lights.

Top view

Top view

2nd step: Program the arduino on the computer and connect it to the board. When the switch is off, the red LED light is turned on.

Arduino program

Arduino program

Switch off

Switch off

3rd step: When the switch is on, the yellow LED light is turned on.

Switch on

Switch on

GETTING CREATIVE: Pin Switch

For the creative section, I used a good old clothes-peg as a switch! I wrapped the two tips of the pin with aluminum foil to make it conductive and put the wires inside.

Cloth-pin as switch

Cloth-pin as switch

So when there is no clothes hanging, the switch is closed, so the red LED is turned on.

Red LED is on!

Red LED is on!

When you hang your cloth, the circuit is open and the yellow LED is turned on!

Yellow LED is on!

Yellow LED is on!

Close up yellow LED on

Close up yellow LED on

PS: I really have to improve my photography/documenting skills!

Leave a Reply