Announcements

November 24, 2007
Reading for November 27th, are now posted. Enjoy!

October 2, 2007
To upload your thoughtless acts, create a new assignment page like any other lab. You'll see "Thoughtless Acts" listed as one of the assignment options.

May 24, 2008
This site has been archived and is no longer editable. Stay tuned for the next version, coming in the fall!


Blinking LED Arduino

Project Members: 
Wesley Willett

Blinking LED Breadboard Description

Set up a blink cycle for the Arduino's embedded LED.

Components Used

Arduino Diecmila Board (internal resistor and LED)

Arduino Code

/* Blinking LED
* ---------------------
* Based on Arduino sample code.
*/

int ledPin = 13; // LED connected to digital pin 13

void setup()
{
pinMode(ledPin, OUTPUT); // sets the digital pin as output
}

void loop()
{
digitalWrite(ledPin, HIGH); // sets the LED on
delay(5500); // waits for a 5.5 seconds
digitalWrite(ledPin, LOW); // sets the LED off
delay(1500); // waits for a 1.5 seconds
}

Item

Blinking LED on Arduino board

Blinking LED on Arduino boardBlinking LED on Arduino board


Comments

feedback

fantastic!

dave


Powered by Drupal - Design by Artinet