Make an LED turn on and/or blink.

Make a Simple LED Circuit

COMPONENTS AND SUPPLIES

LED (generic)×1
Arduino UNO×1
Jumper wires (generic)×1
Resistor 220 ohm×1

ABOUT THIS PROJECT

Turn on and/or blink an LED

CODE

Simple CodeArduino

Copy and paste this code into your Arduino IDE or Web Editor

#define LED 13  // The pin the LED is connected to
void setup() {
  pinMode(LED, OUTPUT); // Declare the LED as an output
}

void loop() {
  digitalWrite(LED, HIGH); // Turn the LED on
}

SCHEMATICS

Diagram

DOWNLOAD

Fritzing bb umhghz8o9v