Cov txheej txheem:

LORA Peer to Peer Communication Nrog Arduino: 9 Kauj Ruam
LORA Peer to Peer Communication Nrog Arduino: 9 Kauj Ruam

Video: LORA Peer to Peer Communication Nrog Arduino: 9 Kauj Ruam

Video: LORA Peer to Peer Communication Nrog Arduino: 9 Kauj Ruam
Video: How to Use LoRa with Raspberry Pi - Peer to Peer Communication with Arduino 2024, Hlis ntuj nqeg
Anonim
LORA Peer to Peer Communication Nrog Arduino
LORA Peer to Peer Communication Nrog Arduino

Kuv yog cov khoom siv hluav taws xob pib thiab qhov no yog kuv thawj qhov kev qhia yog li thov tsis txhob ua siab phem rau koj cov lus. Hauv cov lus qhia no kuv yuav piav qhia yuav ua li cas thiaj ua tau ob LORA ntawm kev sib txuas lus ncaj qha yam tsis muaj TTN (yam khoom network).

LORA yog dab tsi?

LORA sawv rau LOng RAnge Nws yog kev hloov pauv patented los ntawm Semtech raws CSS (chirp spread spectrum) kev hloov kho.

  • ntev ntau
  • lub zog qis
  • cov ntaub ntawv tsawg

Vim tias cov yam ntxwv no LORA zoo heev rau siv los ua kev sib txuas lus nruab nrab rau cov ntsuas. Lub ntsuas cua tuaj yeem ua haujlwm tau ntau xyoo ntawm lub roj teeb thiab ntau yam tuaj yeem hla ntau mais. Tsis tas li LORA tuaj yeem siv rau hauv daim ntawv tso cai tsis pub ntau zaus. Ntawm cov khoom network koj tuaj yeem pom cov pab pawg dawb los ntawm lub tebchaws. Kuv nyob hauv Belgium yog li kuv tuaj yeem xaiv ntawm EU863-870 thiab EU433.

Piv txwv siv:

  • Kev ua liaj ua teb (av noo, theem tank, kub, av noo, cua qhia,….)
  • Taug qab ua ke nrog tus txais GPS
  • Kev tiv thaiv tub sab (Kuv tau pom lub tswv yim muab tso rau ntawm qhov hluav taws xob hluav taws xob kim kim kom pom kev co)
  • … Muaj ntau ntau daim ntawv thov, koj lub tswv yim yog qhov txwv.

Kauj ruam 1: Tau Kho Vajtse

Kho vajtse:

  • 2 arduino nano lossis 2 arduino uno's pinouts yuav tsum zoo ib yam.
  • 2 esp breakout boards
  • 2 lora phaib rfm95 868mhz rau lwm qhov zaus nyem ntawm no.
  • 2 daim ntawv qhia zaub mov
  • 2 usb cables rau nano lossis cable rau uno
  • jumper xov hlau txiv neej rau poj niam
  • jumper xov hlau txiv neej rau txiv neej
  • 2 tus kav hlau txais xov (Kuv siv cov tub ntxhais 0.8mm lossis 20awg)
  • header pins yog tsis suav nrog arduino

Cov Cuab Yeej:

  • cam khwb cia hlau
  • hlau txiav
  • hlau stripper Kuv siv 102
  • tus kav
  • laug

Kauj ruam 2: Rub tawm Software

Nyem rau 2 qhov txuas mus rub tawm software:

  • Arduino IDE Cov
  • Lub tsev qiv ntawv Radiohead

Kauj Ruam 3: Nruab Arduino IDE

Nruab Arduino IDE
Nruab Arduino IDE
Nruab Arduino IDE
Nruab Arduino IDE
Nruab Arduino IDE
Nruab Arduino IDE
  • Tom qab rub tawm cov software mus rau lub installer thiab nyem ob npaug rau nws.
  • Nyem kuv pom zoo
  • Nyem tom ntej no
  • Nyem nruab
  • Nyem 2 zaug nruab rau nruab rau cov tsav tsheb usb
  • Nyem kaw

