ZAIRobotics
Published © MIT

Arduino Mega Blinking LEDs

LEDs blinking on a breadboard using the Arduino Mega microcontroller.

BeginnerProtip30 minutes68
Arduino Mega Blinking LEDs

Things used in this project

Hardware components

Breadboard (generic)
Breadboard (generic)
×1
LED (generic)
LED (generic)
×1
Arduino Mega 2560
Arduino Mega 2560
×1
Through Hole Resistor, 20 ohm
Through Hole Resistor, 20 ohm
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematics

Code

arduino_blinking_led.ino

Arduino
const int ledPin = 2;

void setup() {
  // put your setup code here, to run once:
  pinMode(ledPin, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(ledPin, HIGH);
  delay(1000);
  digitalWrite(ledPin, LOW);
  delay(1000);
}

Credits

ZAIRobotics
2 projects • 1 follower
Learn about basic of electronics and ai robotics

Comments