0% found this document useful (0 votes)
7 views2 pages

Led

The document outlines an experiment for interfacing an LED to blink every second. It includes the setup and loop functions in Arduino code to control the LEDs connected to pins 10, 11, 12, and 13. The experiment is conducted by a student named Shivamkumar Anand Dhurandhar in the SE Mechanical class for the academic year 2018-19.

Uploaded by

cisikij108
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Led

The document outlines an experiment for interfacing an LED to blink every second. It includes the setup and loop functions in Arduino code to control the LEDs connected to pins 10, 11, 12, and 13. The experiment is conducted by a student named Shivamkumar Anand Dhurandhar in the SE Mechanical class for the academic year 2018-19.

Uploaded by

cisikij108
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

------------------------------------------------------------------------------------------------------------------------------

Experiment No.1

Name of the Experiment : Interfacing of LED to blink after every 1 sec

Name of the Student : Shivamkumar Anand Dhurandhar Roll No:1


Batch :S1

Class :SE (Mechanical) (Div A) Academic Year :2018-19 (Sem II)


--------------------------------------------------------------------------------------------------------------------------------

void setup() {

// put your setup code here, to run once:

pinMode(10, OUTPUT); //initialize the pin 10 as an output

pinMode(11, OUTPUT); //initialize the pin 11 as an output

pinMode(12, OUTPUT); //initialize the pin 12 as an output

pinMode(13, OUTPUT); //initialize the pin 13 as an output

void loop() {

// put your main code here, to run repeatedly:

digitalWrite(10, HIGH); //write the state i.e.HIGH of LED on pin 10 (LED is ON)

delay(1000); //provide the delay og 1 sec

digitalWrite(11, HIGH);

delay(1000);

digitalWrite(12, HIGH);

delay(1000);

digitalWrite(13, HIGH);
delay(1000);

digitalWrite(10, LOW); //write the state i.e.LOW of LED on pin 10 (LED is OFF)

delay(1000); //provide the delay og 1 sec

digitalWrite(11, LOW);

delay(1000);

digitalWrite(12, LOW);

delay(1000);

digitalWrite(13, LOW);

delay(1000);

You might also like