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. How to wire battery sensor with battery voltage reports...

How to wire battery sensor with battery voltage reports...

Scheduled Pinned Locked Moved Hardware
25 Posts 7 Posters 17.6k 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.
  • D Offline
    D Offline
    dzairo
    wrote on last edited by
    #6

    Hi all...
    Right now I tested my node and serial gateway ..
    ATmega328P DIP 28 , Internal 8Mhz RC oscillator , TIMER2 with 32Khz crystal .
    powered 2xAA , 47uF tantalum capacitor .
    VBAT measure by resistor divider 1M and 390k with 220nF capacitor .
    I try if working down to 2V .. then I setting my regulated power source to 1.9V ..and use serial terminal for debugging message .. I use FT232R with 3.3V setting .. and working .. working good ... serial gateway and sensor node .. I send command to gateway from node also powered from 2V.
    I don't know how many it's safe .. but in my solution works..

    regards

    1 Reply Last reply
    0
    • sundberg84S Offline
      sundberg84S Offline
      sundberg84
      Hardware Contributor
      wrote on last edited by
      #7

      Ahh i see the instructions for capacitor over tappoint now.

      Well I have a dht22 and it needs min 3v but doesnt arduino have a booster if i connect dht22 to VCC? (PRO mini 3.3 8mhz).

      Controller: Proxmox VM - Home Assistant
      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

      tbowmoT 1 Reply Last reply
      0
      • D Offline
        D Offline
        dzairo
        wrote on last edited by
        #8

        ehm.. just small idea.. I checked capacitor .. I use 330uF ..not 47uF .. but in fact gateway use 47uF..

        1 Reply Last reply
        0
        • sundberg84S sundberg84

          Ahh i see the instructions for capacitor over tappoint now.

          Well I have a dht22 and it needs min 3v but doesnt arduino have a booster if i connect dht22 to VCC? (PRO mini 3.3 8mhz).

          tbowmoT Offline
          tbowmoT Offline
          tbowmo
          Admin
          wrote on last edited by
          #9

          @sundberg84 said:

          Ahh i see the instructions for capacitor over tappoint now.

          Well I have a dht22 and it needs min 3v but doesnt arduino have a booster if i connect dht22 to VCC? (PRO mini 3.3 8mhz).

          No, there is no booster on the arduinos, only step-down regulators.

          There are other sensors out there (Si7021, SHU21 etc) that are capable of operating down to 1.9V. And the price difference to the DHT22 is not that big.

          Anyway, if you stick with the DHT22, then yes.. a booster is necessary to operate from a battery, and also a voltage divider for battery measurement. Or power the arduino with 4xAA to RAW input, and then use the 3.3V output from the arduino to power the radio..

          1 Reply Last reply
          0
          • sundberg84S Offline
            sundberg84S Offline
            sundberg84
            Hardware Contributor
            wrote on last edited by
            #10

            well, i have wired it all up and it seems to be almost working, i get humidity and temp from sensor but serial debugging sensor shows "st=fail" on all lines (almost). I think im loosing about 95% of all sent messages.

            I have capasitor over Radio., Measuring batteri is current 3.1 volts. Debug shows values from DHT is fine.

            Any ideas?

            Controller: Proxmox VM - Home Assistant
            MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
            MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
            RFLink GW - Arduino Mega + RFLink Shield, 433mhz

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

              @sundberg84

              What is the distance to the gateway? if it's to big, then it might be the problem. Also, I have seen some reports on the forum, that some have better luck, if they try another radio module (in GW / sensor nodes) So that could also be experimented with.

              / Thomas

              1 Reply Last reply
              0
              • sundberg84S Offline
                sundberg84S Offline
                sundberg84
                Hardware Contributor
                wrote on last edited by
                #12

                It Seems to be a power issue-it works better with usb power supply. Ill check more when i get home.

                What does st-fail means? Is it some missing/failed axcknowledge message from gw?

                Controller: Proxmox VM - Home Assistant
                MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                tbowmoT 1 Reply Last reply
                0
                • sundberg84S sundberg84

                  It Seems to be a power issue-it works better with usb power supply. Ill check more when i get home.

                  What does st-fail means? Is it some missing/failed axcknowledge message from gw?

                  tbowmoT Offline
                  tbowmoT Offline
                  tbowmo
                  Admin
                  wrote on last edited by
                  #13

                  @sundberg84 said:

                  It Seems to be a power issue-it works better with usb power supply. Ill check more when i get home.

                  What does st-fail means? Is it some missing/failed axcknowledge message from gw?

                  I think, that it means that the radio didn't receive an acknowledge from the receiving part. There are multiple ACK's in the system. both inter radio (from point to point, which is the one st=ok /st=fail is about). If there are repeaters between the sensor node, and the gw, then this ACK is only for the direct next uplink (repeater).

                  But also you can ask mysensor to send an ack for each message, this travels across repeaters from GW to sensor (or the other way arround).

                  So in this case, it means that the radio transmits, but there is no receiver ack'ing that it has heard the broadcast.

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

                    Ok, tHanks! Will try to move closer to gw and see what happens.

                    Controller: Proxmox VM - Home Assistant
                    MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                    MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                    RFLink GW - Arduino Mega + RFLink Shield, 433mhz

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

                      Yes - moving it closer to the gateway improves numbers of st=ok but still not 100% (not even close) even if i only have a fem meters between. Needs to check my soldering and wiring.

                      Thank you for answers - will upload new image when ready and it works.

                      Controller: Proxmox VM - Home Assistant
                      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                      1 Reply Last reply
                      0
                      • sundberg84S Offline
                        sundberg84S Offline
                        sundberg84
                        Hardware Contributor
                        wrote on last edited by sundberg84
                        #16

                        Hi!

                        Ok, i wanted to share my "sollution" or atleast current setup if someone else in the future has the same problem.Namnlös.jpg

                        The radio and battery voltage sensor (R1/R2) is not connected to Step up regulator.
                        Also DHT22 sensor needs atleast 3v to operate so i put the arduino and DHT22 after the voltage regulator.

                        Im sleeping the node for 15min, then sends temp and hum. The Battery status is sent each 8 loop. Now i will have a look how fast the battery is drained. I have not removed the led in the aurdino or step up reg so im guessing quite fast.

                        I have the radio about 15 meter (1 wall) from the gw - 100% seems to be st=ok.

                        Any improvement ideas - let me know,

                        Br
                        Andreas

                        Controller: Proxmox VM - Home Assistant
                        MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                        MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                        RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                        hekH funky81F 2 Replies Last reply
                        0
                        • sundberg84S sundberg84

                          Hi!

                          Ok, i wanted to share my "sollution" or atleast current setup if someone else in the future has the same problem.Namnlös.jpg

                          The radio and battery voltage sensor (R1/R2) is not connected to Step up regulator.
                          Also DHT22 sensor needs atleast 3v to operate so i put the arduino and DHT22 after the voltage regulator.

                          Im sleeping the node for 15min, then sends temp and hum. The Battery status is sent each 8 loop. Now i will have a look how fast the battery is drained. I have not removed the led in the aurdino or step up reg so im guessing quite fast.

                          I have the radio about 15 meter (1 wall) from the gw - 100% seems to be st=ok.

                          Any improvement ideas - let me know,

                          Br
                          Andreas

                          hekH Offline
                          hekH Offline
                          hek
                          Admin
                          wrote on last edited by
                          #17

                          @sundberg84

                          Just love your pictures :)

                          1 Reply Last reply
                          1
                          • D Offline
                            D Offline
                            dzairo
                            wrote on last edited by
                            #18

                            picasso ..

                            1 Reply Last reply
                            1
                            • sundberg84S Offline
                              sundberg84S Offline
                              sundberg84
                              Hardware Contributor
                              wrote on last edited by
                              #19

                              @hek just let me know if you need any additional designers for the homepage :+1: haha

                              /Andreas

                              Controller: Proxmox VM - Home Assistant
                              MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                              MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                              RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                              1 Reply Last reply
                              0
                              • m26872M Offline
                                m26872M Offline
                                m26872
                                Hardware Contributor
                                wrote on last edited by m26872
                                #20

                                The 0,1uF capacitor is usually put in parallell with the 470k. Unless your battery wires are very long or interfered I think it's useless as it is.

                                1 Reply Last reply
                                0
                                • sundberg84S sundberg84

                                  Hi!

                                  Ok, i wanted to share my "sollution" or atleast current setup if someone else in the future has the same problem.Namnlös.jpg

                                  The radio and battery voltage sensor (R1/R2) is not connected to Step up regulator.
                                  Also DHT22 sensor needs atleast 3v to operate so i put the arduino and DHT22 after the voltage regulator.

                                  Im sleeping the node for 15min, then sends temp and hum. The Battery status is sent each 8 loop. Now i will have a look how fast the battery is drained. I have not removed the led in the aurdino or step up reg so im guessing quite fast.

                                  I have the radio about 15 meter (1 wall) from the gw - 100% seems to be st=ok.

                                  Any improvement ideas - let me know,

                                  Br
                                  Andreas

                                  funky81F Offline
                                  funky81F Offline
                                  funky81
                                  wrote on last edited by
                                  #21

                                  @sundberg84

                                  @sundberg84 said:

                                  Hi!

                                  Ok, i wanted to share my "sollution" or atleast current setup if someone else in the future has the same problem.Namnlös.jpg

                                  The radio and battery voltage sensor (R1/R2) is not connected to Step up regulator.
                                  Also DHT22 sensor needs atleast 3v to operate so i put the arduino and DHT22 after the voltage regulator.

                                  Im sleeping the node for 15min, then sends temp and hum. The Battery status is sent each 8 loop. Now i will have a look how fast the battery is drained. I have not removed the led in the aurdino or step up reg so im guessing quite fast.

                                  I have the radio about 15 meter (1 wall) from the gw - 100% seems to be st=ok.

                                  Any improvement ideas - let me know,

                                  Br
                                  Andreas

                                  Hi all, I'm newbie with these libraries.
                                  And I'm a bit confused about the picture.
                                  I'm guessing is that the picture still similar with the battery page in build sites. What makes me confused is that resistor position. And also what is the source to measure in the voltage divider? Is it vcc?

                                  sundberg84S 1 Reply Last reply
                                  0
                                  • funky81F Offline
                                    funky81F Offline
                                    funky81
                                    wrote on last edited by
                                    #22

                                    And also, is it correct to take power directly from the batteries instead from the arduino itself?

                                    1 Reply Last reply
                                    0
                                    • funky81F funky81

                                      @sundberg84

                                      @sundberg84 said:

                                      Hi!

                                      Ok, i wanted to share my "sollution" or atleast current setup if someone else in the future has the same problem.Namnlös.jpg

                                      The radio and battery voltage sensor (R1/R2) is not connected to Step up regulator.
                                      Also DHT22 sensor needs atleast 3v to operate so i put the arduino and DHT22 after the voltage regulator.

                                      Im sleeping the node for 15min, then sends temp and hum. The Battery status is sent each 8 loop. Now i will have a look how fast the battery is drained. I have not removed the led in the aurdino or step up reg so im guessing quite fast.

                                      I have the radio about 15 meter (1 wall) from the gw - 100% seems to be st=ok.

                                      Any improvement ideas - let me know,

                                      Br
                                      Andreas

                                      Hi all, I'm newbie with these libraries.
                                      And I'm a bit confused about the picture.
                                      I'm guessing is that the picture still similar with the battery page in build sites. What makes me confused is that resistor position. And also what is the source to measure in the voltage divider? Is it vcc?

                                      sundberg84S Offline
                                      sundberg84S Offline
                                      sundberg84
                                      Hardware Contributor
                                      wrote on last edited by
                                      #23

                                      @funky81 said:

                                      Hi all, I'm newbie with these libraries.
                                      And I'm a bit confused about the picture.
                                      I'm guessing is that the picture still similar with the battery page in build sites. What makes me confused is that resistor position. And also what is the source to measure in the voltage divider? Is it vcc?

                                      Im a newbie as well, also a bit on and off building...
                                      Yes, i have tried to work from the battery build site. I saw you did a own post about this and worked it out.

                                      1. I have also tried to take power to the radio from the booster - but this seems to drain the battery very fast, annyone else experienced this?

                                      2. Also i tried to take power to the radio from the arduino - and it works well, is there any downsides with this?

                                      3. Is the radio using any power not used? It seems like the battery last longer with the radio connected to the arduino instread of the battery. When the arduino sleeps - so does the radio i guess, but does the radio sleep any time connected directly to the battery?

                                      Controller: Proxmox VM - Home Assistant
                                      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                                      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                                      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                                      1 Reply Last reply
                                      0
                                      • ronnyandreR Offline
                                        ronnyandreR Offline
                                        ronnyandre
                                        wrote on last edited by
                                        #24

                                        Would be awesome if you made a fritz sketch of this :)

                                        Newbie with RPi and Domoticz, trying to automate my home.

                                        sundberg84S 1 Reply Last reply
                                        0
                                        • ronnyandreR ronnyandre

                                          Would be awesome if you made a fritz sketch of this :)

                                          sundberg84S Offline
                                          sundberg84S Offline
                                          sundberg84
                                          Hardware Contributor
                                          wrote on last edited by
                                          #25

                                          @ronnyandre - hehe! That was a while ago :)
                                          I even made a PCB for everyone to use (including full schematics)!

                                          Check it out here: https://www.openhardware.io/view/4/EasyNewbie-PCB-for-MySensors

                                          Controller: Proxmox VM - Home Assistant
                                          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                                          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                                          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

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


                                          23

                                          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