Kauj Ruam 4: Nruab Radiohead Library

Nruab Radiohead Library
Nruab Radiohead Library
Nruab Radiohead Library
Nruab Radiohead Library
Nruab Radiohead Library
Nruab Radiohead Library

Koj xav tau lub tsev qiv ntawv xov tooj cua siv rfm95. Vim tias koj tsis tuaj yeem teeb tsa nws ntawm arduino IDE koj yuav tsum teeb tsa lub tsev qiv ntawv xov tooj cua ntawm tes.

  • Qhib arduino IDE
  • Mus rau cov ntawv -> nyiam
  • Muaj koj tuaj yeem pom txoj hauv kev mus rau daim nplaub tshev arduino qhov twg koj yuav tsum pom Cov Ntawv Nyeem Ntawv. (thawj daim duab)
  • Yog tias Lub Tsev Qiv Ntawv tsis muaj nyob koj yuav tsum tsim daim nplaub tshev.
  • Qhib qhov rub tawm zip file Radiohead-master.
  • Extract lub nplaub tshev rau cov ntawv tais ceev tseg.
  • Rov pib dua lub arduino IDE.
  • Tam sim no koj tuaj yeem pom koj lub tsev qiv ntawv hauv cov npe (saib daim duab thib 3)

Kauj ruam 5: Tsim tus kav hlau txais xov

Rau tus kav hlau txais xov Kuv siv qee qhov txuas txuas ntawm kuv 2x2x0.8mm lossis 2x2 20awg tsheb npav cable. Qhov no yog qhov ntev ntawm ib zaus:

  • 868mhz 3.25 nti lossis 8.2 cm (qhov no yog qhov kuv siv)
  • 915mhz 3 nti lossis 7.8 cm
  • 433mhz 3 nti lossis 16.5cm

Kauj ruam 6: Soldering

Soldering
Soldering
  • Tshem cov resistors ntawm daim thaiv esp (saib R1 txog R3 hauv daim teb liab)
  • Muab cov rfm95 nti tso rau ntawm daim thaiv esp.
  • Muab cov pinheaders tso rau ntawm daim thaiv esp
  • Muab cov kav hlau txais xov txuas rau ntawm daim thaiv esp. Tsis txhob siv yam tsis muaj lub kav hlau txais xov koj tuaj yeem ua rau daim thaiv puas tsuaj.
  • Yog tias tus pinheaders tsis tau txuas rau ntawm arduino solder cov no ib yam.

Kauj Ruam 7: Txuas kab

Thaiv
Thaiv

Hauv daim duab koj tuaj yeem pom yuav ua li cas txuas cov arduino mus rau rfm95. Txog qhov ua tiav ntawm cov lus no kuv kuj suav nrog qhov pinout rau thaum koj siv daim ntaub thaiv adafruit siv esp breakout.

Kauj ruam 8: Coding

Coding
Coding
Coding
Coding
Coding
Coding
Coding
Coding
  • Download tau cov cai
  • Qhib cov cai hauv arduino ide
  • Mus rau cov cuab yeej, board thiab xaiv koj lub rooj tsavxwm
  • Mus rau cov cuab yeej, chaw nres nkoj thiab xaiv qhov chaw nres nkoj com rau koj arduino
  • Nyem rau khawm upload (cim xim liab ntawm daim duab thib peb)
  • Yog tias txhua yam mus tau zoo koj tuaj yeem siv daim ntawv saib xyuas thiab koj pom cov pob ntawv tuaj txog ntawm ob tus neeg rau zaub mov thiab cov neeg siv khoom (cim xim liab ntawm daim duab kawg)

Kauj Ruam 9: Xaus

Hauv qhov kev qhia no kuv qhia qhov pib ntawm LORA. Yog tias koj nyiam cov lus qhia no thiab/lossis yog tias koj nyiam kuv sau ntau cov lus qhia ntawm LORA lossis lwm tus, thov nias lub pob zoo li no.

Pom zoo: