Project tutorial
Make a Simple LED Circuit

Make a Simple LED Circuit © GPL3+

Make an LED turn on and/or blink.

  • 151,813 views
  • 16 comments
  • 46 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
int 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
int 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
}

Schematics

Diagram
Fritzing bb umhghz8o9v

Comments

Similar projects you might like

Simple Clock with LED Matrix

Project tutorial by LAGSILVA

  • 7,279 views
  • 13 comments
  • 24 respects

LED Cube

Project tutorial by Praditha Alwis

  • 12,558 views
  • 0 comments
  • 19 respects

Bluetooth control led with lcd led status display real time.

Project tutorial by Youssef Sabaa

  • 28,510 views
  • 6 comments
  • 54 respects

LED Emergency Lights using WS2812 RGB LED Module

Project tutorial by bigboystoys13

  • 15,531 views
  • 7 comments
  • 34 respects

A Simple Reflex Game

Project tutorial by rowan07

  • 1,775 views
  • 0 comments
  • 6 respects

4x4x4 LED cube with Arduino Uno and 1sheeld

Project tutorial by Hassan Ibrahim

  • 35,855 views
  • 7 comments
  • 64 respects
Add projectSign up / Login