Pages: 1 [2]   Go Down
Author Topic: Voltage Divider & Voltmeter help  (Read 6339 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The 4.555 is the voltage I got when I measured the analogue input variable power supply and multimeter, so 1023 is reached at roughly 4.555 volts not 5 volts exactly, unless its the multimeter telling me different.

and I think i just added the *2 in there just to make the amps close to what it is ment to be. But yes i got a 0.5 ohm shunt on the ground rail.

Im no coding expert and just improvising where i can.

thanks for the help though.
« Last Edit: October 29, 2011, 01:18:25 am by scottydb4b » Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 620
Posts: 33992
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What does the +5V pin measure? The 4.555V is a bit low, maybe your meter is off? All measurements are relitave to the voltage on the +5V pin.
Logged

United Kingdom
Online Online
Tesla Member
***
Karma: 224
Posts: 6614
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

So I will change out the resistors to be 4.7k & 10k respectively.. and lets me keep the draw form the 'meter' low...

but why @ a stable 7.4v from the PSU am I getting readings of 1023 from +5v - +7.4v??

My guess is that either the resistors you are using are not really 470 ohms and 1K (e.g. the one you think is 1K is actually 10k, or the one you think is 470 ohms is actually 47 ohms), or you are using one of those breadboards that has a break in the middle of the 5v and gnd rails and you haven't taken account of that break (so the 1k resistor is not connected to ground).
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yeh the 4.55 might be a bit low but at the end of the day i have to calibrate it to something and thats the reading i get @ 1023, its really no big deal i can change it to 5 but is less accurate, according to my meter. But its doesn't have anything to do with the voltage drop issue, or lack of it should i say.
Logged

0
Offline Offline
Edison Member
*
Karma: 7
Posts: 1243
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ack!.. you thread stealer!  =)

anyways..


@ CR-

5V = (8.4V x 10000)/(x + 10000)

should be:

5v = (8.4v x 10000) / (6800 + 10000)

right?



Im still a bit unclear that even with the other resistors in place for a the 7.4v setting.. 'why' it didnt represent a 7.4v 'value' in the serial print?

I mean it was steady 1023 from +5v up to 7.4v..??

I understand why change the resistors.. (since in the end I'll be using 2 x 3.7v li-ions)..

but what was wrong with it currently.. at the 7.4v??  


In my mind.. changing out these resistors will do NOTHING for me?  (but are only to be put in place because in the end I'll be using a 2 x li-ions)

the question (for me) still remains and is unanswered..

WHY with the current set-up of resistors/voltage divder.. and a 7.4v source am I NOT getting any changes in my analogRea() from 5v to 7.4v?
Logged


0
Offline Offline
Edison Member
*
Karma: 7
Posts: 1243
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So I will change out the resistors to be 4.7k & 10k respectively.. and lets me keep the draw form the 'meter' low...

but why @ a stable 7.4v from the PSU am I getting readings of 1023 from +5v - +7.4v??

My guess is that either the resistors you are using are not really 470 ohms and 1K (e.g. the one you think is 1K is actually 10k, or the one you think is 470 ohms is actually 47 ohms), or you are using one of those breadboards that has a break in the middle of the 5v and gnd rails and you haven't taken account of that break (so the 1k resistor is not connected to ground).


sorry I missed this post.. (DOH)..


is there a way I can meter my resistors? to accurately find out the values?

or I suppose I could also try to look up the color bands?  (always hate that)..


any better way?

Logged


0
Offline Offline
Edison Member
*
Karma: 7
Posts: 1243
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok..

I took BRAND NEW 4.7k Ohm and a 10k Ohm resistor (fresh out of the pack)...  and put them in place

4.7k in between the +Vin and +Vout

the 10k between + and the -   (same as illustrated in the picks.. (but the values changed)

and I 'again' get the same results?  once I turn the PSU up.. and I get to +5v.. Im already capped at 1023 analog value??

what the 'heck' am I missing here? lol..

I dont even have the LEDS in the mix or part of the project until I can fix the analog read values to be 'somewhat' near my ranges..??

I mean damn.. I only have 2 wires going to the Arduino!!!  LOL  GND and A5

some resistors..and two leads going to my variable PSU..



Logged


United Kingdom
Online Online
Tesla Member
***
Karma: 224
Posts: 6614
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It sounds to me that you do not have the 10K resistor connected as you intend. Can you post a photo of your wiring?

If you disconnect the 4k7 resistor, do you get a stable reading of zero from the analog pin?
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Offline Offline
Faraday Member
**
Karma: 65
Posts: 2500
Now, More Than Ever
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How about borrowing that 10K pot from your LM386 project.
Since you're just experiencing, using a pot will make things a little easier.

Edit -- corrected drawing


* potscaling.JPG (30.33 KB, 381x481 - viewed 18 times.)
« Last Edit: October 29, 2011, 09:28:23 am by runaway_pancake » Logged

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

0
Offline Offline
Edison Member
*
Karma: 7
Posts: 1243
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It sounds to me that you do not have the 10K resistor connected as you intend. Can you post a photo of your wiring?

If you disconnect the 4k7 resistor, do you get a stable reading of zero from the analog pin?


hi-

her is the image I made of it.. (using a breadboard)



I'll see if the camera is charged (usually isnt)...  and post one up of a 'real pic'..if it'll help.


@runaway_pancake-

I'll grab another 10k post I have laying around to use..

and look at your diagrams.

thanks
Logged


0
Offline Offline
Edison Member
*
Karma: 7
Posts: 1243
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@runaway_pancake-

I did as your diagram outlined..and it works 'perfect'...

I even left the meter included when I hooked up the Arduino just to keep an eye-on readings.

SO goes back to..  I must be doing something wrong on the breadboard set-up?

here is a pic:



thanks for the help guys!.



Logged


United Kingdom
Online Online
Tesla Member
***
Karma: 224
Posts: 6614
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Your 4k7 resistor is shorted out because you have both ends in the same row of the breadboard.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

0
Offline Offline
Edison Member
*
Karma: 7
Posts: 1243
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

got ya!.   smiley
thanks.
I have also corrected my diagram to show my error/fix




I am now going to go back and change out the resistors to match for 8.4v input.

Thanks to everyone for your help.   smiley-grin
Logged


Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 534
Posts: 26970
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

So you've had 7.4V going into your analog pin all this time?  That's not good.
Does the chip feel warm when powered up now? If so, you likely blew the pin.
And if not, it may be partly damaged and fail on you eventually.

"is there a way I can meter my resistors? to accurately find out the values?"
Yes, just measure them with your multimeter. You have gold bands on the resistors? I think that's 10% tolerance (maybe 5%, I'm  not sure which).
If you know the actual values, you can use that in your math for more accurate results.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Faraday Member
**
Karma: 65
Posts: 2500
Now, More Than Ever
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


I would just add: Ohmmeter your resistors out of circuit,
Never* put an ohmmeter on a live/powered circuit.

(* For your meter's sake.)
Logged

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

Pages: 1 [2]   Go Up
Jump to: