Cov txheej txheem:

Arduino thiab SIM900 GSM GPRS 3G Kub thiab Vaum Logging, Txawb Stats: 4 Cov Kauj Ruam
Arduino thiab SIM900 GSM GPRS 3G Kub thiab Vaum Logging, Txawb Stats: 4 Cov Kauj Ruam

Video: Arduino thiab SIM900 GSM GPRS 3G Kub thiab Vaum Logging, Txawb Stats: 4 Cov Kauj Ruam

Video: Arduino thiab SIM900 GSM GPRS 3G Kub thiab Vaum Logging, Txawb Stats: 4 Cov Kauj Ruam
Video: Уроки Ардуино. Управление нагрузкой в сети переменного тока 2024, Hlis ntuj nqeg
Anonim
Arduino thiab SIM900 GSM GPRS 3G Kub thiab Vaum Logging, Txawb Xov Xwm
Arduino thiab SIM900 GSM GPRS 3G Kub thiab Vaum Logging, Txawb Xov Xwm
Arduino thiab SIM900 GSM GPRS 3G Kub thiab Vaum Logging, Txawb Xov Xwm
Arduino thiab SIM900 GSM GPRS 3G Kub thiab Vaum Logging, Txawb Xov Xwm

Nrog Arduino UNO R3, SIM900 Shield THIAB DHT22 koj tuaj yeem teev cov ntaub ntawv kub thiab av noo sab nraum, hauv chav, tsev cog khoom, chav kuaj, chav txias lossis lwm qhov chaw pub dawb. Qhov piv txwv no peb yuav siv los ntsuas chav sov thiab av noo.

Cov cuab yeej yuav txuas nrog internet ntawm GPRS 2G, yog li tuaj yeem siv tau txawm tias tsis muaj Router tam sim no lossis txuas internet txuas. Zoo tshaj rau cov teb, vaj txiv hmab lossis cov chaw zoo sib xws yam tsis muaj kev txuas internet txuas.

Koj yuav tuaj yeem tshawb xyuas qhov kev nyeem tshiab kawg ntawm koj lub xov tooj ntawm tes, desktop lossis lwm yam khoom siv nrog browser.

Khoom siv

Koj tuaj yeem yuav cov cuab yeej xav tau ntawm no (tsawg kawg xav tau):

Arduino UNO R3

SIM900 Shield rau Arduino UNO

USB them nyiaj rau Fais fab koj lub cuab yeej - tam sim no qhov no xav tau rau GSM module usb tsis muaj lub zog txaus

micro USB cable

DHT22 module nrog cable

SIM Card nrog tus PIN xiam oob qhab thiab qee cov phiaj xwm phiaj xwm

LED Diode rau xwm txheej

Kuj zoo kom muaj:

Jumper xov hlau

Kev sim ua haujlwm rau Arduino

Waterproof thaiv

Jack hloov rau lub zog

Qhov no kuj sim/ua haujlwm nrog kev lag luam AM2305

Kauj Ruam 1: Ntxiv Koj Cov Ntaus rau LoggingPlatform

Ntxiv koj lub cuab yeej rau LoggingPlatform
Ntxiv koj lub cuab yeej rau LoggingPlatform

Ntawm no koj tuaj yeem ntxiv koj lub cuab yeej kom tau txais cov yuam sij api xav tau tom qab:

Kauj Ruam 2: Kev Kho Vajtse Txuas

Kho vajtse txuas
Kho vajtse txuas

Ntxig SIM rau hauv GSM module Shield Txuas Shield rau Arduino

Txuas lub hwj chim adapter thiab USB rau PC

Txuas DHT22 Tawm rau GSM daim thaiv PIN 10

Txuas DHT22 + rau GSM daim thaiv 3V

Txuas DHT22 - rau GSM ntaub thaiv npog GND

Txuas LED yog tias koj xav tau qhov xwm txheej qhia, tsis xav tau

Daim duab piv txwv ntawm daim duab

Kauj Ruam 3: Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)

Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)
Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)
Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)
Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)
Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)
Upload Software Xav Tau Rau Ntaus Ntawv (Windows Qhia)

Rub tawm thiab teeb tsa Arduino IDE: https://www.arduino.cc/en/main/software Txuas lub cuab yeej rau USB ntawm koj lub PC Windows, thiab teeb tsa cov tsav tsheb yog xav tau

Khiav Arduino IDE

Xaiv COM chaw nres nkoj (qhov no feem ntau yog tus lej loj dua yog tias koj tsis muaj lwm yam khoom siv txuas nrog), duab 1

Xaiv Pawg hom, duab 2

Rub tawm thiab qhib qhov chaws: Koj yuav tsum muaj cov tsev qiv ntawv:

SoftwareSerial.h - qhov no feem ntau suav nrog hauv Arduino IDE

thiab

DHT.h-koj tuaj yeem rub tawm ntawm no thiab luam tawm rau koj lub tsev qiv ntawv arduino zoo li: C: / arduino-1.6.8 / tsev qiv ntawv

SIM 900 tus lej rau kev nkag tau muaj nyob ntawm no

Qhib daim npav SIM900 no nrog Arduino IDE:

Hloov qhov ntsuas no raws li ntawm daim duab 3

APN koj tuaj yeem tau txais los ntawm koj tus kws muab daim npav SIM

Thiab lwm yam los ntawm loggingforest platform: https://loggingforest.com/index.php/page/pricing, duab 3

Qee cov ntawv ceeb toom: Cov tsev qiv ntawv txheem rau SIM900 tsis ua haujlwm zoo rau kev rov ua haujlwm zoo li kev nkag mus, yog li peb sib txuas lus ncaj qha nrog cov lej SIM900 AT Commands

Yog tias koj siv cov ntaub thaiv npog sib txawv tej zaum koj yuav tsum txhais qhov sib txawv RX, TX pins hauv cov cai

Thaum siv (tsis debugging lossis kuaj) koj yuav tsum lov tes taw DEBUG_EN, hloov ntawm qhov tseeb mus rau cuav

Txog kev xaiv tus kheej network nrog SIM900, yog tias koj nyob ntawm ciam teb teb chaws, koj tuaj yeem tsis pom zoo cov kab no thiab txhais cov cai network muab hauv cov lej, zoo li daim duab 4

network code zoo li 21910 rau A1 tuaj yeem pom hauv kab COPS, duab 5

Yog tias koj cov cai nyob ntawm TEST AT, txhais tau tias koj lub zog hloov pauv tsis muab lub zog txaus rau SIM900, zoo tshaj yog siv 5V 2A lossis 9V 1A. Qee tus neeg muab khoom sim yuav xav tau USER thiab PWD rau kev sib txuas apn, koj tseem tuaj yeem txhais hauv tus lej.

Tom qab ntawd koj lub cuab yeej yuav pib xa cov ntaub ntawv mus rau kev txiav ntoo thiab koj tuaj yeem pom nws nyob ntawd

Kauj Ruam 4: Txheeb Cov Ntaub Ntawv ntawm Txawb lossis Duab

Txheeb Cov Ntaub Ntawv ntawm Txawb lossis Duab
Txheeb Cov Ntaub Ntawv ntawm Txawb lossis Duab
Txheeb Cov Ntaub Ntawv ntawm Txawb lossis Duab
Txheeb Cov Ntaub Ntawv ntawm Txawb lossis Duab
Txheeb Cov Ntaub Ntawv ntawm Txawb lossis Duab
Txheeb Cov Ntaub Ntawv ntawm Txawb lossis Duab

Tom qab ntawd koj lub cuab yeej yuav pib xa cov ntaub ntawv mus rau kev txiav ntoo thiab koj tuaj yeem pom nws nyob ntawd Hauv kev txiav ntoo txiav ntoo hloov kho tsuas yog txhais lub npe tsis raug thiab qhov txiaj ntsig zoo li duab 1

Nyem rau saib ua ntej, duab 2

Thiab koj yuav pom cov ntaub ntawv zoo, duab 3

Xav tias dawb los tawm tswv yim thiab qhia koj cov logger

Pom zoo: