LoRa - Long-Range Radio for IoT | Arduino, ESP32, RPI Pico

  Переглядів 275,508

DroneBot Workshop

DroneBot Workshop

День тому

LoRa is a low-cost, license-free method of sending short data bursts over long distances. It’s perfect for IoT sensors and remote control projects. Today, we’ll see how easy it is to use LoRa in our projects.
Article with code: dronebotworkshop.com/lora
More articles and tutorials: dronebotworkshop.com
Join the conversation on the forum: forum.dronebotworkshop.com
Subscribe to the newsletter and stay in touch: dronebotworkshop.com/subscribe/
If you need to send small amounts of data, such as sensor readings, over long distances, then LoRa (Long Range) radio is the technology for you. You can achieve incredible distances using low-cost modules and basic antennas. You can measure these distances in miles or kilometers with the right equipment.
Today, we will experiment with two readily available, low-cost LoRa modules: the HopeRF RFM95W and the Adafruit RFM9x. They are essentially the same module, with the Adafruit device having onboard voltage regulation and logic-level conversion, making it compatible with both 5-volt and 3.3-volt microcontrollers. The Adafruit offering is also easier to handle, as the HopeRF module is not breadboard-friendly.
We will use these modules with an Arduino Uno, a Raspberry Pi Pico, and an ESP32. We’ll program with both C++ in the Arduino IDE and MicroPython using the Thonny IDE.
Here is the Table of Contents for today's video:
00:00 - Introduction
01:30 - LoRa Primer
07:38 - HopeRF RFM95W & Adafruit RFM9x
11:08 - LoRa Antennas
13:06 - Seeedstudio LoRa-E5
14:35 - Heltec ESP32-LoRa
16:09 - Installing & Using the LoRa Library
18:32 - Adafruit RFM9x Hookup
21:24 - Demo 1 - Simple data transmission
25:43 - Demo 2 - One-way remote control
30:34 - Demo 3 - Callback & Two-way remote control
36:43 - Raspberry Pi Pico MicroPython & Hookup
39:13 - LoRa with MicroPython Code & Demo
45:39 - Data Gathering Project Intro
46:35 - Data Gathering Hookup & Operation
53:11 - Data Gathering Code
1:02:45 - Data Gathering Demos
1:05:07 - Conclusion
While this is a long video, it barely scratches the surface of what you can accomplish using LoRa. You’ll be seeing more LoRa-related projects and tutorials here soon, including one on LoRaWAN.
Hope you enjoy the video!
Bill

КОМЕНТАРІ: 212
@Dronebotworkshop
@Dronebotworkshop 3 місяці тому
Hi everyone - It's come to my attention that there has been someone masquerading as myself, responding to some comments here with a link to a Telegram chat to win a prize from me. THIS IS A SCAM, I am not holding a contest, nor do I have a Telegram account. PLEASE DO NOT RESPOND TO THESE MESSAGES!! It's happening on a lot of my videos, I'm taking steps to remove them manually, but as I have 162 videos, it will take some time. If you do run across a suspicious comment, I would appreciate you letting me know at info@dronebotworkshop.com. Thanks! Bill (The real one!)
@braselectron
@braselectron 3 місяці тому
Just got a message about the Telegram SCAM on youtube notification bell.
@pareshmhatre4019
@pareshmhatre4019 7 місяців тому
Why don't we people say thanks to library makers! Who makes our code so easy!
@simonmasters3295
@simonmasters3295 5 місяців тому
Well said
@MuzixMaker
@MuzixMaker 4 місяці тому
Thanks!
@mikesalmon434
@mikesalmon434 Місяць тому
A huge thank you
@sgtbrown4273
@sgtbrown4273 21 день тому
Yup yup 😊
@Dronebotworkshop
@Dronebotworkshop 7 місяців тому
Originally I was going to do a video about LoRa & LoRaWAN, however it was far too much for one video. I'll have a follow-up LoRaWAN video out very soon.
@raymondmichael4987
@raymondmichael4987 7 місяців тому
Thanks buddy; Thirdly would love to learn mesh network with those modules, mostly I see star configuration 😢. You’re doing such a good work
@auxz2jz158
@auxz2jz158 7 місяців тому
Please do, do a follow-up with LoRaWAN I would love to make my own
@mikeosx2009
@mikeosx2009 7 місяців тому
Very interested in a Pi Pico LoRaWAN video.
@willgilliam9053
@willgilliam9053 7 місяців тому
looking forward your meshtastic video :)
@fernandoandaluz2281
@fernandoandaluz2281 6 місяців тому
Thank you very much Sir.
@JasonDurrett
@JasonDurrett 7 місяців тому
Bill, you have created some amazing content over the years and have helped me quite a bit., and I am sure so many microcontroller enthusiasts. I love how thorough you are and the pace you teach at, it is perfect for me! Please keep up the great work. A sincere Thank you is in order!
@1_HighDuke
@1_HighDuke 7 місяців тому
Hear! Hear!
@Dronebotworkshop
@Dronebotworkshop 7 місяців тому
Thank you Jason, that is very kind of you!
@brucebowman9087
@brucebowman9087 7 місяців тому
Whenever I am looking for a clear explanation of new development tech I always come to the DroneBot Man. My favorite nerd!
@1larrydom1
@1larrydom1 7 місяців тому
Andreas Spiess is the king of anything LORA related. He's got terrific knowledge and has done some incredible things with it. A simple search for his channel will find him. The guy with the Swiss accent!
@simonmasters3295
@simonmasters3295 5 місяців тому
He has interesting stuff I agree
@DaleDix
@DaleDix 3 місяці тому
He is the person that is in this forum who people think knows the most.
@RupertBruce
@RupertBruce 7 місяців тому
I like the way you explain the hardware and software so clearly without getting bogged down with explaining the familiar patterns.
@neilcampbell6026
@neilcampbell6026 7 місяців тому
Thanks Bill. I was finally able to get some Lora modules working AND I really appreciate that you covered Arduino/C/C++ , MicroPython , and the 3 different microcontrollers. Hope you can continue to do that with all your projects moving forward.
@Algardraug
@Algardraug 7 місяців тому
Your videos are so well thought out, thorough and easy to grasp. Well done!
@dannymanor1
@dannymanor1 7 місяців тому
I was waiting for this video after reading your news letter and it didn't disappoint. A BIG thank you for including MicroPython in your video. This really helps me with my microcontroller journey. 📡
@kylereed3577
@kylereed3577 7 місяців тому
Thanks! Once again you have inspired me. Great video I’ve been wanting to know more about LoRa and you filled all the blanks for me. Can’t wait for the LoRaWan video.
@Dronebotworkshop
@Dronebotworkshop 7 місяців тому
And thank you as well! I'm glad you enjoyed the video.
@nextwave5164
@nextwave5164 7 місяців тому
Been using LoRa for a while now with most my devices.. i love it
@DelTapparo
@DelTapparo 7 місяців тому
Your presentations are just fantastic. All your preparation and diagrams make a complex subject very easy to understand.
@Optimuseq
@Optimuseq 7 місяців тому
"The long term LoRaWAN distance world record of 832 km / 517 mi has been broken. The new record now stands at 1336 km / 830 miles." - sounds nice :)
@grayhatfailure2428
@grayhatfailure2428 7 місяців тому
The dronebot workshop intro music is a key part of my childhood memories.
@dirtypedestrian
@dirtypedestrian 7 місяців тому
Thanks for doing a video on this! I was just thinking about trying some of these modules out!
@RommudohDev
@RommudohDev 7 місяців тому
Very nice video! An excellent introduction to LoRa with a lot of background information. I can't wait to see the follow-ups, too!
@MichaelWillems
@MichaelWillems 6 місяців тому
As a radio ham (VA3MVW) I really liked this particular issue of your vlog, Bill. Super stuff!
@wesley00042
@wesley00042 7 місяців тому
A group of us did a 100+ node LoRa Meshtastic cluster at DEF CON this year. I love this technology.
@veryfinedankn3187
@veryfinedankn3187 2 місяці тому
I'm really looking forward to defcon 2024, is it pretty hard for a newbie to get involved in something like this? I'd love to hear more about how this turned out. Well who knows with any luck maybe I'll run into some kind folks that are willing to help someone who has a very basic understanding of all of this. Literally just got my first pico w in the mail and I was trying to decide what project to take on, and it looks like I found one! Now off to order arduino uno etc. Much love and respect to the community at large! Shareware + decentralization = endless possibilities ❤ tz222zt
@garypaulson5202
@garypaulson5202 7 місяців тому
Super video, learned more about LoRa in this one video than in several others on other channels
@GertBowker
@GertBowker Місяць тому
I''ve built two of these using LoRa RFM95W, wow super impressed by it, thanks for sharing
@Moonlight0551
@Moonlight0551 7 місяців тому
Wow, you covered a lot of ground today. Wish I'd seen this a couple of years ago. Good info and well explained.
@klif_n
@klif_n 7 місяців тому
Thanks for the great info. This is really very helpful. I've used the Radiohead rfm95 library before, but the one you mentioned seems to be even easier to use.
@paulforester6996
@paulforester6996 7 місяців тому
After I get settled into my move, I plan on a project to connect to my car to upload diagnostic info to my house. Thanks for the info.
@greppurtorfason4216
@greppurtorfason4216 7 місяців тому
I just love your videos. Top-notch professionalism in every regard. Thank you so much for your effort.
@1_HighDuke
@1_HighDuke 7 місяців тому
Awesome explanations and demos as usual. Thank you very much! Looking forward to the LoRaWAN video.
@chriswalker4596
@chriswalker4596 4 місяці тому
Many thanks for this video, so accurated and well prepared that is better of an university lesson ! One hour is gone so fast and I was glued to the screen all the time, thank you.
@MaxMustermann-sm4qu
@MaxMustermann-sm4qu 7 місяців тому
Incredible technology. 🤯 Thank you so much for this well made and informative video. 🙏 Can not wait to see the follow ups. 😊
@manojithalder7448
@manojithalder7448 7 місяців тому
This is gem. You explain everything in depth and beautifully. 🎉❤
@mussher1
@mussher1 7 місяців тому
Fantastic video! I'm currently building a soil moisture monitor using PicoW+Lora E5+capactive soil moisture sensor+microPython+ Home Assistant with MQTT+InfluxDB+Grafana to make decisions on irrigation for growing feed crops.
@brucebowman9087
@brucebowman9087 7 місяців тому
This Super Thanks thing is new to me. I'm glad to have an easy way to reward great content creators like you. My students call you the DroneBot Man.
@Dronebotworkshop
@Dronebotworkshop 7 місяців тому
Thank You from the Dronebot Man!
@clixium
@clixium 7 місяців тому
I'm transmitting and receiving data 3.2 km away with a simple spring antenna that came with modules, no clean LOS but still works great, -105 avg dBm so signal is pretty strong. I've just assembled 3rd device that I'll use for reserve and distance testing so I may update this post soon. Lora is amazing
@MathewPanicker1010
@MathewPanicker1010 7 місяців тому
What kind of data rates are you able to achieve?
@tin2001
@tin2001 7 місяців тому
That's handy to know. That's about the max distance I'd need to run any sensors.
@bsvenss2
@bsvenss2 7 місяців тому
Wow! I just discovered this channel and it is amazing. Exactly what you need to know in a very professional and explanatory way. Instant subscriber. Thank you!
@Dronebotworkshop
@Dronebotworkshop 7 місяців тому
Thank you so much, and Welcome to the Workshop!
@gabrielgaby5840
@gabrielgaby5840 7 місяців тому
Good ain't.., next step into our Movement of Electrons..🎉❤
@baldrickdaisy8982
@baldrickdaisy8982 7 місяців тому
Great video Bill… very informative 👌 I’m looking forward to your next videos on LoRa & LoRaWAN 😀
@mr.bianchirider8126
@mr.bianchirider8126 7 місяців тому
As usual , a great video !
@brigosx
@brigosx 7 місяців тому
Amazing video Bill. You're a professor my friend. Looking forward for your next video.
@2012SUSE
@2012SUSE 7 місяців тому
Vielen herzlichen Dank für die super Erklärungen und Beispiele! Thank you very much for the great explanations and examples!
@abdullahX001
@abdullahX001 7 місяців тому
How do you pair the devices for secure comms?
@dominiquep9880
@dominiquep9880 7 місяців тому
Thank you, as usual very clear and detailed video.
@GiC7
@GiC7 7 місяців тому
Master, love your teaching.
@wingselectronics
@wingselectronics 7 місяців тому
Please make tutorial on NRF24L1 Module
@michaelalex5235
@michaelalex5235 2 місяці тому
This was fantastic, as are all of your videos. Thank you!
@anurasenarathna1703
@anurasenarathna1703 7 місяців тому
As always very well explained. An excellent video. Thank you very much.
@williamrose3191
@williamrose3191 6 місяців тому
Awesome video. You put a lot of effort into this. Thank you for sharing!
@Tims_Projects
@Tims_Projects 7 місяців тому
Fantastic. As always very well explained. Something I will be looking into. A good cheap way to keep track of something would be to connect a GPS module as well.
@taraskornuta
@taraskornuta 7 місяців тому
The LoRa does not use encryption (AES128), but the LoRaWAN does
@mr.adamson8675
@mr.adamson8675 7 місяців тому
Awesome! I just recently heard of this tech thru chatgpt of all things, but I never really looked into actually using it myself until now. Very interesting.
@bensonmakau2077
@bensonmakau2077 7 місяців тому
Thank you very much...the article is nice and well presented...
@rinokentie8653
@rinokentie8653 7 місяців тому
Very interesting, as always!
@jackhope45
@jackhope45 5 місяців тому
I have learnt so much in your videos that i can start now my own small projects. I'm very thankful and i wish you all the best 🙏👍👍👍 kind regards from Germany 🍀
@uibsen
@uibsen 7 місяців тому
Great Tutorial !!!
@Mochilinho
@Mochilinho 7 місяців тому
What a class! Amazing
@glynncleaver7398
@glynncleaver7398 7 місяців тому
Funny how I just ordered two Lora boards and this video popped up. Interested in more pico phyton projects
@braselectron
@braselectron 6 місяців тому
Excellent tutorial. Thank you for sharing so many details.
@WACkZerden
@WACkZerden 7 місяців тому
Love your videos, and their presentation
@Thomas_Grusz
@Thomas_Grusz 7 місяців тому
Great video, thanks!
@ashiningtechnology
@ashiningtechnology 7 місяців тому
Great video. For the wireless transmission part, you chose RFM9X with SPI interface. Have you considered other modules with other interfaces, such as UART or RS485. Maybe, then It can transfer further, like LOS10~20km.
@limrithy5495
@limrithy5495 7 місяців тому
Greate Video sir, I'm waiting for this video for a long times.
@donmcbride1984
@donmcbride1984 7 місяців тому
This is great. I love this.
@johneagle4384
@johneagle4384 4 місяці тому
Wow. This is impressive. Thank you very much.
@marktadlock5428
@marktadlock5428 7 місяців тому
I would love to see hooking up a e-ink display to receive data and display. For displaying something like weather data to a wrist mounted receiver.
@Tom_Seeker
@Tom_Seeker 7 місяців тому
Very good introduction I was just looking for 👏 Can you expand the series to discuss security topics? How to protect communication from intercept by others?
@mustaphakhadouane8937
@mustaphakhadouane8937 7 місяців тому
Thank you.
@garypaulson5202
@garypaulson5202 7 місяців тому
A real eye opener, thank you!
@Dronebotworkshop
@Dronebotworkshop 7 місяців тому
Thank you, glad you enjoyed it!
@philipzeo273
@philipzeo273 5 місяців тому
Thanks Bill! You always provide clear and useful information. Keep it up...
@Dronebotworkshop
@Dronebotworkshop 5 місяців тому
Thank you so much Philip. I'm glad that you find the content useful.
@Ducerobot
@Ducerobot 7 місяців тому
I just caught this I haven't been feeling well lately but I'm back up cool video 😁👍
@winstonsmith478
@winstonsmith478 7 місяців тому
THANK YOU for not using scrolling code windows on your web site. I absolutely HATE those because when printing, as I always do, valuable web pages to PDF from which the code can later be easily copied and pasted from, the windowed code won't be completely printed and so many sites don't allow the window to be maximized. If they allow listings to be easily copied or if one copies from the scrolling listing, each must then be stored in a subdirectory instead of ALL being accessible in a SINGLE PDF document along with descriptive text.
@tin2001
@tin2001 7 місяців тому
If you right click the effected section and go "inspect" (or inspect element on some browsers), you can usually tweak the CSS or HTML content to fix the problem.... after some practice, it takes about 30 seconds to fix most unprintable sites. Then just print to PDF (or a printer) as usual.
@marklewus5468
@marklewus5468 5 місяців тому
Great video, but I do have a suggestion. The way you are using millis() for timeout will fail due to rollover. millis() is an 32 bit uint. When it exceeds 0xffffffff it rolls over to 0x0, causing the timeout check to fail after ~49 days. This is obviously not a problem for testing but if someone leaves it running, it will be. You can check by determining if new millis() < old millis(), if so then elapsed time=(0xffffffff-old) + new.
@mumbles1justin
@mumbles1justin 4 місяці тому
Thanks for producing great informative content and sharing your knowledge with the rest of us. Happy Holidays!🎄
@Dronebotworkshop
@Dronebotworkshop 4 місяці тому
Thank you!
@user-wh8lp5yu3b
@user-wh8lp5yu3b Місяць тому
감사합니다(thank you)
@garycotz563
@garycotz563 7 місяців тому
BRAVO! Really good show! Thank you for pulling ALL THIS together... ($ THANKS) punched
@khawlabenkadida8629
@khawlabenkadida8629 3 місяці тому
Really helpful! Thanks
@Intense_Cloud
@Intense_Cloud 7 місяців тому
Super fckn awesome! Great instructional and informative video. Great presenter!
@allanthomson4639
@allanthomson4639 7 місяців тому
thank you
@Pio-YTC
@Pio-YTC 4 місяці тому
Thanks man , really helpful 👍
@vinodtavildar
@vinodtavildar 7 місяців тому
Great 👍 which version Arduino ide you are using sir?🤔
@bobdoritique7347
@bobdoritique7347 18 днів тому
Merci for this video.
@chrisalexthomas
@chrisalexthomas 7 місяців тому
I think Lora is the basis of a drone controller technology called ELRS, it uses the SX1280 chip to do the data receiving part of controller the drone and then you send the signals into the flight controller to perform the action based on the input
@gabrielgaby5840
@gabrielgaby5840 7 місяців тому
Well ahead, publish your works !🎉❤
@ChrisWard74
@ChrisWard74 6 місяців тому
This has got me excited for a project I want to try where the remots have GPS and track location and speed of 7.5" scale track trains at our train club giving the engineer and idea of their speed but also reporting back to the station the location and speed using LoRa. They travel through a wooded property so I'm excited to see how well it might work in the woods.
@gabrielgaby5840
@gabrielgaby5840 7 місяців тому
love it...🎉❤
@chrisgeo4555
@chrisgeo4555 7 місяців тому
Amazing video as always!!! Can you make a video about RS485 communication?
@kisssys5414
@kisssys5414 7 місяців тому
I see little information on different frequency selection, how to set power output and how to choose the best Spread Factor. I have a number of RFM95W's in use and they work well but I would never get over a KM in range. How do you measure the output power of a LoRa board?
@gabrielgaby5840
@gabrielgaby5840 7 місяців тому
Love the Show..🎉🎉
@john543
@john543 7 місяців тому
I notice the Lora boards you linked to are marked 868Mhz not 915. I thought the freq for Canada was 915
@patrickjacobs9219
@patrickjacobs9219 7 місяців тому
I have been following your channel for a while and think it is one of the best explanations and the code that we can download. I would like some more explanation about the Heltec ESP32 v3 board in the future. I would like to control a relay from one board with push buttons on the other board. maybe you can show us a little more about that. Thank you in advance for all those beautiful videos you make. Kind regards patrick jacobs
@mumbles1justin
@mumbles1justin 4 місяці тому
Think you for great examples and explanation of LoRa. Im really anxious to see your video on LoRaWAN. I haven’t done any LoRa projects yet. Right now Im trying to figure out what exactly what equipment Im going to order. Encrypted MQTT over LoRa accessible via a cloud broker is my end goal. I hope some MQTT examples my be part of your LoRaWAN video.
@calvinhello5419
@calvinhello5419 7 місяців тому
Please if you don’t mind. What course did you study at Uni. This is like a mixture of electronics, robotics, etc - mechatronics it seems. Nice!
@gregorymccoy6797
@gregorymccoy6797 7 місяців тому
Great video, Sir.
@Dronebotworkshop
@Dronebotworkshop 7 місяців тому
Thank you, glad you enjoyed it!
@scotty3114
@scotty3114 7 місяців тому
Thanks!
@Dronebotworkshop
@Dronebotworkshop 7 місяців тому
You are quite welcome!
@gregorymccoy6797
@gregorymccoy6797 7 місяців тому
Amazing video. I skipped the python segment; Not a fan for microntrollers. I love the info and prep this video took.
@mpo1637
@mpo1637 7 місяців тому
GEIL
@mgoodson44
@mgoodson44 7 місяців тому
Such a well timed video as I ordered my first RFM95 devices last week to try out LoRa. Very simple to follow, thorough and informative, as always. Thank you
@gohan3243
@gohan3243 7 місяців тому
Hi Bill, I just wonder what’s the purpose of the gpio0-5 pins on the module. Can we use them? Thanks 19:36
@stevebolen-ik1md
@stevebolen-ik1md 7 місяців тому
Great
@Bianchi77
@Bianchi77 4 місяці тому
Nice video, thanks :)
@pauldeheij8350
@pauldeheij8350 8 днів тому
Thanks a lot Bill for all your great work. I learn so much! Question: what about doing a video on integrating some of your projects into Home Assistant?
@Dronebotworkshop
@Dronebotworkshop 6 днів тому
Thank you. I have been planning at least one home assistant video.
@carlosdantenicolasdelafuen1293
@carlosdantenicolasdelafuen1293 7 місяців тому
Gracias 👋👋👋👍
@dvhx
@dvhx 6 місяців тому
At 21:00 ground goes to thin filament of LED but when you connect it for real at 24:41 ground goes to thick LED filament as it should. The led at 21:00 should be rotated.
@gabrielgaby5840
@gabrielgaby5840 7 місяців тому
Hello Bill, thanks for your show, invaluable, would like to know, if it's o.k. to use the R4, with Minima + wi-fi, to achieve long range connections, as you mention in your introduction to this Arduino Circuit. This Circuit is cheaper, and want to get started. Thanks again, watching your show, like going to Class. Loving it..🌹😊
@neilausten9404
@neilausten9404 7 місяців тому
The Adafruit RFM95x is expensive and hard to get in Australia. Are there any generics that would be suitable.
IR Remotes & Microcontrollers - Arduino & ESP32
1:31:50
DroneBot Workshop
Переглядів 139 тис.
How LoRa Modulation really works - long range communication using chirps
27:38
The World's Fastest Cleaners
00:35
MrBeast
Переглядів 84 млн
Bro smelt it & passed out 😂 #comedy
00:10
MrTalalaa
Переглядів 6 млн
Linear DC Power Supplies - Designing & Building Custom DC Power Supplies
1:12:39
DroneBot Workshop
Переглядів 943 тис.
Arduino vs Pico - Which is the Best Microcontroller For You?
20:38
Gary Explains
Переглядів 277 тис.
Rutgers University Confirmed: Meshtastic and LoRa are dangerous
13:27
Andreas Spiess
Переглядів 717 тис.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Переглядів 507 тис.
License Free Off-Grid Comms (LoRa Meshtastic)
12:31
Ham Radio Crash Course
Переглядів 1,1 млн
#112 LoRa / LoRaWAN De-Mystified / Tutorial
20:25
Andreas Spiess
Переглядів 996 тис.
The ULTIMATE Raspberry Pi 5 NAS
32:14
Jeff Geerling
Переглядів 1 млн
How to use LoRa Module with Arduino - Range Test - RYLR406 15KM
13:00
Ahmad Logs
Переглядів 309 тис.
JOIN THIS EXCITING OFF GRID NETWORK!!!
14:13
andy kirby
Переглядів 364 тис.
ESP32 Guide 2024 | Choosing and Using an ESP32 Board
41:06
DroneBot Workshop
Переглядів 199 тис.
Тайная комната 😱
0:20
TeM4iK
Переглядів 1,9 млн
Tay nghề và thể lực tốt mới chơi được
0:31
Byip-Rc
Переглядів 22 млн
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
0:35
600 сил VAG за копейки #shorts #vr6 #vag #тюнинг #автотюнинг #turbo
0:37
МАРТИН БОГАТЫРЕВИЧ garage
Переглядів 872 тис.