Home
About Us
Achievement
Feedback Form
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
Visitor Counter
Just Do Electronics
January 17, 2020
Visitor Counter
Components
Arduino UNO
Resisters
IR Sensor module
16x2 LCD display
Bread Board
Connecting Wires
Circuit Diagram :-
CODE :-
//PRATEEK //www.prateeks.in #include
LiquidCrystal lcd(13,12,11,10,9,8); #define in A0 #define out A5 //#define relay 2 int count=0; void IN() { count++; lcd.clear(); lcd.print("Person In Room:"); lcd.setCursor(0,1); lcd.print(count); delay(1000); } void OUT() { count--; lcd.clear(); lcd.print("Person In Room:"); lcd.setCursor(0,1); lcd.print(count); delay(1000); } void setup() { lcd.begin(16,2); lcd.print("Visitor Counter"); delay(2000); pinMode(in, INPUT); pinMode(out, INPUT); pinMode(relay, OUTPUT); lcd.clear(); lcd.print("Person In Room:"); lcd.setCursor(0,1); lcd.print(count); } void loop() { if(digitalRead(in)) IN(); if(digitalRead(out)) OUT(); if(count<=0) { lcd.clear(); digitalWrite(relay, LOW); lcd.clear(); lcd.print("Nobody In Room"); lcd.setCursor(0,1); lcd.print("Light Is Off"); delay(200); } else digitalWrite(relay, HIGH); }
0 Comments
Newer
Older
Arduino Gps And Gsm Based location Tracking System
Smart Trolley Using RFID And Arduino Nano
Ultrasonic Sensor as a Counter with Arduino
Smart Shopping Cart using RFID and NodeMCU
Build Your Own Gps Tracking System using Arduino
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
OTP Based Door Lock Using Arduino And SIM800L
GSM + GPS Based Vehicle Location Tracking System
Car Parking System Using Arduino
Make Fingerprint Door Lock | Arduino Project
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