Cov txheej txheem:

Yooj Yim Arduino LoRa Kev Sib Txuas (ntau dua 5km): 9 Kauj Ruam
Yooj Yim Arduino LoRa Kev Sib Txuas (ntau dua 5km): 9 Kauj Ruam

Video: Yooj Yim Arduino LoRa Kev Sib Txuas (ntau dua 5km): 9 Kauj Ruam

Video: Yooj Yim Arduino LoRa Kev Sib Txuas (ntau dua 5km): 9 Kauj Ruam
Video: Thai Sounders - Yooj Yim (Official Music Video) 2024, Hlis ntuj nqeg
Anonim
Yooj Yim Arduino LoRa Kev Sib Tham (ntau dua 5km)
Yooj Yim Arduino LoRa Kev Sib Tham (ntau dua 5km)

Peb yuav sim E32-TTL-100 nrog kuv lub tsev qiv ntawv. Nws yog lub tshuab xa xov hluav taws xob wireless, ua haujlwm ntawm 410 441 MHz (lossis 868MHz lossis 915MHz) raws li thawj RFIC SX1278 los ntawm SEMTECH, muaj kev sib kis tau zoo, qib TTL. Tus qauv lees paub LORA kis cov tshuab thev naus laus zis.

Khoom siv

  • Arduino UAS
  • LoRa e32 cov cuab yeej

Yeem yeem

  • Mischianti Arduino LoRa ntaub thaiv npog (Qhib qhov chaw)
  • Mischianti WeMos LoRa ntaub thaiv npog (Qhib qhov chaw)

Kauj Ruam 1: Cov Khoom Siv Tshwj Xeeb

