Cov txheej txheem:

Qhov Ntsuas Qib Dej Nrog SMS: 4 Cov Kauj Ruam
Qhov Ntsuas Qib Dej Nrog SMS: 4 Cov Kauj Ruam

Video: Qhov Ntsuas Qib Dej Nrog SMS: 4 Cov Kauj Ruam

Video: Qhov Ntsuas Qib Dej Nrog SMS: 4 Cov Kauj Ruam
Video: Hwm Pheej Thoj - Rov Mus Txog Vib Nais 2024, Hlis ntuj nqeg
Anonim
Qhov Ntsuas Qib Dej Nrog SMS
Qhov Ntsuas Qib Dej Nrog SMS

Hnub no kuv yuav tham txog ib txoj haujlwm muaj txiaj ntsig zoo. Nws yog hu ua Tus Ntsuas Ntsuas Dej nrog SMS ceeb toom. Txhua leej txhua tus muaj lub tank saum taub hau ntawm lawv lub tsev. Qhov teeb meem yog tias tsis muaj kab ke taug qab cov dej hauv lub tank. Tom qab ntawd muaj qhov teeb meem thib ob uas yog thaum lawv lub twj tso kua dej pib lawm lawv tsis muaj lub tswv yim thaum nws tau ntim puv thiab qee zaum muaj qhov xwm txheej uas lub twj tso kua mis tseem tso dej rau hauv lub tank thiab dej pib ntws tawm ntawm lub tank. Muaj kev nkim lub zog nrog rau kev siv dej. Yog li cov txheej txheem no muaj txiaj ntsig zoo txhawm rau txheeb xyuas qib dej. Nws kuj tseem muaj txiaj ntsig zoo rau cov tsev siab uas nws tsis tuaj yeem tshawb xyuas qib dej.

Cia peb pib.

Kauj Ruam 1: Cheeb Tsam

Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam

1. Atmega328

2. Arduino Uno

3. Hloov x1

4. Crystal Oscillator x1

5. 10uf capacitor x2

6. BC547 npn transistor x4

7. Resistor 1k x5

8. Resistor 100 x8

9. PCB x1

10. LM7805 5volt tus tswj hwm

11. LM7812 12volt tus tswj hwm

12. Capacitor 22uf x2

13. Hnub ci Pannel 20v

14. Tshav Kub Kub x1

15. Cov xov hlau

16. GSM modem 800H lossis 900A

Kauj Ruam 2: Kev Sib Txuas & Ua PCB

Kev Sib Txuas & Ua PCB
Kev Sib Txuas & Ua PCB
Kev Sib Txuas & Ua PCB
Kev Sib Txuas & Ua PCB
Kev Sib Txuas & Ua PCB
Kev Sib Txuas & Ua PCB
Kev Sib Txuas & Ua PCB
Kev Sib Txuas & Ua PCB

Ua qhov kev sib txuas ntawm transistors nrog Resistors ntawm lub khob cij raws li qhia hauv daim duab ckt kos cov zis. Cov zis yuav ntau dua 3 volt kom xa cov laj thawj HIGH mus rau arduino.

Mount cov resistors thiab transistors ntawm pcb.

Mount 28 tus pin ic qhov (socket) ntawm pcb.

Peb tab tom ua ib leeg zuj zus arduino.

Solder siv lead ua oscillator nrog rau 22uf capacitors.

Txuas cov txiaj ntsig ntawm transistors mus rau cov pins sib piv o IC hais txog tus pin daim duab ntawm ic.

Ua qhov txuas ntawm qhov ntsuas hluav taws xob kom raug nrog cov capacitors.

Cov cua sov yuav tsum txuas rau 7812 tus tswj hluav taws xob raws li GSM tus qauv rub ntau dua tam sim no los ntawm nws.

Hnub ci pannel txuas nrog lub tswv yim ntawm 7812 ic.

Solder tag nrho cov khoom siv raws li hauv daim duab ckt ntawm pcb. Txheeb xyuas cov kev sib txuas.

