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
Automatic Fan Controlled Using Temperature Sensor
Just Do Electronics
October 17, 2020
Video :-
Circuit Diagram :-
Code :-
//PRATEEK //WWW.PRATEEKS.IN #include
LiquidCrystal_I2C lcd(0x27, 20, 4); #include
SoftwareSerial mySerial(7,6); const int Buzzer=3; const int LED_GREEN=5; const int RELAY=4; const int up_key=8; const int down_key=7; int SetPoint=35; void setup(){ mySerial.begin(9600); Serial.begin(9600); pinMode(Buzzer,OUTPUT); pinMode(LED_GREEN,OUTPUT); pinMode(RELAY,OUTPUT); pinMode(up_key,INPUT); pinMode(down_key,INPUT); //Pull up for setpoint keys digitalWrite(up_key,HIGH); digitalWrite(down_key,HIGH); lcd.init(); lcd.backlight(); lcd.setCursor(2,0); lcd.print ("WELCOME TO "); lcd.setCursor(2,1); lcd.print ("JUSTDOELECTRONICS"); lcd.setCursor(6,2); lcd.print ("DESIGN By :-"); lcd.setCursor(6,3); lcd.print ("PRATEEK"); delay(3000); lcd.clear(); digitalWrite(LED_GREEN,HIGH); digitalWrite(Buzzer,LOW); digitalWrite(RELAY,LOW); delay(2000); } void loop(){ double Temperature = ((5.0/1024.0) * analogRead(A0)) * 100; lcd.setCursor(1,0); lcd.print("Temperature:"); lcd.print(Temperature); //Get user input for setpoints if(digitalRead(down_key)==LOW) { if(SetPoint>0) { SetPoint--; } } if(digitalRead(up_key)==LOW) { if(SetPoint<150) { SetPoint++; } } lcd.setCursor(2,1); lcd.print("Set Point:"); lcd.print(SetPoint); lcd.print("C "); if(Temperature < SetPoint) { digitalWrite(RELAY,LOW); digitalWrite(Buzzer,LOW); digitalWrite(LED_GREEN,HIGH); lcd.setCursor(1,2); lcd.print ("Exhaust fan :-OFF"); } else { digitalWrite(RELAY,HIGH); digitalWrite(LED_GREEN,LOW); digitalWrite(Buzzer,HIGH); lcd.setCursor(1,2); lcd.print ("Exhaust fan :- ON"); } delay(100); }
Contact Number
:-
+918830584864
0 Comments
Newer
Older
Build Your Own Gps Tracking System using Arduino
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
ESP32 Interfacing With LDR Sensor
How To Make RFID & Keypad Based Door Lock
GPS Tracker Using Nodemcu
ESP32 Interfacing Potentiometer
Smart Street Light Using Arduino
Esp32 Cam Based Face Unlock
IoT Weight Scale using Load Cell HX711 & ESP8266
Arduino ebook
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
0 Comments