Cov txheej txheem:

LoRa Gateway ESP8266 Arduino DIY: 5 Kauj Ruam
LoRa Gateway ESP8266 Arduino DIY: 5 Kauj Ruam

Video: LoRa Gateway ESP8266 Arduino DIY: 5 Kauj Ruam

Video: LoRa Gateway ESP8266 Arduino DIY: 5 Kauj Ruam
Video: #134 15$ LoRa Gateway with ESP8266 and a RFM95 (Tutorial) 2024, Hlis ntuj nqeg
Anonim
LoRa Rooj vag ESP8266 Arduino DIY
LoRa Rooj vag ESP8266 Arduino DIY

Cov lus qhia no yuav pab koj tsim LoRa Gateway sib xws nrog Cov Khoom Network, rau txhua thaj tsam hauv ntiaj teb, siv ESP8266 nrog rau RFM95/96 xov tooj cua module. Cov cai los ua kom nws ua haujlwm kuj tseem muab thiab nws los nrog kev sib xyaw lub vev xaib rau kev teeb tsa, nws yooj yim heev rau siv, koj yuav pom … cia mus

Tau qhov twg los

Khoom siv

Txhua yam xav tau yog teev hauv qab no

Kauj ruam 1: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse

Koj tuaj yeem pom txhua yam khoom kho vajtse ntawm no, lossis teev hauv qab no

  1. Cov Ntaub Ntawv Yas Dej
  2. WEMOS D1 Mini Pro ESP8266
  3. LoRa module RFM95 SX1276 nti 915MHz 868MHz 433MHz
  4. 868/915 MHz kav hlau txais xov
  5. 5V 2A DC Output Power Adapter
  6. Pin Txiv Neej Sawb 1*40P 2.0mm
  7. 2 hli tus pin header poj niam
  8. coaxial connectors Kav hlau txais xov
  9. DC Jack Connector 3.5 X 1.3 hli
  10. Me Phillips
  11. Terminal Thaiv Txuas Txuas 2Pin 5.0mm
  12. PCB pawg thawj coj saib

Thaum koj muaj txhua daim, nws zoo li ua si nrog LEGO … txaus siab rau nws:)

Kauj Ruam 2: Nco Ntsoov Txog Qhov Muab Rau PCB / Schematics

Nco Ntsoov Txog Qhov Muab PCB / Schematics
Nco Ntsoov Txog Qhov Muab PCB / Schematics
Nco Ntsoov Txog Qhov Muab PCB / Schematics
Nco Ntsoov Txog Qhov Muab PCB / Schematics

Greyed tawm qhov tsis tau siv hauv txoj haujlwm no, lawv nyob ntawd vim tias qhov kev sib txuas zoo ib yam no tuaj yeem siv rau hauv qhov haujlwm uas kuv tab tom sau tam sim no.

Kauj ruam 3: Software

Software
Software
Software
Software
Software
Software
Software
Software

Tam sim no koj yuav tsum teeb tsa Arduino IDE, nco ntsoov tias koj tuaj yeem siv lwm txoj hauv kev uas koj nyiam. Nws tsis yog qhov nyuaj tab sis koj yuav tsum ua ib lossis ob yam txhawm rau txhawm rau ua qhov project. Txoj cai tau teeb tsa hauv github.com, nws tau qhib qhov chaw, xav tias yuav muaj kev tsim kho, tshaj tawm cov kab lossis ua cov lus qhia yuav yog qhov muaj txiaj ntsig zoo:) Rub tawm nws thiab qhib:

LoRaWanGateway/LoRaWanGateway.ino

Hloov Sketchbook qhov chaw nyob hauv cov ntawv nyiam

Yog xav tau ntxiv cov laug cam ntxiv hauv cov ntawv nyiam … Kuv tau siv:

https://arduino.esp8266.com/stable/package_esp8266com_index.json

Ua tib zoo saib ntawm no, cov ntawv qub qub yuav ua haujlwm tsis raug, koj yuav tsum nruab tsawg kawg yog version 2.6.3

Xaiv koj lub rooj tsav xwm hauv qab cov cuab yeej Pawg (tej zaum tsis zoo ib yam li daim duab, xaiv koj li)

Tam sim no nws yuav tsum suav sau, rub nws mus rau koj lub rooj tsavxwm thiab teeb tsa nws siv lub vev xaib sib tham.

Kauj ruam 4: Web Interface Configuration

Web Interface Configuration
Web Interface Configuration

Thaum koj tau muab txhua daim ua ke koj tuaj yeem qhib thiab teeb tsa koj lub rooj vag tshiab los ntawm nws cov vev xaib sib xyaw. Nws yog nplooj ntawv me me hauv ESP8266 uas cia koj yooj yim tweak nws qhov txiaj ntsig … ua tib zoo saib ua ntej thiab ua si nrog kev teeb tsa ua qauv qhia ntawm no. Nrog tus interface no koj tuaj yeem teeb tsa:

  • Kev sib txuas WiFi, ib yam li Client device lossis raws li Access Point
  • TTN Gateway parameter
  • RFM module tsis
  • Yooj Yim ESP8266 Cov txheej txheem ntsuas
  • Configuration Interface ruaj ntseg/password (yog, nws yog lo lus zais tiv thaiv)

Los ntawm lub neej ntawd nws yuav tsim WiFi network kom cia koj nkag mus rau nws lub teeb tsa sab hauv.

  • wifi: Access Point ESP
  • dhau: 12345678

Yog tias muaj kev txhawj xeeb txog kev nyab xeeb heev, koj yuav tsum hloov pauv qhov txiaj ntsig ua ntej, ua ntej rub tawm lub firmware rau koj lub qhov rooj. Xijpeem koj tuaj yeem hloov lawv los ntawm koj tus browser tom qab thawj qhov txuas. Thaum khiav, lub rooj vag teeb tsa tuaj yeem nkag mus tau los ntawm lub web browser los ntawm nws twb tau muab ip

X. X. X. X/

lossis yog txuas nrog los ntawm Access Point

192.168.4.1/ (los ntawm lub neej ntawd)

Tam sim no koj tuaj yeem siv koj daim ntawv pov thawj txhawm rau nkag mus, lub hauv paus yog:

  • neeg siv: admin
  • dhau: admin

Kauj Ruam 5: Ntxiv TTN Gateway

Ntxiv TTN Gateway
Ntxiv TTN Gateway
Ntxiv TTN Gateway
Ntxiv TTN Gateway
Ntxiv TTN Gateway
Ntxiv TTN Gateway
Ntxiv TTN Gateway
Ntxiv TTN Gateway

Kawg tab sis tsis tsawg kawg, koj yuav tsum tsim Lub Rooj vag Hauv Cov Khoom Network thiab teeb tsa nws cov kev ntsuas kom haum, txhawm rau kom koj lub cuab yeej sau npe thiab txuas.

Sau npe ib tus tshiab siv nws tus lej sib xws pom nyob hauv nplooj ntawv teeb tsa rooj vag. Sau tag nrho cov seem ntxiv raws li xav tau. Ob tus id yuav tsum sib phim.

Tam sim no, nws yuav tsum tau npaj los qhia cov ntaub ntawv.

Qhov ntawd yog, Kuv vam tias nws pom meej txaus … yog tias koj muaj teeb meem, xav tias yuav nug ib lo lus nug

Pom zoo: