Cov txheej txheem:

Gps Hav Zoov Hluav Taws Ceeb Toom Nrog Sim808 thiab Arduino Uno: 23 Kauj Ruam (nrog Duab)
Gps Hav Zoov Hluav Taws Ceeb Toom Nrog Sim808 thiab Arduino Uno: 23 Kauj Ruam (nrog Duab)

Video: Gps Hav Zoov Hluav Taws Ceeb Toom Nrog Sim808 thiab Arduino Uno: 23 Kauj Ruam (nrog Duab)

Video: Gps Hav Zoov Hluav Taws Ceeb Toom Nrog Sim808 thiab Arduino Uno: 23 Kauj Ruam (nrog Duab)
Video: ? Что такое многополосный 6 атомный хронометраж ? То 2024, Kaum ib hlis
Anonim
Image
Image
Arduino Ib
Arduino Ib

Nyob zoo uas, hauv kab ntawv no peb yuav pom yuav ua li cas thiaj tsim lub tshuab tua hluav taws hauv hav zoov, nrog ceeb toom los ntawm kab ntawv, ntawm qhov chaw ntawm kev sib tsoo, ua tsaug rau kev sib xyaw gps sim808 module, tso cai los ntawm cov neeg ntawm DFRobot, peb yuav pom qhov chaws, qee tus yam ntxwv thiab kev ua haujlwm ntawm sim808 tus qauv, hauv ib puag ncig sab nraud, qhov no yog qhov txuas ntxiv ntawm qhov haujlwm yav dhau los, qhov uas peb tau pom yuav ua li cas thiaj ua rau lub nplaim hluav taws ntes tau yooj yim heev rau hauv tsev.

Kauj ruam 1: Taw qhia

Cov kab ke no sim tiv thaiv hluav taws hauv hav zoov thiab teb, qhov kev puas tsuaj ntawm hom no tuaj yeem ua rau muaj kev lag luam poob nyiaj ntau, kev puas tsuaj ntawm cov khoom tseem ceeb, kev puas tsuaj ntawm cov paj ntoo thiab tsiaj txhu ntawm qhov chaw ua rau muaj kev puas tsuaj ntawm ntau yam, tab sis qhov tseem ceeb tshaj plaws yog cawm tib neeg txoj sia.

Lub hauv paus ntsiab lus ntawm kev ua haujlwm yog raws li hauv qab no, thaum kuaj pom hluav taws los ntawm lub nplaim taws, nws yuav xa cov teeb liab sib xws mus rau arduino, uas nyob ntawm nws tus nqi, yuav qhib kev xa cov ntawv xov tooj nrog GPS saib xyuas qhov chaw uas hluav taws tau tshwm sim.. Rau txoj haujlwm no peb yuav xav tau lub nplaim taws, ib qho arduino uno, sim808 tus qauv, roj teeb, kab hluav taws xob, koj tuaj yeem tshawb xyuas cov npe khoom hauv qab no:

Kauj ruam 2: Arduino Ib

Kauj ruam 3: Sim808

Sib 808
Sib 808

Kauj ruam 4: Nplaim Sensor

Nplaim Sensor
Nplaim Sensor

Txog cov nplaim hluav taws xob ntsuas qhov ntsuas

  • Cov qauv no nkag siab rau nplaim taws thiab nws cov hluav taws xob. Nws tseem tuaj yeem txheeb pom qhov pom kev zoo ib yam nyob hauv thaj tsam ntawm qhov yoj ntawm 760 nm txog 1100 nm.
  • Cov nplaim hluav taws tuaj yeem tso tawm digital lossis analog teeb liab.
  • Nws tuaj yeem siv ua lub tswb hluav taws.
  • Kev nrhiav pom ntawm lub kaum sab xis txog 60 degrees, tshwj xeeb yog rhiab heev rau lub nplaim hluav taws.
  • Cov txiaj ntsig sib piv, teeb liab huv, yoj zoo, tsav tsheb muaj peev xwm, ntau dua 15mA.
  • Kev siv hluav taws xob ntawm 3.3 V-5 V. Cov ntawv tso tawm: cov hloov pauv digital (0 thiab 1) thiab cov khoom siv hluav taws xob zoo sib xws AO. Fixed ntsia liaj qhov rooj kom yooj yim teeb tsa.
  • Cov pawg PCB me me Loj: 3.2cm x 1.4cm.
  • Siv lub tshuab LM393 ua lub zog sib piv

