Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
53 views

Iot Arduino Practical Questions

internet of things arduino uno

Uploaded by

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

Iot Arduino Practical Questions

internet of things arduino uno

Uploaded by

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

Youtube channel : New Ideas yt को Subscribe जरुर करे By Sahu Satyam | +91 7607418817

M4-R5. : iot Practical

© Copyright All Rights Reserved. New ideas yt & http://www.examjila.com


Youtube channel : New Ideas yt को Subscribe जरुर करे By Sahu Satyam | +91 7607418817

Class Link : Click Me

Store Link: Click Me

1. write a program in to interface on LED, buzzer and button with Arduino:


modify the program to make the buzzer to go on for 1 minute and led glow
for 45 seconds, whenever the button is pressed

int btnstate=0;
void setup() {
pinMode(2,INPUT); #BTN
pinMode(7,OUTPUT); #LED
pinMode(8,OUTPUT); #BUZZER
}

void loop() {
btnstate=digitalRead(2);
if(btnstate==HIGH){
digitalRead(8,HIGH);
delay(60000);
digitalRead(7,HIGH);
delay(45000);
}
else{
digitalRead(8,LOW);
digitalRead(7,LOW);
}
}

© Copyright All Rights Reserved. New ideas yt & http://www.examjila.com


Youtube channel : New Ideas yt को Subscribe जरुर करे By Sahu Satyam | +91 7607418817

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

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

© Copyright All Rights Reserved. New ideas yt & http://www.examjila.com

You might also like