Cov txheej txheem:

SIM900 GSM Raws Li Cov Lus Qhia Huab Cua: 3 Kauj Ruam (nrog Duab)
SIM900 GSM Raws Li Cov Lus Qhia Huab Cua: 3 Kauj Ruam (nrog Duab)

Video: SIM900 GSM Raws Li Cov Lus Qhia Huab Cua: 3 Kauj Ruam (nrog Duab)

Video: SIM900 GSM Raws Li Cov Lus Qhia Huab Cua: 3 Kauj Ruam (nrog Duab)
Video: 4. SIM800F - Can it really replace the SIM900 GSM module? 2024, Kaum ib hlis
Anonim
SIM900 GSM Raws Li Cov Lus Qhia Huab Cua
SIM900 GSM Raws Li Cov Lus Qhia Huab Cua

Peb ib txwm xav tau huab cua hloov tshiab ntawm peb lub xov tooj ntawm tes. Nws tuaj yeem yog los ntawm app online lossis system app siv internet. Tab sis ntawm no kuv yuav qhia koj txoj hauv kev siv Cov Ntawv Xa Ntawv tshwj xeeb ntawm peb lub xov tooj kom tau txais Kev ntsuas Kub thiab Vaum, koj tuaj yeem txuas nws ib yam kom tau txais lub siab thiab qhov siab thiab GPS hloov tshiab. Nov kuv siv DHT22 kom tau txais qhov ntsuas kub thiab huab cua hloov tshiab tab sis koj kuj tseem tuaj yeem siv BMP280 kom tau txais kev hloov kho siab ib yam. Pom tseeb kuv siv Arduino rau kev suav tag nrho thiab SIM900 rau kev xa SMS. Txij li kev siv Arduino yuav yooj yim rau cov neeg siv feem ntau, tab sis qhov tseeb koj tuaj yeem siv ib qho microcontroller rau tag nrho cov txheej txheem. Rau qhov ntawd koj yuav tsum tau nyeem cov ntawv teev npe ntawm SIM900 thiab DHT22. Yog li tam sim no kuv yuav siv yooj yim Arduino UNO rau qhov no. Nano, Mega, Micro yuav ua haujlwm ib yam nkaus …

Kauj Ruam 1: Qhov Yuav Tsum Tau

Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau

1. Arduino UNO/Nano/Mega/Micro

2. SIM 900/800

3. 1 10K resistor

4. DHT22/DHT11

5. Jumpers

6. Cov qhob cij (tej zaum yuav tsis tsim nyog)

7. Cais Fais fab mov rau SIM900/800

Kauj Ruam 2: Txoj Haujlwm Ua Haujlwm thiab Ua Kev Sib Txuas Hauv Circuit

Txoj Haujlwm Ua Haujlwm thiab Ua Kev Sib Txuas Hauv Circuit
Txoj Haujlwm Ua Haujlwm thiab Ua Kev Sib Txuas Hauv Circuit
Txoj Haujlwm Ua Haujlwm thiab Ua Kev Sib Txuas Hauv Circuit
Txoj Haujlwm Ua Haujlwm thiab Ua Kev Sib Txuas Hauv Circuit
Txoj Haujlwm Ua Haujlwm thiab Ua Kev Sib Txuas Hauv Circuit
Txoj Haujlwm Ua Haujlwm thiab Ua Kev Sib Txuas Hauv Circuit

SIM900/800 yog GSM tus qauv uas ua haujlwm ntawm TX-RX cov txheej txheem thiab siv AT cov lus txib. Ib txwm 3g sim daim npav tuaj yeem tso rau ntawm no thiab koj tseem tuaj yeem ua thiab tau txais kev hu yog tias koj txuas lub microphone ntawm no, tab sis kuv tsis siv tus yam ntxwv ntawm no. Ntawm no kuv yuav siv lub chaw xa xov ntawm SIM900. SIM900 tuaj yeem hu xov tooj, hu xov tooj, hu xov tooj thiab xa xov. Koj tuaj yeem rov ua koj lub SIM nrog pob ntawv xa ntawv thiab tom qab ntawd siv nws los tiv thaiv kev them nyiaj ntau vim ntau SMS.

Ntawm no DHT22 yuav tau txais cov ntaub ntawv ntsuas kub thiab av noo thiab qhov no yuav xa mus rau tus neeg siv raws li cov ntawv xov xwm. Yog li xav tias DHT22 thiab SIM900 nyob hauv koj lub tsev thiab koj nyob hauv koj lub chaw haujlwm. Yog li koj tuaj yeem ua qhov system xa cov ntawv xa mus rau tus neeg siv tom qab txhua 3hrs. Koj tuaj yeem kho lub sijhawm ntawd ib yam nkaus hauv cov lej txuas hauv qab no.

Cov kev sib txuas hauv Circuit Court yog ib qho yooj yim heev thiab yooj yim. Siv jumpers rau txhua qhov txuas.

SIM900 tus qauv muaj ntau yam sib txawv. Kuv tus qauv siv 12V 1A adapter txhawm rau siv nws. Lwm tus qauv tuaj yeem xav tau 5V khoom. Yog li saib koj cov ntawv ua tib zoo ua ntej siv nws, thiab tseem nco ntsoov tias lawv yog cov cuab yeej zoo li qub. Yog li tsis txhob cia nws nyob ze cov thermocol lossis plastics.

Kauj ruam 3: Uploading Code

Tso Cai
Tso Cai

Tam sim no tom qab kev sib txuas txuas zog GSM module ua ntej nrog SIM daim npav thauj khoom. Tam sim no saib yog tias LED ntawm tus qauv ntsais muag. Yog tias nws ntsais sai heev (1 blink/sec) tom qab ntawd rub tawm TX thiab RX kev sib txuas thiab rov txuas nws dua. Qhov ib txwm nws yuav tsum ntsais ntawm 1 blink/3 sec. Yog tias nws ntawm 1blink/3sec ces koj tuaj yeem paub meej tias SIM yog tam sim no npaj siv.

Tom qab ntawv qhib arduino IDE thiab qhib qhov kos duab txuas ntawm no. Muab koj tus lej xov tooj hauv qhov kos duab uas SIM900 yuav tsum xa xov. Tom qab ntawv rub nws. Koj yuav tsum pom cov lus xa tom qab lub sijhawm teev tseg. Koj tuaj yeem hloov nws ib yam nkaus hauv cov cai.

Tam sim no koj tau teeb tsa thiab hloov kho nrog huab cua tam sim no.

Koj tuaj yeem ntxiv BMP280 kom tau txais kev hloov kho tshiab lossis txhua yam uas koj nyiam. Koj tuaj yeem pom qhov xwm txheej ntawm koj lub tank dej, txuas PIR lub ntsuas kom pom tias muaj tib neeg nyob hauv koj lub tsev, thiab lwm yam.

rau ib qho teeb meem tawm ntawm no lossis xa ntawv ntawm [email protected]

Pom zoo: