SMS ఆధారిత నీటి సరఫరా హెచ్చరిక వ్యవస్థ

సమస్యలను తొలగించడానికి మా పరికరాన్ని ప్రయత్నించండి





ఈ పోస్ట్‌లో మేము ఒక సర్క్యూట్‌ను నిర్మించబోతున్నాము, ఇది మీకు ప్రాంతం / ఇంటికి నీటి సరఫరా ప్రారంభించబడితే SMS ద్వారా వినియోగదారుకు తెలియజేస్తుంది. ఇది నీరు సరఫరా చేయటం మరియు ముగిసిన సమయం, నిమిషానికి సగటున లీటర్లో నీటి ప్రవాహ వేగం మరియు మీ ట్యాంకుకు లీటర్లలో పంపిణీ చేయబడిన సమయాన్ని చూపిస్తుంది.

పరిచయం

మనుషులుగా, నీరు లేకుండా భూమిపై జీవితం అసాధ్యం అని మనందరికీ తెలుసు మేము ఎక్కువ నీటిని ఉపయోగిస్తాము భూమిపై ఉన్న ఇతర జాతుల కంటే, మన మనుగడ కోసం మాత్రమే కాకుండా, మన విలాసవంతమైన అవసరాలను తీర్చడానికి కూడా వినియోగిస్తుంది.



మేము నీటిని తినడమే కాదు, నీటి వనరులను కూడా కలుషితం చేస్తాము. రాబోయే దశాబ్దాల్లో నీటి వినియోగం మరియు డిమాండ్ ఆకాశానికి ఎగబాకుతున్నాయి.

ప్రపంచ పౌరుడిగా, నీటిని ఆదా చేయడం మన కర్తవ్యం, కానీ ఒక వ్యక్తిగా మనం నీటిని ఆదా చేయడం ద్వారా మొత్తం ప్రపంచ దాహాన్ని తీర్చలేకపోవచ్చు, అయితే, మనకు కొంతకాలం ఆరోగ్యకరమైన నీరు ఉండవచ్చు కాబట్టి మన కుటుంబ దాహాన్ని ఖచ్చితంగా తీర్చవచ్చు. , మన చుట్టూ ఎవరూ భవిష్యత్తు కోసం నీటిని సేవ్ చేయకపోయినా.



భారతదేశం మరియు వేగంగా అభివృద్ధి చెందుతున్న ఇతర దేశాలలో నీటి సరఫరా పరిమితం మరియు అధిక డిమాండ్ ఉన్నందున, స్థానిక ప్రభుత్వం నుండి అధికారిక నోటిఫికేషన్ లేకుండా నీటి సరఫరా ప్రారంభమవుతుంది. ఈ ప్రాజెక్ట్ మాకు ఈ సమస్యను పరిష్కరిస్తుంది.

ఇప్పుడు ప్రాజెక్ట్ యొక్క సాంకేతిక వివరాలతో మునిగిపోదాం.

సర్క్యూట్:

సర్క్యూట్ a కలిగి ఉంటుంది నీటి ప్రవాహ సెన్సార్ YF-S201, ప్రాజెక్ట్ యొక్క మెదడు అయిన ఆర్డునో బోర్డు, a GSM మాడ్యూల్ (సిమ్ 800 లేదా సిమ్ 900) నీటి సరఫరాపై SMS హెచ్చరికలు మరియు నీటి సరఫరా ప్రారంభానికి మరియు నీటి సరఫరాను ముగించడానికి సరైన సమయాన్ని ట్రాక్ చేయడానికి రియల్ టైమ్ క్లాక్ మాడ్యూల్ కోసం.

ఆర్డునో బోర్డు మరియు జిఎస్ఎమ్ మాడ్యూల్‌కు శక్తినిచ్చేందుకు వోల్ట్ సరఫరా అవసరం, 9 వి ఎడాప్టర్లు లేదా ఇంట్లో బాగా నిర్మించిన, ట్రాన్స్‌ఫార్మర్ ఆధారిత (ఎల్‌ఎమ్ 7809) సరఫరా నుండి విద్యుత్ సరఫరాను అందించాలని సిఫార్సు చేయబడింది.

SMS ఆధారిత నీటి సరఫరా హెచ్చరిక సర్క్యూట్

Arduino మరియు GSM మాడ్యూల్ మధ్య కనెక్షన్ ఈ క్రింది విధంగా ఉంది:

Arduino TX నుండి RX GSM మాడ్యూల్

Arduino RX నుండి TX GSM మాడ్యూల్

Arduino GND నుండి GND GSM మాడ్యూల్

Arduino యొక్క 5V అవుట్పుట్ పిన్ నుండి GSM మాడ్యూల్ యొక్క 5V ఇన్పుట్ వరకు GSM మాడ్యూల్ను శక్తివంతం చేయడానికి ఎప్పుడూ ప్రయత్నించవద్దు.

ఆర్టీసీ లేదా రియల్ టైమ్ క్లాక్ మాడ్యూల్ నీటి రాక మరియు నీటి సరఫరాను ముగించే సమయాన్ని ట్రాక్ చేస్తుంది.

