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 2.5k 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
    • carlekiC Offline
      carlekiC 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
      • carlekiC 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?

        sundberg84S 1 Reply Last reply
        0
        • meanmrgreenM meanmrgreen

          @carmelo42

          How does this work when using a booster?

          sundberg84S Offline
          sundberg84S 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
          • sundberg84S 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
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            15

            Online

            11.7k

            Users

            11.2k

            Topics

            113.0k

            Posts


            Copyright 2019 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