Posts

Sahil

 #include <Servo.h> // Pin definitions const int mq2Pin 2; // Digital pin for MQ-2 sensor const int buzzerPin = 3; // Digital pin for buzzer const int relayPin 4; // Digital pin for relay module const int servoPin 5; // Digital pin for servo motor Servo myservo; // Create servo object void setup() { pinMode (mq2Pin, INPUT); pinMode(buzzerPin, OUTPUT); pinMode(relayPin, OUTPUT); myservo.attach(servoPin); // Attaching the servo motor // Set initial states deactivateAlarm(); deactivateRelay(); myservo.write(8); // Start with servo at e degrees } void loop() { // Reading from MQ-2 sensor int gasValue digitalRead(mq2Pin); // If gas is detected if (gasValue == LOW) { activateAlarm(); activateRelay(); // Activate alarm // Activate relay module turnServoTo90(); // Turn on servo motor to 90 degrees } else { deactivateAlarm(); deactivateRelay(); resetServo(); } }void activateAlarm() { // Deactivate alarm //Deactivate relay module // Reset servo motor to a degrees digitalWrite(buzzerPin...

Html sop7 image mapping

 <!DOCTYPE html> <html><head><title>image map</title></head> <body bgcolor="pink"> <h1> An example of image Map</h1> <map name="imagemap"> <img src="Tulips.jpg" usemap="#imagemap" alt="Image ofTulip"> <area href="http://www.google.com" shape="rect" coords="0,0,93,65" alt="google site"/> <area href="http://www.gmail.com" alt="gmail site" shape="circle" coords="118,140,40" alt="great wall of china"/> <area href="http://www.unipune.ac.in" alt="unipune" shape="poly" coords="145,187,198,215,245,280,305"/> </map> </body></html>

Html multi source video 6b

 <!DOCTYPE html> <html><head><title>video tag</title></head> <body bgcolor="pink"> <center> <video controls width="200" height="200" autoplay> <source src="v.mp4" type="video/mp4"/> <source src="v.mp4" type="video/mp4"/> <source src="v3.mp4" type="video/mp4"/> <source src="v4.mp4" type="video/mp4"/> <source src="v5.mp4" type="video/mp4"/> <source src="v6.mp4" type="video/mp4"/> <source src="v7.mp4" type="video/mp4"/> Your Browser does not support Video Tag..... </video> <p> video sample</p> </cener> <hr color="yellow" size="7"> </body></html>

Html Single video 6a

 <!DOCTYPE html> <html><head><title>video tag</title> <body bgcolor="pink"> <center> <video src="v5.mp4" width="150" height="150" controls></video> <p> video sample</p> </cener> <hr color="yellow" size="7"> </body></html>

Html multi source audio 5b

 <!DOCTYPE html> <html><head><title>Audio tag</title> <body bgcolor="pink"> <p> Audio sample</p> <audio controls autoplay> <source src="Kalimba11.mp3" type="audio/mp3"/> <source src="Sleep Away.mp3" type="audio/mp3"/> <source src="Faded.mp3" type="audio/mp3"/> Your browser does not support Audio tag...………… </audio> <hr color="yellow" size="7"> </body></html>

Html Single audio 5a

 <!DOCTYPE html> <html><head><title>Audio tag</title> <body bgcolor="pink"> <p> Audio sample</p> <audio src="Kalimba.mp3" type="audio/mp3" controls autoplay> </audio> <hr color="yellow" size="7"> </body></html>

Html sop2 tourist places

 <!DOCTYPE html> <html><head> <style> header(background-color:skyblue;border:double;width:100%;height:60%) </style></head> <body> <header><center><h1> Tourist places</center><br><br><br><br><br><br><br><br></header> <section style="background-color: yellow;border:double;font-style:Italic;width:49%;float:left"><h1>City</ h1> <h2> <ol type="1"> <li>Pune</li> <li>banglore</li> <li>hyderabad</li> <li>Delhi</li> </ol></h2><br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br><br> </section> style="background-color:pink;border:double;font-style:oblique;flo...