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. General Discussion
  3. Battery Sensor / Voltage Monitor

Battery Sensor / Voltage Monitor

Scheduled Pinned Locked Moved General Discussion
24 Posts 7 Posters 13.9k Views 3 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.
  • hekH Offline
    hekH Offline
    hek
    Admin
    wrote on last edited by
    #12

    You are running the UI7 branch right?
    https://github.com/mysensors/Vera/tree/UI7

    jeylitesJ 1 Reply Last reply
    0
    • hekH hek

      You are running the UI7 branch right?
      https://github.com/mysensors/Vera/tree/UI7

      jeylitesJ Offline
      jeylitesJ Offline
      jeylites
      wrote on last edited by
      #13

      @hek Yes sir!

      I added all these files below into Luup Screen Shot 2015-05-12 at 12.46.27 AM.png

      jeylitesJ 1 Reply Last reply
      0
      • jeylitesJ jeylites

        @hek Yes sir!

        I added all these files below into Luup Screen Shot 2015-05-12 at 12.46.27 AM.png

        jeylitesJ Offline
        jeylitesJ Offline
        jeylites
        wrote on last edited by
        #14

        @hek
        I did not know what this does so I did not add....Screen Shot 2015-05-12 at 12.50.03 AM.png

        hekH 1 Reply Last reply
        0
        • jeylitesJ jeylites

          @hek
          I did not know what this does so I did not add....Screen Shot 2015-05-12 at 12.50.03 AM.png

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

          @jeylites said:

          I did not know what this does so I did not add....

          No they should not be added.

          If someone has the time to adjust the UI7 GUI a bit I would appreciate it. There are a lot of whitespace above the icon. I hope that space is available to use by the device. If not, is sucks.

          1 Reply Last reply
          1
          • jeylitesJ Offline
            jeylitesJ Offline
            jeylites
            wrote on last edited by
            #16

            @hek out of curiosity, I was checking out the sketch for Sensebender and saw that it had a Child Id for Battery Sensor and Voltage sensor. How does this work as a Child id?

            Since Voltage is not available on Vera at this time , I'm assuming I will not be able to use this feature... correct?

            1 Reply Last reply
            0
            • hekH Offline
              hekH Offline
              hek
              Admin
              wrote on last edited by
              #17

              I think it is supported in Domoticz. But we better ping @tbowmo for a better explanation. It will simply be ignored in Vera.

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

                @jeylites @hek

                That battery ChildId is a leftover, from some earlier monitoring that I did, to monitor batteryvoltage decrease. Back then I used pidome as controler.

                For a long time it has only reported battery percentage with the following routine

                /********************************************
                 *
                 * Sends battery information (battery percentage)
                 *
                 * Parameters
                 * - force : Forces transmission of a value
                 *
                 *******************************************/
                void sendBattLevel(bool force)
                {
                  if (force) lastBattery = -1;
                  long vcc = readVcc();
                  if (vcc != lastBattery) {
                    lastBattery = vcc;
                    // Calculate percentage
                
                    vcc = vcc - 1900; // subtract 1.9V from vcc, as this is the lowest voltage we will operate at
                    
                    long percent = vcc / 14.0;
                    gw.sendBatteryLevel(percent);
                  }
                }
                

                There are a couple of variable references back in the code at github, for the old battery voltage childId. These where removed last night, while I did some cleanup of the code. The changes are not pushed to github yet, as I haven't tested it yet.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  stamag
                  wrote on last edited by
                  #19

                  How can I present the value in Voltage (for example 3.06 V)? I don't like the "Battery monitor".

                  I have got the multiple temperature meter (DHT + Dallas) working very well. Would be nice to have battery level in volts also.

                  Cheers!

                  M AWIA 2 Replies Last reply
                  0
                  • S stamag

                    How can I present the value in Voltage (for example 3.06 V)? I don't like the "Battery monitor".

                    I have got the multiple temperature meter (DHT + Dallas) working very well. Would be nice to have battery level in volts also.

                    Cheers!

                    M Offline
                    M Offline
                    mikemayers
                    wrote on last edited by
                    #20

                    @stamag That depends on the kind of controller employed.

                    There is no plugin for Vera according to @hek .

                    S_VOLTAGE has not been implemented on vera (someone needs to create the device-files).

                    But I don't think you need to present anything at all. The Battery level is added to the Node-device which is automatically created.

                    1 Reply Last reply
                    0
                    • S stamag

                      How can I present the value in Voltage (for example 3.06 V)? I don't like the "Battery monitor".

                      I have got the multiple temperature meter (DHT + Dallas) working very well. Would be nice to have battery level in volts also.

                      Cheers!

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

                      @stamag I don't know exactly which sensors are supported in vera but you could possibly 'trick' the voltage on a custom V_VAR type.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        stamag
                        wrote on last edited by
                        #22
                        This post is deleted!
                        jeylitesJ 1 Reply Last reply
                        0
                        • S stamag

                          This post is deleted!

                          jeylitesJ Offline
                          jeylitesJ Offline
                          jeylites
                          wrote on last edited by
                          #23

                          If I'm measuring a 5.2 volt battery, what value should R1 and R2 be?

                          If the measuring voltages goes beyond the set voltage will that destroy the Arduino's input (A0)?

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            stamag
                            wrote on last edited by
                            #24

                            @jeylites You may change R1 and R2 and you don't destroy (A0).

                            An other way is to change the multiplicator (0.003363075) in the formula:
                            float batteryV = sensorValue * 0.003363075;

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


                            11

                            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