0% found this document useful (0 votes)
12 views

arduino assignment

Huuh

Uploaded by

Edryan Adlao
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

arduino assignment

Huuh

Uploaded by

Edryan Adlao
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

EDRYAN ADLAO

BSIT 3 BLK 2

Home Automation Using Arduino and Bluetooth Control


Arduino – Blinking LED

For me leds are good for making some great creation using arduino with led we can make Christmas
light or some emergency lights for our home this is the project I choose to take some research
because it may good to work on I see this code to guide me on how to use arduino using led and also
to add some function on this existing work

Components Required
You will need the following components −

 1 × Breadboard
 1 × Arduino Uno R3
 1 × LED
 1 × 330Ω Resistor
 2 × Jumper

/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
*/

// the setup function runs once when you press reset or power the board

void setup() { // initialize digital pin 13 as an output.


pinMode(2, OUTPUT);
}

// the loop function runs over and over again forever

void loop() {
digitalWrite(2, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(2, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://www.tutorialspoint.com/
arduino/
arduino_blinking_led.htm&ved=2ahUKEwj3yvrDqZWBAxVQzzgGHUWSBEwQFnoECA4QAQ&usg=AOvVaw3lSRYNax
Bq_jfOVgXQ8nx6

You might also like