Тёмный

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

DroneBot Workshop
Подписаться 596 тыс.
Просмотров 295 тыс.
50% 1

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

Хобби

Опубликовано:

 

15 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 214   
@Dronebotworkshop
@Dronebotworkshop 4 месяца назад
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 4 месяца назад
Just got a message about the Telegram SCAM on youtube notification bell.
@pareshmhatre4019
@pareshmhatre4019 9 месяцев назад
Why don't we people say thanks to library makers! Who makes our code so easy!
@simonmasters3295
@simonmasters3295 7 месяцев назад
Well said
@MuzixMaker
@MuzixMaker 6 месяцев назад
Thanks!
@mikesalmon434
@mikesalmon434 3 месяца назад
A huge thank you
@sgtbrown4273
@sgtbrown4273 2 месяца назад
Yup yup 😊
@Dronebotworkshop
@Dronebotworkshop 9 месяцев назад
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 9 месяцев назад
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 9 месяцев назад
Please do, do a follow-up with LoRaWAN I would love to make my own
@mikeosx2009
@mikeosx2009 9 месяцев назад
Very interested in a Pi Pico LoRaWAN video.
@willgilliam9053
@willgilliam9053 8 месяцев назад
looking forward your meshtastic video :)
@fernandoandaluz2281
@fernandoandaluz2281 8 месяцев назад
Thank you very much Sir.
@JasonDurrett
@JasonDurrett 9 месяцев назад
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 9 месяцев назад
Hear! Hear!
@Dronebotworkshop
@Dronebotworkshop 9 месяцев назад
Thank you Jason, that is very kind of you!
@brucebowman9087
@brucebowman9087 9 месяцев назад
Whenever I am looking for a clear explanation of new development tech I always come to the DroneBot Man. My favorite nerd!
@1larrydom1
@1larrydom1 9 месяцев назад
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 7 месяцев назад
He has interesting stuff I agree
@DaleDix
@DaleDix 5 месяцев назад
He is the person that is in this forum who people think knows the most.
@wesley00042
@wesley00042 9 месяцев назад
A group of us did a 100+ node LoRa Meshtastic cluster at DEF CON this year. I love this technology.
@veryfinedankn3187
@veryfinedankn3187 3 месяца назад
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
@brucebowman9087
@brucebowman9087 9 месяцев назад
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 9 месяцев назад
Thank You from the Dronebot Man!
@kylereed3577
@kylereed3577 9 месяцев назад
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 9 месяцев назад
And thank you as well! I'm glad you enjoyed the video.
@RupertBruce
@RupertBruce 9 месяцев назад
I like the way you explain the hardware and software so clearly without getting bogged down with explaining the familiar patterns.
@MichaelWillems
@MichaelWillems 7 месяцев назад
As a radio ham (VA3MVW) I really liked this particular issue of your vlog, Bill. Super stuff!
@dannymanor1
@dannymanor1 9 месяцев назад
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. 📡
@neilcampbell6026
@neilcampbell6026 8 месяцев назад
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.
@mussher1
@mussher1 9 месяцев назад
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.
@Algardraug
@Algardraug 9 месяцев назад
Your videos are so well thought out, thorough and easy to grasp. Well done!
@DelTapparo
@DelTapparo 9 месяцев назад
Your presentations are just fantastic. All your preparation and diagrams make a complex subject very easy to understand.
@greppurtorfason4216
@greppurtorfason4216 9 месяцев назад
I just love your videos. Top-notch professionalism in every regard. Thank you so much for your effort.
@MaxMustermann-sm4qu
@MaxMustermann-sm4qu 9 месяцев назад
Incredible technology. 🤯 Thank you so much for this well made and informative video. 🙏 Can not wait to see the follow ups. 😊
@nextwave5164
@nextwave5164 9 месяцев назад
Been using LoRa for a while now with most my devices.. i love it
@RommudohDev
@RommudohDev 9 месяцев назад
Very nice video! An excellent introduction to LoRa with a lot of background information. I can't wait to see the follow-ups, too!
@garypaulson5202
@garypaulson5202 9 месяцев назад
Super video, learned more about LoRa in this one video than in several others on other channels
@manojithalder7448
@manojithalder7448 9 месяцев назад
This is gem. You explain everything in depth and beautifully. 🎉❤
@dirtypedestrian
@dirtypedestrian 9 месяцев назад
Thanks for doing a video on this! I was just thinking about trying some of these modules out!
@chriswalker4596
@chriswalker4596 5 месяцев назад
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.
@1_HighDuke
@1_HighDuke 9 месяцев назад
Awesome explanations and demos as usual. Thank you very much! Looking forward to the LoRaWAN video.
@bsvenss2
@bsvenss2 9 месяцев назад
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 9 месяцев назад
Thank you so much, and Welcome to the Workshop!
@gabrielgaby5840
@gabrielgaby5840 8 месяцев назад
Good ain't.., next step into our Movement of Electrons..🎉❤
@Moonlight0551
@Moonlight0551 9 месяцев назад
Wow, you covered a lot of ground today. Wish I'd seen this a couple of years ago. Good info and well explained.
@paulforester6996
@paulforester6996 9 месяцев назад
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.
@baldrickdaisy8982
@baldrickdaisy8982 9 месяцев назад
Great video Bill… very informative 👌 I’m looking forward to your next videos on LoRa & LoRaWAN 😀
@jackhope45
@jackhope45 6 месяцев назад
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 🍀
@mumbles1justin
@mumbles1justin 5 месяцев назад
Thanks for producing great informative content and sharing your knowledge with the rest of us. Happy Holidays!🎄
@Dronebotworkshop
@Dronebotworkshop 5 месяцев назад
Thank you!
@klif_n
@klif_n 9 месяцев назад
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.
@GertBowker
@GertBowker 3 месяца назад
I''ve built two of these using LoRa RFM95W, wow super impressed by it, thanks for sharing
@GiC7
@GiC7 8 месяцев назад
Master, love your teaching.
@grayhatfailure2428
@grayhatfailure2428 8 месяцев назад
The dronebot workshop intro music is a key part of my childhood memories.
@brigosx
@brigosx 9 месяцев назад
Amazing video Bill. You're a professor my friend. Looking forward for your next video.
@marklewus5468
@marklewus5468 7 месяцев назад
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.
@anurasenarathna1703
@anurasenarathna1703 9 месяцев назад
As always very well explained. An excellent video. Thank you very much.
@philipzeo273
@philipzeo273 7 месяцев назад
Thanks Bill! You always provide clear and useful information. Keep it up...
@Dronebotworkshop
@Dronebotworkshop 7 месяцев назад
Thank you so much Philip. I'm glad that you find the content useful.
@Optimuseq
@Optimuseq 9 месяцев назад
"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 :)
@mgoodson44
@mgoodson44 9 месяцев назад
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
@dominiquep9880
@dominiquep9880 9 месяцев назад
Thank you, as usual very clear and detailed video.
@williamrose3191
@williamrose3191 7 месяцев назад
Awesome video. You put a lot of effort into this. Thank you for sharing!
@bensonmakau2077
@bensonmakau2077 9 месяцев назад
Thank you very much...the article is nice and well presented...
@mr.bianchirider8126
@mr.bianchirider8126 9 месяцев назад
As usual , a great video !
@michaelalex5235
@michaelalex5235 4 месяца назад
This was fantastic, as are all of your videos. Thank you!
@2012SUSE
@2012SUSE 9 месяцев назад
Vielen herzlichen Dank für die super Erklärungen und Beispiele! Thank you very much for the great explanations and examples!
@braselectron
@braselectron 8 месяцев назад
Excellent tutorial. Thank you for sharing so many details.
@WACkZerden
@WACkZerden 8 месяцев назад
Love your videos, and their presentation
@limrithy5495
@limrithy5495 9 месяцев назад
Greate Video sir, I'm waiting for this video for a long times.
@rinokentie8653
@rinokentie8653 9 месяцев назад
Very interesting, as always!
@garypaulson5202
@garypaulson5202 9 месяцев назад
A real eye opener, thank you!
@Dronebotworkshop
@Dronebotworkshop 9 месяцев назад
Thank you, glad you enjoyed it!
@Tims_Projects
@Tims_Projects 9 месяцев назад
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.
@uibsen
@uibsen 9 месяцев назад
Great Tutorial !!!
@clixium
@clixium 9 месяцев назад
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 9 месяцев назад
What kind of data rates are you able to achieve?
@tin2001
@tin2001 9 месяцев назад
That's handy to know. That's about the max distance I'd need to run any sensors.
@mr.adamson8675
@mr.adamson8675 9 месяцев назад
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.
@Thomas_Grusz
@Thomas_Grusz 9 месяцев назад
Great video, thanks!
@johneagle4384
@johneagle4384 6 месяцев назад
Wow. This is impressive. Thank you very much.
@garycotz563
@garycotz563 9 месяцев назад
BRAVO! Really good show! Thank you for pulling ALL THIS together... ($ THANKS) punched
@Intense_Cloud
@Intense_Cloud 9 месяцев назад
Super fckn awesome! Great instructional and informative video. Great presenter!
@pauldeheij8350
@pauldeheij8350 Месяц назад
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 Месяц назад
Thank you. I have been planning at least one home assistant video.
@Ducerobot
@Ducerobot 9 месяцев назад
I just caught this I haven't been feeling well lately but I'm back up cool video 😁👍
@glynncleaver7398
@glynncleaver7398 9 месяцев назад
Funny how I just ordered two Lora boards and this video popped up. Interested in more pico phyton projects
@khawlabenkadida8629
@khawlabenkadida8629 5 месяцев назад
Really helpful! Thanks
@Mochilinho
@Mochilinho 8 месяцев назад
What a class! Amazing
@mustaphakhadouane8937
@mustaphakhadouane8937 9 месяцев назад
Thank you.
@gabrielgaby5840
@gabrielgaby5840 8 месяцев назад
Love the Show..🎉🎉
@donmcbride1984
@donmcbride1984 8 месяцев назад
This is great. I love this.
@Pio-YTC
@Pio-YTC 6 месяцев назад
Thanks man , really helpful 👍
@gregorymccoy6797
@gregorymccoy6797 9 месяцев назад
Great video, Sir.
@Dronebotworkshop
@Dronebotworkshop 9 месяцев назад
Thank you, glad you enjoyed it!
@Tom_Seeker
@Tom_Seeker 8 месяцев назад
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?
@bobdoritique7347
@bobdoritique7347 2 месяца назад
Merci for this video.
@taraskornuta
@taraskornuta 9 месяцев назад
The LoRa does not use encryption (AES128), but the LoRaWAN does
@allanthomson4639
@allanthomson4639 9 месяцев назад
thank you
@user-wh8lp5yu3b
@user-wh8lp5yu3b 2 месяца назад
감사합니다(thank you)
@calvinhello5419
@calvinhello5419 9 месяцев назад
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!
@mumbles1justin
@mumbles1justin 5 месяцев назад
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.
@Bianchi77
@Bianchi77 5 месяцев назад
Nice video, thanks :)
@ashiningtechnology
@ashiningtechnology 8 месяцев назад
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.
@winstonsmith478
@winstonsmith478 9 месяцев назад
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 9 месяцев назад
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.
@wingselectronics
@wingselectronics 9 месяцев назад
Please make tutorial on NRF24L1 Module
@abdullahX001
@abdullahX001 9 месяцев назад
How do you pair the devices for secure comms?
@ant1987pro
@ant1987pro 8 месяцев назад
Thanks!
@Dronebotworkshop
@Dronebotworkshop 8 месяцев назад
Thank you so much!
@manfredbogner9799
@manfredbogner9799 Месяц назад
very good
@theoryandapplication7197
@theoryandapplication7197 Месяц назад
thank you very muck
@SuperTorggler
@SuperTorggler 24 дня назад
Great video as usual. Thanks. All your examples seem to use the Adafruit module but I want to use the HopeRF module (with Pico/Pico W). Am I correct in assuming that I can use DIO0 instead of G0? What are the other DIO ports and how are they used? Thanks in advance
@chrisgeo4555
@chrisgeo4555 8 месяцев назад
Amazing video as always!!! Can you make a video about RS485 communication?
@vinodtavildar
@vinodtavildar 9 месяцев назад
Great 👍 which version Arduino ide you are using sir?🤔
@marktadlock5428
@marktadlock5428 9 месяцев назад
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.
@patrickjacobs9219
@patrickjacobs9219 8 месяцев назад
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
@gregorymccoy6797
@gregorymccoy6797 9 месяцев назад
Amazing video. I skipped the python segment; Not a fan for microntrollers. I love the info and prep this video took.
@ChrisWard74
@ChrisWard74 8 месяцев назад
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.
@vaughntaylor2855
@vaughntaylor2855 4 месяца назад
You have some really great content and I sincerely appreciate all that you are doing to pass your knowledge and experience on. I do have a request: I have not seen on your videos and perhaps I am just over looking but would you consider adding in where you think the best place you have found to purchase the component you are showing us? Again, you are sincerely appreciated and God Bless.
@electronicswithzee2565
@electronicswithzee2565 5 месяцев назад
Great video and content. Can the Lora lib be used with a NRF24L01 module as well?
@gabrielgaby5840
@gabrielgaby5840 8 месяцев назад
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..🌹😊
@chrisalexthomas
@chrisalexthomas 9 месяцев назад
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 8 месяцев назад
Well ahead, publish your works !🎉❤
@kisssys5414
@kisssys5414 9 месяцев назад
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?
@stevebolen-ik1md
@stevebolen-ik1md 9 месяцев назад
Great
@carlosdantenicolasdelafuen1293
@carlosdantenicolasdelafuen1293 9 месяцев назад
Gracias 👋👋👋👍
@mpo1637
@mpo1637 9 месяцев назад
GEIL
Далее
Driving DC Motors with Microcontrollers
1:04:32
Просмотров 594 тыс.
10 Raspberry Pi Projects (All models, including Pico)
1:52:44
Самый надежный автомобиль
01:00
Просмотров 429 тыс.
Build a Ham Transmitter with a Raspberry Pi Pico
5:21
The Idiots Guide To Meshtastic - Long Range Comms!
10:20
Pi Pico W with the Arduino IDE | Using WiFi
49:26
Просмотров 145 тыс.
Boxing !! 😂😂
0:11
Просмотров 14 млн
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Super gymnastics 😍🫣
0:15
Просмотров 90 млн
ГИБКОСТЬ 80 LVL
0:18
Просмотров 4,1 млн