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!


Assignment#1. Blinking LED

Project Members: 
Seung Wan Hong

Blinking LED 

Description

After installing Arduino software and setting hardware, through LED and a register, I made blinking LED according to suggested electronic plan.

Components

LED(Blue)

220-Ohm Register(red-red-brown-gold strip) 

Arduino Code

/* Blinking LED
* ------------
*
* turns on and off a light emitting diode(LED) connected to a digital 
* pin, in intervals of 2 seconds. Ideally we use pin 13 on the Arduino
* board because it has a resistor attached to it, needing only an LED

*
* Created 1 June 2005
* copyleft 2005 DojoDave <http://www.0j0.org>
* http://arduino.berlios.de
*
* based on an orginal by H. Barragan for the Wiring i/o board
*/

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(1000);                  // waits for a second
  digitalWrite(ledPin, LOW);    // sets the LED off
  delay(1000);                  // waits for a second
}

 


AttachmentSize
Assign#1 SeungWan.JPG216.53 KB

Comments

feedback

seung wan,

please refer to my example report for the requirements. From your photo, i see you got the blinking LED to work though! congrats!

dave


Thanks, Dave

Seung Wan Hong

I edited my report according to your example, Thanks.


Powered by Drupal - Design by Artinet