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. Feature Requests
  3. ESP32 Support to enable the powerful ESP32 + RFM95/Lora + LiPo battery boards

ESP32 Support to enable the powerful ESP32 + RFM95/Lora + LiPo battery boards

Scheduled Pinned Locked Moved Feature Requests
42 Posts 7 Posters 13.8k Views 5 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.
  • mfalkviddM mfalkvidd

    Welcome to the MySensors community @heinzv

    Have you tried https://github.com/mysensors/MySensors/pull/865 ? If so, could yo provide feedback? As already mentioned, interest in the esp32 has so far been too low to reach a sufficient testing level.

    H Offline
    H Offline
    heinzv
    wrote on last edited by
    #5

    @mfalkvidd hi, thanks for your reply and as far as I have understood, there have been two enhancements done, ESP32 and RFM95 support! That is all I need (RFM95 is the LoRa chip I mentioned). I'm new to the github test/review process and I'm willing to test this pull request 865, How can I download this build to do some testing? I'm sorry to hear, that people don't show enough interest in ESP32 boards with the RFM95 onboard. I like them very much.

    1 Reply Last reply
    1
    • mfalkviddM mfalkvidd

      Welcome to the MySensors community @heinzv

      Have you tried https://github.com/mysensors/MySensors/pull/865 ? If so, could yo provide feedback? As already mentioned, interest in the esp32 has so far been too low to reach a sufficient testing level.

      H Offline
      H Offline
      heinzv
      wrote on last edited by
      #6

      @mfalkvidd I think I have found the repository for testing: https://github.com/tekka007/MySensors/tree/ESP32HW. I'll do some testing with my Heltec boards which have an ESP32 + RFM95/SX1276. I'll try a ESP32Gateway and an ESP32 Sensor Node (Temp + Humidity). I'll give feedback. Thanks a lot.

      mfalkviddM 1 Reply Last reply
      0
      • H heinzv

        @mfalkvidd I think I have found the repository for testing: https://github.com/tekka007/MySensors/tree/ESP32HW. I'll do some testing with my Heltec boards which have an ESP32 + RFM95/SX1276. I'll try a ESP32Gateway and an ESP32 Sensor Node (Temp + Humidity). I'll give feedback. Thanks a lot.

        mfalkviddM Online
        mfalkviddM Online
        mfalkvidd
        Mod
        wrote on last edited by mfalkvidd
        #7

        @heinzv yup, that’s the one. Looking forward to see the results. If you run into any problems, just post here and we’ll try to help out.

        I have a few esp32 myself, but have not seen enough benefit when used for MySensors compared to the pro minis and esp8266, especially considering the much higher price point. Same thing with my LoRa radios.

        H 1 Reply Last reply
        0
        • mfalkviddM mfalkvidd

          Welcome to the MySensors community @heinzv

          Have you tried https://github.com/mysensors/MySensors/pull/865 ? If so, could yo provide feedback? As already mentioned, interest in the esp32 has so far been too low to reach a sufficient testing level.

          H Offline
          H Offline
          heinzv
          wrote on last edited by
          #8

          @mfalkvidd Today, I have tested the repository from tekka007: https://github.com/tekka007/MySensors/tree/ESP32HW and build a GatewayESP32MQTTClient with a dummy sensor node MockMySensors. For both I used a Heltec ESP32 board with a Lora RFM95 chip. I looks to me as it works perfect. I can connect to my remote MQTT Mosquitto broker and it receives dummy sensor data from the sensor node using 868MHz. See serial monitor log extract.
          It would be great if this pull request would make it into the master branch in the next upcomming version.
          Excellent work tekka007! I got ESP32 and the Lora RFM95 / SX1276.

          598 GWT:TPC:IP=10.0.0.34
          3602 MCO:BGN:STP
          3604 MCO:BGN:INIT OK,TSP=1
          3606 GWT:TPC:IP=10.0.0.34
          3608 GWT:RMQ:MQTT RECONNECT
          3639 GWT:RMQ:MQTT CONNECTED
          3641 GWT:TPS:TOPIC=GWO1/0/255/0/0/18,MSG SENT
          22668 TSF:MSG:READ,254-254-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
          22673 TSF:MSG:BC
          22675 TSF:MSG:FPAR REQ,ID=254
          22678 TSF:PNG:SEND,TO=0
          22680 TSF:CKU:OK
          22681 TSF:MSG:GWL OK
          22931 TSF:MSG:SEND,0-0-254-254,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
          24727 TSF:MSG:READ,254-254-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
          24732 TSF:MSG:BC

          1 Reply Last reply
          2
          • mfalkviddM mfalkvidd

            @heinzv yup, that’s the one. Looking forward to see the results. If you run into any problems, just post here and we’ll try to help out.

            I have a few esp32 myself, but have not seen enough benefit when used for MySensors compared to the pro minis and esp8266, especially considering the much higher price point. Same thing with my LoRa radios.

            H Offline
            H Offline
            heinzv
            wrote on last edited by
            #9

            @mfalkvidd and tekka007:
            I used this board
            https://www.aliexpress.com/item/SX1276-ESP32-LoRa-868MHz-915MHz-0-96-Inch-Blue-OLED-Display-Bluetooth-WIFI-Lora-Kit/32838226825.html?spm=2114.search0104.3.1.6a9b1590hjCRnJ&ws_ab_test=searchweb0_0%2Csearchweb201602_5_10152_10151_10065_10344_10068_10547_10342_10343_10340_10548_10341_10696_10084_10083_10618_10304_10307_10302_5711215_10313_10059_10534_100031_10103_10624_10623_10622_10621_10620-10152_10151%2Csearchweb201603_6%2CppcSwitch_3&algo_expid=c4550361-2189-418e-a3f9-0aa963e5a76a-0&algo_pvid=c4550361-2189-418e-a3f9-0aa963e5a76a&priceBeautifyAB=0

            there are cheaper ones without OLED display, only ESP32 + RFM95 + LiPo power/changer
            https://www.aliexpress.com/item/SX1278-LoRa-ESP32-Bluetooth-WI-FI-Lora-Internet-Antena-Placa-de-Desenvolvimento-for-Arduino-TTGO/32827824992.html?spm=2114.search0104.3.160.4dcc3d63m7idho&ws_ab_test=searchweb0_0,searchweb201602_5_10152_10151_10065_10344_10068_10547_10342_10343_10340_10548_10341_10696_10084_10083_10618_10304_10307_10302_5711213_10313_10059_10534_100031_10103_10624_10623_10622_10621_10620,searchweb201603_6,ppcSwitch_3&algo_expid=a4163100-0f10-4b08-bfe3-3d1a2e143f0f-22&algo_pvid=a4163100-0f10-4b08-bfe3-3d1a2e143f0f&priceBeautifyAB=0

            mfalkviddM 1 Reply Last reply
            0
            • H heinzv

              @mfalkvidd and tekka007:
              I used this board
              https://www.aliexpress.com/item/SX1276-ESP32-LoRa-868MHz-915MHz-0-96-Inch-Blue-OLED-Display-Bluetooth-WIFI-Lora-Kit/32838226825.html?spm=2114.search0104.3.1.6a9b1590hjCRnJ&ws_ab_test=searchweb0_0%2Csearchweb201602_5_10152_10151_10065_10344_10068_10547_10342_10343_10340_10548_10341_10696_10084_10083_10618_10304_10307_10302_5711215_10313_10059_10534_100031_10103_10624_10623_10622_10621_10620-10152_10151%2Csearchweb201603_6%2CppcSwitch_3&algo_expid=c4550361-2189-418e-a3f9-0aa963e5a76a-0&algo_pvid=c4550361-2189-418e-a3f9-0aa963e5a76a&priceBeautifyAB=0

              there are cheaper ones without OLED display, only ESP32 + RFM95 + LiPo power/changer
              https://www.aliexpress.com/item/SX1278-LoRa-ESP32-Bluetooth-WI-FI-Lora-Internet-Antena-Placa-de-Desenvolvimento-for-Arduino-TTGO/32827824992.html?spm=2114.search0104.3.160.4dcc3d63m7idho&ws_ab_test=searchweb0_0,searchweb201602_5_10152_10151_10065_10344_10068_10547_10342_10343_10340_10548_10341_10696_10084_10083_10618_10304_10307_10302_5711213_10313_10059_10534_100031_10103_10624_10623_10622_10621_10620,searchweb201603_6,ppcSwitch_3&algo_expid=a4163100-0f10-4b08-bfe3-3d1a2e143f0f-22&algo_pvid=a4163100-0f10-4b08-bfe3-3d1a2e143f0f&priceBeautifyAB=0

              mfalkviddM Online
              mfalkviddM Online
              mfalkvidd
              Mod
              wrote on last edited by
              #10

              @heinzv excellent! Thanks for the feedback.

              @tekka In your opinion, are there more tests you'd like to see before the esp32 support is merged? Any important features not yet implemented?

              H tekkaT 2 Replies Last reply
              0
              • mfalkviddM mfalkvidd

                @heinzv excellent! Thanks for the feedback.

                @tekka In your opinion, are there more tests you'd like to see before the esp32 support is merged? Any important features not yet implemented?

                H Offline
                H Offline
                heinzv
                wrote on last edited by heinzv
                #11

                @mfalkvidd great guys, excellent work! I'll do more testing in the upcomming days with more features and will give you certainly feedback.

                Here is what I want to build and what additional features might be nice, but I can try to implement also parts by myself:

                I'm trying to build some temp/humitity/pressure sensor with e-paper display (I have a couple of 1.54 to 2.9" e-papers) in a small enclosure with a Litium battery. Each sensor with e-paper in each room connected to the MQTT Gateway to an OpenHAB based home automation. This will control some IR heating panels.
                On my reseach, I found the SHT31 from Sensirion as very accurate temp/humidity (better than others like the DHT22) with an additional Bosch BME280 both are supported by MySensors (very nice).

                I also have seen that there is a feature to get the system time from the Gateway/Controller so that the e-paper display of the sensor nodes can show the date/time/weekday (the ESP32 has a build in RTC even during deep sleep).
                Battery sensor support is also there to show the battery state on the e-paper. So I hope I can that working with the build in ADC's.

                So what might is probaly missing is a standard e-paper support. That would be nice (most brands are compatible, I use the ones from Waveshare) to build sensors with display where the battery last for a year+.

                Another thing - not sure if it fit's to the MySensors scope would be to control remote smart power plugs with energy monitor (868MHz or WiFi). Would that be possible?
                THere are nice ones available for 15-20€ WiFi which have an energy monitor built in. Such as Gosund SP1 or Homecube SP1 etc. which use an ESP8266EX (most use the same HW).
                https://www.amazon.com/Monitoring-Compatible-Asistant-Required-Anywhere/dp/B076VMNNRZ/ref=sr_1_fkmr0_2?s=hi&ie=UTF8&qid=1522098551&sr=1-2-fkmr0&keywords=gosund+sp1 I use the EU plug version from Amazon.de.

                To your comment what advantage the ESP board has: I have tried to explain: It has the ESP32, the RFM95 and the LiPo switch/Charger all on one board without any soldering required and thus very small for 3 required features, For the Gateway, also the on baord OLED can be used. In total, it's not more expensive than all three parts extra and need less space no soldering etc.

                So that is all for today. I hope I get some positive feedback and thanks again for the good work.

                Heinz

                gohanG 1 Reply Last reply
                1
                • scalzS Offline
                  scalzS Offline
                  scalz
                  Hardware Contributor
                  wrote on last edited by scalz
                  #12

                  regarding esp8266 vs esp32, I think this is not comparable, esp32 is far more powerful, so it can do more better.
                  I use MySensors with esp32 as gw too, betatesting with tekka for months, still testing and having fun on my side.
                  Stay tuned and you might see some nice upcoming stuff ;)

                  @heinzv said in ESP32 Support to enable the powerful ESP32 + RFM95/Lora + LiPo battery boards:

                  @mfalkvidd and tekka007:
                  I used this board
                  https://www.aliexpress.com/item/SX1276-ESP32-LoRa-868MHz-915MHz-0-96-Inch-Blue-OLED-Display-Bluetooth-WIFI-Lora-Kit/32838226825.html?spm=2114.search0104.3.1.6a9b1590hjCRnJ&ws_ab_test=searchweb0_0%2Csearchweb201602_5_10152_10151_10065_10344_10068_10547_10342_10343_10340_10548_10341_10696_10084_10083_10618_10304_10307_10302_5711215_10313_10059_10534_100031_10103_10624_10623_10622_10621_10620-10152_10151%2Csearchweb201603_6%2CppcSwitch_3&algo_expid=c4550361-2189-418e-a3f9-0aa963e5a76a-0&algo_pvid=c4550361-2189-418e-a3f9-0aa963e5a76a&priceBeautifyAB=0

                  there are cheaper ones without OLED display, only ESP32 + RFM95 + LiPo power/changer
                  https://www.aliexpress.com/item/SX1278-LoRa-ESP32-Bluetooth-WI-FI-Lora-Internet-Antena-Placa-de-Desenvolvimento-for-Arduino-TTGO/32827824992.html?spm=2114.search0104.3.160.4dcc3d63m7idho&ws_ab_test=searchweb0_0,searchweb201602_5_10152_10151_10065_10344_10068_10547_10342_10343_10340_10548_10341_10696_10084_10083_10618_10304_10307_10302_5711213_10313_10059_10534_100031_10103_10624_10623_10622_10621_10620,searchweb201603_6,ppcSwitch_3&algo_expid=a4163100-0f10-4b08-bfe3-3d1a2e143f0f-22&algo_pvid=a4163100-0f10-4b08-bfe3-3d1a2e143f0f&priceBeautifyAB=0

                  I understand people like cheap price, but you don't always get what you would expect. aliexpress boards doesn't always rhyme with quality..

                  Just take a look at their wifi antenna design, and you might laugh, I do!
                  The first link looks ok, the placement of the wifi antenna could be better for a devboard.
                  But the 2nd link is really funny to see! And I'm pretty sure that if espressif saw this, they laughed too :smile:
                  Finally what to think of these designers..and LORA designs or rf skills. not really fcc stuff for sure!

                  Regarding epaper, new sensors or things like that, it can already be used in MySensors, why not? but I don't think it is up to MySensors to handle this, it's up to the users to make sketch.
                  Types are already available in MySensors I think.

                  H 1 Reply Last reply
                  1
                  • scalzS scalz

                    regarding esp8266 vs esp32, I think this is not comparable, esp32 is far more powerful, so it can do more better.
                    I use MySensors with esp32 as gw too, betatesting with tekka for months, still testing and having fun on my side.
                    Stay tuned and you might see some nice upcoming stuff ;)

                    @heinzv said in ESP32 Support to enable the powerful ESP32 + RFM95/Lora + LiPo battery boards:

                    @mfalkvidd and tekka007:
                    I used this board
                    https://www.aliexpress.com/item/SX1276-ESP32-LoRa-868MHz-915MHz-0-96-Inch-Blue-OLED-Display-Bluetooth-WIFI-Lora-Kit/32838226825.html?spm=2114.search0104.3.1.6a9b1590hjCRnJ&ws_ab_test=searchweb0_0%2Csearchweb201602_5_10152_10151_10065_10344_10068_10547_10342_10343_10340_10548_10341_10696_10084_10083_10618_10304_10307_10302_5711215_10313_10059_10534_100031_10103_10624_10623_10622_10621_10620-10152_10151%2Csearchweb201603_6%2CppcSwitch_3&algo_expid=c4550361-2189-418e-a3f9-0aa963e5a76a-0&algo_pvid=c4550361-2189-418e-a3f9-0aa963e5a76a&priceBeautifyAB=0

                    there are cheaper ones without OLED display, only ESP32 + RFM95 + LiPo power/changer
                    https://www.aliexpress.com/item/SX1278-LoRa-ESP32-Bluetooth-WI-FI-Lora-Internet-Antena-Placa-de-Desenvolvimento-for-Arduino-TTGO/32827824992.html?spm=2114.search0104.3.160.4dcc3d63m7idho&ws_ab_test=searchweb0_0,searchweb201602_5_10152_10151_10065_10344_10068_10547_10342_10343_10340_10548_10341_10696_10084_10083_10618_10304_10307_10302_5711213_10313_10059_10534_100031_10103_10624_10623_10622_10621_10620,searchweb201603_6,ppcSwitch_3&algo_expid=a4163100-0f10-4b08-bfe3-3d1a2e143f0f-22&algo_pvid=a4163100-0f10-4b08-bfe3-3d1a2e143f0f&priceBeautifyAB=0

                    I understand people like cheap price, but you don't always get what you would expect. aliexpress boards doesn't always rhyme with quality..

                    Just take a look at their wifi antenna design, and you might laugh, I do!
                    The first link looks ok, the placement of the wifi antenna could be better for a devboard.
                    But the 2nd link is really funny to see! And I'm pretty sure that if espressif saw this, they laughed too :smile:
                    Finally what to think of these designers..and LORA designs or rf skills. not really fcc stuff for sure!

                    Regarding epaper, new sensors or things like that, it can already be used in MySensors, why not? but I don't think it is up to MySensors to handle this, it's up to the users to make sketch.
                    Types are already available in MySensors I think.

                    H Offline
                    H Offline
                    heinzv
                    wrote on last edited by heinzv
                    #13

                    @scalz I agree with your statements. I like both the ESP8266/8285 as you get super-tiny and very cheap boards (like the ESP12-F) if you need only WiFi.
                    For many cases, it is sufficient. What I like with the ESP32 boards is that you get battery support + charging and also RFM chips on board. So a single board with all I need for battery powered devices.
                    For Gateways it's also ideal because much more powerfull dual core CPU (if that is really required) and BLE + 868MHz all on a small single board.

                    I'm fine with the Aliexpress boards for home usage. Even the RF design might be not high quality it is more than sufficient within a flat/house even with 10mW. dis a couple of distance testing in my flat. And the RFM95 can be SW configured up to 100mW (I rather use 10 to max 20mW).

                    I also like the e-paper (1.54" with 200x200 resolution for 10€). Works fine and need almost no power. For the Gateway, The onboard OLED for control/diagnostic/config infos is also usable.

                    Looking forward to see more cool stuff.

                    1 Reply Last reply
                    0
                    • scalzS Offline
                      scalzS Offline
                      scalz
                      Hardware Contributor
                      wrote on last edited by scalz
                      #14

                      @heinzv that's what I said! I prefer esp32 too :) I have a some esp8266 that I'll never use because I didn't like it, it was limited imho..

                      nowadays, why using oled,epaper etc on a gw when you have a mobile! web/native mobile app are a lot more "waf" and interactive, display is less limited too ;)

                      H 1 Reply Last reply
                      0
                      • scalzS scalz

                        @heinzv that's what I said! I prefer esp32 too :) I have a some esp8266 that I'll never use because I didn't like it, it was limited imho..

                        nowadays, why using oled,epaper etc on a gw when you have a mobile! web/native mobile app are a lot more "waf" and interactive, display is less limited too ;)

                        H Offline
                        H Offline
                        heinzv
                        wrote on last edited by
                        #15

                        @scalz Mobile comes of course on top, but having wall mounted sensors without any display is not really convinient. And for the gateway OLED could be used just showing the state, IP address etc. not more.

                        scalzS 1 Reply Last reply
                        0
                        • H heinzv

                          @mfalkvidd great guys, excellent work! I'll do more testing in the upcomming days with more features and will give you certainly feedback.

                          Here is what I want to build and what additional features might be nice, but I can try to implement also parts by myself:

                          I'm trying to build some temp/humitity/pressure sensor with e-paper display (I have a couple of 1.54 to 2.9" e-papers) in a small enclosure with a Litium battery. Each sensor with e-paper in each room connected to the MQTT Gateway to an OpenHAB based home automation. This will control some IR heating panels.
                          On my reseach, I found the SHT31 from Sensirion as very accurate temp/humidity (better than others like the DHT22) with an additional Bosch BME280 both are supported by MySensors (very nice).

                          I also have seen that there is a feature to get the system time from the Gateway/Controller so that the e-paper display of the sensor nodes can show the date/time/weekday (the ESP32 has a build in RTC even during deep sleep).
                          Battery sensor support is also there to show the battery state on the e-paper. So I hope I can that working with the build in ADC's.

                          So what might is probaly missing is a standard e-paper support. That would be nice (most brands are compatible, I use the ones from Waveshare) to build sensors with display where the battery last for a year+.

                          Another thing - not sure if it fit's to the MySensors scope would be to control remote smart power plugs with energy monitor (868MHz or WiFi). Would that be possible?
                          THere are nice ones available for 15-20€ WiFi which have an energy monitor built in. Such as Gosund SP1 or Homecube SP1 etc. which use an ESP8266EX (most use the same HW).
                          https://www.amazon.com/Monitoring-Compatible-Asistant-Required-Anywhere/dp/B076VMNNRZ/ref=sr_1_fkmr0_2?s=hi&ie=UTF8&qid=1522098551&sr=1-2-fkmr0&keywords=gosund+sp1 I use the EU plug version from Amazon.de.

                          To your comment what advantage the ESP board has: I have tried to explain: It has the ESP32, the RFM95 and the LiPo switch/Charger all on one board without any soldering required and thus very small for 3 required features, For the Gateway, also the on baord OLED can be used. In total, it's not more expensive than all three parts extra and need less space no soldering etc.

                          So that is all for today. I hope I get some positive feedback and thanks again for the good work.

                          Heinz

                          gohanG Offline
                          gohanG Offline
                          gohan
                          Mod
                          wrote on last edited by
                          #16

                          @heinzv for smart wifi socket, look at Tasmota or other similar sw for those esp8266 based sockets, maybe they added support for them.

                          H 1 Reply Last reply
                          1
                          • H heinzv

                            @scalz Mobile comes of course on top, but having wall mounted sensors without any display is not really convinient. And for the gateway OLED could be used just showing the state, IP address etc. not more.

                            scalzS Offline
                            scalzS Offline
                            scalz
                            Hardware Contributor
                            wrote on last edited by scalz
                            #17

                            @heinzv said in ESP32 Support to enable the powerful ESP32 + RFM95/Lora + LiPo battery boards:

                            @scalz Mobile comes of course on top, but having wall mounted sensors without any display is not really convinient. And for the gateway OLED could be used just showing the state, IP address etc. not more.

                            on my side, I bet on voice control to retrieve infos, so no need of wall mounted sensor displays. for more detailed infos, mobile etc for example. Simple, like this I can have very discrete sensor without exhibiting them on walls, especially with "unpolished display enclosure", I mean it's easier to make a simple 3d printed discrete enclosure than having to polish it a lot because of the display to have a neat result if wall mounted.
                            One of my goal is the house smart/simple/no maintenance(optimized battery lifetime) enough so i don't need any displays except for data visualization but that's not the purpose of these simple room displays..visualization can be done on TV, smart mirrors etc, only the basic we already use for home, without any addition.

                            I understand your point, matter of taste I guess :)

                            1 Reply Last reply
                            0
                            • gohanG gohan

                              @heinzv for smart wifi socket, look at Tasmota or other similar sw for those esp8266 based sockets, maybe they added support for them.

                              H Offline
                              H Offline
                              heinzv
                              wrote on last edited by
                              #18

                              @gohan I have some Sonoff Smart Plugs (S20) with Tasmota SW and it works with OpenHAB, but has no energy monitor. They (Sonoff, ITEAD) have currently no EU version with Energy Monitor (only the S31 Plug = US version).
                              The Gosund/Homecube/* SP1 has both and has en ESP8266X and I have dumped the Flash (soldering the RX/TX pins) but I have not found a custom firmware which can be used with the Energy Monitor chip. I have not even found out data for the Chip named (3 lines): HJL-01 J1749 CYH D797480E.
                              I know that one of the experts has connected a logical analyzer to another comerical product and has sniffed/found out the protocol of that chip and write a driver. I was hoping that somebody has the motivation/skill/instruments to also hack one of that attractive plugs.

                              1 Reply Last reply
                              0
                              • H Offline
                                H Offline
                                heinzv
                                wrote on last edited by heinzv
                                #19

                                if somebody is interested how the small ESP8266EX smart plug (SP1) looks inside.
                                The second picture shows the energy monitor chip. I think that is the challenge to find a driver for that and read the values (voltage, amps etc.). If somebody (with a logical analyzer?) wants to be a hero :-)
                                I don't like the original firmware as it only works with Chinese Clouds. I need LAN and OpenHAB support.
                                0_1522103686394_20180312_223001.jpg 0_1522103690802_20180312_223013.jpg

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

                                  I thought ESP32 was too power hungry to run for long off a battery. So, maybe for a gateway, but I suspect that's it. Right? I think this largely answers the OP.

                                  H 1 Reply Last reply
                                  0
                                  • NeverDieN NeverDie

                                    I thought ESP32 was too power hungry to run for long off a battery. So, maybe for a gateway, but I suspect that's it. Right? I think this largely answers the OP.

                                    H Offline
                                    H Offline
                                    heinzv
                                    wrote on last edited by heinzv
                                    #21

                                    @neverdie not really, if you read the data sheets from ESP32 and do some google reseach, you'll find that the ESP32 has a compareable average power consumtion than the ESP8266, between 30-240mA when radio is on and <6uA in deep sleep. THe ESP32 has an ultra low power co-processor (ULP). So perfect for battery usage for sensor nodes. It can just provide more CPU power if you need it.

                                    http://technostuff.blogspot.co.at/2017/10/specifications-esp8266-esp32-mcu-xtensa.html.

                                    http://bbs.esp32.com/viewtopic.php?t=4073
                                    statement from a user: "Look at Esp32 technical reference manual chapter 29.3.9.
                                    There are also many references to power consumption in this forum and elsewhere. Try to "investigate" more thoroughly. I'm using esp32 with battery and I can get <6 uA consumption in deep sleep mode."

                                    https://blog.adafruit.com/2018/02/20/deep-sleep-tutorial-for-esp32-using-the-rtc-ulp-co-processor-and-two-lines-of-code/

                                    1 Reply Last reply
                                    0
                                    • scalzS Offline
                                      scalzS Offline
                                      scalz
                                      Hardware Contributor
                                      wrote on last edited by scalz
                                      #22

                                      @NeverDie you're right. and for home use+coincell, regarding internal resistance vs RF TX etc, nrf52 is still a better bet I think ;)

                                      but as usual, power consumption is not about numbers only.. it depends on a lot of factors (sdk, hw design etc).

                                      @heinzv
                                      I'm also a esp32 forum reader, etc. and don't get me wrong, esp32 is nice as it's my favorite for a gw.
                                      I already designed a few boards for esp32, some very old with lora when esp32 was just released.., and I like a lot looking at hw designs.
                                      And what I can tell, is the boards you linked will never reach the uA range, they may stay in mA range!
                                      Have you measured power consumption of yours?

                                      • the ulp functions are not integrated in arduino yet. yes, more than a year that esp32 is there, but I think they are very busy with esp-idf. there a few posts about ULP in the arduino section, soon or later, this should be available.
                                      • the esp32 user you mentioned on the esp32 forum, is well known, agreed, and I don't think he reached 6uA with the boards you linked. I think he got this with custom board or standalone mcu. Not sure, if he used arduino too, maybe esp-idf only. Sure it's possible to import arduino as a component in esp-idf, I don't think most of people go this way..
                                      • the boards you linked will also never reach these low power consumption because of their circuit design, they are not optimized!
                                        https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/issues/6
                                        And if you take a look at TTN forums, you'll see same feedbacks..
                                        That's the same for lolin boards..

                                      Like I said, if you're searching for uA range, a board looking cheap doesn't make it a good deal..
                                      I feel this more a battle about who sells more than who sells good quality, and they have cheaper fab cost, sourcing cost, tax, free shipping etc so that's easier. And then buyers see great price and buy, and stores sell, sell volume, because unfortunately not all buyers have insightful eyes!
                                      Good for stores, the cheap price trick will always work, sort of societal problem!
                                      I noticed also same kind of problems on some tindie stores, so that's not ali only. Maybe good for devboard (and that's depends on the feature you want to test), but then in production it's another story.
                                      And for example, I wouldn't like to have neighboors with bad rf designs polluting my frequencies (hopefully I live in country side).

                                      I'm sure you'll find some good use for your boards, unfortunately not with a great battery lifetime. Here, I'm always after n years of operation than 6months-a year, I prefer less maintenance on nodes.

                                      about your wallplug device, I don't have this device so I can't tell on my side. The ic reference you mentioned may be not related to the ic part but just an id. did you say that someone hacked a similar ic? if you have a link we maybe could help, software then should be a piece of cake :)

                                      1 Reply Last reply
                                      1
                                      • gohanG Offline
                                        gohanG Offline
                                        gohan
                                        Mod
                                        wrote on last edited by
                                        #23

                                        I agree, if you want a low sleeping current device, you have to go the barebone way: what is not on a board it doesn't draw any current. :)

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

                                          All that said, I like LoRa a lot. Practically speaking, in a home environment the packets get to their destination virtually every time on the first try. That's big! I just don't see the "need" on a battery operated LoRa for an ESP32, that's all. But maybe that's just me, as I'm doing fairly simple stuff. Perhaps for the OP, the mere existence of off-the-shelf integrated boards makes them more convenient to acquire and use. At least I could imagine that being true for some people. That may be a not insubstantial market segment.

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


                                          12

                                          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