Go Down

### Topic: Help with voltage divider and measuring a 9V battery (Read 3626 times)previous topic - next topic

#### Magic Ross

##### Oct 04, 2012, 05:18 am
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.

#### Osgeld

#1
##### Oct 04, 2012, 06:07 amLast Edit: Oct 04, 2012, 06:14 am by Osgeld Reason: 1
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

#### Magic Ross

#2
##### Oct 04, 2012, 06:14 am
Thank you!  Didn't even think about power/current.... that's my brain freeze moment of the week.

#### Magic Ross

#3
##### Oct 04, 2012, 06:37 am
Used a 47k and 67k - works great.  No heat whatsoever.

#4
super

#### MarkT

#5
##### Oct 04, 2012, 04:24 pm

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

Actually 10000 times less heat, not no heat
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Go Up

Please enter a valid email to subscribe