అది హార్డ్‌వేర్‌ను ముగించింది.

ఆర్టీసీలో సమయాన్ని సెట్ చేయడానికి మేము పూర్తి చేసిన హార్డ్‌వేర్ సెటప్‌తో టైమ్ సెట్టింగ్ ప్రోగ్రామ్‌ను ఆర్టీసీకి అప్‌లోడ్ చేయాలి. ఇది మీ కంప్యూటర్‌లోని సమయాన్ని RTC కి సమకాలీకరిస్తుంది.

RTC లైబ్రరీ ఫైల్‌ను డౌన్‌లోడ్ చేయండి: github.com/PaulStoffregen/DS1307RTC

RTC లో సమయాన్ని సెట్ చేసే కార్యక్రమం:

//-----------------------------------------------------------//
#include
#include
#include
int P = A3 //Assign power pins for RTC
int N = A2
const char *monthName[12] = {
'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
}
tmElements_t tm
void setup() {
pinMode(P, OUTPUT)
pinMode(N, OUTPUT)
digitalWrite(P, HIGH)
digitalWrite(N, LOW)
bool parse = false
bool config = false
// get the date and time the compiler was run
if (getDate(__DATE__) && getTime(__TIME__)) {
parse = true
// and configure the RTC with this info
if (RTC.write(tm)) {
config = true
}
}
Serial.begin(9600)
while (!Serial) // wait for Arduino Serial Monitor
delay(200)
if (parse && config) {
Serial.print('DS1307 configured Time=')
Serial.print(__TIME__)
Serial.print(', Date=')
Serial.println(__DATE__)
} else if (parse) {
Serial.println('DS1307 Communication Error :-{')
Serial.println('Please check your circuitry')
} else {
Serial.print('Could not parse info from the compiler, Time='')
Serial.print(__TIME__)
Serial.print('', Date='')
Serial.print(__DATE__)
Serial.println(''')
}
}
void loop() {
}
bool getTime(const char *str)
{
int Hour, Min, Sec
if (sscanf(str, '%d:%d:%d', &Hour, &Min, &Sec) != 3) return false
tm.Hour = Hour
tm.Minute = Min
tm.Second = Sec
return true
}
bool getDate(const char *str)
{
char Month[12]
int Day, Year
uint8_t monthIndex
if (sscanf(str, '%s %d %d', Month, &Day, &Year) != 3) return false
for (monthIndex = 0 monthIndex <12 monthIndex++) {
if (strcmp(Month, monthName[monthIndex]) == 0) break
}
if (monthIndex >= 12) return false
tm.Day = Day
tm.Month = monthIndex + 1
tm.Year = CalendarYrToTm(Year)
return true
}
//-----------------------------------------------------------//

Completed పూర్తి చేసిన హార్డ్‌వేర్‌తో పై కోడ్‌ను అప్‌లోడ్ చేయండి.

Mon సీరియల్ మానిటర్‌ను తెరవండి మరియు సమయం సెట్ చేయబడిందని ఇది చూపిస్తుంది.

· ఇప్పుడు మీరు తదుపరి దశకు వెళ్ళడానికి సిద్ధంగా ఉన్నారు.

మీరు విజయవంతంగా RTC మాడ్యూల్‌కు సమయాన్ని సెట్ చేసారు.

ఇప్పుడు, SMS ద్వారా మాకు తెలియజేసే ప్రధాన ప్రోగ్రామ్‌ను అప్‌లోడ్ చేద్దాం.

ప్రధాన కార్యక్రమం:

//-----Program Developed by R.Girish-----//
#include
#include
#include
int X
int Y
int sec = 50
int t = 0
int i = 0
int check = 1
int chk = 0
int P = A3
int N = A2
int tim = 0
float Time = 0
float frequency = 0
float waterFlow = 0
float total = 0
float LS = 0
float average = 0
const int input = A0
const int test = 9
void setup()
{
Serial.begin(9600)
pinMode(input, INPUT)
pinMode(test, OUTPUT)
analogWrite(test, 100)
pinMode(P, OUTPUT)
pinMode(N, OUTPUT)
digitalWrite(P, HIGH)
digitalWrite(N, LOW)
for (i = 0 i {
delay(1000)
}
Serial.println('AT+CNMI=2,2,0,0,0')
delay(1000)
Serial.println('AT+CMGF=1')
delay(500)
Serial.println('AT+CMGS='+91xxxxxxxxxx' ') // Replace x with mobile number
delay(1000)
Serial.println('Your water supply notification system is ready.')// The SMS text you want to send
delay(100)
Serial.println((char)26) // ASCII code of CTRL+Z
delay(1000)
}
void loop()
{
tmElements_t tm
if (RTC.read(tm))
{
if (tm.Hour > 12) //24Hrs to 12 Hrs conversion//
{
if (tm.Hour == 13) tim = 1
if (tm.Hour == 14) tim = 2
if (tm.Hour == 15) tim = 3
if (tm.Hour == 16) tim = 4
if (tm.Hour == 17) tim = 5
if (tm.Hour == 18) tim = 6
if (tm.Hour == 19) tim = 7
if (tm.Hour == 20) tim = 8
if (tm.Hour == 21) tim = 9
if (tm.Hour == 22) tim = 10
if (tm.Hour == 23) tim = 11
}
else
{
tim = tm.Hour
}
X = pulseIn(input, HIGH)
Y = pulseIn(input, LOW)
Time = X + Y
frequency = 1000000 / Time
waterFlow = frequency / 7.5
LS = waterFlow / 60
if (frequency >= 0)
{
if (isinf(frequency))
{
if (chk == 1)
{
Serial.println('AT+CNMI=2,2,0,0,0')
delay(1000)
Serial.println('AT+CMGF=1')
delay(500)
Serial.println('AT+CMGS='+91xxxxxxxxxx' ') // Replace x with mobile number
delay(1000)
Serial.print('Time: ')
delay(10)
Serial.print(tim)
delay(10)
Serial.print(':')
delay(10)
Serial.print(tm.Minute)
delay(10)
if (tm.Hour >= 12)
{
Serial.println(' PM')
}
if (tm.Hour <12)
{
Serial.println(' AM')
}
delay(10)
Serial.println('Water Supply is Ended.')// The SMS text you want to send
delay(100)
Serial.print('Average Water Flow (Litre/Min): ')
delay(100)
Serial.println(average)
delay(100)
Serial.print('Total Water Delivered: ')
delay(100)
Serial.print(total)
delay(100)
Serial.println(' Litre')
delay(100)
Serial.println((char)26) // ASCII code of CTRL+Z
delay(5000)
t = 0
total = 0
average = 0
chk = 0
check = 1
}
}
else
{
if (check == 1)
{
Serial.println('AT+CNMI=2,2,0,0,0')
delay(1000)
Serial.println('AT+CMGF=1')
delay(500)
Serial.println('AT+CMGS='+91xxxxxxxxxx' ') // Replace x with mobile number
delay(1000)
Serial.print('Time: ')
delay(10)
Serial.print(tim)
delay(10)
Serial.print(':')
delay(10)
Serial.print(tm.Minute)
delay(10)
if (tm.Hour >= 12)
{
Serial.println(' PM')
}
if (tm.Hour <12)
{
Serial.println(' AM')
}
delay(10)
Serial.println('The water is being supplied now.')// The SMS text you want to send
delay(100)
Serial.println((char)26) // ASCII code of CTRL+Z
delay(1000)
check = 0
chk = 1
}
t = t + 1
total = total + LS
average = total / t
average = average * 60
}
}
delay(1000)
}
}
//-----Program Developed by R.Girish-----//

గమనిక : మీరు మొదట ఆర్టిసి టైమ్ సెట్టింగ్ ప్రోగ్రామ్‌ను ఆర్డునోకు మరియు ప్రధాన ప్రోగ్రామ్ రెండవ (పూర్తి హార్డ్‌వేర్ సెటప్‌తో) అప్‌లోడ్ చేయాలి, దీనికి విరుద్ధంగా చేస్తే, ప్రాజెక్ట్ పనిచేయదు.

పరీక్షించిన ప్రోటోటైప్ యొక్క SMS స్క్రీన్ షాట్ ఇక్కడ ఉంది:

పరీక్షించిన ప్రోటోటైప్ యొక్క SMS స్క్రీన్ షాట్:

The సర్క్యూట్‌ను ఆన్ చేసిన ఒక నిమిషం తర్వాత, సిస్టమ్ సిద్ధంగా ఉందని మీకు SMS వస్తుంది.

The సెన్సార్ ద్వారా నీరు ప్రవహించటం ప్రారంభించినప్పుడు, సిస్టమ్ వినియోగదారుతో సమయానికి తెలియజేస్తుంది.

Supply నీటి సరఫరా ఆగిపోయిన తరువాత, సిస్టమ్ మరొక హెచ్చరికను పంపుతుంది మరియు సమయం, సగటు నీటి ప్రవాహం మరియు మీ ట్యాంకుకు పంపిన మొత్తం నీటితో సెషన్‌ను సంగ్రహిస్తుంది.

రచయిత యొక్క నమూనా:

SMS ఆధారిత నీటి సరఫరా హెచ్చరిక సర్క్యూట్ యొక్క నమూనా

దయచేసి నీటి రాక సమయంలో నీరు స్వేచ్ఛగా ప్రవహించాలి, అంటే ఏదైనా బ్లాక్ లేదా ట్యాప్ ఉంటే మూసివేయబడితే మీకు తెలియజేయబడదు.

ఈ ప్రాజెక్ట్‌కు సంబంధించి మీకు ఏవైనా ప్రశ్నలు ఉంటే, వ్యాఖ్య విభాగంలో సంకోచించకండి, మీకు శీఘ్ర సమాధానం లభిస్తుంది.




మునుపటి: స్వయంచాలక ఉష్ణోగ్రత మరియు తేమ నియంత్రణతో ఆర్డునోను ఉపయోగించే ఇంక్యుబేటర్ తర్వాత: 3 ఉత్తమ ట్రాన్స్ఫార్మర్లెస్ ఇన్వర్టర్ సర్క్యూట్లు