Cov txheej txheem:
- Kauj ruam 1: SMS Commands
- Kauj ruam 2: Tsim SMS Controller
- Kauj Ruam 3: Ua lub tshuab ATMEGA328p
- Kauj Ruam 4: Siv Tus Tswj SMS
- Kauj ruam 5: Android Daim Ntawv Thov
Video: Android thiab Arduino SMS Raws Hauv Tsev Automation: 5 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
! ! ! N O T I C E! ! !
Vim tias ntau lub xov tooj ntawm tes tau hloov kho hauv kuv thaj chaw, kuv tsis tuaj yeem siv qhov GSM module no lawm. Tus pej thuam tshiab tsis txhawb 2G cov cuab yeej ntxiv lawm. Yog li ntawd, kuv tsis tuaj yeem muab kev txhawb nqa rau txoj haujlwm no ntxiv lawm
Tsis ntev los no, Kuv tau txais tus nqi pheej yig dua Quad Band GSM/GPRS module ua si nrog. Nws yog SIM800L tus qauv, thiab sib txuas lus nrog ib qho micro ntawm qhov chaw nres nkoj txuas. Nws tuaj tiav nrog lub vaj huam sib luag mount kav hlau txais xov.
Kuv txiav txim siab los tsim ib qho yooj yim SMS maub los system uas siv cov lus luv luv kev pabcuam (SMS) hais kom tswj cov cuab yeej thiab qhia lub tswb.
Kauj ruam 1: SMS Commands
Raws li nrog txhua qhov kev sib txuas lus, cov lus txib tshwj xeeb yuav tsum tau xa mus rau lub cuab yeej nyob deb kom qhia nws yuav ua li cas. Ib yam nkaus, cov cuab yeej nyob deb xav tau los teb lossis teb rau cov lus txib no. Txoj haujlwm no suav nrog ob ntu, Tus Tswj Xyuas SMS, thiab tus qauv xov tooj ntawm tes.
Lub tswv yim yog los tsim qhov yooj yim SMS maub los nrog plaub qhov digital outputs. Nyob ntawm qhov tau txais SMS, chav tsev yuav tsum muaj peev xwm tswj hwm tus kheej cov txiaj ntsig.
Kuv kuj txiav txim siab suav nrog plaub lub tswv yim digital. Qhov no tuaj yeem siv los qhia lub tswb lossis lwm yam ntaub ntawv.
Ua ntej pib tsim, Kuv txiav txim siab los tsim cov lus txib tshwj xeeb rau cov haujlwm tshwj xeeb. Qhov 'lus txib' no yuav raug xa los siv SMS los ntawm lub xov tooj ntawm tes.
SMS Tswj Tau Txais Cov Lus txib:
o1: 1 - tig cov zis 1 On
o1: 0 - tig cov zis 1 Tawm
o1: p - mem tes tso zis 1 On, tom qab ntawd tua Tawm
o2: 1 - tig cov zis 2 On
o2: 0 - tig cov zis 2 Tawm
o2: p - mem tes tso zis 2 On, ces Tua Tawm
o3: 1 - tig tso zis 3 On
o3: 0 - tig tso tawm 3 Tawm
o3: p - mem tes tso zis 3 On, ces Tua Tawm
o4: 1 - tig tso zis 4 On
o4: 0 - tig tso zis 4 Tawm
o4: p - mem tes tso zis 4 On, ces Tua Tawm
???? - Thov xwm txheej ntawm kev tawm tswv yim thiab cov txiaj ntsig
#### - Pib dua qhov system
Txog kev tawm tswv yim, Tus Tswj Xyuas SMS yuav tsum teb cov lus txib uas tau txais, thiab teb nrog SMS. Kuv txiav txim siab tias SMS teb no yuav tsum suav nrog cov xwm txheej ntawm txhua tus I/O pins.
SMS Tswj Cov Lus Teb Cov Lus Teb:
i1: x i2: x i3: x i4: x o1: x o2: x o3: x o4: x
qhov twg x yog I/O xwm txheej, 1 rau On, 0 rau Off.
Kauj ruam 2: Tsim SMS Controller
Cov khoom siv xav tau:
Ib qho Arduino, lossis sawv ib leeg ATMEGA328p ntawm lub khob cij
SIM800L GSM/GPRS Module nrog daim npav SIM muaj peev xwm xa thiab tau txais SMS
Kauj ruam nqis DC/DC converter
NCO TSEG !
DC/DC hloov pauv yuav tsum tau siv lub zog SIM800L. Cov qauv no ua haujlwm nruab nrab ntawm 3.7V thiab 5V, nyob ntawm qhov version koj muaj. Cov qauv no tseem xav tau lub zog xa khoom uas tuaj yeem xa mus txog 2A thaum tus qauv xa cov ntaub ntawv. Nws tsis tuaj yeem siv ncaj qha los ntawm Arduino Uno !
Lub voj voog yog qhov yooj yim heev. Kuv tau sib sau ua ke thiab sim nws ntawm daim ntawv qhia zaub mov.
Lub zog rau lub Circuit Court yog los ntawm DC/DC hloov pauv, nrog cov zis hluav taws xob teeb tsa rau 4.5V. Muaj plaub LEDs los sim cov digital outputs, thiab plaub lub nyees khawm rau cov tswv yim digital. SIM800L txuas nrog Rx/Txaws pins ntawm ATMEGA328p.
Ib qho LED thib 5 tau siv los qhia thaum lub kaw lus tsis khoom xa SMS.
Kauj Ruam 3: Ua lub tshuab ATMEGA328p
Ua ntej ua haujlwm, qhib INO cov ntaub ntawv, thiab kho tus lej xov tooj. Hloov xxxxxxxxxx nrog koj tus kheej lub xov tooj ntawm tes hauv kab 46. Rov sau dua tshiab, thiab xa cov ntaub ntawv.
Tsis tas li, nyeem cov lus qhia yuav ua li cas teeb tsa Software Serial chaw nres nkoj hauv INO cov ntaub ntawv.
//=============================================================================//
//! ! ! CEEB TOOM! ! !
// ================
//
// BUFFER IN SOFTWARE SERIAL LIBRARY kom hloov mus rau 200
//
// Txhawm rau Siv Software Serial, tus neeg siv yuav tsum hloov pauv Software Serial BUFFER rau 200.
// Qhov no yuav tsum raug kho hauv cov ntawv hauv qab no:
//
// C:/Program Files/Arduino x.x.x/Hardware/Arduino/AVR/Libraries/SoftwareSerial/src/SoftWareSerial.h
//
// Hloov tsis raws li hauv qab no:
//
// #ifndef _SS_MAX_RX_BUFF
// #define _SS_MAX_RX_BUFF 200
// RX tsis loj
// #npe
//
//=============================================================================
Xa mus rau cov lus qhia no rau txheej txheem ATMEGA328p ntawm lub khob cij siv Arduino UNO.
www.instructables.com/id/Arduino-UNO-as-AtM…
Kauj Ruam 4: Siv Tus Tswj SMS
Siv tus SMS Tswj
Tus Tswj SMS yuav cia li xa SMS mus rau koj lub xov tooj yog tias ib ntawm plaub qhov kev nkag mus tau tshwm sim. Cov ntsiab lus ntawm qhov ntsuas yuav muaj nyob hauv SMS ntawv.
Cov lus SMS thiab cov lus txib tuaj yeem kho raws li koj xav tau hauv INO cov ntaub ntawv.
Kev Ntsuas Tus Kheej Tus Tswj Xyuas SMS
Los ntawm koj lub xov tooj ntawm tes, xa cov lus txib hauv qab no rau koj tus lej SIM800L simcard:
o1: 1, qhov no yuav qhib rau cov zis 1.
Hauv koj lub xov tooj, koj yuav tau txais SMS hauv qab no:
i1: 0 i2: 0 i3: 0 i4: 0 o1: 1 o2: 0 03: 0 o4: 0
01: 0, qhov no yuav tua cov zis 1.
Hauv koj lub xov tooj, koj yuav tau txais SMS hauv qab no:
i1: 0 i2: 0 i3: 0 i4: 0 o1: 0 o2: 0 03: 0 o4: 0
01: p, qhov no yuav tig rau qhov tso tawm 1 rau 1 thib ob, tom qab ntawv tso tawm 1 tawm dua (pulsed).
Hauv koj lub xov tooj, koj yuav tau txais SMS hauv qab no:
i1: 0 i2: 0 i3: 0 i4: 0 o1: 0 o2: 0 03: 0 o4: 0
Kuaj Cov SMS Tswj Cov Tswv Yim
Ntawm tus SMS Controller, nyem khawm 1 luv luv
Hauv koj lub xov tooj, koj yuav tau txais cov SMS hauv qab no:
i1: 1 i2: 0 i3: 0 i4: 0 o1: 0 o2: 0 03: 0 o4: 0
Ntawm tus SMS Controller, nyem khawm 2 luv luv
Hauv koj lub xov tooj, koj yuav tau txais cov SMS hauv qab no:
i1: 1 i2: 1 i3: 0 i4: 0 o1: 0 o2: 0 03: 0 o4: 0
Ntawm tus SMS Controller, nias lub pob 3 luv luv
Hauv koj lub xov tooj, koj yuav tau txais cov SMS hauv qab no:
i1: 1 i2: 1i3: 1 i4: 0 o1: 0 o2: 0 03: 0 o4: 0
Raws li tuaj yeem pom ntawm SMS tau txais, cov txiaj ntsig tau hloov pauv raws li cov lus txib tau txais. Txawm li cas los xij, cov tswv yim tsis hloov rov qab los ntawm 1 mus rau 0 tom qab cov nyees khawm raug nias. Vim tias kuv xav kom muaj peev xwm pom ib qho kev hloov pauv ntawm cov tswv yim, Kuv txiav txim siab kaw rau hauv cov xwm txheej nkag mus txog thaum rov pib dua cov lus txib xa mus rau SMS Tswj.
Pib dua Tswb
Txhawm rau rov pib dua cov xwm txheej, xa cov lus txib hauv qab no:
####, qhov no yuav rov pib dua cov xwm txheej.
Hauv koj lub xov tooj, koj yuav tau txais SMS hauv qab no:
i1: 0 i2: 0 i3: 0 i4: 0 o1: 0 o2: 0 03: 0 o4: 0
Cov xwm txheej hloov tshiab
Koj tseem tuaj yeem thov qhov xwm txheej txhua lub sijhawm los ntawm kev xa cov lus txib hauv qab no:
????, qhov no yuav thov hloov kho xwm txheej ntawm I/Os.
Hauv koj lub xov tooj, koj yuav tau txais SMS hauv qab no:
i1: x i2: x i3: x i4: x o1: x o2: x 03: x o4: x
qhov twg x qhia qhov xwm txheej, 1 rau rau, 0 rau tawm.
Kauj ruam 5: Android Daim Ntawv Thov
Siv MIT App Inventor 2 (https://ai2.appinventor.mit.edu/), Kuv tsim cov neeg siv yooj yim rau kuv lub xov tooj ntawm tes. Cov app no tso cai rau koj hloov kho cov lus piav qhia ntawm txhua I/O. Nws tseem tso cai nkag rau tus lej xov tooj.
Plaub lub nyees khawm tau siv los tswj cov Outputs, thaum lub npov khij qhia qhov xwm txheej nkag.
Txhawm rau kho lub app, tsim MIT App Inventor 2 tus account, thiab ntshuam AIA cov ntaub ntawv.
Txhawm rau nruab lub app ntawm koj lub xov tooj, luam APK cov ntawv rau koj lub xov tooj, thiab nruab nws. Koj yuav tsum muaj peev xwm txhim kho kev teeb tsa cov apps los ntawm "Tsis Paub Qhov Chaw" nyob hauv koj lub xov tooj kev teeb tsa kev nyab xeeb.
Pom zoo:
Tuchless Hloov rau Cov Khoom Siv Hauv Tsev -- Tswj Koj Cov Khoom Siv Hauv Tsev Tsis Muaj Tuch Ib qho Hloov: 4 Cov Kauj Ruam
Tuchless Hloov rau Cov Khoom Siv Hauv Tsev || Tswj Koj Cov Khoom Siv Hauv Tsev Tsis Muaj Tuch Ib qho Hloov: Nov Yog Qhov Tuchless Hloov Rau Cov Khoom Siv Hauv Tsev. Koj Siv Tau Qhov No Mus Rau Txhua Qhov Chaw Hauv Pej Xeem Kom Pab Tau Tawm Tsam Ib Yam Kab Mob. Lub Circuit Court Raws Li Tsaus Sensor Circuit Ua Los Ntawm Op-Amp Thiab LDR. Qhov Tseem Ceeb Thib Ob Ntawm Qhov Circuit Court SR Flip-Flop Nrog Sequencell
Yuav Ua Li Cas Ua IoT Raws Hauv Tsev Automation Nrog NodeMCU Sensors Control Relay: 14 Cov Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Ua IoT Raws Hauv Tsev Automation Nrog NodeMCU Sensors Control Relay: Hauv qhov haujlwm IoT raws li no, Kuv tau ua Tsev Automation nrog Blynk thiab NodeMCU tswj kev xa xov module nrog cov lus tawm ntawm lub sijhawm. Hauv Phau Ntawv Hom, qhov kev hloov pauv no tuaj yeem tswj tau los ntawm Txawb lossis smartphone thiab, Hloov kev siv. Hauv Auto Hom, qhov smar
GPS Tsheb Tracker Nrog SMS ceeb toom thiab Thingspeak Cov Ntaub Ntawv Upload, Arduino Raws, Tsev Hauv Tsev: 5 Cov Kauj Ruam (nrog Duab)
GPS Tsheb Tracker Nrog SMS Ceeb Toom thiab Cov Ntaub Ntawv Hais Lus Upload, Arduino Raws, Tsev Hauv Tsev: Kuv tau ua qhov GPS tracker xyoo tas los thiab txij li nws ua haujlwm zoo Kuv tshaj tawm nws tam sim no ntawm Kev Qhia. Nws txuas nrog cov khoom siv txuas rau hauv kuv lub cev.Qhov GPS tracker uploads lub tsheb txoj haujlwm, nrawm, taw qhia thiab ntsuas kub ntawm lub xov tooj ntawm tes
Tswj Cov Khoom Siv Hauv Tsev Hla LoRa - LoRa hauv Tsev Automation - LoRa Chaw Taws Teeb: 8 Kauj Ruam
Tswj Cov Khoom Siv Hauv Tsev Hla LoRa | LoRa hauv Tsev Automation | LoRa Kev Tswj Chaw Taws Teeb: Tswj thiab siv koj lub cuab yeej siv hluav taws xob los ntawm qhov deb (Kilometers) yam tsis muaj internet. Qhov no ua tau los ntawm LoRa! Hav, ua li cas, cov menyuam? Akarsh ntawm no los ntawm CETechQhov PCB no tseem muaj cov zaub OLED thiab 3 qhov txuas uas
Ntse Suab Nkauj hauv Chav Dej thiab Da Dej Nrog Raspberry Pi - Sib Koom Ua Ke Hauv Chav, Tswb, Khawm Tswj thiab Kev Siv Tsev Hauv Tsev: 7 Kauj Ruam
Ntse Suab Nkauj hauv chav pw thiab Da Dej Nrog Raspberry Pi - Sib Koom Ua Ke Hauv Chav, Tswb, Khawm Tswj thiab Kev Siv Tsev Hauv Tsev: Niaj hnub no peb xav muab ob qho piv txwv txog yuav ua li cas koj tuaj yeem siv Raspberry Pi nrog peb Max2Play software rau hauv tsev automation: hauv chav dej thiab chav pw . Ob txoj haujlwm zoo ib yam nyob hauv cov suab paj nruag siab ncaj los ntawm ntau qhov chaw tuaj yeem rub tawm los