User login

Powered by Drupal, an open source content management system

Theory and Practice of Tangible User Interfaces

LAB1: Making the LED Blink!

Submitted by eknight on Thu, 09/04/2008 - 12:02

Assignment: Introduction to Arduino and Physical Computing
Collaborators:
Assignment: Introduction to Arduino and Physical Computing Collaborators:
 
Author:
Erin Knight
 
Name
Making the LED Blink!!
 
Description
I used the Arduino board to make my LED blink! I changed the delay speeds to 100 so it was more disco light-esque. :) Note - I also used the orange wire as one of the ground wires since I didn't have another black wire.
 
Components Used

  • Light Emitting Diode (LED)
  • Resistor

The Code:
int ledPin = 13;
 
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop(){
digitalWrite(ledPin, HIGH);
delay(100);
digitalWrite(ledPin, LOW);
delay(100);
}