Kauj ruam 3: Programming

Programming
Programming

Txuas koj arduino UNO rau koj lub PC wiyh ic atmega328 hauv nws

Hlawv cov cai hauv qab no rau hauv koj cov arduino

int ib = 0; int b = 0;

int c = 0;

int ib = 0;

void teeb tsa ()

{pinMode (A1, INPUT);

pinMode (A0, INPUT);

pinMode (A2, INPUT);

pinMode (A4, INPUT);

Serial.begin (9600);

}

void lub voj ()

{int r = digitalRead (A4);

int s = digitalRead (A0);

int t = digitalRead (A1);

int koj = digitalRead (A2);

yog (r == HIGH && s == LOW && t == LOW && u == LOW)

{yog (a == 0)

{Serial.println ("AT+CMGF = 1");

ncua (500);

Serial.println ("AT+CMGS = \" koj tsis. / ""); // Hloov tus lej xov tooj ncua sijhawm (500);

Serial.print ("Theem 1 Qhib Lub Tshuab"); // cov lus koj xav xa

ncua (500);

Serial.write (26);

ncua (500);

ib ++; b = 0; c = 0; d = 0;

}

}

yog (r == HIGH && s == HIGH && t == LOW && u == LOW)

{yog (b == 0)

{Serial.println ("AT+CMGF = 1");

ncua (500);

Serial.println ("AT+CMGS = \" koj tsis. / ""); // Hloov tus lej xov tooj tus txais

ncua (500);

Serial.print ("Dej ntawm Qib 2");

// cov lus koj xav xa

ncua (500);

Serial.write (26);

ncua (500);

b ++; ua = 0; c = 0; d = 0;

} }

yog (r == HIGH && s == HIGH && t == HIGH && u == LOW) {yog (c == 0)

{Serial.println ("AT+CMGF = 1");

ncua (500);

Serial.println ("AT+CMGS = \" koj tsis. / ""); // Hloov tus lej xov tooj ncua sijhawm (500);

Serial.print ("Dej ntawm Qib 3"); // cov lus koj xav xa

ncua (500);

Serial.write (26);

ncua (500);

c ++; b = 0; d = 0; ua = 0; }}

yog (r == HIGH && s == HIGH && t == HIGH && u == HIGH)

{yog (d == 0) {Serial.println ("AT+CMGF = 1");

ncua (500);

Serial.println ("AT+CMGS = \" koj tsis. / ""); // Hloov tus lej xov tooj tus txais

ncua (500);

Serial.print ("Tank puv hloov lub cev muaj zog"); // cov lus koj xav xa

ncua (500);

Serial.write (26);

ncua (500);

d ++; c = 0; b = 0; ua = 0;

} }

lwm tus

{Serial.print ("Circuit Tsis Txuas");

}

}

Tam sim no Tshem tus ic & nruab nws rau hauv pcb

Kauj Ruam 4: Sib dhos & Xeem

Sib dhos & Xeem
Sib dhos & Xeem
Sib dhos & Xeem
Sib dhos & Xeem
Sib dhos & Xeem
Sib dhos & Xeem

Siv cov yeeb nkab PVC uas muaj qhov siab sib npaug rau koj lub tank dej.

Khaws cov xov hlau los ntawm ckt ntawm qib sib txawv ntawm lub tank.

Nco ntsoov tias Vcc hlau ib txwm poob rau hauv dej.

Ua txhua qhov Kev Sib Txuas.

Txuas Rx ntawm ic uas yog ntawm tus pin 2 rau Tx ntawm GSM modem

Txuas Tx ntawm ic uas yog ntawm tus pin 3 rau Rx ntawm GSM modem

Txuas lub hnub ci vaj huam sib luag rau cov tswv yim ntawm 7812 ic.

Txheeb xyuas txhua Qhov Kev Sib Txuas Thiab Txoj Haujlwm tau npaj tiav.

Ua kom tso rau qhov system kom tiv thaiv nws los ntawm nag.

Kuaj Nws!

Pom zoo: