Pages: [1]   Go Down
Author Topic: Help with voltage divider and measuring a 9V battery  (Read 2402 times)
0 Members and 1 Guest are viewing this topic.
Adelaide, Australia
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi All,

A project I'm working on I need to measure the charge of a 9V battery.  Essentially it's a voltmeter.

Using the analogue inputs on a Uno (the end project will just be a stand alone ATmega328), I need to scale back the 9V to under 5V.  I was told to use a voltage divider as per this site: http://www.raltron.com/cust/tools/voltage_divider.asp

I used the values 6.8 and 4.7 ohm for the resistor.  According to the calculator on the website this would scale back 12V to 4.9V hence allowing for a way overcharged battery to be connected without damaging the input pins.

However, upon connecting the battery to the resistors (arduino not connected), the 6.8ohm resistor started to smoke and burn.  I'm at work right now and don't want to set off the fire alarms (I'm right next to our major data centre!).

Can anyone advise what I have done wrong? Or what I should be doing?

Thanks,
Ross.
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

your going to need higher resistance than that

try like 6.8k and 4.7k or 680k and 470k, you just dumping a ton of current and power to ground, which creates heat, which creates fire (like 1 amp and 12 watts)

analog readings dont need much current to function, I wouldn't be surprised if you didnt insta-drain a battery doing that

and when you get some down time look up ohms law, and a online calulator, it will help you avoid those types of issues (like dropping 12 watts into a 0.25 watt resistor hehe)

and dont worry, everyone smokes something here and there... just part of it
« Last Edit: October 03, 2012, 11:14:04 pm by Osgeld » Logged


Adelaide, Australia
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you!  Didn't even think about power/current.... that's my brain freeze moment of the week.
Logged

Adelaide, Australia
Offline Offline
Newbie
*
Karma: 0
Posts: 32
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Used a 47k and 67k - works great.  No heat whatsoever.
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

super
Logged


0
Online Online
Shannon Member
****
Karma: 206
Posts: 12053
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Used a 47k and 67k - works great.  No heat whatsoever.

Actually 10000 times less heat, not no heat smiley-wink
Logged

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: