Getting Started with LoRa | Tutorial

Поделиться
HTML-код
  • Опубликовано: 10 окт 2018
  • Today I'll take a look at these LoRa modules from REYAX, do a little bit of Javascript programming, and create a gateway that allows LoRa devices to interact with devices on BLE and WiFi networks.
    Espruino JS code for these modules: www.espruino.com/RYLR
    /* LoRa Modules */
    Ebay: www.ebay.com/itm/REYAX-RYLR89...
    REYAX sells two modules that have different frequency ranges and different countries have different standards for those. For more information check out the links below.
    For the US/EU these are the correct ones:
    868/915 MHz: reyax.com/products/rylr896/
    But your country might require these:
    426/433/470 MHz: reyax.com/products/rylr406/
    /* Espruino Boards */
    WiFi: www.espruino.com/WiFi
    Pixl.js: www.espruino.com/Pixl.js
    Puck.js: www.espruino.com/Puck.js
    #LoRa #Espruino #Javascript

Комментарии • 59

  • @AzVidsPro
    @AzVidsPro 5 лет назад +10

    I like how you explain what the code does. I can actually understand it. I have little to no experience using js, and I want top make a instant messaging device that uses lora then, i could give them to my friends for testing.,

  • @lok1180
    @lok1180 3 года назад +2

    I am just researching in this field
    Thank you for your very clear explanation
    Wonderful

  • @ThomasShue
    @ThomasShue 3 года назад

    This is exactly what I need to create some remote control devices . I want to create a suction cup cam operated button pusher. When I press the button it rotates a motor that has a cam love on it one time to press a button on an old manual machine. Do you think this would be a good way to do that?

  • @greywolf210
    @greywolf210 4 года назад +3

    I’m looking to build my own gps tracking device for small pets. My personal inspiration is in that I’m a falconer who doesn’t want to spend a couple grand on something as imprecise as radio telemetry. I’ve found an already assembled device, but it also requires a SIM and subscription. I’m totally willing to do that, but my interest is piqued by this vid and your gps vid. Do you have suggestions?

  • @jackwinter2669
    @jackwinter2669 3 года назад +1

    Do you know of a way you replace the spring antenna with a better one?

  • @richardriordan4050
    @richardriordan4050 4 года назад

    I'd like to see how to add the LoRa module to the GPS you made in the other RUclips. I need to put something in my RC airplane to find it when it flies out of sight and is lost.

  • @ThomasShue
    @ThomasShue 3 года назад

    Fantastic

  • @crazydiamonduk
    @crazydiamonduk 4 года назад

    Is it possible to let's say make a simple alarm with Lora.
    But each contact or Infrared detector will communicate with the base station using Lora.
    Then the base station communicates with the outside world using Lora.
    As apposed to having each Lora device on the loraWan

  • @srikanth06
    @srikanth06 5 лет назад

    R u using lora as P2P communication? Do you have video of lora wan devices?

  • @MatthewTaylorAu
    @MatthewTaylorAu 5 лет назад

    looking for 923 compatible with the standard selected for Australia.

  • @farisrusydiirham6853
    @farisrusydiirham6853 4 года назад +1

    Is it able to use LoRa without any WiFi connections?

  • @iot-armyw3engineers227
    @iot-armyw3engineers227 4 года назад

    Is it possible to connect multiple module to each other ???

  • @desiarvela1505
    @desiarvela1505 3 года назад

    Amazing..
    Please create lora and sand mulriple sensor

  • @farukz.9904
    @farukz.9904 4 года назад

    i want to take information from a model satelite. But the model satelite will be 1km higher than groudn station. So how can i use that module. Also i want to calirfy that i am gonna use rasberry pi 0 as an processor. Thanks for helping and thanks for video

  • @hanib6044
    @hanib6044 3 года назад

    Hi, can you make a video using Lora to send gps coordinates?!!
    The power consumption is also important.

  • @letsgetto1millwithoutvids
    @letsgetto1millwithoutvids Год назад

    Could I make a lora long distance jammer by using a lora transmitter and sending random noise

  • @lieric4874
    @lieric4874 4 года назад

    I am doing lora with communication with arduino and pi4,comminications has problem,could you help me pls?

  • @michakapa4789
    @michakapa4789 3 года назад

    What about building pet tracker for a cat using gps module and LoRa?

  • @benjaminferguson3279
    @benjaminferguson3279 4 месяца назад

    I would like to see a video on how to integrate a keyboard onto these for texting purposes!

  • @hannesaltenfelder4302
    @hannesaltenfelder4302 4 года назад

    How About a Lora-microwave rf Project? Set microwave rf module somewhere, let it send a Signal via Lora and maybe a counter? Or let it make a photo by a camera, that is placed somewhere else than the microwave-module???

  • @G33km0bile
    @G33km0bile 5 лет назад +5

    This would be great to have in my mailbox 200m away, to see if I receive mail.. (if the power consumption is low enough to run on battery over time?)

    • @o0O0oLOLo0O0o
      @o0O0oLOLo0O0o 5 лет назад

      power consumption on LoRa's is very low, you can use them for weeks on a rechargable battery as long as you only send packets when you see movement in your mailbox

  • @sreemukhikottada3518
    @sreemukhikottada3518 3 года назад

    did i need any certifications to use lora

  • @neilhodgson2660
    @neilhodgson2660 Год назад

    Hi Davy, good intro to the hardware I am impressed. Would it be possible to use this to transmit an image / text to a OLED screen or similar over distances of say 1KM? I am thinking of developing some sort of project that can allow me to have display modules on all 18 tees of a golf course which can receive an updated image with text from the clubhouse. The modules would be low voltage build into the tee markers. Using a LORA I heard that the same data can pass through each LORA onto the next creating an extended network? I do a bit of electronics but not sure if I could make this kind of project work or not? Perhaps you have some ideas.

    • @rcrotorfreak
      @rcrotorfreak Год назад

      That be cool image. How ever ever heard Elrs. Expres lrs? Uses this to send signal and receive signal and telemetry. can do up to close to 16 miles with 2 watt.

  • @dinhuxp
    @dinhuxp 5 лет назад

    Is possible make a broadcast voice? Like a voice conference, however, with many LoRas talking simultaneously. I'm having a project to make a type of phone that communicates at a "short distance", creating a group between them.

    • @planktonfun1
      @planktonfun1 3 месяца назад

      no, it cant be used for streaming only signaling

  • @ovalwingnut
    @ovalwingnut 2 года назад

    (I'm a bit late to the party)
    And why haven't I subscribed before this? Actually I just stumbled upon your CH. Really GR8T line-by-line descriptions of the code. Now I've got that "I WANT ONE" urge (among my many urges, sorry for that visual). SUBBED & BELLED, who wouldn't? p.s. Project wise. Mine is most likely a physics problem. Can it be condensed into the size of a key fob? Ok, a fatty key fob. I realize that's more of a micro question. But I though I would get the ball rolling. Thanks so much. Cheers from So.Ca.USA, 3rd House On the Right.

  • @ZsomborZsombibi
    @ZsomborZsombibi 5 лет назад

    Does it have longer range if I decrease the baud rate to 9600?

    • @o0O0oLOLo0O0o
      @o0O0oLOLo0O0o 5 лет назад

      The best way to get very good range is to use a better antenna and indeed decrease both baud rate and data rate.

  • @joonasfi
    @joonasfi 5 лет назад +2

    How much does running a high level VM-based language like JS affect the battery life?

    • @davywtf
      @davywtf 5 лет назад

      I've had these Espruino devices easily last for several weeks on a tiny 2032 button cell. So it's pretty good on battery life. The thing is, when you write event-driven applications like this most of the program is just waiting for events (for LoRa signals, button presses, etc). It's different if your program has to do a bunch of number crunching or something, but usually these types of projects are more event-driven, so they spend most of the time waiting and then they run a tiny amount of code to respond to an event before going back to waiting.

    • @joonasfi
      @joonasfi 5 лет назад

      That's surprisingly good battery life for JavaScript! Maybe the problem isn't the JS directly, but maybe that to run JavaScript you need beefier hardware, so the hardware itself eats more power than lower powered devices like Zigbee based sensors, which can get battery life measured in months, maybe even more than a year. I get what you're saying about async stuff (no event, no JS running), but we have interrupts in low level languages for events also, if one was to make power efficient code. Of course events in JS are alot easier to deal with than low level interrupts!

    • @DavyBot
      @DavyBot  5 лет назад +2

      @Joonas Loppi For me it's not even apples vs oranges. Dealing with text protocols (serial AT commands on these LoRa modules/HTTP requests) is easier in JS and juggling multiple sources of concurrent IO is a pain in C even if your device has proper software interrupts (most similar devices only support a few external and maybe some timers).
      One good challenge is to have someone implement simple blinking LEDs at different configurable frequencies in C. Start with 5 independently blinking LEDs. Now make it modular so that you can add more LEDs or take some away without doing a complete rewrite. By the time you write a solution robust enough to handle that in addition to anything else your projects needs to do, you've probably written something similar to the event-loop and scheduler in Javascript. Except your implementation probably hasn't been tested as thoroughly. Now if you're also processing arbitrary amounts of text (HTTP+AT) then the tiny overhead of parsing small blips of JS code to respond to events is negligible.

    • @joonasfi
      @joonasfi 5 лет назад

      @@DavyBot I ain't arguing with that :) Like I said you can do interrupts in C but it's probably much more pleasant in JS.

  • @MaxGoddur
    @MaxGoddur 5 лет назад

    New to this area of IoT; can you program these devices with the Arduino IDE?

    • @DavyBot
      @DavyBot  5 лет назад +1

      These LoRa modules can work with any microcontroller that supports a UART interface so they will work with Arduino. I chose to use Espruino boards instead because handling the text protocol is easier in JS instead of C, but if you wanted to do it in C it's certainly possible.

    • @MaxGoddur
      @MaxGoddur 5 лет назад

      @@DavyBot I favor the NodeMCU only because I have a lot of them in the project drawer. Again thank you for your help.

    • @AkosLukacs42
      @AkosLukacs42 5 лет назад

      @@MaxGoddur you can flash Espruino to nodemcu boards

  • @StitchesLovesRats
    @StitchesLovesRats 3 месяца назад

    range?

  • @Sebastienobi
    @Sebastienobi 5 лет назад

    hii dear nice video...i neeto know how to connect any lora modules together .like 3 senders and 1eceiver . r 3 or 4 lora modules connected together and sharing data

    • @o0O0oLOLo0O0o
      @o0O0oLOLo0O0o 5 лет назад

      You can use the modules together with arduino's and use some kind of mesh library. Good luck!

  • @Ilovetheplatypus
    @Ilovetheplatypus 5 лет назад +5

    What is the range on those things, and could you set it up as an internet connection so you could at least connect to a bbs like it's 1992?

    • @DavyBot
      @DavyBot  5 лет назад +3

      The biggest factor with the range is how obstructed the signal is with buildings and stuff. I live in a city so I haven't gotten to test out the theoretical range (with a clear line of site) but even with buildings and trees I still have connection a few blocks away (half a mile -ish). So, much better than WiFi or Bluetooth. But supposedly with a clear line of site they can go 10km or so.
      You could run internet through it using something like PPP (www.tldp.org/HOWTO/PPP-HOWTO/c44.html). It would be really slow like that though (basically forget about trying to load a modern webpage). That could be a neat project though, just for kicks.
      In the demos on this video where I had the browser interaction I could have forwarded that port out to the internet. But in that case each change is only a few bytes so it didn't really need much bandwidth.

    • @Ilovetheplatypus
      @Ilovetheplatypus 5 лет назад +1

      A range of a few miles is actually very impressive. Should actually allow for things like loading the text based terminal version of reddit and such. There's actually still a lot of stuff you can do on the web with dismal speeds. I wonder if increasing the antenna size would make a significant improvement to range. Could actually be useful for those nature types in national park areas with no cell coverage, but I guess those people wouldn't be nerdy enough to open reddit in a terminal anyway.

    • @DavyBot
      @DavyBot  5 лет назад +1

      You probably can get a bigger antenna. I think there are regulations on the amount of power for them though, so most devices are going to obey those limits. It sounds like the key is to elevate them to avoid obstructions. So if you put one on your roof or a tower or something it would get the best range.
      I do a lot of hiking myself and I think it could be fun to take some of these out to the wilderness. You could use them like an off-the-grid text service, play chess with someone at another camp site, or setup an alarm at your camp to let you know if an animal or person were rummaging around.

    • @Ilovetheplatypus
      @Ilovetheplatypus 5 лет назад +2

      If you wanna try just for giggles, grab RTV from whatever linux repository you use and see if the text based terminal reddit is usable at such a speed limit. As far as regulations go, half the junk you can buy off ebay doesn't conform to them anyway. The FCC doesn't really care unless you're blasting a 500 watt signal over a radio station. Anyway, a longer antenna wouldn't increase the power you're putting out anyway. It just increases the size of what you're shooting at. That is how ham radios can reach around the world in correct conditions with a long wire on as little as 5 watts of power.

    • @bob-ny6kn
      @bob-ny6kn 5 лет назад +2

      I think I was on bbs' in '82, at 75 baud and thought I had discovered the secret tunnels under Washington, DC (true). Then i learned Europe had Telex a decade prior. That's when I knew I would never keep up with tech… still can't find the 'any' key.

  • @hobbes6832
    @hobbes6832 3 года назад +1

    You sound like the guy from "your daily dose of internet"

  • @hiteshm743
    @hiteshm743 4 года назад

    can these reach around 800 meters

  • @CPLBSS88
    @CPLBSS88 3 года назад

    over $20 USD EA!? Yeah no thanks... i swear micro electronics vendors have lost their minds with pricing of many things but this is just absurd.

  • @MrRobot-vc2gk
    @MrRobot-vc2gk 3 года назад

    gay