Cov txheej txheem:

Kev Saib Xyuas Tsob Ntoo Nrog Kev Ceeb Toom SMS: 5 Kauj Ruam
Kev Saib Xyuas Tsob Ntoo Nrog Kev Ceeb Toom SMS: 5 Kauj Ruam

Video: Kev Saib Xyuas Tsob Ntoo Nrog Kev Ceeb Toom SMS: 5 Kauj Ruam

Video: Kev Saib Xyuas Tsob Ntoo Nrog Kev Ceeb Toom SMS: 5 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Kev Saib Xyuas Tsob Ntoo Nrog SMS Ceeb Toom
Kev Saib Xyuas Tsob Ntoo Nrog SMS Ceeb Toom

Ntawm no kuv tsim tsob ntoo saib xyuas nrog SMS ceeb toom. Tsis xav tau neeg rau zaub mov rau qhov kev ceeb toom no. Nws yog qhov pheej yig heev thiab txhim khu kev qha.

Kauj Ruam 1: Thaiv Daim Duab Ntawm Qhov System

Thaiv Daim Duab Ntawm Qhov System
Thaiv Daim Duab Ntawm Qhov System

Hauv cov tsev cog khoom niaj hnub no, yuav tsum muaj kev ntsuas ntsuas ntau

los saib xyuas thiab tswj xyuas kom zoo thiab tsim khoom ntawm cov nroj tsuag. Tab sis kom tau txais cov txiaj ntsig xav tau muaj qee yam tseem ceeb heev uas tau los ua si xws li Kub, Vaum, Lub Teeb thiab Av Zoo, uas yog qhov tsim nyog rau kev cog qoob loo zoo dua. Ua raws cov kev ntsuas no hauv siab Kuv tau tsim Cov Txheej Txheem Tsis Siv Neeg Saib Xyuas Cov Khoom hla GSM module siv Arduino. Cov kab ke no muaj txiaj ntsig zoo rau kev cog cov ntoo zoo. Lwm qhov tseem ceeb ntawm txoj haujlwm no yog tias nws ua haujlwm tsis siv neeg thiab ua haujlwm ntawm qhov hluav taws xob qis xws li; 5-12V DC khoom.

Tam sim no ib hnub GSM Module tau siv dav rau xa SMS xwm txheej ntawm txhua yam ntaub ntawv. Nov ntawm qhov haujlwm no los ntawm kev siv SIM900A GSM Module peb tuaj yeem khaws cov ntaub ntawv hais txog kev cuam tshuam ntawm huab cua ntawm cov nroj tsuag. Lub kaw lus tseem yuav ua kom pom kev hloov pauv huab cua uas cuam tshuam rau tsob ntoo hauv nws cov khoom tsim tau thiab ua tau zoo thiab lwm yam. Lub hom phiaj tseem ceeb ntawm los nrog txoj haujlwm no yog tsim kom muaj Kev Tshawb Fawb Txog Kev Tsob Ntoo Tsis Zoo uas GSM module xa cov ntaub ntawv hais txog Qhov Kub, Vaum, Lub Teeb, Lub Ntiaj Teb ya raws.

Vim tias kuv yog neeg xam xaj Khab, siv SIM900A (A yog sawv cev rau Neeg Esxias network) qauv tab sis koj tuaj yeem siv hom SIM sib txawv raws li koj lub tebchaws. AT cov lej yuav txawv.

Kauj Ruam 2: Kev nthuav dav nthuav dav

Cov ncauj lus kom ntxaws
Cov ncauj lus kom ntxaws
Cov ncauj lus kom ntxaws
Cov ncauj lus kom ntxaws
Cov ncauj lus kom ntxaws
Cov ncauj lus kom ntxaws

------------------ Kuv ntsuas plaub hom kev ntsuas, uas yog mus

los tham hauv qab no: ----------------------

Kub thiab Vaum

DHT11 sensor siv rau kev ntsuas qhov kub thiab txias. Thaum qhov kub thiab txias nyob hauv siab lub hauv paus ntawm cov nroj tsuag puas thiab kev cog qoob loo tsis zoo.

Lub teeb ci

Kev siv lub teeb yog qhov tseem ceeb rau kev cog ntoo. Rau kev kuaj pom lub teeb siv LDR (Lub teeb nyob ntawm tus tiv thaiv) tau siv. Kev siv lub teeb ntsuas tau ntsuas hauv LUX thiab yog li ntawd rau kev ua qauv qhia 100 LUX lub teeb tau siv raws li tau hais tseg lossis qib pib.

Av noo noo

Cov av noo noo muaj qhov tseem ceeb heev rau kev loj hlob zoo ntawm cov nroj tsuag. Ntawm no Cov av sensor tau siv los ntsuas cov dej noo hauv cov av. Siv nrog lub ntsuas no peb tuaj yeem ntsuas cov ntaub ntawv av hauv ob txoj kev, zoo ib yam li digital thiab.

SMS ceeb toom:

Thaum tus nqi ntawm ib qho ntawm cov kev ntsuas saum toj no tau dhau los ntawm qib tau teev tseg lossis qib tseem ceeb, lub kaw lus cia li xa SMS mus rau tus tswv lossis tus neeg teb xov tooj nrog cov ntaub ntawv ntawm cov tsis cuam tshuam thiab thaum tus nqi los nyob rau hauv ib txwm muaj lossis qis dua qib tau teev tseg dua xa SMS mus rau tus tswv lossis tus neeg teb xov tooj nrog cov ntaub ntawv ntawm cov ntaub ntawv cuam tshuam.

Kev ceeb toom xa tsuas yog ib zaug kom txog thaum qhov xwm txheej tsis hloov pauv kom tus tswv lossis tus neeg teb xov tooj tsis tau txais SMS ntau zaus. Yog li ntawd, qis dua pob SMS xav tau.

Kauj Ruam 3: Daim duab Circuit Court

Daim duab Circuit Court
Daim duab Circuit Court

Txhua qhov no tau yooj yim muaj nyob ntawm txhua qhov chaw yuav khoom online

los yog nrog tus paub zoo electronics spare qhov chaw. Txhua daim ntawv teev cov ntaub ntawv muaj nyob ntawm lub vev xaib. Yog tias muaj teeb meem xav tau hu rau kuv tus email.

Kauj Ruam 4: Ua Haujlwm Video thiab Code Cov Ntaub Ntawv

Qhov kawg ua haujlwm video ntawm qhov project

Kauj Ruam 5: Txoj Cai Txheej Txheem

#suav nrog

#suav nrog

LiquidCrystal lcd (2, 3, 4, 5, 6, 7);

dht DHT; #define dht_dpin A1 #define LUX A0 #define av A3

ntab volt, lux, tus nqi; int cov ntaub ntawv_value; int kub, av noo; int lightflag = 0; int humflag = 0; int avflag = 0; int tempflag = 0; koj check; int xeem, xeem 1; byte degree [8] = {0b00011, 0b00011, 0b00000, 0b00000, 0b00000, 0b00000, 0b00000, 0b00000};

void teeb tsa ()