Tus qauv qhia FEC Forward Error Correction algorithm, uas ua kom nws muaj txiaj ntsig zoo coding & kho tau zoo. Thaum muaj kev cuam tshuam tam sim, nws tuaj yeem kho qhov cuam tshuam cov ntaub ntawv pob khoom tau txais, yog li qhov kev ntseeg tau thiab kev sib kis tau zoo dua qub. Tab sis tsis muaj FEC, cov ntawv da te tuaj yeem tsuas yog poob. Thiab nrog qhov nyuaj encryption & decryption, cov ntaub ntawv cuam tshuam dhau los ua qhov tsis tseem ceeb. Kev ua haujlwm ntawm cov ntaub ntawv nrawm tuaj yeem txo lub sijhawm sib kis & qhov tshwm sim ntawm kev cuam tshuam, thaum txhim kho kev ntseeg tau & kev ua haujlwm tau zoo.

  • Module loj: 21*36mm
  • Hom kav hlau txais xov: SMA-K (50Ω impedance)
  • Kev xa mus deb: 3000m (max)
  • Lub zog siab tshaj: 2dB (100mW)
  • Huab cua tus nqi: 2.4Kbps (6 qib xaiv tau (0.3, 1.2, 2.4, 4.8, 9.6, 19.2kbps)
  • Emission ntev: 512ByteReceive
  • ntev: 512Byte
  • Kev Sib Txuas Lus Sib Txuas: UART - 8N1, 8E1, 8O1,
  • Yim yam ntawm UART baud Tus Nqi, los ntawm 1200 txog 115200bps (Default: 9600)
  • Kev txhawb nqa RSSI: Tsis yog (Ua-hauv kev ua haujlwm ntse)

Kauj Ruam 2: Hom Kis

Hom Kis
Hom Kis

Qhov no tuaj yeem txiav txim siab zoo li "Hom Demo", los ntawm lub neej ntawd koj tuaj yeem xa xov mus rau txhua lub cuab yeej ntawm tib qhov chaw teeb tsa thiab channel.

Tsau kis tau tus mob

Hom kev sib kis no koj tuaj yeem hais qhia chaw nyob thiab channel uas koj xav xa xov. Koj tuaj yeem xa xov mus rau:

  • Cov cuab yeej tshwj xeeb nrog qhov chaw nyob ua ntej txiav txim siab Tsawg, Chaw Nyob Siab thiab Channel.
  • Tshaj tawm cov lus rau txheej txheej ntawm cov khoom siv hauv channel Ib txwm siv Cias xa xov.

Kauj Ruam 3: Ntaus Ntaus

Hom qub Tsuas yog xa xov.

Wake-up hom thiab lub zog-txuag hom

Raws li koj tuaj yeem npaj siab yog tias lub cuab yeej nyob hauv Wake-up hom tuaj yeem "tsa" ib lossis ntau lub cuab yeej uas nyob rau hauv hom kev txuag hluav taws xob nrog kev sib tham ua ntej.

Hom phiaj/hom pw

Nrog rau kev teeb tsa no koj tuaj yeem hloov kho koj lub cuab yeej.

Kauj Ruam 4: Txuas Xov Tooj

Cov cuab yeej thaiv
Cov cuab yeej thaiv
Cov cuab yeej thaiv
Cov cuab yeej thaiv

Nov yog cov txheej txheem ntawm kev txuas ntawm lub cuab yeej, qhov no yog kev sib txuas tag nrho, nrog kev tswj hwm ntawm M0 thiab M1 tus lej tso cai hloov tus qauv ntawm lub cuab yeej, yog li koj tuaj yeem hloov mus rau kev teeb tsa lossis sawv hom nrog txoj haujlwm, lub tsev qiv ntawv pab koj txhua yam no kev ua haujlwm.

Kauj ruam 5: Kev teeb tsa

Kev teeb tsa
Kev teeb tsa

Muaj cov lus txib tshwj xeeb los teeb tsa thiab tau txais kev teeb tsa

teeb tsa tsis muaj dab tsi () {Serial.begin (9600); ncua (500); // Pib txhua tus pin thiab UART e32ttl100.begin (); ResponseStructContainer c; c = e32ttl100.getConfiguration (); // Nws yog ib qho tseem ceeb tau teeb tsa tus taw tes ua ntej txhua lwm txoj haujlwm Kev teeb tsa teeb tsa = *(Kho *) c.data; Serial.println (c.status.getResponseDescription ()); Serial.println (c.status.code); printParameters (teeb tsa); ResponseStructContainer cMi; cMi = e32ttl100.getModuleInformation (); // Nws yog qhov tseem ceeb tau txais cov ntaub ntawv taw qhia ua ntej txhua qhov kev ua haujlwm ModuleInformation mi = *(ModuleInformation *) cMi.data; Serial.println (cMi.status.getResponseDescription ()); Serial.println (cMi.status.code); printModuleInformation (mi); }

Kauj Ruam 6: Kev Kho Kom Zoo

Thiab qhov tshwm sim dhau los

Pib Ua Tau Zoo 1 ---------------------------------------- HEAD BIN: 11000000 192 C0 AddH BIN: 0 AddL BIN: 0 Chan BIN: 23 -> 433MHz SpeedParityBit BIN: 0 -> 8N1 (Default) SpeedUARTDataRate BIN: 11 -> 9600bps (default) SpeedAirDataRate BIN: 10 -> 2.4kbps (default) OptionTrans BIN: 0 - > Transparent transmit (default) OptionPullup BIN: 1 -> TXD, RXD, AUX yog laub -rub/rub -ups OptionWakeup BIN: 0 -> 250ms (lub neej ntawd) OptionPower BIN: 0-> 20dBm (Default) ---------------------------------------- Ua tau zoo 1 ---------------------------------------- HEAD BIN: 11000011 195 C3 Qauv tsis yog.: 32 Version: 44 Nta: 14 ----------------------------------------

Kauj Ruam 7: Xa Xov

Xa Xov
Xa Xov

Nov yog daim duab yooj yim kom xa xov mus rau txhua lub cuab yeej txuas rau hauv channel

lub voj void () {// Yog tias muaj qee yam yog (e32ttl100.available ()> 1) {// nyeem Txoj Cai Xov Xwm ResponseContainer rc = e32ttl100.receiveMessage (); // Puas yog qee yam mus tsis raug luam yuam kev yog (rc.status.code! = 1) {rc.status.getResponseDescription (); } lwm tus {// Luam tawm cov ntaub ntawv tau txais Serial.println (rc.data); }} yog (Serial.available ()) {String input = Serial.readString (); e32ttl100.sendMessage (tswv yim); }}

Kauj Ruam 8: Shield rau Arduino

Shield rau Arduino
Shield rau Arduino

Kuv tsim ib daim ntaub thaiv rau Arduino uas ua tau zoo heev rau kev tsim qauv.

Thiab kuv tso Nws raws li qhov qhib qhov haujlwm ntawm no

www.pcbway.com/project/shareproject/LoRa_E32_Series_device_Arduino_shield.html

Kauj ruam 9: Tsev qiv ntawv

Tsev qiv ntawv
Tsev qiv ntawv

GitHub repository

Txhawb lub rooj sab laj

Cov ntaub ntawv ntxiv

Pom zoo: