Cov txheej txheem:

Tau Txais LoRa (SX1278/XL1278-SMT) Ua Haujlwm Ntawm SPI ntawm WeMos D1 ESP-12F ESP8277 Motherboard Module Nrog OLED: 7 Kauj Ruam
Tau Txais LoRa (SX1278/XL1278-SMT) Ua Haujlwm Ntawm SPI ntawm WeMos D1 ESP-12F ESP8277 Motherboard Module Nrog OLED: 7 Kauj Ruam

Video: Tau Txais LoRa (SX1278/XL1278-SMT) Ua Haujlwm Ntawm SPI ntawm WeMos D1 ESP-12F ESP8277 Motherboard Module Nrog OLED: 7 Kauj Ruam

Video: Tau Txais LoRa (SX1278/XL1278-SMT) Ua Haujlwm Ntawm SPI ntawm WeMos D1 ESP-12F ESP8277 Motherboard Module Nrog OLED: 7 Kauj Ruam
Video: Tswv Yexus lub neej thaum pib txug thaum xaus 2024, Kaum ib hlis
Anonim
Tau Txais LoRa (SX1278/XL1278-SMT) Ua Haujlwm Ntawm SPI ntawm WeMos D1 ESP-12F ESP8277 Motherboard Module Nrog OLED
Tau Txais LoRa (SX1278/XL1278-SMT) Ua Haujlwm Ntawm SPI ntawm WeMos D1 ESP-12F ESP8277 Motherboard Module Nrog OLED

Qhov no coj kuv ib lub lim tiam los ua haujlwm - zoo li tsis muaj leej twg ua ntej kuv tau txiav txim siab - yog li kuv vam tias qhov no cawm koj qee lub sijhawm!

Lub npe txawv txawv "WeMos D1 ESP-12F ESP8266 Motherboard Module nrog 0.96 nti OLED Screen" yog $ 11 pawg tswj hwm kev txhim kho uas muaj ESP8266 Wifi board, npo, hloov 5-postion hloov, 18650 Li-ion roj teeb tuav thiab them hluav taws xob nrog kev tiv thaiv, lub qhov hluav taws xob usb, hloov, thiab teeb tsa cov phiaj xwm phiaj xwm.

Qhov ntawd yog qhov txaus ntshai heev, hauv daim phiaj pheej yig thiab siv tau!

SX1278 LoRa pawg thawj coj yog $ 4 lub zog hluav taws xob me me hauv xov tooj cua, uas tuaj yeem xa thiab txais cov ntaub ntawv hla qhov ntev heev (hais txog 15km, tab sis kuv nyeem cov ntawv tshaj tawm ntawm 300+km los ntawm qee tus neeg)

Qhov no qhia koj yuav ua li cas txuas lawv ob qho tib si.

Yog tias koj xav khaws LoRa cov ntaub ntawv thiab xa nws mus rau hauv internet, qhov no yog $ 15 kev daws teeb meem uas muaj peev xwm khiav tau 24/7 los ntawm lub hnub ci vaj huam sib luag.

Kauj Ruam 1: Txheeb Xyuas Koj Tau Txais Cov Khoom Kho Kom raug

Txheeb Xyuas Koj Tau Txais Cov Khoom Kho Kom raug
Txheeb Xyuas Koj Tau Txais Cov Khoom Kho Kom raug
Txheeb Xyuas Koj Tau Txais Cov Khoom Kho Kom raug
Txheeb Xyuas Koj Tau Txais Cov Khoom Kho Kom raug

Cov Lus Qhia no yog siv rau saum 2 yam no ua ke.

Kauj Ruam 2: Nov yog Cov Lus Cim Kuv Tau Ua Txog Pinouts

Nov yog Cov Lus Cim Kuv Tau Ua Txog Pinouts
Nov yog Cov Lus Cim Kuv Tau Ua Txog Pinouts
Nov yog Cov Lus Cim Kuv Tau Ua Txog Pinouts
Nov yog Cov Lus Cim Kuv Tau Ua Txog Pinouts
Nov yog Cov Lus Cim Kuv Tau Ua Txog Pinouts
Nov yog Cov Lus Cim Kuv Tau Ua Txog Pinouts

Kauj Ruam 3: Nov yog Cov Pins Koj Yuav Tsum Tau Txuas

Cov no yog cov Pins Koj Yuav Tsum Tau Txuas
Cov no yog cov Pins Koj Yuav Tsum Tau Txuas

WeMos LoRa

GND ---- NCO

3V3 ---- VCC

D6* (io12) ---- MISO

D7* (io13) ---- MOSI

D5* (io14) ---- SLCK

D8 (io15) ---- NSS

D12* (io10) ---- DIO0

D4 (io2) ---- REST (yeem-NB: D4 yog xaim rau lub xiav LED)

* Nco ntsoov tias koj yuav tsum tau muab solder D5, D6, D7 thiab D12 mus rau ESP8266 nti ntawm lub motherboard, vim tias lawv tsis tau tawg tawm cov pins rau koj siv ntawm WeMos D1 header.

NB: Muaj tsis tau lwm tus pin siv !! Feem ntau ntawm cov pins uas tau tawg rau koj (A0, D3, D4, D8, D9, thiab D10) yuav (yog siv) tiv thaiv koj lub rooj tsav xwm los ntawm kev pib [D10+-, D8+, D4-, D3-], lossis yuav thaiv koj los ntawm kev ua haujlwm nws [D9], lossis yuav tiv thaiv koj lub xov tooj ntawm tes los ntawm kev ua haujlwm [D9, D10]).

Kauj Ruam 4: Teeb Koj Lub Arduino IDE Ib puag ncig lub Programming

Teem Koj Arduino IDE Programming Environment
Teem Koj Arduino IDE Programming Environment
Teem Koj Arduino IDE Programming Environment
Teem Koj Arduino IDE Programming Environment
Teem Koj Arduino IDE Programming Environment
Teem Koj Arduino IDE Programming Environment

Xyuas kom meej, hauv koj qhov kev nyiam, koj tau txais "Tus Thawj Saib Xyuas Ntxiv URLs" suav nrog qhov no:-

arduino.esp8266.com/stable/package_esp8266com_index.json

Thiab xyuas kom koj tau teeb tsa Libs koj xav tau (saib tag nrho cov duab rau yuav ua li cas)

Kauj Ruam 5: Nov yog Txoj Cai los Ua Haujlwm No

Ntsaws qhov no rau hauv koj qhov program Arduino. Yog tias koj tsim 2 qhov ua tiav ntawm cov no - thiab thauj tib cov cai hauv ob qho tib si, koj tuaj yeem saib lawv tham nrog ib leeg siv koj li Serial Monitor hauv Arduino IDE.

Kauj Ruam 6: Nov Yog Li Cas Saib Nws Ua Haujlwm

Nov Yog Li Cas Saib Nws Ua Haujlwm!
Nov Yog Li Cas Saib Nws Ua Haujlwm!
Nov Yog Li Cas Saib Nws Ua Haujlwm!
Nov Yog Li Cas Saib Nws Ua Haujlwm!
Nov Yog Li Cas Saib Nws Ua Haujlwm!
Nov Yog Li Cas Saib Nws Ua Haujlwm!

Qhib koj tus lej saib.

Yog tias koj tau ua 2 ntawm cov no, thiab yog tias lwm tus twb tau qhib kev khiav (yog li, nws tau xa LoRa pob ntawv rau koj), tom qab ntawd koj yuav pom qee yam zoo li no:-

# /Users/cnd/cd/Downloads/Arduino/WeMos_D1_LoRaDuplexCallback/WeMos_D1_LoRaDuplexCallback.ino Nov 24 2018 22:08:41

LoRa Duplex nrog hu rov qab

LoRa init ua tiav.

Rov los ntawm: 0xbb rau: 0xff mID: 15 l: 26 Msg: LeLoRa World 12:40:59 5135 RSSI: -43 Snr: 9.50 freqErr: -2239 rnd: 18

ss Rec los ntawm: 0xbb rau: 0xff mID: 17 l: 26 Msg: LeLoRa World 12:40:59 5137 RSSI: -50 Snr: 10.00 freqErr: -2239 rnd: 15

s Rec los ntawm: 0xbb rau: 0xff mID: 18 l: 26 Msg: LeLoRa World 12:40:59 5138 RSSI: -49 Snr: 9.25 freqErr: -2239 rnd: 15

ss Rec los ntawm: 0xbb rau: 0xff mID: 19 l: 26 Msg: LeLoRa World 12:40:59 5139 RSSI: -43 Snr: 9.75 freqErr: -2239 rnd: 16

s Rec los ntawm: 0xbb rau: 0xff mID: 20 l: 26 Msg: LeLoRa World 12:40:59 5140 RSSI: -51 Snr: 9.50 freqErr: -2239 rnd: 17

s Rec los ntawm: 0xbb rau: 0xff mID: 21 l: 26 Msg: LeLoRa World 12:40:59 5141 RSSI: -53 Snr: 10.00 freqErr: -2239 rnd: 24

Koj tuaj yeem tso qhov kev khiav no, thiab coj koj lwm tus mus rau ib puag ncig ntawm qhov thaiv, tom qab ntawd rov qab los tom qab thiab muab tus lej tso rau hauv daim ntawv nthuav qhia saib pes tsawg pob ntawv tau poob, thiab lub teeb liab muaj zog sib txawv li cas.

Kauj ruam 7: Txaus siab rau

Qhia rau kuv paub yog tias koj muaj teeb meem lossis cov lus qhia thiab lwm yam.

Pom zoo: