Cov txheej txheem:

LoRa Mesh Sensors: 6 Kauj Ruam
LoRa Mesh Sensors: 6 Kauj Ruam

Video: LoRa Mesh Sensors: 6 Kauj Ruam

Video: LoRa Mesh Sensors: 6 Kauj Ruam
Video: #337 LoRa Off-Grid Mesh Communication: Meshtastic (ESP32, BLE, GPS) 2024, Lub Xya hli ntuj
Anonim
LoRa Mesh Sensors
LoRa Mesh Sensors

Qhov no yog qhov thib peb hauv koob ntawm Ripple LoRa mesh tes hauj lwm, tam sim no nthuav tawm cov cim ntsuas.

Saib cov kab lus yav dhau los rau kev siv:

www.instructables.com/id/LoRa-Mesh-Radio/

www.instructables.com/id/LoRa-GPS-Tracker/

Khoom siv

Cov khoom siv kho vajtse tuaj yeem yuav tau ntawm no:

Adafruit Feather nrog LoRa module:

dipole kav hlau txais xov:

Kauj ruam 1: Tom qab

Keeb kwm yav dhau
Keeb kwm yav dhau

Feem ntau Arduino sensor modules, zoo li kub, av noo, thiab lwm yam, tuaj yeem nug tau los ntawm digital lossis analog GPIO pin. Txog kab lus no kuv tau sim ntawm lub nplaim taws sensor, uas siv ob tus lej digital (rau thaum twg tus nqi ntsuas pib los ntawm kev teeb tsa potentiometer) thiab tus pin analog.

Sensor module:

Lub hom phiaj ntawm ib feem ntawm txoj haujlwm no yog nqa lub siab lub node rau hauv Ripple LoRa mesh tes hauj lwm. Koj tuaj yeem tsuas yog saib xyuas lub ntsej muag nyob deb, lossis tau txais cov lus ceeb toom thaum muaj teeb meem tshwm sim tuaj yeem tshwm sim, zoo li nplaim taws raug kuaj pom, lossis tsa suab pom, thiab lwm yam.

Kauj ruam 2: Kev thaiv kab

Tam sim no tsuas muaj ob lub hom phiaj txhawb, nrog cov pins hauv qab no uas lub sensor module yuav tsum txuas nrog rau:

Adafruit Feather:

* Tus pin analog: A1 (gpio 15) -OR-

* Tus lej digital: 10

TTGO/HELTECH ESP32 LoRa module:

* Tus pin analog: 39 -OR-

* Tus lej digital: 34

Feem ntau cov ntsuas ntsuas tuaj yeem lees txais 3.3Volt, yog li koj tsuas yog yuav tsum tau xaim GND thiab VCC tus pin rau pawg thawj coj saib GND thiab 3.3V tus pin.

Kauj ruam 3: Flashing Firmware

Rau qhov no koj yuav tsum tau teeb tsa Arduino IDE, thiab txhawb nqa rau hom phiaj hom phiaj.

Muaj cov lus qhia yuav ua li cas nyem lub firmware ntawm nplooj Github no:

github.com/spleenware/ripple

Xaiv ib qho ntawm 'Sensor Node' lub hom phiaj. Nrog lub rooj sib tham txuas ntawm USB cable, ntsuas qhov firmware tau zoo los ntawm kev qhib Serial Monitor hauv Arduino IDE. Nkag mus 'q' (tsis hais nqe lus) hauv kab ntawv xa, thiab nias sau. Tus saib xyuas yuav tsum teb nrog cov ntawv pib nrog "Q: …"

Kauj ruam 4: Kho lub Sensor hauv App

Kho lub Sensor hauv App
Kho lub Sensor hauv App
Kho lub Sensor hauv App
Kho lub Sensor hauv App

Txhawm rau teeb tsa lub ntsuas qhov ntsuas thiab saib xyuas nws, koj yuav tsum teeb tsa Ripple Commander app. Tam sim no tsuas yog Android tau txais kev txhawb nqa. Rub tawm los ntawm Kev Ua Si:

Lub app muaj ob lub cim launcher. Qhov 'Cov Khoom Siv' ib qho tsuas yog rau thaum koj tab tom teeb tsa koj lub network sib txuas (rov ua dua, ntsuas ntsuas, lub qhov rooj, thiab lwm yam). Cov cim ntsuas tsuas yog yuav tsum tau muab tus cim tshwj xeeb (nruab nrab ntawm 2 thiab 254), thiab muaj lawv cov lej encryption tsim. Tsuas yog nyem rau ntawm 'NEW' ntawv qhia zaub mov ntawm lub cuab yeej, thiab nkag mus rau tus ID thiab lub npe rau lub ntsuas, tom qab ntawd nyem Txuag. Tam sim no lub ntsuas yuav tsum yog nyob hauv cov npe tseem ceeb.

Rau cov cim ntsuas, muaj cov txheej txheem teeb tsa ntxiv los teeb tsa. Coj mus rhaub rau ntawm qhov 'hloov' (xaum) lub cim, thiab tom qab ntawd coj mus rhaub rau ntawm '…' khawm hauv lub vijtsam tom ntej kom pom lub vijtsam Sensor Config. (thawj qhov screen-shot saum toj no). Qhov no yog txhawm rau teeb tsa lub ntsuas pa, yuav ua li cas nws yuav tsum tshaj tawm nws cov xwm txheej, thiab yuav tsim cov lus ceeb toom li cas. Thaum qhov kev teeb tsa tiav, coj mus rhaub rau ntawm SAVE cov ntawv qhia zaub mov saum toj kawg nkaus.

Coj mus rhaub ntawm lub cim 'nti' rau sab xis, mus rau 'Programmer' screen. Txuas lub sensor board ntawm USB-OTG cable rau Android, tom qab ntawd coj mus rhaub rau ntawm 'PROGRAM' khawm. Yog tias txhua yam mus tau zoo, tom qab ntawd yuav tsum muaj cov lus hais tias 'Ua tiav', thiab tam sim no koj tuaj yeem txiav tawm.

Tawm rov qab mus rau Android launcher, tom qab ntawd coj mus rhaub rau lub ntsiab 'Ripple Commander' launcher icon. Nov yog lub ntsiab UI ntawm lub app, qhov twg koj tuaj yeem sib tham nrog lwm tus 'pager' cov neeg siv hauv lub network (leej twg siv Ripple Messenger app), ntxiv rau saib xyuas koj cov nodes tshwj xeeb, zoo li rov ua dua thiab cov cim ntsuas. Coj mus rhaub ntawm lub ntsuas qhov ntsuas hauv cov npe, thiab koj yuav tsum pom lub cuab yeej xwm txheej tshuaj ntsuam (saib qhov tshuaj ntsuam thib ob saum toj no).

Kauj ruam 5: Demo

Nov yog qhov ua piv txwv ntawm cov nplaim hluav taws xob ua rau muaj xwm txheej ceeb toom, thiab lub tsev hauv tsev tau txais kev ceeb toom.

Nco ntsoov tias kev ceeb toom sawv cev rau lub xeev uas 'rov pib dua' ib leeg los yog txiav tom qab lub sijhawm dhau mus. Lub vijtsam uas pom ntawm no muab lub pob "Reset Alert" rau tus kheej rov pib dua qhov xwm txheej ceeb toom.

Cov lus ceeb toom tsim tawm yuav ua rau lub tsev nyob ntawm lub rooj sib tham lub suab nrov nrov, thiab cov lus yuav nyob hauv 'Keeb Kwm' tab.

Kauj Ruam 6: Tawm tswv yim

Lub peev xwm no, muaj cov cim qhia txog cov xeev nyob deb, thiab muaj kev ceeb toom tsim tawm sawv cev rau cov txiaj ntsig zoo rau cov kev sib txuas IOT ntev no. Kuv zoo siab heev tau hnov dab tsi tuaj yeem ua tiav nrog lub peev xwm tshiab no, thiab nws tau ua haujlwm li cas. Thiab, zoo li ib txwm, Kuv mob siab mloog yog tias muaj teeb meem tseem xav tau kom tshem tawm.

hais txog, Scott Powell.

Pom zoo: