Cov txheej txheem:
- Kauj Ruam 1: Sau Qhov Chaw
- Kauj Ruam 2: Sib dhos Shield
- Kauj Ruam 3: Shield Pinouts
- Kauj Ruam 4: Ua kom lub Shield
- Kauj ruam 5: SIM Card & Kav hlau txais xov
- Kauj Ruam 6: Teeb Arduino IDE
- Kauj Ruam 7: Piv Txwv Arduino
- Kauj Ruam 8: Xeem Nrog AT Cov Lus txib
- Kauj Ruam 9: Kev Siv Tam Sim No
- Kauj ruam 10: Cov lus xaus
Video: Botletics LTE CAT-M/NB-IoT + GPS Shield rau Arduino: 10 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Txheej txheem cej luam
Botletics SIM7000 LTE CAT-M/NB-IoT daim ntaub thaiv siv LTE CAT-M thiab NB-IoT thev naus laus zis tshiab thiab tseem tau suav nrog GNSS (GPS, GLONASS thiab BeiDou/Compass, Galileo, QZSS tus qauv) rau kev nrhiav chaw. Muaj ntau yam SIM7000-series cov qauv uas haum rau thaj tsam sib txawv thoob ntiaj teb, thiab hmoov zoo SIMCOM tau ua kom yooj yim los txheeb xyuas: SIM7000A (Asmeskas), SIM7000E (European), SIM7000C (Suav), thiab SIM7000G (Ntiaj Teb). Tam sim no NB-IoT tau txais kev txhawb nqa hauv ntau lub tebchaws thoob ntiaj teb tab sis hmoov tsis zoo hauv Asmeskas, txawm hais tias nws tau teem sijhawm ua lag luam nyob rau yav tom ntej (2019) thiab tsis hais txog, peb tseem tuaj yeem siv LTE CAT-M kev ua haujlwm!
Txhawm rau siv daim ntaub thaiv, yooj yim ntsaws daim ntaub thaiv rau hauv Arduino, ntxig rau daim npav SIM, txuas LTE/GPS kav hlau txais xov, thiab koj zoo mus!
Taw qhia
Nrog rau qhov tshwm sim ntawm cov cuab yeej siv hluav taws xob tsawg IoT nrog kev sib txuas ntawm tes thiab theem tawm ntawm 2G (nrog tsuas yog T-mobile txhawb nqa 2G/GSM txog xyoo 2020), txhua yam tau txav mus rau LTE thiab qhov no tau tso ntau tus neeg sib zog nrhiav kev daws teeb meem zoo dua. Txawm li cas los xij, qhov no tseem tshuav ntau tus neeg nyiam ua ntsej muag ntsej muag nrog cov cuab yeej cuab tam 2G zoo li SIM800-series cov qauv los ntawm SIMCOM. Txawm hais tias cov qauv 2G thiab 3G no yog lub hauv paus pib zoo, nws yog lub sijhawm kom txav mus tom ntej thiab SIMCOM tsis ntev los no tshaj tawm lawv cov SIM7000A LTE CAT-M tshiab ntawm tus tsim tawm lub rooj sib tham. Zoo siab heev!:)
Qhov ua tau zoo ntawm txhua qhov no yog tias SIMCOM ua rau nws yooj yim heev rau kev tsiv los ntawm lawv 2G thiab 3G modules rau tus qauv tshiab no! SIM7000-series siv ntau yam zoo ib yam AT cov lus txib uas txo qis kev txhim kho software los ntawm mais! Tsis tas li, Adafruit twb muaj lub tsev qiv ntawv FONA zoo heev ntawm Github uas tuaj yeem siv los qhia qhov tshiab SIM7000 rau hauv tog!
LTE CAT-M yog dab tsi?
LTE CAT-M1 yog suav tias yog lub cim thib ob LTE thev naus laus zis thiab qis dua lub zog thiab tsim nyog rau IoT cov cuab yeej. NarrowBand IoT (NB-IoT) lossis "CAT-M2" thev naus laus zis yog Kev Siv Hluav Taws Xob Tsawg-Tsawg Lub Ntiaj Teb Network (LPWAN) thev naus laus zis tshwj xeeb tsim rau cov cuab yeej siv IoT qis. Nws yog qhov thev naus laus zis tshiab uas yog, hmoov tsis, tseem tsis tau muaj nyob hauv Asmeskas, txawm hais tias cov tuam txhab tab tom ua haujlwm ntawm kev sim thiab tsim cov txheej txheem. Rau IoT cov cuab yeej siv xov tooj cua thev naus laus zis (RF) muaj ntau yam uas yuav tsum nco ntsoov: Lub zog siv hluav taws xob BandwidthRangePacket loj (xa ntau cov ntaub ntawv Tus nqi ntawm ib qho ntawm no muaj kev sib pauv (thiab kuv yuav tsis piav qhia lawv tag nrho); piv txwv li, cov bandwidth loj tso cai rau cov cuab yeej xa ntau cov ntaub ntawv (zoo li koj lub xov tooj, uas tuaj yeem tso YouTube!) tab sis qhov no kuj txhais tau tias nws muaj hwj chim heev. txiav cov bandwidth txhais tau tias koj yuav tsis tuaj yeem xa cov ntaub ntawv ntau, tab sis rau IoT cov cuab yeej tua cov morsels ntawm cov ntaub ntawv rau huab qhov no yog qhov zoo tshaj plaws! ntawm cov ntaub ntawv tab sis tseem nrog qhov ntev (thaj tsam dav)!
Botletics SIM7000 Shield rau Arduino
Cov ntaub thaiv npog uas kuv tau tsim los siv SIM7000-series kom cov neeg siv muaj lub zog qis LTE CAT-M thev naus laus zis thiab GPS ntawm qhov kawg ntawm lawv cov ntiv tes! Cov ntaub thaiv npog tseem ua kis las MCP9808 I2C ntsuas kub, zoo rau yam tsawg kawg ntsuas qee yam thiab xa nws los ntawm kev txuas xov tooj ntawm tes.
- Daim ntaub thaiv yog qhib qhov chaw! Yay!
- Txhua cov ntaub ntawv (EAGLE PCB cov ntaub ntawv, Arduino code, thiab ntxaws ntxaws wiki) tuaj yeem pom ntawm no ntawm Github.
- Txhawm rau pom qhov SIM7000 version twg zoo tshaj rau koj, thov saib nplooj ntawv wiki no.
- Botletics SIM7000 daim ntaub thaiv tuaj yeem yuav ntawm no ntawm Amazon.com
Kauj Ruam 1: Sau Qhov Chaw
Hauv qab no yog cov npe ntawm txhua ntu koj yuav xav tau:
- Arduino los yog Arduino -tshaj lub rooj tsavxwm - Arduino Uno yog qhov kev xaiv ntau tshaj plaws rau qhov no! Yog tias koj xav siv LTE daim thaiv zoo li yog "ntaub thaiv npog" tiag tiag koj yuav tsum siv Arduino board nrog Arduino daim ntawv foos. Hais txog qhov pom tseeb, koj tseem yuav xav tau lub xov tooj cua program los rub cov duab kos Arduino rau hauv pawg thawj coj saib! Yog tias koj tsis siv Arduino-form-factor board uas zoo ib yam! Muaj cov ntaub ntawv hais txog kev sib txuas dab tsi los ua hauv nplooj ntawv wiki no thiab sib txawv microcontrollers tau sim, suav nrog ESP8266, ESP32, ATmega32u4, ATmega2560, thiab ATSAMD21.
- Botletics SIM7000 Shield Kit - Cov ntaub thaiv npog los nrog dual LTE/GPS uFL kav hlau txais xov thiab teeb tsa poj niam lub taub hau! Pawg thawj coj los hauv peb qhov sib txawv (SIM7000A/C/E/G) thiab nyob ntawm lub tebchaws twg koj nyob hauv koj yuav xav xaiv qhov raug. Kuv tau tsim nplooj ntawv no ntawm Github wiki uas qhia koj yuav ua li cas thiaj paub seb cov version twg zoo tshaj rau koj!
- LTE CAT-M lossis NB-IoT SIM Card-Txawm hais tias cov khoom siv tsis suav nrog daim npav SIM dawb, koj tuaj yeem khaws daim npav Hologram uas muab rau koj 1MB ib hlis rau dawb thiab ua haujlwm nyob txhua qhov chaw hauv ntiaj teb vim tias Hologram tau koom tes nrog nrog ntau dua 500 tus neeg nqa khoom! Lawv kuj tseem them nyiaj-raws-koj-mus thiab cov phiaj xwm txhua hli thiab muaj lub rooj sab laj hauv zej zog zoo rau kev txhawb nqa kev ua haujlwm ntawm SIM daim npav, Hologram APIs, thiab ntau ntxiv! Nws ua haujlwm zoo nrog daim thaiv npog thoob tebchaws hauv Asmeskas rau AT & T thiab Verizon's LTE CAT-M1 tes hauj lwm tab sis nco ntsoov tias hauv lwm lub tebchaws koj yuav tsum tau txais koj tus kheej daim npav SIM los ntawm tus muab kev pabcuam hauv cheeb tsam txij li Hologram koom tes nrog cov nqa khoom thiab CAT-M thiab NB-IoT yog qhov tshiab.
- 3.7V LiPo Roj Teeb (1000mAH+): Thaum tshawb rau cov tes hauj lwm lossis xa cov ntaub ntawv ntaub thaiv npog tuaj yeem kos qhov tseem ceeb ntawm tam sim no thiab koj tsis tuaj yeem tso siab ncaj qha los ntawm Arduino 5V kev tsheb nqaj hlau. Txuas lub roj teeb 3.7V LiPo rau hauv JST txuas ntawm lub rooj tsavxwm thiab xyuas kom lub roj teeb tau txuas nrog xaim zoo ntawm sab laug (zoo li cov uas pom ntawm Sparkfun lossis Adafruit). Tsis tas li, nws yog ib qho tseem ceeb kom ntseeg tau tias lub roj teeb yuav tsum muaj tsawg kawg 500mAH lub peev xwm (liab qab yam tsawg kawg nkaus) kom muaj peev xwm txaus txaus tam sim no thiab tiv thaiv tus qauv los ntawm rebooting thaum lub sijhawm tam sim no. 1000mAH lossis siab dua yog pom zoo rau kev ruaj ntseg. Qhov laj thawj rau qhov tsis muaj peev xwm tsawg kawg yog vim LiPo lub roj teeb them hluav taws xob tau teeb tsa rau 500mA yog li koj yuav tsum paub tseeb tias lub roj teeb tsawg kawg 500mAH muaj peev xwm tiv thaiv kev puas tsuaj rau lub roj teeb.
Kauj Ruam 2: Sib dhos Shield
Txhawm rau siv daim ntaub thaiv koj yuav xav tau lub taub hau txuas rau nws tshwj tsis yog koj tsis npaj rau siv lub rooj tsavxwm no ua "ntaub thaiv npog" thiab ntau dua ntawm cov qauv ib leeg ib leeg xwb, uas tseem zoo kawg nkaus! Ib qho piv txwv ntawm kev ua qhov no yog siv Arduino Micro ua tus tswj thiab txuas nws mus rau daim ntaub thaiv nyias.
Qhov kev xaiv ntau tshaj plaws rau kev siv lub rooj tsavxwm ua Arduino daim ntaub thaiv yog teeb tsa poj niam lub taub hau, uas suav nrog daim thaiv npog. Tom qab siv lub taub hau, mus tom ntej thiab tso daim ntaub thaiv rau saum Arduino board (tshwj tsis yog koj siv nws ua pawg ib leeg) thiab koj tau npaj rau qib tom ntej!
Nco tseg: Rau cov lus qhia yuav ua li cas txhawm rau tus pin koj tuaj yeem mus ntsib nplooj ntawv no ntawm Github wiki.
Kauj Ruam 3: Shield Pinouts
Daim ntaub thaiv tsuas yog siv Arduino's pinout tab sis txuas qee cov pins rau lub hom phiaj tshwj xeeb. Cov pins no tuaj yeem sau ua ke hauv qab no:
Hwj chim Pins
- GND - Cov hauv paus rau txhua qhov kev xav thiab lub zog
- 3.3V - 3.3V los ntawm Arduino tus tswj hwm. Siv qhov no ib yam li koj xav tau ntawm Arduino!
- 5V / LOGIC - Qhov no 5V txoj kev tsheb nqaj hlau los ntawm Arduino tsub lub roj teeb LiPo uas ua rau SIM7000 thiab tseem teeb lub logic qhov hluav taws xob rau I2C thiab qib hloov pauv. Yog tias koj tab tom siv 3.3V microcontroller, txuas 3.3V rau daim thaiv "5V" tus pin (thov saib ntu hauv qab no).
- VBAT - Qhov no tso cai nkag mus rau LiPo roj teeb hluav taws xob thiab ib txwm tsis txuas nrog txhua yam ntawm Arduino yog li koj muaj kev ywj pheej siv nws raws li koj xav tau! Nws kuj tseem zoo ib yam li qhov ntsuas hluav taws xob ntawm SIM7000 tus qauv. Yog tias koj tab tom xav txog kev ntsuas thiab tshuaj xyuas qhov ntsuas hluav taws xob no, txheeb xyuas qhov "b" hais kom ua hauv qhov kev qhia ua piv txwv uas ntsuas qhov hluav taws xob thiab qhia cov roj teeb feem pua! Nco ntsoov, yuav tsum tau roj teeb LiPo!
- VIN - Tus pin no tau txuas nrog VIN tus pin ntawm Arduino. Koj tuaj yeem siv zog Arduino li koj ib txwm xav tau nrog 7-12V ntawm tus pin no.
Lwm tus Pins
- D6 - Txuas rau SIM7000's PWRKEY tus pin
- D7 - SIM7000's Pib dua tus pin (tsuas yog siv qhov no thaum muaj xwm txheej rov pib dua!)
- D8 - UART Data Terminal Ready (DTR) tus pin. Qhov no tuaj yeem siv los tsa tus qauv los ntawm kev tsaug zog thaum siv "AT+CSCLK" hais kom ua
- D9 - Ntiv Nplhaib Qhia (RI) tus pin
- D10 - UART Transmit (TX) tus pin ntawm SIM7000 (qhov no txhais tau tias koj yuav tsum txuas Arduino's TX rau qhov no!)
- D11 - UART Txais (RX) tus pin ntawm SIM7000 (txuas rau Arduino's TX tus pin)
- D12 - Zoo 'ole D12 ntawm Arduino, TAB SIS koj tuaj yeem txuas nws mus rau ALERT cuam tshuam tus pin ntawm qhov ntsuas kub los ntawm kev siv lub jumper
- SDA/SCL - Qhov ntsuas kub tau txuas nrog daim thaiv ntawm I2C
Yog tias koj tab tom siv lub rooj tsav xwm ua tus qauv ib leeg thiab tsis yog "ntaub thaiv npog", lossis yog tias koj siv 3.3V lub tswv yim siv 5V koj yuav tsum tau ua qhov kev sib txuas tsim nyog raws li ntxaws ntxaws hauv ntu "Sab Nraud Tus Thawj Saib Xyuas Lub Rooj Sib Tham" ntawm no Github wiki nplooj ntawv.
Txawm li cas los xij, yog tias txhua yam koj xav tau yog sim AT cov lus txib, tom qab ntawd koj tsuas yog xav txuas lub LiPo roj teeb thiab lub micro USB cable, tom qab ntawv ua raws cov txheej txheem no los ntsuas AT cov lus txib ntawm USB. Nco ntsoov tias koj tseem tuaj yeem sim AT cov lus txib ntawm Arduino IDE, tab sis qhov ntawd yuav xav tau txuas tus pin D10/D11 rau UART.
Yog xav paub cov ntaub ntawv ntxaws ntxiv txog daim thaiv npog thiab txhua tus pin ua dab tsi, mus saib nplooj ntawv Github wiki no.
Kauj Ruam 4: Ua kom lub Shield
Txhawm rau tiv thaiv daim thaiv, yooj yim ntsaws rau hauv Arduino thiab ntsaws rau hauv 3.7V LiPo roj teeb (1000mAH lossis muaj peev xwm ntau dua) zoo li cov muag ntawm Adafruit lossis Sparkfun. Yog tsis muaj lub roj teeb koj yuav zoo li pom lub module khau raj nce ces tsoo sai tom qab ntawd. Koj tseem tuaj yeem siv lub zog Arduino zoo li koj ib txwm xav tau ntawm USB cable lossis sab nraud los ntawm 7-12V lub zog siv hluav taws xob ntawm VIN tus pin thiab 5V kev tsheb nqaj hlau ntawm Arduino yuav them lub roj teeb LiPo. Nco ntsoov tias yog tias koj siv tus qauv Arduino pawg thawj coj koj tuaj yeem ruaj ntseg siv nws los ntawm lub zog hluav taws xob sab nraud thaum tseem ua kom lub xov tooj cua txuas nrog vim tias nws muaj hluav taws xob xaiv hluav taws xob.
LED Qhia
Thaum xub thawj koj yuav xav tsis thoob yog tias pawg thawj coj tseem muaj txoj sia nyob vim tias tej zaum tsis muaj ib qho LED tig. Qhov no yog vim tias "PWR" LED yog lub zog ntsuas rau SIM7000 tus qauv nws tus kheej, thiab txawm hais tias koj tab tom muab lub zog koj tseem tsis tau qhib lub module rau! Qhov no ua tiav los ntawm kev ua PWRKEY qis rau tsawg kawg 72ms, uas kuv yuav piav qhia tom qab. Tsis tas li, yog tias koj muaj lub roj teeb txuas nrog thiab nws tsis tau them tag nrho ntsuab "DONE" LED yuav tsis qhib, tab sis yog tias koj tsis muaj lub roj teeb txuas nrog LED no yuav tsum qhib (thiab yuav nyem qee zaum thaum nws dag rau xav tias lub roj teeb uas tsis muaj nyob tsis tau them tag nrho vim qhov poob qis me ntsis).
Tam sim no koj paub yuav ua li cas kom muaj zog txhua yam cia peb txav mus rau cov khoom siv ntawm tes!
Kauj ruam 5: SIM Card & Kav hlau txais xov
Xaiv daim npav SIM
Ib zaug ntxiv, koj daim npav SIM yuav tsum muaj peev xwm txhawb nqa LTE CAT-M (tsis yog LTE ib txwm zoo li tej zaum hauv koj lub xov tooj) lossis NB-IoT, thiab nws yuav tsum yog "micro" SIM loj. Qhov kev xaiv zoo tshaj plaws kuv tau pom rau daim ntaub thaiv no yog Hologram Developer SIM card uas muab 1MB/hli dawb thiab nkag mus rau Hologram's APIs thiab cov peev txheej rau thawj daim npav SIM! Cias nkag rau koj li Hologram.io dashboard thiab nkag mus rau SIM tus lej CCID kom qhib nws, tom qab ntawd teeb tsa APN teeb tsa hauv tus lej (twb tau teeb tsa ua ntej lawm). Nws tsis muaj teeb meem thiab ua haujlwm nyob txhua qhov chaw hauv ntiaj teb vim tias Hologram txhawb nqa ntau dua 200 tus neeg nqa khoom thoob ntiaj teb!
Nws yuav tsum raug sau tseg tias SIM7000C/E/G versions kuj txhawb 2G rov qab, yog li yog koj xav sim tiag tiag thiab tsis muaj LTE CAT-M lossis NB-IoT SIM daim npav, koj tseem tuaj yeem sim qhov qauv ntawm 2G.
Ntxig daim npav SIM
Ua ntej tshaj plaws koj yuav tsum tau ua kom tawg micro SIM tawm ntawm tus neeg siv daim npav SIM uas ib txwm muaj. Ntawm LTE daim thaiv nrhiav tus tuav daim npav SIM ntawm sab laug ntawm lub rooj tsavxwm ze ntawm lub roj teeb txuas. Daim npav SIM tau muab tso rau hauv tus tuav no nrog SIM tus hlau hu rau lub ntsej muag thiab lub ntsej muag me me ntawm ib sab tig rau tus tuav daim npav SIM.
Kav hlau txais xov Zoo
Cov ntaub thaiv npog los nrog qhov yooj yim tiag tiag dual LTE/GPS kav hlau txais xov! Nws kuj tseem yoog tau (txawm hais tias koj yuav tsum tsis txhob sim ntswj thiab khoov nws ntau vim tias koj tuaj yeem tsoo lub kav hlau txais xov ntawm lub kav hlau txais xov yog tias koj tsis xyuam xim) thiab muaj cov tev-tawm cov nplaum rau hauv qab. Kev txuas cov xov hlau yog yooj yim heev: tsuas yog siv cov xov hlau thiab ntsaws lawv mus rau qhov sib txuas uFL txuas ntawm sab xis ntawm daim ntaub thaiv. NCO TSEG: Nco ntsoov tias koj sib txuas LTE xov tooj ntawm tus kav hlau txais xov rau LTE txuas ntawm daim ntaub thaiv, thiab tib yam nrog GPS xaim vim tias lawv tau hla hla!
Kauj Ruam 6: Teeb Arduino IDE
Daim npav SIM7000 no yog ua raws Adafruit FONA cov laug cam thiab siv tib lub tsev qiv ntawv tab sis txhim kho nrog ntxiv kev txhawb nqa modem. Koj tuaj yeem nyeem tag nrho cov lus qhia yuav ua li cas txhawm rau txhim kho kuv lub tsev qiv ntawv FONA kho tshiab ntawm no ntawm kuv nplooj Github.
Koj tseem tuaj yeem pom yuav ua li cas ntsuas tawm MCP9808 qhov ntsuas kub los ntawm kev ua raws cov lus qhia no, tab sis ntawm no kuv yuav tsom mus rau cov khoom siv ntawm tes!
Kauj Ruam 7: Piv Txwv Arduino
Teeb Baud Rate Setup
Los ntawm lub neej ntawd SIM7000 khiav ntawm 115200 baud tab sis qhov no nrawm dhau rau software software kom ntseeg tau kev ua haujlwm thiab cov cim tuaj yeem tshwm sim zoo li cov thawv xwm txheej lossis lwm cov cim txawv (piv txwv li, "A" tuaj yeem pom ua "@"). Qhov no yog vim li cas yog tias koj ua tib zoo saib, Arduino teeb tsa tus qauv rau qeeb baud tus nqi ntawm 9600 txhua lub sijhawm nws tau pib. Hmoov zoo qhov kev hloov pauv tau saib xyuas zoo los ntawm tus lej, yog li koj tsis tas yuav ua dab tsi tshwj xeeb los teeb tsa nws!
LTE Shield Demo
Tom ntej no, ua raws cov lus qhia no kom qhib qhov "LTE_Demo" kos duab (lossis qhov twg los xij ntawm qhov kev kos duab ntawd, nyob ntawm seb koj siv lub microcontroller twg). Yog tias koj nqes mus rau qhov kawg ntawm "teeb tsa ()" ua haujlwm koj yuav pom kab "fona.setGPRSNetworkSettings (F (" hologram "));" uas teev APN rau Hologram SIM daim npav. Qhov no xav tau kiag li, thiab yog tias koj siv lwm daim npav SIM koj yuav tsum xub tham nrog daim npav cov ntaub ntawv ntawm APN yog dab tsi. Nco ntsoov tias koj tsuas yog yuav tsum tau hloov kab no yog tias koj tsis siv daim npav Hologram SIM.
Thaum txoj cai sau Arduino yuav sim sib txuas lus nrog SIM7000 ntawm UART (TX/RX) siv SoftwareSerial. Txhawm rau ua qhov no, tau kawg, SIM7000 yuav tsum tau qhib, yog li thaum nws tab tom sim tsim kev sib txuas, kos rau "PWR" LED kom paub tseeb tias nws tig! (Nco tseg: nws yuav tsum tig txog 4s lossis yog li tom qab tus lej sau). Tom qab Arduino ua tiav kev teeb tsa kev sib txuas lus nrog cov qauv koj yuav tsum pom cov ntawv qhia zaub mov loj nrog cov pawg ntawm cov kev ua uas tus qauv tuaj yeem ua! Txawm li cas los xij, nco ntsoov tias qee qhov ntawm no yog rau SIMCom lwm 2G lossis 3G modules yog li tsis yog txhua cov lus txib siv rau SIM7000 tab sis ntau ntawm lawv yog! Tsuas yog ntaus tus ntawv sib xws rau qhov kev ua uas koj xav ua thiab nyem "Xa" nyob rau sab xis saum toj ntawm tus saib xyuas lossis tsuas yog nyem Enter. Saib hauv kev xav tsis thoob thaum daim ntaub thaiv rov qab los teb!
Demo Commands
Hauv qab no yog qee cov lus txib koj yuav tsum khiav kom ntseeg tau tias koj lub teeb tsa tau teeb tsa ua ntej mus txuas ntxiv:
- Ntaus "n" thiab nias nkag mus txhawm rau txheeb xyuas cov npe network. Koj yuav tsum pom "Sau npe (tsev)". Yog tias tsis yog, xyuas seb koj lub kav hlau txais xov tau txuas thiab koj kuj tseem yuav tsum tau hais kom ua "G" (piav qhia hauv qab no) ua ntej!
- Txheeb xyuas lub network teeb liab lub zog los ntawm kev nkag mus "i". Koj yuav tsum tau txais tus nqi RSSI; siab dua tus nqi no zoo dua! Kuv yog 31, uas qhia qhov zoo tshaj plaws teeb liab bracket!
- Nkag mus rau lo lus txib "1" txhawm rau txheeb xyuas qee cov ntaub ntawv zoo hauv lub network. Koj tuaj yeem tau txais hom kev sib txuas tam sim no, lub npe thauj khoom, band, thiab lwm yam.
- Yog tias koj muaj lub roj teeb txuas nrog, sim ua "b" hais kom nyeem lub roj teeb voltage thiab feem pua. Yog tias koj tsis siv lub roj teeb qhov no yuav hais kom ib txwm nyeem ib puag ncig 4200mV thiab yog li ntawd hais tias nws tau them 100%.
- Tam sim no nkag mus "G" txhawm rau pab cov ntaub ntawv ntawm tes. Qhov no teeb tsa APN thiab tseem ceeb heev rau koj lub cuab yeej txuas nrog lub vev xaib! Yog tias koj pom "ERROR" sim tig cov ntaub ntawv los ntawm kev siv "g" ces sim dua.
- Txhawm rau sim yog tias koj tuaj yeem ua qee yam nrog koj tus qauv, sau "w". Nws yuav qhia koj kom nkag mus rau qhov URL ntawm lub vev xaib uas koj xav nyeem, thiab luam/muab piv txwv URL "https://dweet.io/get/latest/dweet/for/sim7000test123" thiab nias nkag mus. Tsis ntev tom qab ntawd nws yuav tsum muab koj cov lus zoo li "{" qhov no ":" ua tsis tiav "," nrog ": 404," vim ":" peb nrhiav tsis tau qhov no "}" (piv txwv tias tsis muaj leej twg tshaj tawm cov ntaub ntawv rau "sim7000test123")
- Tam sim no cia peb sim xa cov ntaub ntawv dummy mus rau dweet.io, huab dawb API los ntawm kev nkag mus "2" hauv kab ntawv saib. Koj yuav tsum pom nws khiav los ntawm qee cov lus txib AT.
- Txhawm rau sim yog tias cov ntaub ntawv tau dhau los, sim "w" dua thiab lub sijhawm no nkag mus "https://dweet.io/get/latest/dweet/for/{deviceID}" yam tsis muaj cov kab zauv, qhov twg ID ntaus ntawv yog IMEI tus naj npawb ntawm koj lub cuab yeej uas yuav tsum tau luam tawm nyob rau sab saum toj kawg nkaus ntawm tus saib xyuas los ntawm tus qauv pib. Koj yuav tsum pom "ua tiav" thiab JSON cov lus teb uas muaj cov ntaub ntawv uas koj nyuam qhuav xa! (Nco ntsoov tias 87% roj teeb tsuas yog tus lej dummy uas tau teeb tsa hauv txoj cai thiab yuav tsis yog koj li roj teeb tiag)
- Tam sim no nws yog lub sijhawm los sim GPS! Pab kom lub zog rau GPS siv "O"
- Sau "L" los nug cov ntaub ntawv chaw nyob. Nco ntsoov tias koj yuav tsum tau tos ib ncig 7-10s ua ntej nws yuav tau kho qhov chaw. Koj tuaj yeem txuas ntxiv "L" kom txog thaum nws qhia koj qee cov ntaub ntawv!
- Thaum nws muab koj cov ntaub ntawv, theej thiab muab nws tso rau hauv Microsoft Word lossis cov ntawv kho kom nws yooj yim nyeem. Koj yuav pom tias tus lej thib peb (cov lej sib cais los ntawm tus lej) yog hnub tim thiab sijhawm, thiab peb tus lej tom ntej yog qhov latitude, longitude, thiab nce (metres) ntawm koj qhov chaw nyob! Txhawm rau txheeb xyuas seb nws puas raug, mus rau qhov cuab yeej online no thiab tshawb nrhiav koj qhov chaw tam sim no. Nws yuav tsum muab rau koj lat/ntev thiab qhov siab thiab sib piv cov txiaj ntsig no nrog qhov uas koj GPS muab!
- Yog tias koj tsis xav tau GPS koj tuaj yeem tua nws siv "o"
- Muaj kev lom zem nrog lwm cov lus txib thiab txheeb xyuas qhov piv txwv "IoT_Example" kos duab rau qhov piv txwv zoo ntawm yuav ua li cas xa cov ntaub ntawv mus rau huab dawb API ntawm LTE!
Xa & Txais Cov Ntawv
Txhawm rau pom yuav ua li cas xa cov ntawv los ntawm daim ntaub thaiv ncaj qha mus rau txhua lub xov tooj thiab xa ntawv mus rau daim ntaub thaiv ntawm Hologram's Dashboard lossis API, thov nyeem nplooj ntawv Github wiki no.
Piv txwv IoT: GPS Nrhiav
Thaum koj txheeb xyuas txhua yam ua haujlwm raws li qhov xav tau, qhib qhov "IoT_Example" kos duab. Qhov piv txwv no xa GPS qhov chaw thiab cov ntaub ntawv coj los ntsuas, ntsuas kub, thiab qib roj teeb mus rau huab! Tshaj tawm cov cai thiab saib hauv kev xav tsis thoob li daim ntaub thaiv ua nws cov khawv koob! Txhawm rau txheeb xyuas yog tias cov ntaub ntawv raug xa mus rau huab, mus rau "https://dweet.io/get/latest/dweet/for/{IMEI}" hauv txhua lub browser (sau tus lej IMEI pom nyob rau sab saum toj ntawm serial monitor tom qab pib ua qauv, lossis luam tawm ntawm koj SIMCOM module) thiab koj yuav tsum pom cov ntaub ntawv uas koj lub cuab yeej xa tuaj!
Nrog qhov piv txwv no koj tseem tuaj yeem tsis txaus siab kab nrog "#define samplingRate 30" kom xa cov ntaub ntawv ntau zaus es tsis txhob siv ib zaug nkaus xwb. Qhov no ua rau koj lub cuab yeej tseem ceeb yog GPS taug qab cov cuab yeej!
Yog xav paub ntau ntxiv, thov mus saib cov lus qhia uas kuv tau ua rau lub sijhawm GPS taug qab:
- Qhia GPS tracker ntu 1
- Qhia GPS tracker ntu 2
Teeb meem
Rau cov lus nug tshwm sim thiab teeb meem daws teeb meem thov mus saib FAQ ntawm Github.
Kauj Ruam 8: Xeem Nrog AT Cov Lus txib
Xeem los ntawm Arduino IDE
Yog tias koj xav xa AT cov lus txib mus rau tus qauv ntawm tus lej saib xyuas, siv "S" hais kom ua los ntawm cov ntawv qhia zaub mov kom nkag mus rau hom raj txuas. Qhov no yuav ua kom txhua yam uas koj ntaus hauv cov ntawv saib yuav raug xa mus rau tus qauv. Qhov uas tau hais, nco ntsoov pab kom "Ob NL & CR" nyob hauv qab ntawm cov ntawv saib xyuas, txwv tsis pub koj yuav tsis pom ib qho lus teb rau koj cov lus txib vim tias tus qauv yuav tsis paub tias koj ua tiav lawm!
Txhawm rau tawm ntawm hom no, tsuas yog nyem lub pob pib dua ntawm koj Arduino. Nco ntsoov tias yog tias koj siv ATmega32u4 lossis ATSAMD21-based cov laug cam, koj yuav tsum rov pib dua lub xov tooj ib yam nkaus.
Yog xav paub ntxiv txog kev xa AT cov lus txib los ntawm Arduino IDE, thov saib nplooj ntawv wiki no.
Kev Ntsuas Ncaj Ncees Ntawm USB
Tej zaum txoj hauv kev yooj yim dua (rau cov neeg siv Windows) yog teeb tsa lub Windows tsav tsheb kom ntxaws hauv qhov kev qhia no thiab sim AT cov lus txib los ntawm kev siv daim ntaub thaiv lub micro USB chaw nres nkoj hloov chaw!
Yog tias koj tseem xav sim nrog AT cov lus txib tab sis xav kom khiav lawv ua ntu zus thiab tsis xav kom cuam tshuam nrog hloov kho FONA lub tsev qiv ntawv koj tuaj yeem ua qhov ntawd nrog lub tsev qiv ntawv me me yooj yim Kuv tau sau hu ua "AT Command Library" uas koj tuaj yeem pom ntawm no ntawm Github. Txhua yam koj yuav tsum tau ua yog rub tawm ZIP los ntawm cov chaw cia khoom thiab rho tawm nws mus rau hauv koj lub Arduino cov tsev qiv ntawv nplaub tshev thiab piv txwv piv txwv (hu ua "AT_Command_Test.ino") rau SIM7000 tuaj yeem pom ntawm no hauv LTE shield Github repo. Lub tsev qiv ntawv no tso cai rau koj xa AT cov lus txib ntawm Software Serial nrog sijhawm tas sijhawm, kuaj xyuas ib qho lus teb tshwj xeeb los ntawm tus qauv, tsis yog, lossis ob qho tib si!
Kauj Ruam 9: Kev Siv Tam Sim No
Txog IoT cov cuab yeej koj xav pom cov lej no mus qis, yog li cia peb saib qee qhov kev qhia tshwj xeeb! Txog cov ncauj lus ntxaws qhia txog kev ntsuas kev siv tam sim no, thov saib nplooj ntawv Github no.
Nov yog cov ntsiab lus ceev:
- SIM7000 tus qauv siv tawm: tag nrho cov ntaub thaiv npog <8uA ntawm 3.7V LiPo roj teeb
- Pw tsaug zog hom thim txog 1.5mA (suav nrog PWR LED ntsuab, yog li tej zaum ~ 1mA tsis muaj nws) thiab nyob qis qis txuas nrog lub network
- E-DRX teeb tsa tuaj yeem teeb tsa lub sijhawm sib tham ntawm kev sib tham hauv network thiab txuag lub zog tab sis tseem yuav ncua qee yam xws li cov ntawv xa xov tuaj nyob ntawm seb lub sijhawm voj voog tau teeb tsa li cas
- Txuas nrog LTE CAT-M1 network, tsis ua haujlwm: ~ 12mA
- GPS ntxiv ~ 32mA
- Txuas USB ntxiv ~ 20mA
- Cov ntaub ntawv xa mus hla LTE CAT-M1 yog ~ 96mA rau ~ 12s
- Xa SMS rub ~ 96mA rau ~ 10s
- Txais SMS rub ~ 89mA rau ~ 10s
- PSM suab zoo li qhov ua tau zoo tab sis tseem tsis tau ua haujlwm
Thiab ntawm no yog kev piav qhia me ntsis ntxiv:
- Lub Hwj Chim Hom: Koj tuaj yeem siv "fona.powerDown ()" ua haujlwm kom tshem tawm SIM7000. Hauv lub xeev no tus qauv kos tsuas yog kwv yees li 7.5uA, thiab tsis ntev tom qab koj tua lub module "PWR" LED yuav tsum tau tua.
- Lub Hwj Chim Txiaj Ntsig (PSM): Hom no zoo li lub zog poob qis tab sis lub modem tseem sau npe rau hauv lub network thaum teeb duab tsuas yog 9uA thaum tseem khaws cov qauv siv. Hauv hom no tsuas yog RTC lub zog yuav ua haujlwm. Rau cov ESP8266 tus kiv cua nyob ntawd, nws yog qhov tseem ceeb "ESP.deepSleep ()" thiab RTC lub sijhawm tuaj yeem tsim tus qauv tab sis koj tuaj yeem ua qee yam khoom zoo nkauj zoo li tsa lub modem los ntawm kev xa nws SMS. Txawm li cas los xij, hmoov tsis kuv tsis tuaj yeem tau txais cov yam ntxwv no los ua haujlwm. Yeej qhia rau kuv paub yog tias koj ua!
- Davhlau Hom: Hauv hom kev siv fais fab no tseem muab rau tus qauv tab sis RF tsis taus kiag li tab sis daim npav SIM tseem ua haujlwm ntxiv nrog rau UART thiab USB interface. Koj tuaj yeem nkag mus rau hom no siv "AT+CFUN = 4" tab sis kuv tsis pom qhov no ua haujlwm ib yam nkaus.
- Yam Tsawg Yam Ua Haujlwm: Hom no zoo ib yam li Dav Dav Dav tshwj tsis yog daim npav SIM sib cuam tshuam tsis tau. Koj tuaj yeem nkag mus rau hom no siv "AT+CFUN = 0" tab sis koj kuj tuaj yeem nkag mus rau hom no siv "AT+CSCLK = 1" tom qab uas SIM7000 yuav rub DTR tus pin thaum tus qauv tsis ua haujlwm. Hauv qhov kev pw tsaug zog no rub DTR qis yuav tsa tus qauv. Qhov no tuaj yeem ua ke vim tias kev tsa nws tuaj yeem nrawm dua li txhawb nws los ntawm kos!
- Kev Txais Tos/Kev Xa Mus Tsis Txaus (DRX/DTX) Hom: Koj tuaj yeem teeb tsa "piv txwv tus nqi" ntawm tus qauv kom hais lus, yog li ntawd tus qauv tsuas yog tshuaj xyuas cov ntawv lossis xa cov ntaub ntawv ntawm qhov nrawm dua lossis qeeb dua, tag nrho thaum tseem txuas nrog lub network. Qhov no txo qis kev siv tam sim no!
- Lov tes taw "PWR" LED: Txhawm kom txuag tau ob peb pennies ntxiv koj tuaj yeem ua haujlwm tsis zoo ntawm lub zog hluav taws xob LED los ntawm kev txiav qhov ib txwm kaw-kaw cov hlua txuas ntawm nws ib sab. Yog tias tom qab koj hloov koj lub siab thiab xav kom nws rov qab, tsuas yog txuas lub jumper!
- "NETLIGHT" LED On/Off: Koj tseem tuaj yeem siv "AT+CNETLIGHT = 0" txhawm rau tua lub network xiav xwm txheej LED kom tiav yog tias koj tsis xav tau!
- GNSS On/Off: Koj tuaj yeem txuag tau 30mA los ntawm kev tua GPS siv qhov hais kom ua "fona.enableGPS ()" nrog qhov tseeb lossis tsis tseeb raws li qhov ntsuas nkag. Yog tias koj tsis siv nws Kuv xav qhia koj kom tua nws! Tsis tas li, kuv pom tias nws tsuas yog siv li 20s txhawm rau kho qhov chaw los ntawm qhov pib txias thiab tsuas yog kwv yees li 2s thaum lub cuab yeej twb tau ua haujlwm lawm (zoo li yog tias koj qhib GPS tawm ces rov qab qhib thiab nug dua), uas yog zoo nkauj heev ! Koj tseem tuaj yeem sim ua kom sov/kub pib thiab pab GPS.
Kauj ruam 10: Cov lus xaus
Zuag qhia tag nrho, SIM7000 yog nrawm heev thiab siv thev naus laus zis thev naus laus zis nrog GPS ua ke thiab los nrog cov yam ntxwv txias! Hmoov tsis zoo rau peb ntawm Tebchaws Meskas, NB-IoT tsis tau ua tiav ntawm no yog li peb yuav tau tos me ntsis kom txog thaum nws tawm los, tab sis nrog LTE daim thaiv no peb tseem tuaj yeem siv LTE CAT-M1 ntawm AT & T thiab Verizon cov tes hauj lwm. Cov ntaub thaiv npog no zoo rau kev sim nrog cov cuab yeej siv hluav taws xob qis xws li GPS trackers, cov chaw khaws ntaub ntawv deb, thiab ntau ntxiv! Los ntawm suav nrog lwm cov ntaub thaiv npog thiab cov qauv rau yam xws li SD daim npav cia, lub hnub ci vaj huam sib luag, lub ntsuas cua, thiab lwm yam kev sib txuas wireless, qhov muaj peev xwm yuav luag tsis muaj qhov kawg!
- Yog tias koj nyiam txoj haujlwm no, thov muab lub siab thiab pov npav rau nws!
- Yog tias koj muaj lus pom, tawm tswv yim, lossis lus nug, thov tso tawm hauv qab no!
- Txhawm rau xaj koj tus kheej daim thaiv, thov mus saib kuv lub vev xaib rau cov ntaub ntawv lossis xaj nws ntawm Amazon.com
- Raws li ib txwm, thov qhia txoj haujlwm no!
Nrog qhov hais tias, zoo siab DIY'ing thiab nco ntsoov qhia koj cov haujlwm thiab txhim kho nrog txhua tus!
~ Tim
Pom zoo:
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Arduino Project: Kev Ntsuas Ntau LoRa Module RF1276 rau GPS Nrhiav Tshuaj: 9 Cov Kauj Ruam (nrog Duab)
Arduino Project: Xeem Ntau LoRa Module RF1276 rau GPS Nrhiav Kev Sib Txuas: Kev Sib Txuas: USB - SerialNeed: Chrome Browser Xav Tau: 1 X Arduino Mega Xav Tau: 1 X GPS Xav Tau: 1 X SD card Xav Tau: 2 X LoRa Modem RF1276 Kev Ua Haujlwm: Arduino Xa GPS tus nqi mus rau lub hauv paus loj - Lub hauv paus loj khaws cov ntaub ntawv hauv Dataino Server Lora Module: Ultra ntev ntau
Nkag mus rau Neeg Hlau Nrog Cov Khau Nkoj, W/o GPS, W/o Daim Ntawv Qhia: 13 Cov Kauj Ruam (nrog Duab)
Taw Qhia Neeg Hlau Nrog Cov Khau Khau, W/o GPS, W/o Daim Ntawv Qhia: Tus neeg hlau txav mus rau hauv txoj kev npaj ua ntej thiab xa tawm (dhau bluetooth) nws cov ntaub ntawv txav mus rau lub xov tooj rau kev taug qab lub sijhawm. Arduino tau npaj ua ntej nrog txoj hauv kev thiab oblu tau siv rau kev paub txog tus neeg hlau lub zog. oblu transmits txav infor
Yuav Ua Li Cas Txuas DeLorme Earthmate GPS LT-20 rau Koj Lub Ntiaj Teb Google rau Daim Ntawv Qhia GPS Zoo Tshaj: 5 Kauj Ruam
Yuav Ua Li Cas Txuas DeLorme Earthmate GPS LT-20 rau Koj Lub Ntiaj Teb Google rau Daim Ntawv Qhia GPS Zoo Tshaj Plaws: Kuv yuav qhia koj yuav ua li cas txuas lub cuab yeej GPS mus rau qhov kev pab cuam Google Earth nrov, tsis siv Google Earth Plus. Kuv tsis muaj peev nyiaj loj yog li kuv tuaj yeem lav tias qhov no yuav pheej yig li ua tau