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. RFM69HW temp-humidity node

RFM69HW temp-humidity node

Scheduled Pinned Locked Moved My Project
64 Posts 7 Posters 20.7k 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.
  • NeverDieN NeverDie

    @Nca78
    Thank you! I changed the I2C address to 0x76, and now I get the correct readings (in this case, using Sparkfun library):

    Temperature: 22.77 degrees C
    Temperature: 73.00 degrees F
    Pressure: 99002.00 Pa
    Altitude: 202.13m
    Altitude: 663.15ft
    %RH: 47.00 %

    Fantastic! It works after all. Thank you again.

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

    I designed the miniature board in the earlier post for the temp-RH sensor to hover over the atmega328p.
    alt text
    Maybe it doesn't matter all that much, but after assembling one that way, I'm realizing it would be better to have it hover over the radio instead because the radio antenna means that the radio side is more likely to be facing up and the atmega328p is flat enough that it can be sat upon on the bottom with the radio on top without complaint. As it stands, the temp-RH sensor could still be installed on the radio side of the PCB, but it would be facing outward (resulting in a larger footprint) rather than inward, hovering over the radio. Since the point of this node is to be small, the status quo somewhat defeats the purpose. So, I'll likely be revising the PCB layout to make that change. Also, I'll be eliminating those RFM69 pads that don't actually need to be soldered, as that will reduce that soldering/assembly time.

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

      Here's the node from post #1 fully assembled, and with a BME280 instead of an si7021:
      0_1476121957739_temp-RH node.jpg

      I'm starting to toy with the idea of having the radio also be a detachable module. The BME280 is the most expensive part on the board, and it's detachable. The atmega328p is detachable. If the radio were also detachable, it might speed up the assembly and test process. Also, if the radio were to go bad for some reason, one could just pop in a new one. Modularizing like that might make the whole thing easier to repair and troubleshoot, because you could always swap in "known good" modules to see if it fixes a particular problem. Anyhow, just an idea I'm kicking around. What do you all think? Make it more modular, or keep as is?

      GertSandersG NeverDieN 2 Replies Last reply
      1
      • NeverDieN NeverDie

        Here's the node from post #1 fully assembled, and with a BME280 instead of an si7021:
        0_1476121957739_temp-RH node.jpg

        I'm starting to toy with the idea of having the radio also be a detachable module. The BME280 is the most expensive part on the board, and it's detachable. The atmega328p is detachable. If the radio were also detachable, it might speed up the assembly and test process. Also, if the radio were to go bad for some reason, one could just pop in a new one. Modularizing like that might make the whole thing easier to repair and troubleshoot, because you could always swap in "known good" modules to see if it fixes a particular problem. Anyhow, just an idea I'm kicking around. What do you all think? Make it more modular, or keep as is?

        GertSandersG Offline
        GertSandersG Offline
        GertSanders
        Hardware Contributor
        wrote on last edited by
        #35

        @NeverDie

        And making also the radio a detachable board would save you some board-space, thus reducing the cost again.

        NeverDieN 1 Reply Last reply
        1
        • GertSandersG GertSanders

          @NeverDie

          And making also the radio a detachable board would save you some board-space, thus reducing the cost again.

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

          @GertSanders
          Good point. I'd probably want to move the temp-rh sensor to the other side of the board as well so that it would be on the same side as the detachable radio.. In that case, it wouldn't need to sit so high, because it wouldn't need the clearance to get above the atmega328p. So, it would save on thickness that way. Overall thickness might be a wash, and it would be shorter too, so that sounds like a potential win. I think it's worth exploring.

          Not sure if there are 2mm pitch machine pins (?), but that might help save on thickness, and if so so that might be the best way to mount the RFM69.

          I think I'll switch to an SMD LED after all and use the through-hole real estate occupied by the existing through-hole LED for dedicated wires soldered on to connect to batteries. Or perhaps I should consider some other kind of battery connector? It could be powered as is through dupont connectors on the ftdi header, but to me dupont connectors seem a bit loosey-goosey for a permanent battery connection--not sure how corrosion might affect a dupont connection over time.

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

            Here's the assembled small Temp-RH node:
            0_1476139061767_small temp-RH.jpg
            I suddenly realized that if I flipped the si7021 "upside down", then I could install it on the other size of the board from what I had originally intended, all while still using the existing pinout. -I'd prefer to have the actual sensor element facing up, but it works.

            So, as you can see, the entire thing is barely much bigger than the RFM69HW itself. On the opposite side is the SMD atmega328p-au , an SMD LED, an SMD resistor, and an SMD capacitor. That's it. I can reset the board and upload sketches to it using my FTDI adapter board, as I wrote about earlier in this thread.

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

              Here's another board, but this time I simply soldered everything directly to the PCB:
              0_1476151112835_soldered_directly.jpg
              As you would expect, it's a bit thinner than the version where modules plug-in, but not by so much that I think it would make any meaningful difference in most instances.

              FYI, this particular si7021 comes with a protective cover on it. You can get them either with or without the protective cover, but I think it makes more sense to get it with the cover because it helps mitigate against possible contaminants.

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

                I just now tested out the RFM69HW radios, and they all appear to be functioning just fine. I even put one inside a closed refrigerator, since that is one of the applications, and I received a strong signal.

                So, as far as I'm concerned, proof of concept is now completed for these two different board designs. It will be a good baseline to compare against as I make optimizations going forward.

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

                  This photo illustrates one of the original objectives, which was to have a node that's appropriately sized to be powered by two AA cells:
                  0_1476161676927_sized_right.jpg
                  I think either one meets that goal.

                  GertSandersG 1 Reply Last reply
                  3
                  • Nca78N Offline
                    Nca78N Offline
                    Nca78
                    Hardware Contributor
                    wrote on last edited by
                    #41

                    Nice work !
                    For the "big" board, as you're constrained by the size of the 2 AA, I would use a pro mini instead of the bare atmega (more flat), and put the sensor on the side of the radio. It would also leave a bit of space for extra sensor (light for example) and maybe atsha for signing ?

                    For the small one I would make another board of similar size with a coin cell holder and a big (100-220µF) ceramic capacitor, and use pins to bring power to the "IC" board and do the spacing at the same time.
                    As it's a shame to have such a small board and such a huge power supply ;)

                    NeverDieN 1 Reply Last reply
                    0
                    • NeverDieN NeverDie

                      This photo illustrates one of the original objectives, which was to have a node that's appropriately sized to be powered by two AA cells:
                      0_1476161676927_sized_right.jpg
                      I think either one meets that goal.

                      GertSandersG Offline
                      GertSandersG Offline
                      GertSanders
                      Hardware Contributor
                      wrote on last edited by
                      #42

                      @NeverDie

                      It seems the collection of small MySensor nodes is growing :-)
                      Nice work !

                      1 Reply Last reply
                      1
                      • Nca78N Nca78

                        Nice work !
                        For the "big" board, as you're constrained by the size of the 2 AA, I would use a pro mini instead of the bare atmega (more flat), and put the sensor on the side of the radio. It would also leave a bit of space for extra sensor (light for example) and maybe atsha for signing ?

                        For the small one I would make another board of similar size with a coin cell holder and a big (100-220µF) ceramic capacitor, and use pins to bring power to the "IC" board and do the spacing at the same time.
                        As it's a shame to have such a small board and such a huge power supply ;)

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

                        @Nca78 said:

                        Nice work !
                        For the "big" board, as you're constrained by the size of the 2 AA, I would use a pro mini instead of the bare atmega (more flat), and put the sensor on the side of the radio. It would also leave a bit of space for extra sensor (light for example) and maybe atsha for signing ?

                        For the small one I would make another board of similar size with a coin cell holder and a big (100-220µF) ceramic capacitor, and use pins to bring power to the "IC" board and do the spacing at the same time.
                        As it's a shame to have such a small board and such a huge power supply ;)

                        Actually, they're really just proof-of-concept boards to confirm that the radio would work OK on such boards. Both nodes may have a fatal design flaw, which is that the sensor breakout boards may be running 24/7 even if the atmega328p is sleeping. Anyone know if the boards (not just the sensor chip) can be slept at <1uA current? If that's not possible, then I'll need to run them from a pin (or possibly some kind of load switch chip if their max current draw is ever greater than 20ma). I guess I'll need to measure it unless someone already has. Have you?

                        Nca78N 1 Reply Last reply
                        0
                        • NeverDieN NeverDie

                          @Nca78 said:

                          Nice work !
                          For the "big" board, as you're constrained by the size of the 2 AA, I would use a pro mini instead of the bare atmega (more flat), and put the sensor on the side of the radio. It would also leave a bit of space for extra sensor (light for example) and maybe atsha for signing ?

                          For the small one I would make another board of similar size with a coin cell holder and a big (100-220µF) ceramic capacitor, and use pins to bring power to the "IC" board and do the spacing at the same time.
                          As it's a shame to have such a small board and such a huge power supply ;)

                          Actually, they're really just proof-of-concept boards to confirm that the radio would work OK on such boards. Both nodes may have a fatal design flaw, which is that the sensor breakout boards may be running 24/7 even if the atmega328p is sleeping. Anyone know if the boards (not just the sensor chip) can be slept at <1uA current? If that's not possible, then I'll need to run them from a pin (or possibly some kind of load switch chip if their max current draw is ever greater than 20ma). I guess I'll need to measure it unless someone already has. Have you?

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

                          @NeverDie I have measured a board based on pro mini with BME280 (put in sleep mode, that's why I use the Sparkfun library) and a BH1750 (also in sleep mode between measurements) and my meter was giving me 17-18µA which is beginning to be too much for a CR battery. But still after running 3 weeks on a chinese CR2032 I see no drop in voltage. BME280 is not so good IMHO for very low power as it's a bit long to make the measurements, and drawing up to a few hundreds of µA while doing so.
                          I'm also running a board based on pro mini with a SHT21 breakout board (same than yours, with the film as without it will get dirty and lose accuracy quickly). Pro mini + radio alone consume a few µA only (sleep mode of MySensors library) and extra consumption from SHT21 (connected to Vcc) is invisible. I tried to measure with my multimeter the consumption of the SHT21 breakout board alone and it just can't measure anything. Even during measurement my multimeter sees nothing as it's extremely quick.
                          I did a sketch without sleeps between consecutive sendings (very bad for coin cell), sending every minute (and even if temp/hum don't change it's sending battery voltage), flashing a led after each sending. And with power from 2 cheap chinese LR41 (capacity 25mAh) it's on the way to last 2 months...

                          NeverDieN 1 Reply Last reply
                          1
                          • Nca78N Nca78

                            @NeverDie I have measured a board based on pro mini with BME280 (put in sleep mode, that's why I use the Sparkfun library) and a BH1750 (also in sleep mode between measurements) and my meter was giving me 17-18µA which is beginning to be too much for a CR battery. But still after running 3 weeks on a chinese CR2032 I see no drop in voltage. BME280 is not so good IMHO for very low power as it's a bit long to make the measurements, and drawing up to a few hundreds of µA while doing so.
                            I'm also running a board based on pro mini with a SHT21 breakout board (same than yours, with the film as without it will get dirty and lose accuracy quickly). Pro mini + radio alone consume a few µA only (sleep mode of MySensors library) and extra consumption from SHT21 (connected to Vcc) is invisible. I tried to measure with my multimeter the consumption of the SHT21 breakout board alone and it just can't measure anything. Even during measurement my multimeter sees nothing as it's extremely quick.
                            I did a sketch without sleeps between consecutive sendings (very bad for coin cell), sending every minute (and even if temp/hum don't change it's sending battery voltage), flashing a led after each sending. And with power from 2 cheap chinese LR41 (capacity 25mAh) it's on the way to last 2 months...

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

                            @Nca78
                            I just now measured the si7021 and BME280 breakout boards using the Dave Jones Microcurrent device. I did nothing more than power them from a battery pack (2x AA Alkaline batteries) using Vin and GND, but the si7021 measured 8.4uA, and the BME280uA measured 8.1uA. Not bad at all, assuming that represents quiescent current.

                            I suspect the easiest thing will be to power them from a pin on the atmega328p. That way they can be switched off when not in use. When time permits I'll do that and measure the current with a scope trace just to make sure any inrush current doesn't exceed 20ma (which is the max current an atmega328p pin is rated for).

                            When both the atmega328p and RFM69HW are sleeping just by themselves, the current draw can be as low as 250na (yes, nanoamps) with the right configuration.

                            Nca78N 1 Reply Last reply
                            1
                            • NeverDieN NeverDie

                              @Nca78
                              I just now measured the si7021 and BME280 breakout boards using the Dave Jones Microcurrent device. I did nothing more than power them from a battery pack (2x AA Alkaline batteries) using Vin and GND, but the si7021 measured 8.4uA, and the BME280uA measured 8.1uA. Not bad at all, assuming that represents quiescent current.

                              I suspect the easiest thing will be to power them from a pin on the atmega328p. That way they can be switched off when not in use. When time permits I'll do that and measure the current with a scope trace just to make sure any inrush current doesn't exceed 20ma (which is the max current an atmega328p pin is rated for).

                              When both the atmega328p and RFM69HW are sleeping just by themselves, the current draw can be as low as 250na (yes, nanoamps) with the right configuration.

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

                              @NeverDie it's quite common to power them with a pin and never heard about a damage, I don't think you can have inrush current over 20mA. Max starting current for si7021 is 4mA for a maximum duration of 5ms, if we believe the datasheet.
                              No info about that in the BME280 datasheet but I see very low power consumption in sleep mode (below 1µA) so maybe removing the regulator is not a bad idea...
                              A problem I have with BME280 also is that sometimes the first measurement (after for example a reset of the node) is off, I'm not sure why, if you have an idea I'm interested :) But if you have the same problem powering with a pin could be annoying.

                              For the consumption of the board I cannot tell exactly how low I can go as I don't have a microcurrent device to test but my meter says 2µA or a bit below. With a temperature/humidity measurement you have to use the watchdog timer to wake up regularly so whatever you configure you won't get below 5µA I believe ?

                              NeverDieN 1 Reply Last reply
                              0
                              • Nca78N Nca78

                                @NeverDie it's quite common to power them with a pin and never heard about a damage, I don't think you can have inrush current over 20mA. Max starting current for si7021 is 4mA for a maximum duration of 5ms, if we believe the datasheet.
                                No info about that in the BME280 datasheet but I see very low power consumption in sleep mode (below 1µA) so maybe removing the regulator is not a bad idea...
                                A problem I have with BME280 also is that sometimes the first measurement (after for example a reset of the node) is off, I'm not sure why, if you have an idea I'm interested :) But if you have the same problem powering with a pin could be annoying.

                                For the consumption of the board I cannot tell exactly how low I can go as I don't have a microcurrent device to test but my meter says 2µA or a bit below. With a temperature/humidity measurement you have to use the watchdog timer to wake up regularly so whatever you configure you won't get below 5µA I believe ?

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

                                @Nca78 said:

                                @NeverDie
                                A problem I have with BME280 also is that sometimes the first measurement (after for example a reset of the node) is off, I'm not sure why, if you have an idea I'm interested :)

                                Here's my guess: it uses a sample and hold ADC when taking the measurement, and the capacitors aren't fully charged up when it takes the first sample. i.e. it might be similar to the problem in the atmega328p when it comes to measuring its own voltage source.

                                For the consumption of the board I cannot tell exactly how low I can go as I don't have a microcurrent device to test but my meter says 2µA or a bit below. With a temperature/humidity measurement you have to use the watchdog timer to wake up regularly so whatever you configure you won't get below 5µA I believe ?

                                There's a trick for doing it using the RFM69HW to act as a wakeup timer, and it costs no extra current to do so. That's a whole topic into itself. Beyond that, you need both BOD and watchdog disabled on the atmega328p in order to get it down to the nanocurrent level while sleeping. In addition, you'll also want to use the internal resonator, not an external resonator or crystal in order to minimize time (and current) wasted during the wakeup phase. Doing that you can reduce the wakeup time for the atmega to <4uSec, which in itself is a huge savings.

                                So, getting back to throwing out the first sensor reading: the first thing you do after waking up the atmega328p is to initiate the first sensor reading. Then put the atmega back to sleep but wakeup when the first sensor reading is ready. Then simply ignore that sensor reading and initiate the second sensor reading (or however many it takes to get an accurate reading), and sleep the atemega while it's being taken. That's the magic of a <4uSec wakeup time. You can't do anything about the sensor requiring more than one reading in order to get an accurate measurement, but you don't need to waste power on the atmega or the radio while you wait.

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

                                  I just now tried powering the si7021 off of pin 8, but for some reason it isn't working. Same with the BME280. Not sure why. I even tried doing it with a 5v arduino uno, but same result. If I go back to powering it from Vin (either 3v3 or 5v), then everything works again. I also tried powering from pin 4 with the same result. Just powering the breakout board itself doesn't appear to be a problem, but when I hookup SDA and/or SCL, the mcu appears to lock up. Very puzzling. I'm doing this on a breadboard with dupont wires. Maybe there's noise on the wires that hangs it up? Anyhow, at the moment I'm not sure what to make of it.

                                  Looking at the si7021 datasheet, I notice it does contain a heater, and that the heater current can be as high as 94ma. So, if that's enabled by the adafruit library, then that might explain the failure. I'm not sure it's that though.

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

                                    I'm not sure why powering it from a pin is fundamentally different than powering it from the battery, unless the current max is exceeded, which it doesn't appear to be. Tis a mystery.

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

                                      So, I removed the voltage regulator on the si7021 and shorted Vin to Vout on the pads where it used to be. The above anomaly persists.

                                      I then re-ran the current consumption test that I did at earlier, again using the Dave Jones Microcurrent . This time it's showing just 57nA consumed with power to the si7021 breakout board and with no SDA or SCL datalines connected. So, virtually all of the previous current that was measured was being consumed by the voltage regulator, which isn't needed when everything is powered from just two AA batteries.

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

                                        According to the si7021 datasheet, a typical standby current is 60nA, which is very close to what I measured on the si7021 breakout board in the post directly above.

                                        60nA is not significant. Therefore, there is no need to switch the si7021 on and off using either a digital pin or a load switch. It can simply be on all the time, as it is in the current pcb board layout.

                                        NeverDieN 1 Reply Last reply
                                        0
                                        • NeverDieN NeverDie

                                          According to the si7021 datasheet, a typical standby current is 60nA, which is very close to what I measured on the si7021 breakout board in the post directly above.

                                          60nA is not significant. Therefore, there is no need to switch the si7021 on and off using either a digital pin or a load switch. It can simply be on all the time, as it is in the current pcb board layout.

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

                                          I changed the orientation of the sensor plug-in so that the sensor element will be facing up on the small board design. I also cleaned up some smaller details and sent the revised design to the fab last night.

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


                                          19

                                          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