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. Hardware
  3. Wemos XI

Wemos XI

Scheduled Pinned Locked Moved Hardware
17 Posts 6 Posters 9.3k Views 9 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.
  • Nca78N Offline
    Nca78N Offline
    Nca78
    Hardware Contributor
    wrote on last edited by
    #4

    I have one already, but didn't have time to play with it yet.
    MCU is a chinese clone of the atmega 328 so wether or not it's a good alternative for battery powered nodes is yet to see, as the power saving functions/sleep modes etc might not be as efficient as the original...

    mfalkviddM 1 Reply Last reply
    0
    • Nca78N Nca78

      I have one already, but didn't have time to play with it yet.
      MCU is a chinese clone of the atmega 328 so wether or not it's a good alternative for battery powered nodes is yet to see, as the power saving functions/sleep modes etc might not be as efficient as the original...

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #5

      @Nca78 from what I can read from the chines datasheet, it is efficient. But of course the datasheet would claim that :)

      1 Reply Last reply
      0
      • Nca78N Offline
        Nca78N Offline
        Nca78
        Hardware Contributor
        wrote on last edited by
        #6

        I have some PCBs to finish first so I can get them before Chinese & Vietnamese new year, then I'll take time to make some basic tests.
        I will see if the "more efficiency" and "more easy" ( :D ) claims made in the "datasheet" (looks more like a commercial leaflet for me...) are true or not.

        mfalkviddM 1 Reply Last reply
        1
        • Nca78N Nca78

          I have some PCBs to finish first so I can get them before Chinese & Vietnamese new year, then I'll take time to make some basic tests.
          I will see if the "more efficiency" and "more easy" ( :D ) claims made in the "datasheet" (looks more like a commercial leaflet for me...) are true or not.

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

          @Nca78 there is a "real" datasheet as well, but only in Chinese. http://www.ocrobot.com/lib/exe/fetch.php?media=zh:ocrobot:alpha:8f328d:lgt8fx8d-series-databook-v1.0.1.pdf

          The absolute maximum ratings tables at the end are pretty readable though.

          1 Reply Last reply
          1
          • korttomaK Offline
            korttomaK Offline
            korttoma
            Hero Member
            wrote on last edited by
            #8

            Received som WeMos XI modules the other day and I tried to compile a sketch for it but I ran in to some trouble:

            WARNING: library MySensors claims to run on [avr architecture(s) and may be incompatible with your current board which runs on esp8266 architecture(s).
            
            • Tomas
            1 Reply Last reply
            0
            • korttomaK Offline
              korttomaK Offline
              korttoma
              Hero Member
              wrote on last edited by
              #9

              Got a little bit further by adding the following to the sketch:

              #define ARDUINO_ARCH_ESP8266
              

              Now I get the following error:

              \Arduino\libraries\MySensors/core/MyMainESP8266.cpp:22:22: fatal error: Schedule.h: No such file or directory
              
               #include "Schedule.h"
              
                                    ^
              
              compilation terminated.
              
              exit status 1
              Error compiling for board WEMOS XI.
              
              This report would have more information with
              "Show verbose output during compilation"
              option enabled in File -> Preferences.
              

              I really don't know what I'm doing here but I will try adding the Schedule.h file from somewhere to somewhere...

              • Tomas
              1 Reply Last reply
              0
              • korttomaK Offline
                korttomaK Offline
                korttoma
                Hero Member
                wrote on last edited by
                #10

                Adding the Schedule.h to the MySensors core library folder just makes it ask for the next thing that is missing so I think I will leave this to someone who knows what they are doing.

                • Tomas
                EfflonE 1 Reply Last reply
                0
                • korttomaK korttoma

                  Adding the Schedule.h to the MySensors core library folder just makes it ask for the next thing that is missing so I think I will leave this to someone who knows what they are doing.

                  EfflonE Offline
                  EfflonE Offline
                  Efflon
                  wrote on last edited by
                  #11

                  @korttoma Why use ESP8266? isnt it 328 clone so you could use Mini pro in arduino ?

                  1 Reply Last reply
                  2
                  • L Offline
                    L Offline
                    lorisc
                    wrote on last edited by
                    #12

                    I got too myself some boards. XI is indeed a 382 clone, but it seems that the XI core library is missing yield() functionality.
                    I managed to compile my mysensors sketch with first forcing the #define ARDUINO_ARCH_AVR in the sketch and
                    with some modifications at the XI core library:

                    • I added the void yield(void); somewhere in ..\ARDUINO\hardware\wemos\XI\cores\lgt8f\Arduino.h
                      0_1486110116662_ardo_h.JPG
                    • I added the hooks.c file to ..\ARDUINO\hardware\wemos\XI\cores\lgt8f\ from https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/hooks.c

                    However i did not yet upload the sketch to the board, I'll later when I get home.

                    korttomaK 1 Reply Last reply
                    2
                    • L lorisc

                      I got too myself some boards. XI is indeed a 382 clone, but it seems that the XI core library is missing yield() functionality.
                      I managed to compile my mysensors sketch with first forcing the #define ARDUINO_ARCH_AVR in the sketch and
                      with some modifications at the XI core library:

                      • I added the void yield(void); somewhere in ..\ARDUINO\hardware\wemos\XI\cores\lgt8f\Arduino.h
                        0_1486110116662_ardo_h.JPG
                      • I added the hooks.c file to ..\ARDUINO\hardware\wemos\XI\cores\lgt8f\ from https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/hooks.c

                      However i did not yet upload the sketch to the board, I'll later when I get home.

                      korttomaK Offline
                      korttomaK Offline
                      korttoma
                      Hero Member
                      wrote on last edited by korttoma
                      #13

                      Thanks @lorisc ! I managed to compile my sketch with the changes you suggested. Going to wait for your test results before I load anything to my board.

                      • Tomas
                      1 Reply Last reply
                      1
                      • Nca78N Offline
                        Nca78N Offline
                        Nca78
                        Hardware Contributor
                        wrote on last edited by
                        #14

                        Missed the post from @lorisc it would have saved me some time as I ended up doing the same modifications :)
                        Uploaded to a board and connected NRF24 with the same pin numbers than on normal Arduino: it runs.

                        Tested the sleep() function from MySensors but it's not so great at the moment, using 1.5mA, I'll have to check why.

                        1 Reply Last reply
                        0
                        • Nca78N Offline
                          Nca78N Offline
                          Nca78
                          Hardware Contributor
                          wrote on last edited by Nca78
                          #15

                          I have just tested the sleep modes from the examples supplied with the lgt8 core, and all I can say is it's pretty disappointing :(

                          Even in PM_POFFS1 mode which is the lowest power mode possible (only wakes up with external interrupt) it consumes over 80µA.
                          There must be some settings that can be improved to get closer to what the datasheet seems to claim, but it's pretty hard to guess how we are supposed to do that with a chinese language datasheet...

                          EDIT: when I force pins to OUTPUT + LOW the power consumption drops significantly, it's below 20µA now. If someone has some knowledge in Chinese to find out if/how we can disable ADC/SPI/... that could get interesting.
                          But without proper sleep functions the Xi loses most of it's interest as battery powered sensor (low minimal voltage, no regulator & power led to remove etc). Only interest at the moment would be the 2 DACs that the atmega doesn't have, but that's of very marginal interest for MySensors. It doesn't even have a cost advantage as it's only 0.30$ cheaper that pro mini but with shipping fee.

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

                            So is this board really not good for battery powered sensors?

                            Nca78N 1 Reply Last reply
                            0
                            • gohanG gohan

                              So is this board really not good for battery powered sensors?

                              Nca78N Offline
                              Nca78N Offline
                              Nca78
                              Hardware Contributor
                              wrote on last edited by
                              #17

                              @gohan said in Wemos XI:

                              So is this board really not good for battery powered sensors?

                              IMHO not at the moment and I don't think it will change soon as doc from wemos or the chip manufacturer are still very poor.
                              I fail to see the interest of the this board compared to a pro mini clone, except saving 0.5$. There's no obvious way to make it really low power and you have a different pinout so you can't use any of the existing PCBs.

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


                              29

                              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