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. {QUESTION} Battery Sensor example

{QUESTION} Battery Sensor example

Scheduled Pinned Locked Moved Hardware
voltage dividerbattery monitorarduino nano
3 Posts 3 Posters 1.7k Views
  • 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
    drock1985
    wrote on last edited by
    #1

    Hi,

    I've been reading the battery sensor example script on the MySensors page http://www.mysensors.org/build/battery I want to put a few battery sensors around my house, and plan to use 9V batteries and probably a some AA/AAA sensors as well. The example on the page above mentions the use of the 3.3v mini and 2AA; does the same voltage divider apply to an Arduino Nano and the batteries I intend to use, or should it be adjusted?

    My Projects
    2 Door Chime Sensor
    Washing Machine Monitor

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

      Hi! The nano is 5v and accepts (limits) 6-20 V on the raw pin.

      You could power the nano through the raw pin and use a voltage regulator for the radio if you want to use 9v batteries. The battery should be measured 100% when 9v and 0% when 6V i guess.

      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
      • D drock1985

        Hi,

        I've been reading the battery sensor example script on the MySensors page http://www.mysensors.org/build/battery I want to put a few battery sensors around my house, and plan to use 9V batteries and probably a some AA/AAA sensors as well. The example on the page above mentions the use of the 3.3v mini and 2AA; does the same voltage divider apply to an Arduino Nano and the batteries I intend to use, or should it be adjusted?

        m26872M Offline
        m26872M Offline
        m26872
        Hardware Contributor
        wrote on last edited by
        #3

        @drock1985
        Maybe some hints here.

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