element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Power & Energy
  • Technologies
  • More
Power & Energy
Forum Is this circuit good for watching a 5V battery?
  • Blog
  • Forum
  • Quiz
  • Documents
  • Polls
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 5 replies
  • Subscribers 287 subscribers
  • Views 888 views
  • Users 0 members are here
  • battery_analyzer
  • 5v
Related

Is this circuit good for watching a 5V battery?

tim687
tim687 over 9 years ago

Goodmorning everybody,

 

Recently I've purchased a powerbank for my Arduino and I need to check if the powerbank is running low on power (at runtime).

 

I've found a example of a 12V voltage circuit: http://www.janspace.com/b2evolution/arduino.php/2010/06/26/scooterputer

 

I suppose when the lights go red, the battery is dying, and need to be replaced/charged. I want to make such a thing for my 5V powerbank, but can I use the same resistors?

 

If not, can you show my how to calculate the resistance values for the resistors, so that I can do it right in the near future?

 

 

Thank you in advance,

 

Tim

  • Sign in to reply
  • Cancel
  • peterjcs23
    0 peterjcs23 over 9 years ago

    Tim, if your Suuply voltage is VSup, RA is the 10k reistor, RB is the 4.7k resistor then VAn is the voltage applied to the analog input in the link you gave us, then the equation is:

     

    VAn = VSup (RB/(RA+RB))

     

    with the original numbers VAn is 12 (4.7/(10+4.7)) = 3.84V, which is the voltage the software will detect to put the light on

     

    with VSup=5V, VAn will be 1.60V

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • tim687
    0 tim687 over 9 years ago in reply to peterjcs23

    Thanks!!

     

    I'll write down the formula and use it next time!

     

     

    Do you think I've got plenty of range? So if the VSup is low because it's empty, do you think VAn won't be 0 V?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • peterjcs23
    0 peterjcs23 over 9 years ago in reply to tim687

    You need to decide what is the minimum voltage at which your circuit works correctly but you need to warn about the battery. If the battery drops too low then the circuit stops working and you can't run the monitor anyway. For example, If say 3V is the minimum working VSup then your monitor software will be looking for VAn input of 0.96V.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • artful_bodger
    0 artful_bodger over 9 years ago

    The 2 resistor circuit is called a potential divider and is used in lots of places in electronics.  This link http://www.electronics2000.co.uk/calc/potential-divider-calculator.php is to a calculator, so you can play with the resistor values to get the output voltage you want.

    I'd check with the manufacturer of the powerbank to see if they specify a minimum voltage, as most types of battery are permanently damaged (aka life shortened) by continual discharge to a too low a voltage. You might even find your powerbank shuts itself down, to protect the battery, once it can no longer keep the USB 5V line within specification, which IIRC is 4.75V.  This would mean you need to shut down at say 4.9V to give yourself a bit of margin on ADC and reference errors.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • tim687
    0 tim687 over 9 years ago in reply to artful_bodger

    Thanks!

    I'll lookup the voltage for various battery charges.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube