Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
Arduino Fire Alarm System || With 16x2 Lcd
Just Do Electronics
July 26, 2020
Video :-
Circuit Diagram :-
Code :-
//Prateek //www.prateek.in #include
LiquidCrystal_I2C lcd(0x27, 16, 2); const int buzzerPin = 5; const int flame = 7; int Flame = HIGH; int redled = 4; int greenled = 6; void setup() { pinMode(buzzerPin, OUTPUT); pinMode(redled, OUTPUT); pinMode(greenled, OUTPUT); pinMode(flame, INPUT); lcd.init(); lcd.backlight(); lcd.clear(); lcd.begin(16,2); Serial.begin(9600); lcd.setCursor(0, 0); lcd.print("Welcome To"); lcd.setCursor(0, 1); lcd.print("Justdoelectronic"); delay(5000); } void loop() { lcd.clear(); lcd.setCursor(0, 0); lcd.print(" No Fire"); delay(5000); Flame = digitalRead(flame); if (Flame== LOW) { lcd.clear(); lcd.setCursor(0, 1); lcd.print(" Fire Alert"); delay(5000); digitalWrite(buzzerPin, HIGH); digitalWrite(redled, HIGH); digitalWrite(greenled, LOW); Serial.println("AT+CMGF=1"); delay(1000); } else { digitalWrite(buzzerPin, LOW); digitalWrite(greenled, HIGH); digitalWrite(redled, LOW); } }
1 Comments
Unknown
26 February 2021 at 17:23
where the ATD code sir
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer
Older
ESP32 Interfacing With LDR Sensor
How To Make RFID & Keypad Based Door Lock
Ultrasonic Sensor as a Counter with Arduino
IoT Based Patient Health Monitoring System Using Blynk App
How to Make Gas Leak Detector & Auto Exhaust Fan Using Arduino
MLX90614 Non-Contact Infrared Thermometer With Arduino
Measure CO2 Level in Air Using Arduino
Esp32 Cam Based Face Unlock
ESP32 Led Blink With Push Button
Smart Street Light Using Arduino
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
1 Comments
where the ATD code sir
ReplyDelete