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. My Project
  3. Slim Node Si7021 sensor example

Slim Node Si7021 sensor example

Scheduled Pinned Locked Moved My Project
137 Posts 18 Posters 64.8k Views 20 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.
  • W wergeld

    So, after a few months of 2 nodes up and running using the HTU21D sensor I have come the conclusion that the HTU21D is no good for where I live. Lately it has been getting cooler outside (down to mid 50s F) but humidity is still high. As the evening progresses the humidity gets to 100% and the node no longer sends data. This happens around 6pm every day (about half and hour after sunset). It then comes back online at about 10 am the next day. The node that I have inside does not have this issue (same shipment of arduino, pcb, and HTU21D sensors and the same arduino code). Both running off of fresh AAs. May need to upgrade to the SI7021 for outside node.

    Here is the graph showing last 7 days. As you can see it flatlines (literally!) at 100% humidity!

    0_1482948446815_outsideHTU21D.jpeg

    All good times with the learning!

    m26872M Offline
    m26872M Offline
    m26872
    Hardware Contributor
    wrote on last edited by
    #126

    @wergeld Relative humidity at 100% during night sounds very realistic to me. Are you confusing it with the "absolute humidity"? Or is your concern that the "force transmit" isn't working?

    1 Reply Last reply
    0
    • bjacobseB Offline
      bjacobseB Offline
      bjacobse
      wrote on last edited by
      #127

      Mine does the same, but it's also very humid at night - I think this is normal behavoir

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wergeld
        wrote on last edited by
        #128

        @m26872 & @bjacobse - Yes, 100% humidity is normal here. Good old Florida! My concern is that the node stops reporting. Possibly due to condensation shorting out something. During the summer here we also hit 100% humidity but it is also a lot hotter (high 90s). Now, I think that the cooler temps are forcing a dew point that is allowing water to condense on the node. Then during the morning it drys out and resumes transmitting. I would like to find a way to stop this.

        m26872M 1 Reply Last reply
        0
        • W wergeld

          @m26872 & @bjacobse - Yes, 100% humidity is normal here. Good old Florida! My concern is that the node stops reporting. Possibly due to condensation shorting out something. During the summer here we also hit 100% humidity but it is also a lot hotter (high 90s). Now, I think that the cooler temps are forcing a dew point that is allowing water to condense on the node. Then during the morning it drys out and resumes transmitting. I would like to find a way to stop this.

          m26872M Offline
          m26872M Offline
          m26872
          Hardware Contributor
          wrote on last edited by
          #129

          @wergeld
          https://forum.mysensors.org/topic/1560/how-to-protect-your-outdoor-sensor

          W 1 Reply Last reply
          1
          • m26872M m26872

            @wergeld
            https://forum.mysensors.org/topic/1560/how-to-protect-your-outdoor-sensor

            W Offline
            W Offline
            wergeld
            wrote on last edited by
            #130

            @m26872 I have looked at a lot of those links. I am leaning towards covering my node in non-reactive glue. This will seal all contacts. The only part that would be difficult would be the actual teeny tiny sensor chip on the HTU21D. Hopefully any condensation there can be minimal. The next step would be to make sure the battery case is sealed as well (although I do not think this will be much of an issue).

            1 Reply Last reply
            0
            • bjacobseB Offline
              bjacobseB Offline
              bjacobse
              wrote on last edited by
              #131

              Do you have some battery saving stuff in your code, so you maybe wakeup check temp + humidity, and if they are same value as previous, then go back to sleep - no need to use battery usage to send same values again, this can cause your sensor to not report values

              W 1 Reply Last reply
              0
              • bjacobseB bjacobse

                Do you have some battery saving stuff in your code, so you maybe wakeup check temp + humidity, and if they are same value as previous, then go back to sleep - no need to use battery usage to send same values again, this can cause your sensor to not report values

                W Offline
                W Offline
                wergeld
                wrote on last edited by
                #132

                @bjacobse Yes, I am checking the values and if the same as last transmission I abort and go back to sleep. If, however, it has been 3 hours since last transmission I force it to send.

                1 Reply Last reply
                0
                • E Offline
                  E Offline
                  Eawo
                  wrote on last edited by Eawo
                  #133

                  I've done 6 nodes off this sensor. Do I have to change something else then node id? Also I'm using the 1mhz bootloader with bud rate 9200 should I change that in the sketch?

                  Seems like I only get the temprature and humidity once on first start up...

                  Edit:
                  I think my problem is that I haven't changed the bud rate in mysensors.h file. I've just reinstalled everything now and I don't know how to get si7021 installed the right way. I installed the package inside arduino but it doesn't work.
                  I such a noob sorry guys

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    Eawo
                    wrote on last edited by
                    #134

                    I have problem to get my sensors to work. Thay start up and shows a not so accurate value sometimes and thay report once or twice but then never again. I thought it was because buad rate was wrong in the MyConfig.H file. Now i changed that and i tried a few different codes and librarys. Nothing seems to work.

                    So my question is which code and library should i use?

                    I got the slim node and sensor as in the first post.
                    Im running 1mhz optiboot bootloader from the slim node thread
                    And i updated mysensors to 2.1.

                    m26872M 1 Reply Last reply
                    0
                    • E Eawo

                      I have problem to get my sensors to work. Thay start up and shows a not so accurate value sometimes and thay report once or twice but then never again. I thought it was because buad rate was wrong in the MyConfig.H file. Now i changed that and i tried a few different codes and librarys. Nothing seems to work.

                      So my question is which code and library should i use?

                      I got the slim node and sensor as in the first post.
                      Im running 1mhz optiboot bootloader from the slim node thread
                      And i updated mysensors to 2.1.

                      m26872M Offline
                      m26872M Offline
                      m26872
                      Hardware Contributor
                      wrote on last edited by
                      #135

                      @Eawo Sorry for a late reply. Please post your sketch to begin with.
                      Do you have v2.1 for both gateway and sensors?
                      "#define MY_BAUD_RATE 9600" should be before the "include MySensors.h" and that should be all regarding baud rate setting. No need to mess with MyConfig.h in v2.x.
                      A lot of the SlimNode example codes are still in v1.x unfortunately. So please look at more recent post above in this thread instead for v2.x.

                      To verify the Si7021 you should use a clean Arduino+Si7021 setup with the only hw/sw needed for that, i.e. no radio or MySensors-library. Si7021-example sketches generally comes with the lib.

                      1 Reply Last reply
                      0
                      • E Offline
                        E Offline
                        Eawo
                        wrote on last edited by
                        #136

                        Ok i redid everything from skratch and now i got it working atleast with 1 node havnt tried the other yet.
                        I used the code miljume did link the only line i changed was
                        #include <SI7021-master\SI7021.h>
                        to
                        #include <SI7021.h>
                        It is working but it shows up as 2 nodes in domoticz
                        1401 0 TempHum Temp + Humidity WTGR800 20.9 C, 35 % 2017-01-19 17:59:05
                        1400 0 TempHum Temp + Humidity WTGR800 20.7 C, 34 % 2017-01-19 17:59:05
                        anyone know why?
                        also this does report every 60sec will this be short battery life?

                        miljumeM 1 Reply Last reply
                        0
                        • E Eawo

                          Ok i redid everything from skratch and now i got it working atleast with 1 node havnt tried the other yet.
                          I used the code miljume did link the only line i changed was
                          #include <SI7021-master\SI7021.h>
                          to
                          #include <SI7021.h>
                          It is working but it shows up as 2 nodes in domoticz
                          1401 0 TempHum Temp + Humidity WTGR800 20.9 C, 35 % 2017-01-19 17:59:05
                          1400 0 TempHum Temp + Humidity WTGR800 20.7 C, 34 % 2017-01-19 17:59:05
                          anyone know why?
                          also this does report every 60sec will this be short battery life?

                          miljumeM Offline
                          miljumeM Offline
                          miljume
                          wrote on last edited by
                          #137

                          @Eawo Domoticz groups sensors after the order you present them in, see: https://forum.mysensors.org/topic/5132/ds18b20-ans-sht31-d-show-up-as-combined-sensors-on-domoticz/15

                          I send every 5 minutes and check the value before so that I only send if the value has changed

                          I have been running my sensor for nearly 2 months now and battery level has only decreased 1-2%

                          Make sure you use 1 MHz bootloader

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


                          17

                          Online

                          11.7k

                          Users

                          11.2k

                          Topics

                          113.0k

                          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