Kauj Ruam 5: Dupont Cables

Dupont Cables
Dupont Cables

Kauj Ruam 6: Roj Teeb 12 Volts (tuaj yeem yog Lub Hauv Paus ntawm 12 Tsawg los Ua Thawj Qhov Kuaj)

Roj teeb 12 Volts (tuaj yeem yog Lub Hauv Paus ntawm 12 Tsawg los Ua Thawj Qhov Kuaj)
Roj teeb 12 Volts (tuaj yeem yog Lub Hauv Paus ntawm 12 Tsawg los Ua Thawj Qhov Kuaj)

Kauj Ruam 7: Lub Thawv Nrog Lim (xaiv tau)

Lub Thawv Nrog Lim (xaiv tau)
Lub Thawv Nrog Lim (xaiv tau)

Kauj ruam 8: Circuit Court

Circuit Court
Circuit Court

Kauj ruam 9: Source Code

Thov rub tawm los ntawm

Kauj ruam 10: Txog Sim808 Module ntawm Dfrobot

SIM808 GPS/GPRS/GSM arduino shield yog kev sib koom ua ke plaub-qhab GSM/GPRS thiab GPS kev siv tshuab thev naus laus zis Arduino nthuav tawm daim thaiv. Ib daim npav rho nyiaj tsuas yog raws li tus qauv Arduino tus pin ntim, sib xws nrog Arduino UNO, arduino Leonardo, arduino Mega thiab lwm yam arduino mainboard. Compared rau tiam dhau los SIM908, SIM808 ua qee qhov kev txhim kho ntawm kev ua tau zoo thiab ruaj khov. Ntxiv rau qhov SMS thiab xov tooj ib txwm ua, daim ntaub thaiv tseem txhawb nqa MMS, DTMF, FTP thiab lwm yam haujlwm. Koj tuaj yeem ua tiav cov ntaub ntawv tau txais, xa cov ntaub ntawv wireless, IoT daim ntawv thov thiab GPS qhia. Qhov yuav tsum suav nrog onboard microphone thiab lub mloog pob ntseg, txuag koj tus nqi thiab ua koj txoj haujlwm yooj yim. nws tseem tuaj yeem txuas ncaj qha rau GSM thiab GPS tus kav hlau txais xov los ntawm tus kav hlau txuas sab nraud.

SIM808 GPS/GPRS/GSM Arduino Shield V1.0 siv qhov tshiab tshaj plaws ntawm Simcom SIM808 module, piv nrog SIM808 tus qauv thaum ntxov muaj nyob hauv khw, tus qauv tshiab muaj kev ruaj ntseg zoo dua. Tab sis GPS ib feem ntawm AT cov lus txib tsis sib xws nrog cov qauv qub ntawm SIM808 tus qauv, thov xa mus rau hauv qab ntawm "ntau dua" hauv AT cov lus txib.

Kauj Ruam 11: Kev qhia tshwj xeeb

  • Ua haujlwm voltage: 5V
  • Lub Hwj Chim Tawm: 7-23V
  • Plaub-qhab 850/900/1800/1900 MHz
  • GPRS ntau chav kawm 10/10
  • GPRS chaw nres tsheb mobile chav kawm B.
  • Ua raws GSM theem 2/2 +Chav Kawm 4 (2 W @ 850 / 900MHz)
  • Hoob 1 (1 W @ 1800 / 1900MHz)
  • Txhawb kev siv hluav taws xob qis: 100mA @ 7V-GSM hom
  • Txhawb AT cov lus txib tswj (3GPP TS 27.007, 27.005 thiab SIMCOM txhim kho AT Commands)
  • Txhawb GPS satellite navigation tshuab
  • Txhawb LED qhov xwm txheej qhia: Lub zog fais fab xwm txheej, xwm txheej network thiab hom kev ua haujlwm
  • Ib puag ncig ua haujlwm: -40 ℃ ~ 85 ℃ Loj: 69 * 54mm/2.71 * 2.12 nti

Kauj Ruam 12: Pawg Txheej Txheem

Pawg Thawj Coj Saib Xyuas
Pawg Thawj Coj Saib Xyuas

Module interface thiab ceev faj:

Cov pins nyob: D0, D1, D12, tus lej digital "D12" txuas nrog SIM808 module zog GPIO. Nws tuaj yeem siv ua SIM808 module rau / tawm tswj. SIM808 onboard MIC thiab 3.5mm SIM808 microphone siv tib lub MIC channel, thaum koj txuas koj lub microphone, lub MIC-on-board yuav raug txiav tawm. Boot hloov khawm --SIM808 module hloov, luv -nias 1s kom pib SIM808, ntev -nias 3s tig nws tawm. LED "ON" - SIM808 lub hwj chim qhia, tsuas yog thaum koj txuas lub zog sab nraud, tus qauv tuaj yeem ua haujlwm tau zoo. Net - GSM teeb liab qhia tau ceev: Tshawb NetworkSlow flash (3s ib zaug): kev sau npe hauv network tiav Kev hloov pauv tsis muaj- Tsis muaj SIM808 tus lej txuas mus rub daim duab, thov hu rau ntawm no. USB_DBG-- Thaum lub rooj nthuav dav txuas rau ntawm Arduino, hu rau ntawm no kom SIM808 sib tham nrog PC los ua debug (AT debugging). Arduino-- Thaum lub rooj nthuav dav txuas rau ntawm Arduino, hu rau ntawm no kom SIM808 sib tham nrog Arduino.

Kauj Ruam 13: USB Debugging (AT Command)

Hauv ntu no, peb yuav xa AT cov lus txib los ntawm qhov chaw nres nkoj txuas mus rau debug SIM808 nthuav dav daim thaiv. Thov xa mus rau SIM808 AT cov lus txib teeb tsa rau kev ua haujlwm ntau dua.

Kauj ruam 14: Kev npaj

Kho vajtse:

  • Arduino UNO x1
  • SIM808 nthuav dav board x1
  • Lub hwj chim sab nraud x1

Software:

  • Arduino IDE Cov
  • Pab tus debugging tus pab (Hauv ntu no, peb tab tom siv DF Serial Debugger los ntawm Lisper)

'' 'KAUJ RUAM' '

Txuas koj daim npav SIM ntawm SIM808 daim ntaub thaiv nthuav dav thiab ntsaws daim npog nthuav dav ntawm Arduino UNO, lub sijhawm no tsis txhob hnov qab txuas lwm lub zog siv hluav taws xob. Qhov kev ua haujlwm hloov mus rau Tsis muaj, rub cov qauv piv txwv ntsais kom paub tseeb tias qhov chaw nres nkoj tsis yog Nyem khawm khawm fais fab khawm thiab tos rau daim npav SIM sau npe hauv lub network kom raug, Net qhia tau coj teeb nyem qeeb (3s ib zaug). Slide lub luag haujlwm hloov mus rau USB_DBG, tom qab ntawd peb tuaj yeem sib txuas lus ncaj qha nrog SIM808 nti los ntawm tus pabcuam chaw nres nkoj.

Kauj Ruam 15: Hu Xov Tooj

Hu Xov Tooj
Hu Xov Tooj

