#172

  Рет қаралды 247,129

Andreas Spiess

Andreas Spiess

Күн бұрын

Today we will discover a hidden feature to connect two or more ESP32s or ESP8266s directly to each other: ESP-now. It is much faster and more energy efficient. And we will compare it to LoRa (RFM95 and Arduino Pro Mini.
Espressif gave us this possibility and, because it is so fast, they called it ESPnow. And it also works in the Arduino IDE.
In this video, we will
- Try to understand the difference between the standard ESP mode and ESPnow
- Build a working ESPnow connection for two ESP8266
- Check-out the transmission speed and
- Compare this speed with the speed if we connect the ESP to the internet
- Compare the Energy hunger of both modes
- And finally, compare the ESPs with another technology: LoRa
Links:
Sketches: github.com/SensorsIot/ESP-Now...
ESP-Now example: github.com/HarringayMakerSpac...
Not-rebooting gateway: github.com/HarringayMakerSpac...
Online Battery life calculator: battery-life.of-things.de/batt...
ESP32 board: bit.ly/2sOMR3E
Supporting Material and Blog Page: www.sensorsiot.org
Github: www.github.com/sensorsiot
If you want to support the channel and buy from Banggood use this link to start your shopping: bit.ly/2jAQEf4 (no additional charges for you)
Official Wemos Store: s.click.aliexpress.com/e/jUzBiIq
profile.php?...
/ spiessa
www.instructables.com/member/...
Please do not try to Email me or invite me on LinkedIn. These communication channels are reserved for my main job
If you want to buy me a coffee: www.paypal.me/AndreasSpiess

Пікірлер: 565
@johnlh100
@johnlh100 6 жыл бұрын
Watching your newest video became mandatory part of my sunday morning routine. Many thanks for this - again - useful and interesting episode!
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thank you for your feedback and welcome to the "Sunday Morning Club"!
@hvanmegen
@hvanmegen 6 жыл бұрын
#metoo :)
@jimb032
@jimb032 6 жыл бұрын
It's just not Sunday morning without Andreas and Great Scott! The videos are so well thought out and professional, I very much appreciate the time they put into them.
@RWB123
@RWB123 3 жыл бұрын
I finally ordered a couple Esp32's after years of holding out. Your videos are bringing me up to speed on them and their features and quirks as quick as humanly possible. Thanks for saving me so much time!
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
You are welcome! And enjoy these wonderful chips.
@zachreyhelmberger894
@zachreyhelmberger894 3 жыл бұрын
WOW! How come I only heard about ESP Now after all this time?! This is a major breakthrough in battery powered sensing!!
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
Good question. It is quite old stuff...
@cliffchism9187
@cliffchism9187 2 жыл бұрын
Lol. 😂 i just heard about it this week.
@StupidusMaximusTheFirst
@StupidusMaximusTheFirst Жыл бұрын
yeah, I too only heard about it recently... then again I'm clueless on electronics, I only recently started looking into them. ESP-NOW seems like a very simple peer to peer protocol, with emphasis on simplicity rather than interoperation everywhere like the TCP. There are good reasons TCP/IP is designed the way it is, but there're also good reasons to use something simple, fast, low-latency and nonstandard on certain applications. First time I hear of Lora as well, I suppose there's applications for this too. I suppose electronics people can easily build a dead simple transmitter/receiver and if they can also code, they can write their own simple protocols if they have specific needs. ESP-NOW seems like a good start for us newbies to play with and make stuff do stuff quickly.
@RajveerSingh-vf7pr
@RajveerSingh-vf7pr 4 ай бұрын
@@cliffchism9187 bro... I heard this week
@MaxintRD
@MaxintRD 6 жыл бұрын
Very interesting video. I didn't know about ESP-Now. Thanks!
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
I also learned just recently about it. And thought, it could be a nice addition
@MrPinolatino
@MrPinolatino 6 жыл бұрын
Your contribution for us is invaluable! Thanks!
@bassome3000ify
@bassome3000ify 6 жыл бұрын
Augusto Massaro True story Bro!
@waltsteinchen
@waltsteinchen 6 жыл бұрын
Double that!!
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thanks, guys. You make my Sunday!
@distancelab2010
@distancelab2010 6 жыл бұрын
Thank you once again. Very interesting and gets me thinking of all the possibilities. I really appreciate the time and effort you put into your videos. Thank you.
@bassome3000ify
@bassome3000ify 6 жыл бұрын
Richard Wilson Very true
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thank you! You like to watch the videos and I like to read all these nice comments during the whole Sunday! This is what we call win-win...
@RTOHIO
@RTOHIO 3 жыл бұрын
Using the examples, and following your instructions, I linked two ESP32 Dev boards together and communicated successfully via ESPNOW. You are one of the best teachers on the internet. Glad I subscribed long ago. Now I have to actually send some data packets of my data. Swiss accents are very nice.
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
Thank you and I am glad it worked for you!
@colinpamplin9976
@colinpamplin9976 6 жыл бұрын
Very interesting video and the ESP-Now concept (which I hadn't heard of) will be invaluable for my battery driven ESP8266/ESP32 devices.You could say it will transform it! Many thanks to taking the time to make this video and Seasons Greetings from the UK to you and your family
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thank you and also Merry Christmas!
@jeffpollock5243
@jeffpollock5243 6 жыл бұрын
Really like your videos Andreas! I am a novice learning and find that they have improved my learning better than any others. Thank you!
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Nice to read. Thank you for your feedback!
@aveenof
@aveenof 6 жыл бұрын
Thank you Andreas for your sharing your work to the community! It's exciting to think of the applications that can be made possible through the amazing ESP8266 chip as well as LoRa.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
You are welcome!
@jon_raymond
@jon_raymond 6 жыл бұрын
Another great and informative video! Congrats Andreas on the very soon arrival of 50k subscriber's.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Maybe as a Christmas gift!
@dgb5820
@dgb5820 6 жыл бұрын
I’m now asking myself why I have not watched all your videos. I’m grateful that you have taken so much effort into micro controller technology. I will now research about ESP32 now.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Enjoy the ESP32. It has very good features.
@cymeriandesigns
@cymeriandesigns 6 жыл бұрын
Andreas, you really are a treasure. Thank you for all the effort you put into each of these videos.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
You are welcome!
@MeriaDuck
@MeriaDuck 6 жыл бұрын
The months december and january are designated for home automation and electronics, these were well timed videos. Thanks for pointing us to node-red and to this possibility!
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
You are welcome!
@aura-comms4633
@aura-comms4633 6 жыл бұрын
Thanks again Andreas, you are definitely the best companion for any project
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thank you!
@dmurphydrtc
@dmurphydrtc 6 жыл бұрын
Excellent video, as always. Like most I wasn't aware of ESP-Now.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thank you!
@rjmackenzie
@rjmackenzie 6 жыл бұрын
This is exactly what I wanted. I'll be implementing this on some marine monitors! Thanks for this vid.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
You are welcome!
@olir.8125
@olir.8125 5 жыл бұрын
Ein aufwändig gemachtes Video, das einen tollen Überblick gibt ! Vielen Dank dafür ☺️
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
Gern geschehen!
@bartgijsbers7373
@bartgijsbers7373 6 жыл бұрын
Thank you very much for pointing me in the direction of ESP-now. This is the step I needed to make battery sensors based on esp32/esp8266. I did wrote a esp-now to mqtt gateway on one esp8266 without problems... First init WiFi and then init espnow. I have them both active without any problems. BTW, I like your video's very much. Keep them comming.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thanks for the feedback. Could you probably post your code somewhere for others to be used? Seems interesting.
@peut
@peut 6 жыл бұрын
I have tried it. It works for some time, with a round trip time measured on the sensor ( master ) node that is twice as large ( 17 vs. 4 ms). The sensor node does never receive an ack in the send callback function an error (1) is returned. Then, after about 8 messages, the WiFi node does not receive any moremessages. Of course, I may be doing something wrong. See github.com/gitpeut/try-espnow. To get this working I'll go for DualESP.
@NotMarkKnopfler
@NotMarkKnopfler 6 жыл бұрын
I'm not sold. The advantage of LoRa is it can transmit over very large distances, as famously proven by yourself in your incredible video where you transmit from France! ESP now, being based on WiFi radio will not have anything like the range. These are apples and oranges. It might be good, say, around the house for sensors; but for SCADA and telemetry (where I'm developing LoRa products) this isn't appropriate. It is very interesting though. These little devices are simply incredible! Thanks for the video Andreas. Warmest regards from Aberdeen, Scotland.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
I think, your comment is a summary of my video. My last sentence was: "So, each of the three technologies has its perfect fit, but also areas where I would not use it. Maybe this video helped you a little to do the right decisions in your projects."
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
BTW: You are a great musician, too. I saw Mark Knopfler with Bob Dylan in Zurich. This was one of the best concerts ever. Because of Mark!
@fjgarcia12
@fjgarcia12 6 жыл бұрын
It would be interesting to do a test to check the range of the esp in this mode.
@NotMarkKnopfler
@NotMarkKnopfler 6 жыл бұрын
Andreas Spiess Ha ha! Thank you!
@joobasics6891
@joobasics6891 6 жыл бұрын
Could I have the video link of this LoRa test? thank you
@ICTlinkCentroMultitek
@ICTlinkCentroMultitek 4 жыл бұрын
Congratulations, excellent video.
@peekpt
@peekpt 6 жыл бұрын
Wow! Mr. Spiess this is news! That looks really interesting. Thank you for this video, going to investigate more, looks promising!I can imagine the applications like mesh sensors for farmers, for preventing fires and so on...
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thanks for your feedback!
@williammiller7543
@williammiller7543 6 жыл бұрын
Great Video! I have been toying with having several sensors around the house but up to now I haven't seen a good way to handle it. I didn't want to get into LoRa, moe unique boards and new things to learn. I also am moving everything over to the ESP32 so this all fits for me. Thanks again.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
You are welcome!
@ArseinLupin
@ArseinLupin 6 жыл бұрын
Very nice job Andreas as usual!
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thank you!
@elesjuan
@elesjuan 6 жыл бұрын
This is most excellent. I'm working on putting together a home automation system using ESP8266's for various sensors and switch supervision. One of the issues I was running into was how to toggle several different lamps on and off. I really don't want to be tied to a smartphone, PC, or some sort of master control panel to toggle the reading lamp in my den on and off. One idea was battery powered "remote" but constant connection to wifi would kill the batteries in no time. With your ESPNow solution, I could setup an 8266 as a master/gateway to wifi and have several battery powered push buttons throughout the house.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
You might also watch my videos (#101 and #108) on the dash buttons.
@ahmadx87
@ahmadx87 6 жыл бұрын
It is becoming a habit for me to like your videos and then watch them.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thank you for your support!
@nburton01
@nburton01 6 жыл бұрын
Great video and very useful. Will solve a problem Ia'm having with a solar powered ESP32 project running out of power at this time of year. Was going to rebuild form scratch but using ESP-Now should hopefully solve the problem. Many thanks, keep up the good work.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Maybe it helps at least...
@vaughan.gittel
@vaughan.gittel 3 жыл бұрын
​@Andreas Spiess thanks for all your videos & effort
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
My pleasure!
@johnb1677
@johnb1677 6 жыл бұрын
Another great video Andreas, thanks!
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
You are welcome.
@garrypkeogh
@garrypkeogh 6 жыл бұрын
I had heard but forgotten about this, thanks again Andreas! I went directly to Ali Ex to buy memory for my box of ESP01dev boards. This should enable OTA, free some GPIO and make for some super low power 'things' about the house. I see a commercial app too, many thanks again!
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
If you do not need lots of pins, the ESP-01 is still interesting...
@olir.8125
@olir.8125 4 жыл бұрын
Sehr gut gemachtes Video. Ich habe mir direkt einen Außentemperatur Sensor mit dem ESP-07 (mit Antenne) und einer Empfangsstation mit dem ESP12e mit Adafruit Display nachgebaut. Das ganze mit den Programmen von HarringayMakerspace. Funktioniert tadellos. Immer wieder erstaunlich was man mit den ESP8266 Modulen anfangen kann. Weiter so !
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Deswegen haben diese Chips so viele Anhänger...
@chuxxsss
@chuxxsss 6 жыл бұрын
Another great vlog Andreas.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thank you!
@johnward7619
@johnward7619 3 ай бұрын
Thanks for this video, very insightful
@AndreasSpiess
@AndreasSpiess 3 ай бұрын
Glad you enjoyed it!
@KJD783
@KJD783 10 ай бұрын
Thanks for all great videos! I experimented with the ESP8266 and ESPNow and WiFi and found that the WiFi channel selectivity of these is extremly limited. When signals are strong, the STA will easily connect to an AP on a neighboring channel and ESPNow transmissions sometimes get ack-ed on channels that are even further away. When a unit receives an ESP message that does not mean that the transmitter sent that on the same WiFi channel. That makes it hard to make an automatic channel selection by scanning for response (that and the issue that channel is not easy to control in STA mode). Obviously it gets better with more distance but the crosstalk easily reaches 10 meters or more. It also means that distance performance and your measurements probably get influenced by nearby transmissions. A strong signal from a nearbby transmitter even when on a different channel may have a large impact. What you did is a real life situation so it is a good indication of what can be expected, but it makes it probably not really reproducible, it is more an indication of what is to be expected. I wish RSSI was avaialble for ESPNow receptions and ack, that would help a lot. Now I get responses on multiple channels and have resorted to picking the center one where there is response. I haven't tried with a ESP32.
@AndreasSpiess
@AndreasSpiess 9 ай бұрын
I was not aware that crosstalk can be demodulated. That is very strange behavior! Thanks for the info
@jps99
@jps99 Жыл бұрын
Thanks, very well explained!
@AndreasSpiess
@AndreasSpiess Жыл бұрын
You are welcome!
@lbsfilm
@lbsfilm 6 жыл бұрын
Incredible =D thanks for this really really cool videos
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thanks!
@geoffcoucher3545
@geoffcoucher3545 4 жыл бұрын
Really helpful, thank you.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
You are welcome!
@bardenegri21
@bardenegri21 6 жыл бұрын
Awesome video! Here's a project idea: many esp8266 devices connected via esp-now to a esp8266 master that has a serial connection to a raspberry pi. All messages from the esp-now nodes go through this serial connection to node red for automation tasks. That would mean you could skip mqtt completely if you only need esp-now nodes. Could be a unique network style.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
This is definitely a better idea than the one I used if you have many sensors. I found a plan to add another ESP for MQTT. But your proposal is simpler. And if you use a Pi zero, also not too expensive.
@bardenegri21
@bardenegri21 6 жыл бұрын
I was thinking, there's one disadvantage with ESP-Now: you're relying on an ESP module to do all the receiving of signals. They usually have PCB antennas, except for the ESP-07, so range will probably not be as good as with a router. And with routers you can also have multiple routers serving the same WiFi network for really big spaces. Could be problematic when trying to cover a big house or yard with sensors. Would be nice if there was an ESP8266 or ESP32 based board that is focused on getting the best range, with a properly tuned external antenna and everything. Or if there was a way to have traditional hardware listen for ESP-Now messages (it should be doable, but I doubt there is software for it).
@DrTune
@DrTune 6 жыл бұрын
Very very useful thanks, terrific video
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
You are welcome!
@bluefishactcl1464
@bluefishactcl1464 2 жыл бұрын
Very good again - lots of interesting information and relevant observation
@AndreasSpiess
@AndreasSpiess 2 жыл бұрын
Glad you enjoyed it
@bluefishactcl1464
@bluefishactcl1464 2 жыл бұрын
@@AndreasSpiess If you have time I would like to hear ideas about measuring liquid pressure like the bear pressure - simple and reliable - I need to estimate water level in a elevated storage tank and pressure seem to be a simple way but could not find a simple transducer . Any way , thank you for time .
@AndreasSpiess
@AndreasSpiess 2 жыл бұрын
They sell pressure sensors on AliExpress. But I do not know if they fit your requirements. I searched with "Water Air Pressure Sensor"
@bluefishactcl1464
@bluefishactcl1464 2 жыл бұрын
@@AndreasSpiess Using your hint I found one at Amazon that might work . Thank you
@faamp
@faamp 6 жыл бұрын
Great video! Thank you.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
You are welcome!
@Lamsadi
@Lamsadi 2 жыл бұрын
thank you very much Mr Andreas
@AndreasSpiess
@AndreasSpiess 2 жыл бұрын
You are welcome!
@jmaguilarr
@jmaguilarr 11 ай бұрын
hi , an great video as always ! thx
@AndreasSpiess
@AndreasSpiess 11 ай бұрын
You are welcome!
@alexandracrawford800
@alexandracrawford800 5 жыл бұрын
Dear Andreas, as always your contribution is valued and highly valuable. In this case however I must comment on the continued usage of historical and outmoded references to "master" and "slave" as originating from a supremacist vocabulary. Recent similar discussions have remarked upon alternative functional terms (dependant upon context) as: "control vs remote vs return" & "origin vs target vs response" with: a common term of "message" referring to the data from the control or originating device & data sent back to the origin or control device being referred to as the "return or response" This not an exclusive list but is a starting point for memorable replacements with CRR & OTR mnemonics for non exclusive examples of "Comfort Requires Relaxation" and "Open Truths Refresh" Good Job Andreas!
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
Fortunately, we Swiss have no such history and our thinking is "clean". So I have no issue using these commonly accepted (in electronics) words.
@alexandracrawford800
@alexandracrawford800 5 жыл бұрын
en.m.wikipedia.org/wiki/Triangular_trade. I agree your national history and identity stand as exemplary and are iconic representations of neutrality. I do not think you would be drawn into any discussion to logically prove your outlook. However even Switzerland stands upon the shoulders of vast economic inputs from 400 years of lucrative triangular trade by Western European countries including the UK who are trying to avoid responsibility for the fallout from arms trading to the Middle East by exiting the European Union. Our histories are all based upon supremacist exploitation of an isolated peaceful continent and it's populations. Please reconsider your use of historically tainted and conceptually overloaded terms. Although you may say they are in use within an industry characterised by white males, the need to recognise seed concepts as a danger in the naive mind that has not yet grasped the functional concept of balance to establish self organizing neutrality. Such personalities are readily targeted by unbalanced supremacist personalities for their own gain. The symbols of national socialism circa 1930 Germany have been outlawed for similar good reason. Please show respect for the millions of personal tragedies created by the paired concepts of "slave" and "master". Non but ourselves can free our minds, but we can help each other. Thank you, Andreas
@uncleal6095
@uncleal6095 6 жыл бұрын
Yes, Interesting. I find the RMS function of the oscilloscope useful for measurement of power in complex waveform events.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Good idea. So far, I never used it for such signals. Are you sure it will work with these small spikes?
@johncongerton7046
@johncongerton7046 6 жыл бұрын
Excellent, as always
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thanks!
@hollensted
@hollensted 6 жыл бұрын
Crazy! I just calculated a 3 year lifetime when running on a 2600mAh 18650, sending data every hour. Work just got really fun.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
:-)
@joezybernatic7435
@joezybernatic7435 6 жыл бұрын
very useful and great content.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thank you!
@05pamar
@05pamar 3 жыл бұрын
Thanks, great video, very profesional!
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
Glad you liked it!
@NoProblem76
@NoProblem76 3 жыл бұрын
Interesting! thanks for posting!
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
You are welcome!
@brycedavey1252
@brycedavey1252 6 жыл бұрын
I would like to see a follow up video on rage :) Great video
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
I hope I will find the time in the next future...
@gavinknight8560
@gavinknight8560 4 жыл бұрын
Fantastic video
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Thank you!
@PHILG2864
@PHILG2864 5 жыл бұрын
Hi Andreas, very informative video, thank you Whilst there are plenty of examples of its use, I've spent a lot of time trying to find the ESP8266 library itself, it seems Github has many variations and function constructs and defines are different between different versions, with different people adding various arduino library wrappers. I've done quite a few 'Alexa' projects so I'm happy working with the esp8266 via WiFi, I use only the tiny ESP-01 boards, using the ESP extensions in the Arduino IDE and programmed via async serial. All work well. But I've been unable to compile anything at all for espnow! As yet I've not found anyone successfully using espnow on the ESP-01. If I could just get the simplest espnow example to compile I would be happy! Keep up the good work, the Lora videos were particularly helpful. Cheers :-) Phil
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
Maybe the flash memory is too small?
@wjhoogervorst
@wjhoogervorst 6 жыл бұрын
Thanks for again a great and inspiring video. As I read in the previous comments, it would be great to see an example were an ESP sends data to an ESP with a serial connection to a raspberry running node red.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Maybe I will do something like that, but I am not sure. Maybe somebody else will do it?
@wjhoogervorst
@wjhoogervorst 5 жыл бұрын
@@AndreasSpiess I did it myself, see www.instructables.com/id/ESP-NOW-Home-Automation-Esp8266-Raspberry-Pi-MQTT
@axelmagnusmansson3265
@axelmagnusmansson3265 6 жыл бұрын
As always a great topic, that i didnt even know existed. All the news here on this channel! i think the big fight for this wonderful chip is now battery consumption ( a part from security, because my test show that more often than not, ESP32 crashes and locks at least once in a week, as weel as QoS). One sample per hour is not really my standard. Maybe a video putting all of our choices and the pros/cons comparison. BLE, LoRa, ESP now, Wifi (and other we dont yet know about?). Battery consumption (incl wake from sleep), range, bit rate, and QoS. Great work as always Andreas!
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
A lot of wishes... Maybe one day they become true ;-)
@axelmagnusmansson3265
@axelmagnusmansson3265 6 жыл бұрын
yes and a lot of work, i know. but you have made most of the tests now. i was thinking the Big Recap of those. so maybe less work. anyway, whatever you do, i will follow! thx
@lordhelmchen100
@lordhelmchen100 6 жыл бұрын
3:29 you meant http right? Also gr8 video btw. This was exactly what i needed for my current project :-)
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
I meant HTML but forgot HTTP.
@muhammadadeel1947
@muhammadadeel1947 4 жыл бұрын
very much informative......
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Glad you think so!
@michaelbyron2321
@michaelbyron2321 6 жыл бұрын
Andreass, you are my hero. I look forward to each of your episodes. Your style is flawless. Can you do some more on the" ESP Now" but with detailed range testing. This is of great interest to me. Will the range be the same for both the ESP8266 and teh ESP32?
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
I plan a video concerning ranges in the near future.
@dmurphydrtc
@dmurphydrtc 5 жыл бұрын
Just a quick note as I have not seen much written on the ESP-Now topic. I have tested distance/range of 2 different types of ESP32 boards, DOIT Devkit V1 and a TTGO T7_V1.0. I used the scripts by "Harringay..." as listed above. No matter what combination of boards the greatest distance I could get between master and slave was approx.15m. My wifi distances were similar. Anyone else carry out measurements with different boards ? Ta.
@MrJanulis
@MrJanulis 6 жыл бұрын
Thanks, very informative! By the way, in case of "standard" ESP mode calculation you used 90mA, but in ESP Now - only 80mA. Was it intentional or just a mistyping?
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
I added a little for the many small spikes. For sure not accurate, but I am an engineer, not an accountant ;-)
@tejasarlimatti8420
@tejasarlimatti8420 6 жыл бұрын
Thanks so much for another one of your wonderful videos! Btw, the SF7 most *definitely* must have higher range than the ESP8266's WiFi, right? I mean, WiFi can only go so far. Maybe 50, 100mts? SF7 I'm sure can go for kilometres, isn't that right?
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
+Tejas Arlimatti You are most probably right. But I will try it in another video.
@zoltanbauer2722
@zoltanbauer2722 6 жыл бұрын
I f-ing love your videos
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Thank you!
@zaceshadowz6158
@zaceshadowz6158 5 жыл бұрын
Jus Came To watch detail about esp-now but now im enlightened...
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
:-)
@zaceshadowz6158
@zaceshadowz6158 5 жыл бұрын
@@AndreasSpiess Didn't thought it would be freaking detailed thank you very much for the hard work...
@debuggerau
@debuggerau 5 жыл бұрын
Thanks for sharing
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
You are welcome!
@rklauco
@rklauco 3 жыл бұрын
5 years later I learned something new...
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
Good to know :-)
@doit1374
@doit1374 6 жыл бұрын
Very nice video! Do you have an educated guess how the range would be of ESP-Now relative to WiFi range?
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
I assume it will be similar, but I plan a video to check.
@eduardogodoy7621
@eduardogodoy7621 6 жыл бұрын
Andreas Spiess I am looking forward to see it!!! Thanks.
@sergheigarau514
@sergheigarau514 5 жыл бұрын
hello Andreas, many compliments, your videos are always very interesting !!! I wanted to use this ESPNOW technology for an outdoor application. But when I tested the sketches, I noticed that ESP32 heat a lot and this seems to me a big problem especially for the reason that some nodes would go in the box exposed to the sun and I can not install a fan ... I think that LoRa does not have this problem, what do you think?
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
LoRa transmitters use less power and heat up less. But the sun might be your real problem.
@kieranj67
@kieranj67 6 жыл бұрын
Thank you!!
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
You are welcome!
@CintraxBR
@CintraxBR 6 жыл бұрын
Hi, great videos !!! For a 1-2km range which one would you use ? I have a small farm and would like to open and close water valves for the irrigation system. Thanks, Max
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
You can watch my videos on LoRa range. Wi-Fi is not made for big distances
@cavalier3920
@cavalier3920 4 жыл бұрын
Andreas, thank you for leading me to Anthony Elder's code resulting in a 220 mS communication period and power savings. After your video was published he has offered an even lower-power alternative in espnow-sensor-minimal.ino that describes a 40 mS period. This uses a sleep function called "ESP.deepSleepInstant". After verifying that the receiver/sender pair worked with ESP.deepsleep() I had some trouble using deepSleepInstant. It seemed to be too fast in closing down - perhaps shutting down the radio before it was done. Later I found that my last Serial.print functions were missing. Inserting a delay(10) right before deepSleepInstant seemed to fix it. BUT THE BIG NEWS is that the measured time between "send" and the end of the callback function is averaging 100 mS. Not as fast as the advertised 40 mS, but still a big savings for the battery! Very un-powerful! Hope this helps your viewers.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Thanks for the info. Serial print takes some time. And if you place a sleep command after such a statement the info is no more sent out.
@cavalier3920
@cavalier3920 4 жыл бұрын
@@AndreasSpiess Yes, Serial.print takes time. And the same is true for other communication logic, I presume. I was thinking that the processor was thinking... do A, stop, then do B, stop, then do C. My error was thinking these ESP devices are 'single threaded' or not 'multi-tasking', however they are really multi-threaded and multi-tasking, because B can start before A has finished, I think I am experiencing. (Fortran N77 was my last class on the subject, long ago.) If the device is shut down before a transmission is completed (serial, or radio) then the transmission that was underway is not completed, right? For me that is a design discovery and an 'abstraction' convenience as it makes it easier for rookies like me. BTW: "cavalier 39" seems to be my default username when I have that gmail account open. My true identity is Craig Larson, a loyal patreon'ista. (I advise all Andreas fans to join Patreon and support the channel! Do your part!)
@mikebpetersen3027
@mikebpetersen3027 4 жыл бұрын
Love your video's - spot on! Quick Question on video #172: Can ESP-Now still communicate in "Station+AP" mode? Or is it one or the other.
@Ed19601
@Ed19601 4 жыл бұрын
I understand it can be both.
@sofianfadli7910
@sofianfadli7910 6 жыл бұрын
Cools... You are very awesome,Andreass !!! Why you can understand many things and create videos that are very useful just in a week? Are you doing research every day in your life? I'm courious...
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Yes, of course I work nearly every day and sometimes also the nights on my hobby. This keeps me young...
@jobgreaves
@jobgreaves 6 жыл бұрын
Andreas, Thanks for the informative videos about IOT gizmos. You mention the limit of 20 devices per node. If we add another Master kind of unit can we get another 20 devices? What about 3 or more Master devices? Not sure where the limitations come from. Also: You sound very much like a friend from Bern. You too?
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
AFAIK the limit is per device. If you add more devices, you can multiply this number. I think, most Swiss German speaking people have similar English accents...
@kevinroach9380
@kevinroach9380 5 жыл бұрын
Great videos! How about range? I need to get 200 - 300ft of point to point range. What is the best way to go?
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
If it is line of sight with no obstacles, WiFi might work. Otherwise LoRa is better. I would first try WiFi.
@olivercopleston
@olivercopleston 4 жыл бұрын
Hi Andreas, thanks for the vid. Any idea what the maximum theoretical speed of ESP-NOW is? For context: I'd like to stream video from one ESP-32 with a Camera to another which has an LCD display. I've figured that ESP-NOW is probably the best protocol to its lack of overhead.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
It is always best testing it out because it depends on different factors. It should not be too complicated.
@JerryEricsson
@JerryEricsson 6 жыл бұрын
Hmm I way typing a message and somehow did a shortcut and lost it, going back to an earlier video I was watching, well earlier. My question is, does this ESP-now work with all esp8266's or just the model 12 and above? I have quite a collection of these devices, and I can really see some advantages using this form of communications, especially in our RV which we spend our winters in, hiding in Arizona, while the frigid winters of the Dakota's make old folks like us regret ever settaling up there. The Mojave Desert is a wonderful place to spend the winter, it's 72 degrees here now, while back home they are enjoying indian summer today with the temps over 50 degrees however at night the Dakota's fall to zero F or lower, while here in the desert, it can get darn right cool at 55 degrees or so. Anyhow thanks, we seem to share an intrest in many of the same devices, so I look forward to your posts, knowing I will learn something new every week, and I have this strange belief that if you learn somthing new every day, you can fight off old age.. Works for me, most folks have no idea that I am 66, most put me at about 40 and if I take off my beard, even younger....
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Sounds like a nice life! Here we prepare also for winter which can also go way below 0 (Celsius, of course). I traveled once from LA to New Orleans in 8 days, all backroads and still remember that it was a nice experience. Phoenix, Albuquerque, Los Alamos, Memphis, Clarksdale... Yes, ESP-Now should work on all ESPs. It is just a library.
@gertux
@gertux 6 жыл бұрын
An other great video, as usual ! Did you check the impact of using encrypted transmission for the ESP-NOW ? LoRa is always encrypted. I wouldn't want to send clear text messages in a non-rural area.
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
No, I did not test it. I am not transferring any secret messages across such lines, so I had no need. I think, you just enter a key and then it encrypts (somehow)...
@stefa6901
@stefa6901 6 жыл бұрын
Thank you for this nice video! Helped me a lot. I created my own code for Esp Now and it works fine, but....using direct ESP2ESP communication made indoor range of a device very short distance. It could not connect to other ESP8266 which was just behind desk. I am using ESP01's for this project. Do you have any idea why is it so? Bad antenna on ESP01 maybe?
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
I did not do any range tests, so I do not know. But I would assume a similar range as in" normal" mode
@olafkaus9826
@olafkaus9826 6 жыл бұрын
Hi Andreas, first: Thanks a lot for your detailed and interesting videos. Because the ESP32 also include Bluetooth, what is your opinion about a Bluetooth Mesh for Sensors? Especally in battery consumption. Thx, in advance Olli
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
I am no fan of mesh in general. If it would be useful, It would be used much more. In my opinion it is ok for a fe niches. BT only has a small reach.
@pub_scrubs
@pub_scrubs 4 жыл бұрын
man, you're a godsend
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
:-)
@dan2thi
@dan2thi 4 жыл бұрын
Awesome!
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
Thanks!
@1CM69
@1CM69 4 жыл бұрын
Great video, very informative. What alterations are need to your Slave code in order to receive data from multiple Master units?
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
I do not know. Maybe Google knows more?
@1CM69
@1CM69 4 жыл бұрын
Thanks for replying, I found the answer shortly after my initial post. 👍🏻
@billfield8300
@billfield8300 6 жыл бұрын
I am very interested in learning how much effect the distance between modules has on transmission time. If I had for example, several of these set up as a network around a farm and I was to systematically ping them from a moving device, could I measure distance variations due to transmission speed and thereby calculate location. Kind of like a private GPS system...
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
+Bill Field Waves travel with speed of light. I do not know the sitze of your farm, but assume the time needed to travel the distance is very short. Waves need 1.3 seconds from the moon to earth. If I remember right, cnlohr tried this approach, but without big success.
@adminspnetworkingirflabs8180
@adminspnetworkingirflabs8180 2 жыл бұрын
Good one
@AndreasSpiess
@AndreasSpiess 2 жыл бұрын
Thank you!
@jozefgoral6812
@jozefgoral6812 3 жыл бұрын
Great material. He helped me a lot to understand the problem you raised in this episode. I'm currently doing a similar project in college. would you help me and recommend some internet sources or a book in which this topic is extended? I also want to encrypt my connection and get the maximum point-to-point speed possible.
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
You have to do the research yourself because I am not interested in security and therefore have no knowledge. Books are usually outdated before they are printed ;-)
@pedro.federici
@pedro.federici 6 жыл бұрын
Hello, Andreas. Will you make more videos about espnow?
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
I do not think so. What is not covered?
@andreasjell734
@andreasjell734 6 жыл бұрын
A very good video, thank you so much! I have a question. There are modules with an ESP32 and OLED and Antenna with LORA-Chip. For that modules, is it possible to use that antenna also for esp.now? Or only for LORA? Thanks
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Lora is a different radio on a different frequency. The antenna is only fo this radio. Maybe you watch my video concerning these boards.
@andreasjell734
@andreasjell734 6 жыл бұрын
I did, and still I am watching... But I can't find out if there is a module which Esp.Now is working with a external antenna (and not with the chip antenna)...?
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
The ESP-07 module has aWiFi antenna connector
@andreasjell734
@andreasjell734 6 жыл бұрын
Yes that's right - but the ESP-07 is only an esp8266. I am looking for an ESP32 with antenna for EspNow
@DelphiTheDolphin
@DelphiTheDolphin 6 жыл бұрын
Just wondering how far (distance-wise) you could go apart with ESPnow? I have to spread some weather-stations (temp, humidity, airpressure, maybe even light/lux) across a park and can only store data at one ESP and/or connect to wifi to send it. I wonder if a photovoltaic cell with a bunch of proper NiMH battery would be good enough to run this for a year or so.....
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
You have to check the range yourself. It depends on many parameters. And I did a video where I answered your second question.
@gorally2003
@gorally2003 6 жыл бұрын
great video!! I am trying to do a point to point using esp32/esp8266 to send a temperature from a max6675 to another esp32/esp8266 to output to my nextion display or a tablet. Thanks for all your great videos
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
You are welcome and good luck! If you have a sketch with mixed ESP8266 and ESP32 it would be nice if you share it. I did not find one.
@gorally2003
@gorally2003 6 жыл бұрын
Ok if i write one i will i hadnt decided if i'll use the esp8266 or esp32 or one of each I but I'll post a link to my git hub page as soon either fine wine or right one
@MudahnyaCoding
@MudahnyaCoding 3 жыл бұрын
thank very much...i'm from indonesia
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
You are welcome!
@mairswartz
@mairswartz 6 жыл бұрын
Very very cool. Something worth trying might be to measure signal strength and create a mesh with multiple devices
@hanstanner4639
@hanstanner4639 6 жыл бұрын
Like this? github.com/gmag11/painlessMesh
@mairswartz
@mairswartz 6 жыл бұрын
Oh wow!. thats pretty cool. But I don't think it uses ESP now
@hanstanner4639
@hanstanner4639 6 жыл бұрын
It does not, it forms a network with devices set to the same AP, even though the AP does not have to exist, just AP name and password must be the same.
@mairswartz
@mairswartz 6 жыл бұрын
defiantly one to play around with
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
It seems, that Espressif also offers a mesh ( espressif.com/en/products/software/esp-mesh/overview )
@goncalobarroso8493
@goncalobarroso8493 2 жыл бұрын
hi Andreas, im just starting with LoRa and i have a couple of Ra-02 modules working on 433mhz. Im planning to build a p2p coms between them my question is besides the frequency and max output power do i have to take in consideration things like duty cycle, bandwidth, payload size, etc like we do in LoRaWAN(i live in Europe dont know if its is important)? Thx for the great videos!
@AndreasSpiess
@AndreasSpiess 2 жыл бұрын
Maybe you watch my LoRa introduction video (and other videos about the topic) to understand the difference between LoRa and LoRaWAN?
@mjj2u2
@mjj2u2 6 жыл бұрын
One thing to consider is the significant difference in price between the ESP and the LoRa. Given the price difference I would pick the ESP every time especially since you need two for connections
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
:-)
@luisprates8223
@luisprates8223 4 жыл бұрын
I have just discovered ESP-Now thanks to your video, so thank you! Although I do wonder if it's possible to use an analog input on master (a potentiometer in this case) to control a micro-servo on the slave. I have tried searching about this but to no real results.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
This should be no problem. Maybe you divide the problem in parts?
@luisprates8223
@luisprates8223 4 жыл бұрын
@@AndreasSpiess thank you for the reply! Yes, I was thinking about reading the potentiometer value on master, converting into an absolute number between 1-255 and send to slave serial through esp-now. On slave, read the serial and use a "if" or "for" function to act on the serial value. I have yet to try this method but I do appreciate if you have any other method of going around this case or opinion about the validity of this :)
@halukyilmaz9621
@halukyilmaz9621 6 жыл бұрын
thanks for nice video! i wonder esp12e can downlink while act a gateway? example, at ttn console i can send by application/appid/devices/devid and i see on console, but can't see on gateway traffic also arduino console, i cant test my other loras on the way but when i send on mqtt on ttn, the 8266 gateway will send too? thanks
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Maybe you go to the TTN forum and look for somebody who has this running.
@Ed19601
@Ed19601 6 жыл бұрын
Interesting, but I wonder if you have say 10 espnow modules and 1 gateway whether it would be easy to lose transmissions/data every time the gateway connects to the Network and restarts
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
Another proposal for a gateway is to use two ESPs, one for ESP-Now and one to connect to the AP. But this was not the main point and the video was already 15 minutes. I had to learn that YouTubing is about saying "No" ;-)
@MrAsdf1980
@MrAsdf1980 6 жыл бұрын
Hi Andreas, my question is have you any project with NB-IOT for the next videos?
@AndreasSpiess
@AndreasSpiess 6 жыл бұрын
I am watching this and I am also in contact with U-blox. But for the moment it is too expensive for makers. Or you know something I do not know ;-)
@vgkmaranata6770
@vgkmaranata6770 4 жыл бұрын
@Andreas, is there a difference between the power consumption of the different 802.11 standards (b/g/n/e/i)? My guess is no, but I am hoping for a yes.
@AndreasSpiess
@AndreasSpiess 4 жыл бұрын
You can look at the datasheet. But I think it is not relevant
@abhiwins123
@abhiwins123 3 жыл бұрын
Hi Andreas, Thanks for the nice video. I am trying to build point to point communication device using RF. I struggled with RF433Mhz and checking if ESP now is a fit. My application needs sensor state(Digital on and off(1 byte data)) to be monitored. The maximum time for reaction is about 80ms. The transmitter is mounted on machine, so it will be battery powered. Do you think ESP-Now can be a good fit for my application?
@AndreasSpiess
@AndreasSpiess 3 жыл бұрын
You can try. Wi-Fi and battery operation usually are not a good fit :-(
@leventelikhanecz2258
@leventelikhanecz2258 5 жыл бұрын
hello Herr Spiess, little late i discovered this video (well, according to my slow-mo learning progress along iot technologies). it looks to me that beside espnow the espressif since introduced an LR feature with their esp32 wifi unit. Seemingly LR stands for long range, with a trade-off of speed (down to 512/256 kbps) offering extended range that could be used together with espnow achieving even longer distance connectivity between units. it would be nice to see in an update video utilizing both features. best regards, lev
@AndreasSpiess
@AndreasSpiess 5 жыл бұрын
Good idea!
ESPNOW mix with #ESP32 and #ESP8266
25:37
Programming Electronics Academy
Рет қаралды 35 М.
1❤️
00:17
Nonomen ノノメン
Рет қаралды 13 МЛН
HOW DID HE WIN? 😱
00:33
Topper Guild
Рет қаралды 23 МЛН
WHO DO I LOVE MOST?
00:22
dednahype
Рет қаралды 82 МЛН
467 Radar Sensors from $3 to over $100: Which one is Best?
14:31
Andreas Spiess
Рет қаралды 162 М.
#328 ESP32 Secrets: Interrupts, and Deep-Sleep under the Hood
18:57
Andreas Spiess
Рет қаралды 174 М.
ESP-NOW - Peer to Peer ESP32 Network
43:02
DroneBot Workshop
Рет қаралды 342 М.
#188 Antenna Tutorial incl. cheap DIY Antenna Tester (LoRa, ESP32)
18:39
#404 How to Build or Migrate Sensors and Gateways on TTN LoRaWAN V3
22:33
ESP-Now Range Test: Real-World Results for ESP32 Devices!
8:01
Самый дорогой кабель Apple
0:37
Romancev768
Рет қаралды 144 М.
Hisense Official Flagship Store Hisense is the champion What is going on?
0:11
Special Effects Funny 44
Рет қаралды 2,7 МЛН