Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. ESP-NOW

ESP-NOW

Scheduled Pinned Locked Moved General Discussion
i recently noticed that expresbetween esp8266 and es[p220vwhich allows direct conectionif has released esp-now
23 Posts 7 Posters 6.3k Views 8 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I idanronen

    @NeverDie The DFRobot FireBeetle (ESP32) has around 10ua deep sleep current, can be flashed by USB, can be run directly from a lithium ion battery, has a charging circuit, and only costs ~6$.
    The lolin32 lite has 70-90ua deep sleep current and the same peripherals for ~2.3$ and is the one I'm personally using.
    I'm actually working on writing a dedicated ESP-NOW to HA TCP gateway (instead of the plethora of available MQTT ones). If Mysensors supported ESP-NOW it would be considerably better and more secure.
    As for the sleep circuit you mentioned, do you mean a MOSFET connected to a sensor/button and an MCU pin to latch it on?
    Right now i'm also trying to implement a low power remotely activated node with an external BLE tag circuit wakeup or an external RF433 "key finder" circuit wakeup (~70ua).

    NeverDieN Offline
    NeverDieN Offline
    NeverDie
    Hero Member
    wrote on last edited by NeverDie
    #13

    @idanronen said in ESP-NOW:

    As for the sleep circuit you mentioned, do you mean a MOSFET connected to a sensor/button and an MCU pin to latch it on?

    As a "for instance," a TPL5010 external watchdog consumes just 35na. In https://www.openhardware.io/view/534/Extremely-Simple-Arduino-Pro-Mini-LoRa-Water-Leak-Detector I use it to periodically wake-up a sleeping atmega328p, but it could just as easily be used to turn-on a mosfet or load switch to then turn-on a completely powered down mcu of any type, including an ESP32 or an ESP8266.

    You can see the TPL5010 mounted on it here:
    alt text

    That was 4 years ago. I haven't re-surveyed the market, but maybe by now there exist watchdogs that consume even less.

    I 1 Reply Last reply
    1
    • I idanronen

      @NeverDie The DFRobot FireBeetle (ESP32) has around 10ua deep sleep current, can be flashed by USB, can be run directly from a lithium ion battery, has a charging circuit, and only costs ~6$.
      The lolin32 lite has 70-90ua deep sleep current and the same peripherals for ~2.3$ and is the one I'm personally using.
      I'm actually working on writing a dedicated ESP-NOW to HA TCP gateway (instead of the plethora of available MQTT ones). If Mysensors supported ESP-NOW it would be considerably better and more secure.
      As for the sleep circuit you mentioned, do you mean a MOSFET connected to a sensor/button and an MCU pin to latch it on?
      Right now i'm also trying to implement a low power remotely activated node with an external BLE tag circuit wakeup or an external RF433 "key finder" circuit wakeup (~70ua).

      NeverDieN Offline
      NeverDieN Offline
      NeverDie
      Hero Member
      wrote on last edited by NeverDie
      #14

      @idanronen Quick question for you: At what bitrate can ESP-NOW transmit packets? Is it 54Mbps? More? Less? If it can achieve those high speed rates at good range, then one could easily afford high Tx power. [Edit: I see from https://blogs.ntu.edu.sg/ps9888-2020-g16/2020/07/11/esp-now-data-transfer/ that there appears to be a 54mbps bitrate, but less than a megabyte per second effective speed in whatever their test conditions were at 1 meter apart. Does that match what you're observing?]

      1 Reply Last reply
      0
      • NeverDieN NeverDie

        @idanronen said in ESP-NOW:

        As for the sleep circuit you mentioned, do you mean a MOSFET connected to a sensor/button and an MCU pin to latch it on?

        As a "for instance," a TPL5010 external watchdog consumes just 35na. In https://www.openhardware.io/view/534/Extremely-Simple-Arduino-Pro-Mini-LoRa-Water-Leak-Detector I use it to periodically wake-up a sleeping atmega328p, but it could just as easily be used to turn-on a mosfet or load switch to then turn-on a completely powered down mcu of any type, including an ESP32 or an ESP8266.

        You can see the TPL5010 mounted on it here:
        alt text

        That was 4 years ago. I haven't re-surveyed the market, but maybe by now there exist watchdogs that consume even less.

        I Offline
        I Offline
        idanronen
        wrote on last edited by
        #15

        @NeverDie That sounds like a really nice idea. Since most of my project are 1 off, I don't have experience with designing pcbs or working with such small package components. If anyone ever designs a general purpose board with a tpl5010, a resistor for the timer, a mosfet, feedback from the mcu to latch the mosfet or signal the timer the work is done, and maybe even an optional spot for a low quiescent LDO regulator like the ht7333, me6211, or mcp1700, capacitors, and a manual override for a button or sensor interrupt, I would love if you could share it. I'm sure such a board could be useful for many MCUs.

        As for the data rates, I've never measured, nor would I get the maximum speed even if I did, since I'll never be that close to the router with a clear line of sight. Either way I wouldn't choose the highest bitrates even if I were, as there are maybe a handful of use cases (like the esp-cam), and the drawback of reduced reliability and range at those rates. Esp-now long range mode seems like a better use case overall.
        That being said, in a non sterile environment (in terms of 2.4ghz noise), and the distance they've mentioned, 1MBps (8mbps) out of the possible 54mbps sounds right to me for real life speed.

        NeverDieN 2 Replies Last reply
        0
        • I idanronen

          @NeverDie That sounds like a really nice idea. Since most of my project are 1 off, I don't have experience with designing pcbs or working with such small package components. If anyone ever designs a general purpose board with a tpl5010, a resistor for the timer, a mosfet, feedback from the mcu to latch the mosfet or signal the timer the work is done, and maybe even an optional spot for a low quiescent LDO regulator like the ht7333, me6211, or mcp1700, capacitors, and a manual override for a button or sensor interrupt, I would love if you could share it. I'm sure such a board could be useful for many MCUs.

          As for the data rates, I've never measured, nor would I get the maximum speed even if I did, since I'll never be that close to the router with a clear line of sight. Either way I wouldn't choose the highest bitrates even if I were, as there are maybe a handful of use cases (like the esp-cam), and the drawback of reduced reliability and range at those rates. Esp-now long range mode seems like a better use case overall.
          That being said, in a non sterile environment (in terms of 2.4ghz noise), and the distance they've mentioned, 1MBps (8mbps) out of the possible 54mbps sounds right to me for real life speed.

          NeverDieN Offline
          NeverDieN Offline
          NeverDie
          Hero Member
          wrote on last edited by NeverDie
          #16

          @idanronen said in ESP-NOW:

          @NeverDie That sounds like a really nice idea. Since most of my project are 1 off, I don't have experience with designing pcbs or working with such small package components. If anyone ever designs a general purpose board with a tpl5010, a resistor for the timer, a mosfet, feedback from the mcu to latch the mosfet or signal the timer the work is done, and maybe even an optional spot for a low quiescent LDO regulator like the ht7333, me6211, or mcp1700, capacitors, and a manual override for a button or sensor interrupt, I would love if you could share it. I'm sure such a board could be useful for many MCUs.

          Have you seen these?
          https://www.adafruit.com/product/3435
          Adafruit has some other variants as well.

          As for designing PCB's, it's easier than you think. Watch a youtube video or two, and you can design your own.

          I 1 Reply Last reply
          0
          • NeverDieN NeverDie

            @idanronen said in ESP-NOW:

            @NeverDie That sounds like a really nice idea. Since most of my project are 1 off, I don't have experience with designing pcbs or working with such small package components. If anyone ever designs a general purpose board with a tpl5010, a resistor for the timer, a mosfet, feedback from the mcu to latch the mosfet or signal the timer the work is done, and maybe even an optional spot for a low quiescent LDO regulator like the ht7333, me6211, or mcp1700, capacitors, and a manual override for a button or sensor interrupt, I would love if you could share it. I'm sure such a board could be useful for many MCUs.

            Have you seen these?
            https://www.adafruit.com/product/3435
            Adafruit has some other variants as well.

            As for designing PCB's, it's easier than you think. Watch a youtube video or two, and you can design your own.

            I Offline
            I Offline
            idanronen
            wrote on last edited by
            #17

            @NeverDie yes, however at 20uA quiescent and 5$ I'd rather just buy a firebeetle for 1$ more and have 10uA sleep

            NeverDieN 1 Reply Last reply
            0
            • I idanronen

              @NeverDie yes, however at 20uA quiescent and 5$ I'd rather just buy a firebeetle for 1$ more and have 10uA sleep

              NeverDieN Offline
              NeverDieN Offline
              NeverDie
              Hero Member
              wrote on last edited by NeverDie
              #18

              @idanronen It sounds like you've found the set of tradeoffs that you like.

              https://forum.mysensors.org/topic/11933/best-mcu-radio-successor-chips

              I 1 Reply Last reply
              0
              • NeverDieN NeverDie

                @idanronen It sounds like you've found the set of tradeoffs that you like.

                https://forum.mysensors.org/topic/11933/best-mcu-radio-successor-chips

                I Offline
                I Offline
                idanronen
                wrote on last edited by
                #19

                @NeverDie said in ESP-NOW:

                @idanronen It sounds like you've found the set of tradeoffs that you like.

                https://forum.mysensors.org/topic/11933/best-mcu-radio-successor-chips

                Yes and no. I'm fine with the lolin32 lite for a couple of bucks for most things, especially solar. For example I've made several units of esp-now capacitive soil moisture sensors with it. When solar is involved, the 2mah extra per day are a non-issue. However a general purpose circuit like the one I mentioned could be very useful for simplifying cases where you need to also turn off all external sensors and peripherals, or use other MCU such as an esp32-C3 or one of the seeed ones like the rp2040 Xiao.
                I keep an eye out for ready made low power circuits or boards on AliExpress, but it doesn't look like the Chinese are up to speed on low power consumer grade circuits.

                1 Reply Last reply
                0
                • I idanronen

                  @NeverDie That sounds like a really nice idea. Since most of my project are 1 off, I don't have experience with designing pcbs or working with such small package components. If anyone ever designs a general purpose board with a tpl5010, a resistor for the timer, a mosfet, feedback from the mcu to latch the mosfet or signal the timer the work is done, and maybe even an optional spot for a low quiescent LDO regulator like the ht7333, me6211, or mcp1700, capacitors, and a manual override for a button or sensor interrupt, I would love if you could share it. I'm sure such a board could be useful for many MCUs.

                  As for the data rates, I've never measured, nor would I get the maximum speed even if I did, since I'll never be that close to the router with a clear line of sight. Either way I wouldn't choose the highest bitrates even if I were, as there are maybe a handful of use cases (like the esp-cam), and the drawback of reduced reliability and range at those rates. Esp-now long range mode seems like a better use case overall.
                  That being said, in a non sterile environment (in terms of 2.4ghz noise), and the distance they've mentioned, 1MBps (8mbps) out of the possible 54mbps sounds right to me for real life speed.

                  NeverDieN Offline
                  NeverDieN Offline
                  NeverDie
                  Hero Member
                  wrote on last edited by NeverDie
                  #20

                  @idanronen said in ESP-NOW:

                  That being said, in a non sterile environment (in terms of 2.4ghz noise), and the distance they've mentioned, 1MBps (8mbps) out of the possible 54mbps sounds right to me for real life speed.

                  Reporting back: this site (https://blogs.ntu.edu.sg/ps9888-2020-g16/2020/07/11/esp-now-data-transfer/) claims to be getting that type of speed if they send 250 byte packets as fast as possible. Well, it sure seems to easily beat the best case 2mbps transmit speed of an nRF24L01 radio.

                  I'm doing a round-up of different radios and hope to do some comparisons sometime soon. I think I'll include ESP-NOW in the mix. I'd like to get a NORD-PPK2 Power Profiler to help out with it, but it seems to be sold out in most places. Mouser will be getting some at the end of June though, so I'll backorder one there if I can't locate a decent source sooner. So many things are in extreme shortage right now, but ESP8266 modules are still readily available at only just a nominal buck on Aliexpress.

                  Meanwhile, this guy shows his easy approach to making an easy ESP-NOW to MQTT gateway:
                  https://www.youtube.com/watch?v=AqpCiIf_XJM

                  and I think it really is as easy as that.

                  1 Reply Last reply
                  0
                  • NeverDieN Offline
                    NeverDieN Offline
                    NeverDie
                    Hero Member
                    wrote on last edited by
                    #21

                    Interestingly, this guy shows a method for "powering down" an esp8266 to a 3ua current consumption, as opposed to the commonly known 20ua current consumption:
                    https://www.youtube.com/watch?v=n_A_8Y4xNx8

                    I'm not sure how that compares to completely turning off all power to the ESP8266 and then later restoring it. Does the ESP8266 startup faster if fed 3ua instead of completely disconnecting it? Or is the startup time the same?

                    E 1 Reply Last reply
                    0
                    • NeverDieN NeverDie

                      Interestingly, this guy shows a method for "powering down" an esp8266 to a 3ua current consumption, as opposed to the commonly known 20ua current consumption:
                      https://www.youtube.com/watch?v=n_A_8Y4xNx8

                      I'm not sure how that compares to completely turning off all power to the ESP8266 and then later restoring it. Does the ESP8266 startup faster if fed 3ua instead of completely disconnecting it? Or is the startup time the same?

                      E Offline
                      E Offline
                      ejlane
                      wrote on last edited by
                      #22

                      @NeverDie I would sure hope it would be faster, otherwise no point in doing it. You can change the circuit so that the ESP8266 doesn't even have power unless it gets an external trigger. From the video this needs some kind of external trigger either way.

                      I would have to test it to be sure, but it sounds like it's booting fresh each time, so I don't see how it could be faster.

                      1 Reply Last reply
                      0
                      • MasMatM Offline
                        MasMatM Offline
                        MasMat
                        wrote on last edited by
                        #23

                        Old topic, I know. Did anything ever come of this?
                        I'm also thinking it would be easy & cheap to get the espnow working as a transport layer.
                        I found this: https://www.mysensors.org/apidocs-beta/classESPNOW.html
                        But it goes above my head and abilities when it comes to code.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        13

                        Online

                        11.7k

                        Users

                        11.2k

                        Topics

                        113.1k

                        Posts


                        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • MySensors
                        • OpenHardware.io
                        • Categories
                        • Recent
                        • Tags
                        • Popular