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. Measuring battery

Measuring battery

Scheduled Pinned Locked Moved My Project
5 Posts 4 Posters 3.0k 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.
  • mrc-coreM Offline
    mrc-coreM Offline
    mrc-core
    wrote on last edited by
    #1

    Hi. I'm having some troubles when i try to read the voltage off my arduino batterys,

    The problem it's not the code, my problem is the wire connection... Do i connect the battery (+) to A0 pin only or do i have the connect the battery (+) to the A0 pin and the VCC pin on the arduino pro mini ???

    If i connect the arduino over USB to see the serial monitor i can see the voltage on 4.8V to 5V.
    But when i try to connect to my battery the i get dead antenna.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      carleki
      wrote on last edited by
      #2

      Hello @mrc-core

      You can use the Vcc.h library, and mesure the voltage without any wire ;)

      https://github.com/Yveaux/Arduino_Vcc

      meanmrgreenM 1 Reply Last reply
      0
      • C carleki

        Hello @mrc-core

        You can use the Vcc.h library, and mesure the voltage without any wire ;)

        https://github.com/Yveaux/Arduino_Vcc

        meanmrgreenM Offline
        meanmrgreenM Offline
        meanmrgreen
        wrote on last edited by
        #3

        @carmelo42

        How does this work when using a booster?

        S 1 Reply Last reply
        0
        • meanmrgreenM meanmrgreen

          @carmelo42

          How does this work when using a booster?

          S Offline
          S Offline
          sundberg84
          Hardware Contributor
          wrote on last edited by sundberg84
          #4

          @meanmrgreen - No, since the booster will output a steady voltage and thats what read in that library. If you have a booster I always use resistors and connect it to A0 (https://www.mysensors.org/build/battery). Another way is to lower BOD by burning new fuses and bootloader but this is more advanced.

          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

          meanmrgreenM 1 Reply Last reply
          0
          • S sundberg84

            @meanmrgreen - No, since the booster will output a steady voltage and thats what read in that library. If you have a booster I always use resistors and connect it to A0 (https://www.mysensors.org/build/battery). Another way is to lower BOD by burning new fuses and bootloader but this is more advanced.

            meanmrgreenM Offline
            meanmrgreenM Offline
            meanmrgreen
            wrote on last edited by
            #5

            @sundberg84
            Will look into that, i have a UNO lying around aswell so prehaps ill experiment with the bootloader burning eventually.

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            16

            Online

            12.0k

            Users

            11.2k

            Topics

            113.4k

            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