INHOUDSOPGAWE:

Sistem De Cartografiere en Retelelor LoRaWAN: 4 stappe
Sistem De Cartografiere en Retelelor LoRaWAN: 4 stappe

Video: Sistem De Cartografiere en Retelelor LoRaWAN: 4 stappe

Video: Sistem De Cartografiere en Retelelor LoRaWAN: 4 stappe
Video: Cartografierea rețelelor de distribuție, pentru alimentarea mai sigură cu energie electrică 2024, Julie
Anonim
Sistem De Cartografiere en Retelelor LoRaWAN
Sistem De Cartografiere en Retelelor LoRaWAN

In die cadrul acestui-program kan u 'n unieke kaartstelsel vir 'n retelelor LoRaWAN doen.

Ce este LoRa?

LoRa este o tehnologie care pune la dipozitia dezvoltatorilor de solutii inteligente o transmisie de raza lunga si securizata a datelor, cu un consum reduced the energie. Retelele publice si private care utilizeaza aceasta tehnologie pot oferi o acoperire care este mai mare decat ceaelel bestaan. Este o tehnologie usor de conectat la orice infrastructura existenta. Die gebruik van radio-sub-gigahertz-radios kan tot 169 MHz, 433 MHz, 868 MHz (Europa) en 915 MHz (America de Nord) gebruik word.

Ce este LoRaWAN?

LoRaWAN este reteaua pe care LoRa opereaza. LoRaWAN is 'n protokol vir die transmissie van radioprente om 'n intellektuele, mediese toegangsbeheer (Mac) te verkry pe distanţe lungi.

Hoe kan ek 'n projek realiseer?

Die intermediêre manier om 'n plek te sien Seeeduino Stalker kan 'n radiomodule vir 'n lang tydperk plaas

reseptor. (va asculta dupa semnalele ce provin de la gateway urile de LoRaWAN)

Relevante gegewens: coordonate geografice, RSSI, timestamp vor fi save in format kml pentru a fi utilize la

kaart in Google Earth.

Stap 1: Gebruik die komponent

Komponent benut
Komponent benut
Komponent benut
Komponent benut
Komponent benut
Komponent benut

Ons kan die werklike funksies van die onderstaande komponente gebruik:

1. Seeeduino Stalker v2.3

2. Modulomskakelaar USB Serial FT232RL met Mufa USB Mini

3. Modul GPS MTK-3329

4. Cablu Mini USB

5. Vuur mama-tata

6. LCD RC2004A-BIW-ESX + MCP23008

7. microSD -kaart 2Gb

8. Baterie CR2032

9. LoRa ACW-XB v1.1 ATIM

10. Antena wifi

Spesifieke relevante Seeeduino Stalker v2.3

Mikrokontroleerder: ATmega328P

I/O -penne: 20

Verbind: I2C, UART, SPI

UART Baud Rate: 115200 bps

Verbind dit met 'n realiteit in die urmatormodus:

U kan ook 'n interne rekenaar met 'n sakrekenaar vir FT232RL gebruik, sowel as 'n USB -mini -intreevlak van 2 van u. (Module FT232RL is 'n kommunikasie tussen UART-weergawes).

Seeeduino Stalke - FT232RL

USB5V, VCCRX

TXD, TXD

RXD, RXD

GND, GND

DTR ↔ DTR

Bateria impreuna cu microSD cardul and modulul LoRa au fost atasate in local special create de pe placa

Verbind GPS

Seeeduino Stalker - GPS

GND, GND

Speld 7, RXA

Speld 8, TXA

3.3V, VDD

In die samestelling van GPS kan ek probleme met verwysing na die baud -koers bepaal. U kan die FT232RL-module in ooreenstemming met die volgorde van GPS-funksie en die 38400-waarde aanpas.

Konnekteer LCD

Datorita-poortuitbreider en -interface vir I2C is 'n uitstekende LCD-skerm, en kan ook 'n werklike gebruik word.

Seeeduino Stalker - MCP23008

USB5V, 5V

GND, GND

SDA, SDA

SCL, SCL

Stap 2: Mediu De Dezvoltare

Programme vir die realisering van die program Arduino IDE:

Bord: Arduino Pro of Pro Mini

Verwerker: ATmega328P (3.3V, 8MHz)

Stap 3: Afisare Coordonate + Tydstempel Pe LCD

Afisare Coordonate + Tydstempel Pe LCD
Afisare Coordonate + Tydstempel Pe LCD

Ons kan 'n volledige koördinator vir GPS gebruik om data in tyd en tyd vir LCD -toestelle in Google Earth te gebruik.

Ek gebruik urmatorul kabeljou: (Noem die nuwe invoer vir 'n biblioteek of TinyGPS ++.h, RTClib.h en LiquidCrystal.h)

Kabeljou:

#include #include

#insluit

#insluit

#insluit

statiese const int RXPin = 8, TXPin = 7; statiese const uint32_t GPSBaud = 38400;

RTC_DS3231 rtc;

char t [32];

TinyGPSPlus gps;

SoftwareSerial ss (RXPin, TXPin);

LiquidCrystal lcd (0);

leemte opstelling ()

{lcd.begin (20, 4);

Serial.begin (9600);

Wire.begin ();

rtc.begin ();

ss.begin (GPSBaud);

vertraging (1000);

lcd.clear ();

}

leemte lus ()

{

DateTime nou = rtc.now ();

sprintf (t, "%02d:%02d:%02d%02d/%02d/%02d", nou.uur (), nou.minuut (), nou.sekonde (), nou.dag (), nou.maand (), nou.jaar ());

vertraging (1000);

terwyl (ss.available ()> 0)

as (gps.encode (ss.read ()))

displayInfo ();

if (millis ()> 5000 && gps.charsProcessed () <10) {

lcd.print (F ("Geen GPS bespeur nie"));

terwyl (waar);

}

}

void displayInfo () {if (gps.location.isValid ())

{

Serial.println (gps.location.lat (), 6);

Serial.println (gps.location.lng (), 6);

Serial.println (t);

lcd.setCursor (0, 0);

lcd.print ("Lat =");

lcd.print (gps.location.lat (), 6);

lcd.setCursor (0, 1);

lcd.print ("Lng =");

lcd.print (gps.location.lng (), 6);

lcd.setCursor (0, 2);

lcd.print (t);

}

anders {

lcd.print ("Ongeldig");

lcd.clear ();

}

if (millis ()> 5000 && gps.charsProcessed () <10)

{

Serial.println (F ("Geen GPS bespeur nie: kontroleer bedrading."));

terwyl (waar);

}

}

Stap 4: Salware Date Pe MicroSD -kaart

Librarie utilizata: SD.h

U kan die data van die microSD -kaart op hierdie bladsy aanskou:

Lê myFile;

leemte opstelling ()

{

…..

Serial.print ("Initialiseer SD -kaart …"); pinMode (10, UITGANG);

as (! SD. begin (4))

{Serial.println ("inisialisering misluk!");

terugkeer;

}

Serial.println ("inisialisering gedoen.");

}

leemte lus ()

{

….

terwyl (ss.available ()> 0) if (gps.encode (ss.read ()))

{displayInfo ();

skryfInfo ();

}

}

void writeInfo () {if (gps.location.isValid ())

{myFile = SD.open ("testf.txt", FILE_WRITE);

as (myFile) {

Serial.print ("Skryf na testf.txt …");

myFile.println (gps.location.lat (), 6);

myFile.println (gps.location.lng (), 6);

myFile.close (); }

}

anders {

myFile = SD.open ("testf.txt", FILE_WRITE);

as (myFile) {

Serial.print ("Ongeldig");

myFile.close (); }

}

}

Pasul urmator presupune transofmarea fisierului.txt in.kml si incarcarea acestuia in Google Earth.

Aanbeveel: