Tutorial

Arduino Uno

Contact us at any time

Door No.510
Samastha jubilee memorial soudham
Mele-thampanoor
Thiruvananthapuram
Kerala-695001
Ph:+91 9633 11 80 80
Email:info@hexcodeplus.com

Enquire and suggestions

Whatsapp +91 9633 11 80 80

Arduino interfac with LED

Let's study how to interface LED (Light Emitting Diode) using Arduino program. If you’re new in arduino program, this is a great place to start.connect LED +ve leg (large leg)to arduino pin 8 and LED -ve leg to arduino GND pin (small leg)

Arduino connection



Arduino Program

const int LED = 8;

void setup()
{
  pinMode(LED, OUTPUT);
}

void loop()
{
  digitalWrite(LED, HIGH);
  delay(1000);
  digitalWrite(LED, LOW);
  delay(1000);
}

open arduino New page and upload this code


Follow us

Tutorials / Code