Hello world! with Arduino Uno

Components

  • 1 Arduino Uno
  • 1 resistor (220 ohms)
  • 1 red LED
  • 1 breadboard
  • 1 USB cable
  • 2 small jumper wires
  • Laptop

Description

For this lab I used my brand new Arduino Uno board and a red LED. After having installed the arduino software, I tested the board by uploading one of the basic examples provided in the library of examples (i.e., “Blink”).

Finally, I changed the code to turn the LED on for 0.5 seconds and turn it off for 2 seconds. I uploaded the new code, and …. it worked! 🙂

Code

void setup() {
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH);
delay(500);
digitalWrite(13, LOW);
delay(2000);
}

Comment

I loved to help with this class!