{Serial.begin (9600); // Initialise serial los tham nrog GSM Modem lcd.begin (16, 2); pinMode (av, INPUT); lcd.createChar (1, degree); lcd.setCursor (0, 0); lcd.print ("Plant Health"); lcd.setCursor (0, 1); lcd.print ("Saib Xyuas"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("AGRI PROJECT"); lcd.setCursor (0, 1); lcd.print ("Los ntawm S K CHHAYA"); ncua (1000); lcd.clear (); } void loop () {output_value = analogRead (av); output_value = daim ntawv qhia (output_value, 550, 0, 0, 100); tus nqi = analogRead (LUX); volt = (tus nqi / 1023.0) * 5; lux = ((2500 / volt) - 500) / 3.3; ncua (10000); // Muab sijhawm txaus rau GSM rau npe hauv Network DHT.read11 (dht_dpin); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Temp"); lcd.setCursor (0, 1); lcd.print (kub = DHT.temperature); // Cov ntaub ntawv Temp ntawm LCD lcd.write (1); lcd.print ("C"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Vaum"); lcd.setCursor (0, 1); lcd.print (av noo = DHT.humidity); // Cov ntaub ntawv vaum ntawm LCD lcd.print (" %"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Teeb"); lcd.setCursor (0, 1); lcd.print (lux); // Cov ntaub ntawv teeb ntawm LCD lcd.print ("LUM"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Huv"); lcd.setCursor (0, 1); lcd.print (tawm_ tus nqi); // Cov ntaub ntawv av ntawm LCD lcd.print (" %"); ncua (1000); lcd.clear ();

yog (kub 40) {SendSMS (); // SMS rau Temp siab} yog (av noo 40) {SendSMS2 (); // SMS rau Cov av noo siab} yog (lux 100) {SendSMS4 (); // SMS rau Lub teeb siab} yog (output_value == 950) {SendSMS7 (); // SMS rau Av Qhuav} ntxiv yog (output_value! = 950) {SendSMS6 (); // SMS rau Cov Av Ntub Dej}} void SendSMS () {if (tempflag == 0) {Serial.println ("AT+CMGF = 1"); ncua (500); Serial.println ("AT+CMGS = \"+919979897404 / "\ r"); ncua (500); Serial.print ("Kub Siab,"); Serial.print ("Temp"); Serial.print (kub); Serial.println ("degree C"); Serial.println ((char) 26); lcd.setCursor (0, 0); lcd.print ("Kub Siab"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Kub"); lcd.setCursor (0, 1); lcd.print (kub); lcd.write (1); lcd.print ("C"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Xa SMS"); ncua (1000); lcd.clear (); tempflag = 1; khij = 0; xeem = 0; ncua (10); }} void SendSMS1 () {if (tempflag == 1) {Serial.println ("AT+CMGF = 1"); ncua (500); Serial.println ("AT+CMGS = \"+919979897404 / "\ r"); ncua (500); Serial.print ("Temp Tsawg,"); Serial.print ("Temp"); Serial.print (kub); Serial.println ("degree C"); Serial.println ((char) 26); lcd.setCursor (0, 0); lcd.print ("Temp Qis"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Kub"); lcd.setCursor (0, 1); lcd.print (kub); lcd.write (1); lcd.print ("C"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Xa SMS"); ncua (1000); lcd.clear (); tempflag = 0; khij = 0; xeem = 0; ncua (10); }} void SendSMS2 () {yog (humflag == 0) {Serial.println ("AT+CMGF = 1"); ncua (500); Serial.println ("AT+CMGS = \"+919979897404 / "\ r"); ncua (500); Serial.print ("Vaum Siab"); Serial.print (av noo); Serial.println (" %"); Serial.println ((char) 26); lcd.setCursor (0, 0); lcd.print ("Vaum Siab"); ncua (1000); lcd.setCursor (0, 1); lcd.print ("Vaum"); lcd.print (av noo); lcd.print (" %"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Xa SMS"); ncua (1000); lcd.clear (); humflag = 1; khij = 0; xeem = 0; ncua (10); }}

void SendSMS3 () {yog (humflag == 1) {Serial.println ("AT+CMGF = 1"); ncua (500); Serial.println ("AT+CMGS = \"+919979897404 / "\ r"); ncua (500); Serial.print ("Cov av qis,"); Serial.print ("Vaum"); Serial.print (av noo); Serial.println (" %"); Serial.println ((char) 26); lcd.setCursor (0, 0); lcd.print ("Vaum Tsawg"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Vaum"); lcd.setCursor (0, 1); lcd.print (av noo); lcd.print (" %"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Xa SMS"); ncua (1000); lcd.clear (); humflag = 0; khij = 0; xeem = 0; ncua (10); }} void SendSMS4 () {if (lightflag == 0) {Serial.println ("AT+CMGF = 1"); // Txhawm rau xa SMS hauv Text Mode ncua (500); Serial.println ("AT+CMGS = \"+919979897404 / "\ r"); // Hloov mus rau tus lej xov tooj qeeb qeeb (500); Serial.print ("Teeb pom kev zoo,"); Serial.print ("Siv zog"); Serial.print (lux); Serial.println ("LUX"); Serial.println ((char) 26); // tus cim nres siv Ctrl+Z lcd.setCursor (0, 0); lcd.print ("Lub teeb zoo"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Kev hnyav"); lcd.setCursor (0, 1); lcd.print (lux); lcd.print ("LUX"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Xa SMS"); ncua (1000); lcd.clear (); lightflag = 1; khij = 0; xeem = 0; ncua (10); }} void SendSMS5 () {yog (lightflag == 1) {Serial.println ("AT+CMGF = 1"); ncua (500); Serial.println ("AT+CMGS = \"+919979897404 / "\ r"); ncua (500); Serial.print ("QHOV TEEB MEEM,"); Serial.print ("Siv zog"); Serial.print (lux); Serial.println ("LUX"); Serial.println ((char) 26); lcd.setCursor (0, 0); lcd.print ("Tsawg lub teeb"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Kev hnyav"); lcd.setCursor (0, 1); lcd.print (lux); lcd.print ("LUX"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Xa SMS"); ncua (1000); lcd.clear (); lightflag = 0; khij = 0; xeem = 0; ncua (10); }} void SendSMS6 () {if (avflag == 0) {Serial.println ("AT+CMGF = 1"); ncua (500); Serial.println ("AT+CMGS = \"+919979897404 / "\ r"); ncua (500); Serial.print ("Av Qhuav,"); Serial.print ("Huv"); Serial.print (output_value); Serial.println (" %"); Serial.println ((char) 26); lcd.setCursor (0, 0); lcd.print ("Av Qhuav"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Huv"); lcd.setCursor (0, 1); lcd.print (tawm_ tus nqi); lcd.print (" %"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Xa SMS"); ncua (1000); lcd.clear (); avflag = 1; khij = 0; xeem = 0; ncua (10); }} void SendSMS7 () {if (avflag == 1) {Serial.println ("AT+CMGF = 1"); ncua (500); Serial.println ("AT+CMGS = \"+919979897404 / "\ r"); ncua (500); Serial.print ("Cov av ntub,"); Serial.print ("Huv"); Serial.print (output_value); Serial.println (" %"); Serial.println ((char) 26); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Cov av ntub"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Huv"); lcd.setCursor (0, 1); lcd.print (tawm_ tus nqi); lcd.print (" %"); ncua (1000); lcd.clear (); lcd.setCursor (0, 0); lcd.print ("Xa SMS"); ncua (1000); lcd.clear (); avflag = 0; khij = 0; xeem = 0; ncua (10); }}

Pom zoo: