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. Development
  3. SI7021 Multisensor - first try

SI7021 Multisensor - first try

Scheduled Pinned Locked Moved Development
multisensorsi7021
26 Posts 9 Posters 20.2k Views 6 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.
  • tbowmoT Offline
    tbowmoT Offline
    tbowmo
    Admin
    wrote on last edited by
    #10

    @n3ro

    Sorry didn't come around to answer you, but it seems that others picked up on my hint :)

    Have you uncommented #define DEBUG line in MyConfig.h? If not, then that's why there is still debug..

    n3roN 1 Reply Last reply
    0
    • n3roN Offline
      n3roN Offline
      n3ro
      wrote on last edited by
      #11

      Perfect =)

      // Enable debug flag for debug prints. This will add a lot to the size of the final sketch but good
      // to see what is actually is happening when developing
      //#define DEBUG
      

      pimatic + MySensors + Homeduino + z-way
      https://github.com/n3roGit/MySensors_n3ro

      1 Reply Last reply
      0
      • tbowmoT tbowmo

        @n3ro

        Sorry didn't come around to answer you, but it seems that others picked up on my hint :)

        Have you uncommented #define DEBUG line in MyConfig.h? If not, then that's why there is still debug..

        n3roN Offline
        n3roN Offline
        n3ro
        wrote on last edited by
        #12

        @tbowmo
        why i cant see the debug information "ratio failed" or sending commands if debug is only enabled in the sketch? :)

        pimatic + MySensors + Homeduino + z-way
        https://github.com/n3roGit/MySensors_n3ro

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

          Speaking of the Si021, has anyone tried to use 2 Si7021 sensors on the same node?

          • Tomas
          AWIA R 2 Replies Last reply
          0
          • korttomaK korttoma

            Speaking of the Si021, has anyone tried to use 2 Si7021 sensors on the same node?

            AWIA Offline
            AWIA Offline
            AWI
            Hero Member
            wrote on last edited by
            #14

            @korttoma I would expect it does not work because these use the same I2C address...

            1 Reply Last reply
            0
            • tbowmoT Offline
              tbowmoT Offline
              tbowmo
              Admin
              wrote on last edited by
              #15

              @n3ro

              It's the way that the libraries are build.. They don't care about how your defines are in your sketch (unless you are on dev branch of the mysensors library.. We are bending arduino build system in that one)

              @korttoma

              Si7021 has a fixed i2c bus address, so only one can exists on each i2c bus. You could of course use bitbanging to create a second one. But why do you want to have multiple Si7021 on one node?

              korttomaK 1 Reply Last reply
              0
              • tbowmoT tbowmo

                @n3ro

                It's the way that the libraries are build.. They don't care about how your defines are in your sketch (unless you are on dev branch of the mysensors library.. We are bending arduino build system in that one)

                @korttoma

                Si7021 has a fixed i2c bus address, so only one can exists on each i2c bus. You could of course use bitbanging to create a second one. But why do you want to have multiple Si7021 on one node?

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

                @tbowmo said:

                But why do you want to have multiple Si7021 on one node?

                I was going to use a sensbender node in a location where I would have needed to use an external sensor and instead of attempting to remove the Si7021 from the sensbender I would have just added another (external) one if it was possible. Is there any other temperature sensor that is as good as the Si7021 in battery applications that I could use instead?

                • Tomas
                1 Reply Last reply
                0
                • n3roN n3ro

                  Big THX,

                  now i have understand how to use the si7021 :)

                  Reading works great!

                  But the sleeping current is very high ~1500uA

                  R Offline
                  R Offline
                  riataman
                  wrote on last edited by riataman
                  #17

                  @n3ro said:

                  Big THX,

                  now i have understand how to use the si7021 :)

                  Reading works great!

                  But the sleeping current is very high ~1500uA

                  If you got this breakout: http://www.aliexpress.com/item/Industrial-High-Precision-Si7021-Humidity-Sensor-with-I2C-Interface-for-Arduino/32340228487.html?ws_ab_test=searchweb201556_1_79_78_77_80,searchweb201644_5,searchweb201560_1 it includes a 3.3v regulator and level shifting so you can actually use the sensor with a 5v arduino but it consumes quite a bit of current (60uA in the ones I got) even when idling.

                  What I did was desolder the regulator and solder a small wire to bypass it (sorry for potato quality pic).

                  gy21.png

                  Then I ordered this breakout for future nodes: http://www.aliexpress.com/item/New-HTU21D-Temperature-and-Humidity-Sensor-Module/1970355069.html?ws_ab_test=searchweb201556_1_79_78_77_80,searchweb201644_5,searchweb201560_1 that one doesn't seem to include any additional circuits (other than the pull up resistor and safety? resistor).

                  n3roN M 2 Replies Last reply
                  1
                  • korttomaK korttoma

                    Speaking of the Si021, has anyone tried to use 2 Si7021 sensors on the same node?

                    R Offline
                    R Offline
                    riataman
                    wrote on last edited by
                    #18

                    @korttoma said:

                    Speaking of the Si021, has anyone tried to use 2 Si7021 sensors on the same node?

                    Since the i2c address is hardcoded I see two ways of doing this:

                    1. Power the two sensors from gpio pins (instead of connecting them to vcc, connect each to a separate gpio pin), when you want to read one sensor you put one high and the other low. I'm not really sure if this will work at all.

                    2. Use a soft i2c library like this one: https://github.com/todbot/SoftI2CMaster that way you have two sets of i2c pins. I'm pretty sure this one should work.

                    1 Reply Last reply
                    0
                    • R riataman

                      @n3ro said:

                      Big THX,

                      now i have understand how to use the si7021 :)

                      Reading works great!

                      But the sleeping current is very high ~1500uA

                      If you got this breakout: http://www.aliexpress.com/item/Industrial-High-Precision-Si7021-Humidity-Sensor-with-I2C-Interface-for-Arduino/32340228487.html?ws_ab_test=searchweb201556_1_79_78_77_80,searchweb201644_5,searchweb201560_1 it includes a 3.3v regulator and level shifting so you can actually use the sensor with a 5v arduino but it consumes quite a bit of current (60uA in the ones I got) even when idling.

                      What I did was desolder the regulator and solder a small wire to bypass it (sorry for potato quality pic).

                      gy21.png

                      Then I ordered this breakout for future nodes: http://www.aliexpress.com/item/New-HTU21D-Temperature-and-Humidity-Sensor-Module/1970355069.html?ws_ab_test=searchweb201556_1_79_78_77_80,searchweb201644_5,searchweb201560_1 that one doesn't seem to include any additional circuits (other than the pull up resistor and safety? resistor).

                      n3roN Offline
                      n3roN Offline
                      n3ro
                      wrote on last edited by
                      #19

                      @riataman said:

                      with a 5v arduino

                      Hey =)
                      the operating voltage of this component is 1.9 to 3,6 v. not 5v =)

                      But the idea to remove the regulator to save a little bit energy is cool. i will try it =)

                      pimatic + MySensors + Homeduino + z-way
                      https://github.com/n3roGit/MySensors_n3ro

                      R 1 Reply Last reply
                      0
                      • n3roN n3ro

                        @riataman said:

                        with a 5v arduino

                        Hey =)
                        the operating voltage of this component is 1.9 to 3,6 v. not 5v =)

                        But the idea to remove the regulator to save a little bit energy is cool. i will try it =)

                        R Offline
                        R Offline
                        riataman
                        wrote on last edited by
                        #20

                        @n3ro said:

                        @riataman said:

                        with a 5v arduino

                        Hey =)
                        the operating voltage of this component is 1.9 to 3,6 v. not 5v =)

                        That's true for the individual SI7021 IC, but in the breakout the regulator steps down the voltage to 5v and additional circuitry does 3.3<->5v level shifting. I have tested that particular breakout with a 5v arduino and it works just fine.

                        1 Reply Last reply
                        0
                        • dakkyD Offline
                          dakkyD Offline
                          dakky
                          wrote on last edited by
                          #21

                          does the sleeping current come down to an acceptable level when removing the regulator? 1500uA is quite much for a battery powered node.

                          Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
                          Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

                          Software: MySensors 2.0development

                          1 Reply Last reply
                          0
                          • n3roN Offline
                            n3roN Offline
                            n3ro
                            wrote on last edited by n3ro
                            #22

                            @dakky said:

                            1500uA

                            The sleeping current is ~240uA.

                            But it's possible to tune it a little bit more.

                            pimatic + MySensors + Homeduino + z-way
                            https://github.com/n3roGit/MySensors_n3ro

                            1 Reply Last reply
                            0
                            • dakkyD Offline
                              dakkyD Offline
                              dakky
                              wrote on last edited by
                              #23

                              hmm ok 240uA is better of course, but still far away from

                              @m26872 said:

                              Mine sleeps at 11uA.

                              Controller: Raspberry Pi 2 :: Openhab2 :: with @TimO MySensors Binding
                              Gateway: Arduino MEGA 2560 R3 :: W5100 :: Ethernet GW

                              Software: MySensors 2.0development

                              n3roN 1 Reply Last reply
                              0
                              • dakkyD dakky

                                hmm ok 240uA is better of course, but still far away from

                                @m26872 said:

                                Mine sleeps at 11uA.

                                n3roN Offline
                                n3roN Offline
                                n3ro
                                wrote on last edited by
                                #24

                                @dakky Yes, this is because of the multiple sensors on my board. maybe somebody have more tuning tipps.

                                pimatic + MySensors + Homeduino + z-way
                                https://github.com/n3roGit/MySensors_n3ro

                                1 Reply Last reply
                                0
                                • R riataman

                                  @n3ro said:

                                  Big THX,

                                  now i have understand how to use the si7021 :)

                                  Reading works great!

                                  But the sleeping current is very high ~1500uA

                                  If you got this breakout: http://www.aliexpress.com/item/Industrial-High-Precision-Si7021-Humidity-Sensor-with-I2C-Interface-for-Arduino/32340228487.html?ws_ab_test=searchweb201556_1_79_78_77_80,searchweb201644_5,searchweb201560_1 it includes a 3.3v regulator and level shifting so you can actually use the sensor with a 5v arduino but it consumes quite a bit of current (60uA in the ones I got) even when idling.

                                  What I did was desolder the regulator and solder a small wire to bypass it (sorry for potato quality pic).

                                  gy21.png

                                  Then I ordered this breakout for future nodes: http://www.aliexpress.com/item/New-HTU21D-Temperature-and-Humidity-Sensor-Module/1970355069.html?ws_ab_test=searchweb201556_1_79_78_77_80,searchweb201644_5,searchweb201560_1 that one doesn't seem to include any additional circuits (other than the pull up resistor and safety? resistor).

                                  M Offline
                                  M Offline
                                  Maciej Kulawik
                                  wrote on last edited by
                                  #25

                                  @riataman said:

                                  Then I ordered this breakout for future nodes: http://www.aliexpress.com/item/New-HTU21D-Temperature-and-Humidity-Sensor-Module/1970355069.html?ws_ab_test=searchweb201556_1_79_78_77_80,searchweb201644_5,searchweb201560_1 that one doesn't seem to include any additional circuits (other than the pull up resistor and safety? resistor).

                                  Thanks for tip!
                                  Unfortunatelly quite expensive. I bought my Si7021 modules on ali for 2,9$.

                                  And what chip is used on this HTU21D module? Si2071 too?
                                  If not, what library is to be used to communicate?

                                  1 Reply Last reply
                                  0
                                  • GertSandersG Offline
                                    GertSandersG Offline
                                    GertSanders
                                    Hardware Contributor
                                    wrote on last edited by GertSanders
                                    #26

                                    Adafruit have a library for the htu21d which works well with Mysensors

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


                                    7

                                    Online

                                    11.7k

                                    Users

                                    11.2k

                                    Topics

                                    113.0k

                                    Posts


                                    Copyright 2019 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