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. Troubleshooting
  3. Battery percentage gone wild [SOLVED]

Battery percentage gone wild [SOLVED]

Scheduled Pinned Locked Moved Troubleshooting
27 Posts 6 Posters 2.8k 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.
  • gohanG Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by
    #18

    use jumper wires

    1 Reply Last reply
    2
    • S Offline
      S Offline
      Strixx
      wrote on last edited by
      #19

      @gohan Thinking outside the box... :joy: will do..

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Strixx
        wrote on last edited by
        #20

        Ok. So connecting the node to serial interface, but without power from it. And power from same batteries.
        The calculations is correct and multimeter is not measuring correct.

        This is debug out put:
        First loop:

        Sensor value: 1023
        Battery Voltage: 3.30 V
        Battery percent: 100 %
        

        Second and the following loops:

        Sensor value: 877
        Battery Voltage: 2.83 V
        Battery percent: 21 %
        

        So back to square one. When serial output is connected it works perfect.
        When disconnected it starts reporting all messed up readings!

        1 Reply Last reply
        0
        • gohanG Offline
          gohanG Offline
          gohan
          Mod
          wrote on last edited by
          #21

          Do you have an ldo voltage regulator? Maybe you could try 3 batteries for 4.5v output and use a linear regulator to have 3.3v or use 2 fully charged alkaline and power node without booster, as it could be the booster a bit too noisy.
          My personal favorite solution is using a single LiFePo4 AA battery and vcc library, no buck/booster and voltage divider, everything much simpler

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Strixx
            wrote on last edited by
            #22

            @gohan No regulator except the built in on the card. I also tried with two new AA and when not reporting crazy values it is reporting 74% correlating to calculated vBat of 3,14 and the actual voltage 3,24.
            So again; working just fine.

            1 Reply Last reply
            0
            • gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #23

              I meant if you have one regulator to try, I think there may be something related to the booster. Try also a bigger capacitor on the booster output, and a big ceramic one if you have on the vcc of arduino

              S zboblamontZ 2 Replies Last reply
              0
              • gohanG gohan

                I meant if you have one regulator to try, I think there may be something related to the booster. Try also a bigger capacitor on the booster output, and a big ceramic one if you have on the vcc of arduino

                S Offline
                S Offline
                Strixx
                wrote on last edited by
                #24

                @gohan Well. I think I have found the problem. Investigating now. I will get back during the day when I have tested some more times.

                1 Reply Last reply
                1
                • gohanG gohan

                  I meant if you have one regulator to try, I think there may be something related to the booster. Try also a bigger capacitor on the booster output, and a big ceramic one if you have on the vcc of arduino

                  zboblamontZ Offline
                  zboblamontZ Offline
                  zboblamont
                  wrote on last edited by
                  #25

                  @gohan Something doesn't make sense here, if the onboard voltage regulator is removed and battery power is connected to Vcc via a booster it should provide a constant supply.
                  If the divider to A0 is fed with the raw battery supply, it should be relatively constant although decaying over time.
                  Something is wrong with the circuit I suspect....

                  S 1 Reply Last reply
                  1
                  • zboblamontZ zboblamont

                    @gohan Something doesn't make sense here, if the onboard voltage regulator is removed and battery power is connected to Vcc via a booster it should provide a constant supply.
                    If the divider to A0 is fed with the raw battery supply, it should be relatively constant although decaying over time.
                    Something is wrong with the circuit I suspect....

                    S Offline
                    S Offline
                    Strixx
                    wrote on last edited by
                    #26

                    @zboblamont Yes. It looks like bad wiring. I am testing right now. And it looks like my Arduino clone has some bad markings of the pins.... I am documenting and posting the solution (if it is what I am suspecting right now) later today. Right now I am doing test cycles while doing some paid work.. :-)

                    1 Reply Last reply
                    1
                    • S Offline
                      S Offline
                      Strixx
                      wrote on last edited by
                      #27

                      Ok. So my strange error was due to connecting GND to the wrong PIN.

                      I was connecting GND next to VCC on the side of the Pro Mini.
                      Accordning to pics on the MySensors homepage and to the marking of my Arduino that pin is GND.

                      But when connecting the FTDI with jumper cables I notice that PIN was marked with CTS.
                      So instead I connected GND to the pin one step out.
                      This PIN is also marked GND on my Arduino, and on the FTDI. But marked BLK on the pictures on MySensors home page.

                      So it seems that both these pins are GND on my board, because everything else was working fine except the reference for analogue pins.

                      So topic solved. Thanks for all input. And specally @gohan that made me use the jumper cables and therfore found the error.

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


                      111

                      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