Xa AT hauv qhov chaw pabcuam chaw nres nkoj, yog tias nws rov qab OK, nws txhais tau tias kev sib txuas lus txuas tau raug tsim. Ua raws Daim Duab, sau AT cov lus txib, koj yuav tsum tau txais cov ntsiab lus zoo ib yam.

Kauj Ruam 16: Teb Tus Xov Tooj thiab Hu Dua

Teb Xov Tooj thiab Hu Dua
Teb Xov Tooj thiab Hu Dua

Kauj ruam 17: Xa SMS

Xa SMS
Xa SMS

Kauj Ruam 18: Nyeem SMS

Nyeem SMS
Nyeem SMS

Kauj ruam 19: TCP Kev Sib Txuas Lus

TCP Kev Sib Txuas Lus
TCP Kev Sib Txuas Lus

Kauj Ruam 20: Kev Taw Qhia GPS

Nco tseg: Lub kav hlau txais xov GPS yuav tsum tau muab tso rau sab nraud ua ntej nws tuaj yeem tau txais qhov ruaj khov GPS qhov chaw tso tawm cov ntaub ntawv.

Xa AT + CGSN PWR = 1 hais kom ua (Qhib lub zog GPS)

Xa AT + CGNSTST = 1 hais kom ua (Tau txais GPS cov ntaub ntawv los ntawm chaw nres nkoj txuas)

Kauj ruam 21:

Duab
Duab

Yog tias GPS tus kav hlau txais xov tau muab tso rau sab nraud, koj yuav tsum tau txais cov ntaub ntawv raug yog sai.

Thaum koj xav ncua GPS cov ntaub ntawv tso tawm, koj tuaj yeem xa AT + CGNSTST = 0 hais kom ncua GPS cov ntaub ntawv tso tawm.

Thaum koj xav tua GPS ua haujlwm, koj tuaj yeem xa AT + CGNSPWR = 0 hais kom tua GPS lub zog. Xa AT + CPOWD = 1 kaw SIM808 nti. Muaj lus qhia ntau ntxiv, thov xa mus rau AT cov lus txib ntawm nplooj ntawv kawg. Ob qhov kev xeem no yooj yim heev, thiab nkag siab yooj yim. Tsuas yog yuav tsum nkag mus rau qhov sib txuas ua ke AT cov lus txib, koj yuav ua tiav cov haujlwm sib xws.

Kauj Ruam 22: SIM808 Tsawg zog siv hom

Yam Tsawg Yam Ua Haujlwm

Lub kaw lus yuav raug txo mus rau hom uas yooj yim tshaj hauv Yam Ua Haujlwm Yam Tsawg. Nws yuav txuag hluav taws xob ntau dua hauv hom no.

AT+CFUN = = 0, 1, 4

AT + CFUN = 0: Yam ua haujlwm yam tsawg kawg nkaus. Hauv hom no, koj tseem tuaj yeem txuas ntxiv siv qhov chaw nres nkoj, tab sis AT cov lus txib nrog RF thiab SIM daim ntawv yuav tsis ua haujlwm.

AT + CFUN = 1: Hom ua haujlwm puv ntoob (default).

AT + CFUN = 4: Hom dav hlau. Hauv hom no, koj tseem tuaj yeem txuas ntxiv siv qhov chaw nres nkoj, tab sis AT cov lus txib nrog RF thiab SIM daim ntawv yuav tsis ua haujlwm.

Ntau yam ntxiv thov xa mus rau AT cov lus txib

github.com/leffhub/DFRobotSIM808_Leonardo_mainboard/blob/master/SIM800_Series_AT_Command_Manual_V1.07.pdf

Tej zaum koj tuaj yeem txaus siab rau cov haujlwm hauv arduino, pic, neeg hlau, kev sib txuas lus, sau npe ntawm https://www.youtube.com/user/carlosvolt?sub_confirmation=1 ntau cov vis dis aus nrog ua tiav qhov chaws thiab daim duab

Pom zoo: