Mini Breadboard:- https://amzn.to/3Ulqv3G Arduino UNO:- https://amzn.to/3mhamzG Jumper Wires:- https://amzn.to/3GvV1SW 220 Ohm Resistor:- https://amzn.to/3ZPIUXv Red, Yellow and Green LED:- https://amzn.to/3PPUbpF 9V Battery:- https://amzn.to/44mJ5Mu
Posts
Showing posts from June, 2023
Traffic Light Code
- Get link
- Other Apps
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmxId2-XSqPhgKaS4nUIH3fGqEmtzEAWYRQ6b2BWvXlRN-CN5pTbMK8h13UzVSm66Z13r5cWnl1obxqmD_39e4QqzYH3hKZHeF9vzbX_DurJT2KyURLBNbdjA19OiHWvZvg4RlcTPj44i_osqz3i1yfm3FGGWnYhtRpCu_QTiMgY-bZ70HI4tEIimkt9ey/s320/pngwing.com%20(5).png)
void setup() { pinMode(13,OUTPUT); pinMode(12,OUTPUT); pinMode(11,OUTPUT); } void loop() { digitalWrite(13,HIGH); delay(4000); digitalWrite(13,HIGH); delay(500); digitalWrite(13,LOW); delay(500); digitalWrite(13,HIGH); delay(500); digitalWrite(13,LOW); delay(500); digitalWrite(13,HIGH); delay(500); digitalWrite(13,LOW); delay(500); digitalWrite(11,HIGH); delay(4000); digitalWrite(11,HIGH); delay(500); digitalWrite(11,LOW); delay(500); digitalWrite(11,HIGH); delay(500); digitalWrite(11,LOW); delay(500); digitalWrite(11,HIGH); delay(500); digitalWrite(11,LOW); delay(500); digitalWrite(11,HIGH); delay(500); digitalWrite(11,LOW); digitalWrite(12,HIGH); delay(2000); digitalWrite(12,LOW); delay(100); }
Materials Required for mq2 gas sensor
- Get link
- Other Apps
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWHLlWuX-XI4OZb2N3y_R0DsE-4x7J9SM4SU6u_4majF-puXn2syow5yJxLd80h7P-QAoz-UUc19EQ4Dog_SZBOluVjSl64a1b8YdWYKidDaskH-HCTvSeJW4-vr1AMpAjilBlA9uHfHBa6aX1Nw_n28vXUHITStjbwlXlIHJ000ZRa55I3RsaR2vRpznG/w108-h108/amazon-icon-41528.jpeg)
Mini Breadboard:- https://amzn.to/3Ulqv3G Arduino UNO:- https://amzn.to/3mhamzG Jumper Wires:- https://amzn.to/3GvV1SW MQ-2 Gas Sensor:- https://amzn.to/3KHEkFt 5V Buzzer and 9V Battery:- https://amzn.to/3KkLNK9 Green-Red LED:- https://amzn.to/3nWWawe 220 Ohm Resistor:- https://amzn.to/3ZPIUXv Hookup Wire:- https://amzn.to/3nWXBuK
Arduino Code for mq2 sensor
- Get link
- Other Apps
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2ZxL_eJwIhKsOpivZ9wCo0zTjI_nzecx0pvMASUBE-gmBuJ3FvdqVKdwpayiRIEciw2mdiPMyIJXYo7uXgUm9fnY3hnWkIDrYAfwriUhPakB-VIEkQ9H_zvMoy6j-MvPcQUMpxVEDMHf6ov_sT3Fr2sraq31YYWVMTuQfjMGnyGaevFHxZoXLAldMqxQh/w130-h88/pngwing.com%20(5).png)
////////////////Written by "Simple Circuits"////////////////////// int Input = A0; int Buzzer = A1; int GreenLED = A2; int RedLED = A3; int value; int MAX = 600; void setup() { Serial.begin(9600); pinMode(Input ,INPUT); pinMode(RedLED ,OUTPUT); pinMode(GreenLED ,OUTPUT); pinMode(Buzzer ,OUTPUT); } void loop() { value = analogRead(A0); if (value >= MAX) { digitalWrite(GreenLED ,LOW); digitalWrite(RedLED ,HIGH); digitalWrite(Buzzer ,HIGH); delay(5000); digitalWrite(Buzzer ,LOW); delay(6000); } else { digitalWrite(RedLED ,LOW); digitalWrite(Buzzer ,LOW); digitalWrite(GreenLED ,HIGH); } }
mq2 gas sensor circuit diagram
- Get link
- Other Apps
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu3j2i7Zik9qRHlGPmZfwaperekHGT6w0OkBz1qJEruzltCGiaM68CushOMFEeUcimTucenuFFfnkJiW7RIsdEAOAR2k7kZ6GEfSsKiRVFQGq16Dj-XJ-HxbbmhrCIQnQnILrtco7r6Gf5HWH6ulOr9jw-xN36Ro0rRKVr66jyDkaIPy__5NCzxw17HQBq/w640-h434/Gas%20sensor%20diagram%20111.png)
Mini Breadboard:- https://amzn.to/3Ulqv3G Arduino UNO:- https://amzn.to/3mhamzG Jumper Wires:- https://amzn.to/3GvV1SW MQ-2 Gas Sensor:- https://amzn.to/3KHEkFt 5V Buzzer and 9V Battery:- https://amzn.to/3KkLNK9 Green-Red LED:- https://amzn.to/3nWWawe 220 Ohm Resistor:- https://amzn.to/3ZPIUXv Hookup Wire:- https://amzn.to/3nWXBuK