The Range-less ROBO (A Robot with No limit and Infinite Range)
In present time almost all the people are familiar with robots. Robots play a very important role in human life. Robots are a machine which reduces the human efforts in heavy works in industries, building etc. and makes life easy. We are here with our next robot that is a Range-less ROBO . Yes we call it a Range-less because the Transmitter and Receiver which operates this ROBO does have an infinite range of operation and can be operated from anywhere around this world. Now how do we have achieved that? Thinking about our Mobile Phones we know that we can call anyone who can be at anywhere around this world until there is a network existing for communication. So how if we install a mobile phone on the Robot and communicate with that Robot with another mobile phone using the calling function. We can achieve this thing by using the DTMF technology which already exist in our Mobile phone's Dial Pads. DTMF stands for Dual Tone Multiple Frequency. Ther...

Count is fluctuating between 1 and 0 initially.
ReplyDeleteyes, i also faced the same pblm
Delete
Delete#include
LiquidCrystal lcd(12,11,5,4,3,2);
#define in 8
#define out 9
#define relay 10
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);
}
Hey!
ReplyDeleteWhat is the total approximate cost of this project
I'm thinking of making it for my college
Maximum Rs. 1000 to Rs. 1500
DeleteWhich resistor is used
ReplyDeleteYes
Delete1k resistor
DeleteGood job bro
ReplyDeleteGood Job, thanks for sharing code
ReplyDeletethis is correct code
Delete#include
LiquidCrystal lcd(12,11,5,4,3,2);
#define in 8
#define out 9
#define relay 10
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);
}
ReplyDelete#include
LiquidCrystal lcd(12,11,5,4,3,2);
#define in 8
#define out 9
#define relay 10
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);
}
Bro here we are useing fan not light with relay and pin layout is also different
ReplyDeleteCode wrong hai ☺️ please help me
ReplyDelete