Project tutorial
Make a Simple LED Circuit

Make a Simple LED Circuit © GPL3+

Make an LED turn on and/or blink.

  • 279,628 views
  • 17 comments
  • 57 respects

Components and supplies

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
}
LED Blink 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
  delay(1000); // Wait for 1000 milliseconds (1 second)
  digitalWrite(LED, LOW); // Turn the LED off
  delay(1000); // Wait for 1000 milliseconds (1 second)
}

Schematics

Diagram
Fritzing bb umhghz8o9v

Comments

Similar projects you might like

Simple Clock with LED Matrix

Project showcase by LAGSILVA

  • 13,309 views
  • 18 comments
  • 33 respects

LED Cube

Project tutorial by Praditha Alwis

  • 24,263 views
  • 2 comments
  • 31 respects

Bluetooth control led with lcd led status display real time.

Project tutorial by Youssef Sabaa

  • 41,093 views
  • 9 comments
  • 59 respects

LED Emergency Lights using WS2812 RGB LED Module

Project tutorial by bigboystoys13

  • 22,390 views
  • 10 comments
  • 42 respects

Arduino tutorial: LED Matrix red 32x8 256 Led

Project showcase by Bihari lifehacker

  • 6,981 views
  • 0 comments
  • 5 respects

A Simple Reflex Game

Project tutorial by rowan07

  • 6,388 views
  • 1 comment
  • 8 respects
Add projectSign up / Login