Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > General Hardware Discussion > Fusion Brain > FB Documentation and Tutorials


Reply
 
Share Thread Tools Display Modes
Old 02-29-2008, 01:41 PM   #1
Fusion Brain Creator
 
Join Date: Mar 2005
Posts: 2,197
greenman100 is on a distinguished road
Tutorial - Voltage divider - Measuring Voltages greater than 5vDC

Often times, there is a need to measure a voltage greater than 5volts.

As long as the ground of the device we want to measure is the same as the ground of the Fusion Brain, we can use a voltage divider. WARNING: If the grounds are not the same, damage can be done to the Brain.

Here is a simple voltage divider:


Vin is what you want to measure, Vout goes to the input pin of the brain (towards the edge of the board) and the symbol at the bottom indicates ground. R1 and R2 need to be selected on a application by application basis.


This formula will help select R1 and R2. For the Fusion Brain, it is a good idea to keep R1 and R2 under 1k-ohm.


Example
Lets say you want to monitor the voltage in your car:

We will assume 20vDC maximum, to allow headroom for voltage spikes.

Vout = 100/(300+100)*Vin
5 = 1/4*20

so the voltage divider, with a 300ohm R1 and a 100ohm R2, would have a scaling factor of 25%, meaning we could measure up to 20vDC without overloading the brain... perfect for car applications.
greenman100 is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 11-04-2008, 04:05 PM   #2
Constant Bitrate
 
Join Date: Dec 2007
Posts: 178
booksix is an unknown quantity at this point
what would be needed to allow FB to monitor voltages up to 400 volts? Is this too much? Would an external device (such that a volt gauge would have) made for high voltages be needed?
booksix is offline   Reply With Quote
Old 11-04-2008, 04:14 PM   #3
Fusion Brain Creator
 
2k1Toaster's Avatar
 
Join Date: Mar 2006
Location: Colorado, but Canadian!
Posts: 8,862
2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future2k1Toaster has a brilliant future
Quote: Originally Posted by booksix View Post
what would be needed to allow FB to monitor voltages up to 400 volts? Is this too much? Would an external device (such that a volt gauge would have) made for high voltages be needed?

What are you measuring that is up to 400v?

But it is the same idea however I would recommend a buffer on between the divider and the Brain just in case. So if something spikes on either end, buffer blows up, not the FB or what is sending the 400v.
2k1Toaster is offline   Reply With Quote
Old 11-04-2008, 04:25 PM   #4
Fusion Brain Creator
 
Join Date: Mar 2005
Posts: 2,197
greenman100 is on a distinguished road
you need a transformer and a rectifier to measure that safely.
greenman100 is offline   Reply With Quote
Old 11-04-2008, 07:51 PM   #5
Low Bitrate
 
Join Date: Dec 2007
Posts: 105
RonS is an unknown quantity at this point
Are you using 12 volt batteries to get to that voltage. This is for your car. Right?
RonS is offline   Reply With Quote
Old 11-05-2008, 11:01 AM   #6
Constant Bitrate
 
Join Date: Dec 2007
Posts: 178
booksix is an unknown quantity at this point
yeah, it's for the Z3. Planning a 3-phase ac drivetrain that may go as high as 400 volts. But it'll more likely be 3.2v lithium batteries strung together. Just curious if it can do it... My eventual goal is to replace the stock gauges with an LCD display with custom graphic gauges made to mimic the factory stuff but read things like 0-12k rpm, speed, traction pack and 12v accessory batt voltage, amperage (draw from the traction pack) motor temp, etc...

So why the rectifier? Thats to convert ac to dc right? The batteries will be dc already... Maybe you were thinking I was talking about a home solution?


And one more thing... the transformer: So, from what I get, I'd put the transformer inline with the 400v and the secondary circuit will see a voltage which has been stepped down to a voltage the FB can handle and this voltage (say, 0-4v for example) would represent the actual 400v (1v=100v, 2v=200v, etc...)?

Last edited by booksix; 11-05-2008 at 11:12 AM.
booksix is offline   Reply With Quote
Old 11-05-2008, 01:16 PM   #7
Fusion Brain Creator
 
Join Date: Mar 2005
Posts: 2,197
greenman100 is on a distinguished road
yeah I figured anything that high would be AC.

if you are doing DC a voltage divider would work in theory but be dangerous if implemented wrong or if it fails/shorts.
greenman100 is offline   Reply With Quote
Old 11-05-2008, 02:06 PM   #8
Constant Bitrate
 
Join Date: Dec 2007
Posts: 178
booksix is an unknown quantity at this point
well, the issue is, I think I'd want to measure it on the DC side, not the ac side because I want to measure the voltage of the combined DC pack.
booksix is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 11-05-2008, 03:01 PM   #9
Low Bitrate
 
Join Date: Dec 2007
Posts: 105
RonS is an unknown quantity at this point
I wonder if measuring one of the 3.2's would work. Just watch the voltage on that. Or multiply the voltage of one battery by 125 to get the total. Not sure how good that would work.
RonS is offline   Reply With Quote
Old 11-05-2008, 04:39 PM   #10
Constant Bitrate
 
Join Date: Dec 2007
Posts: 178
booksix is an unknown quantity at this point
could work but the cells don't stay perfectly balanced so one cell may be an inaccurate measurement
booksix is offline   Reply With Quote
Old 11-06-2008, 09:34 AM   #11
Low Bitrate
 
Join Date: Dec 2007
Posts: 105
RonS is an unknown quantity at this point
I was thinking about that. You could pick 4 cells in different parts of the pack. Then average the results. Then take that number as the condition of the pack. If you think that would work. I would use 4 inputs so I could monitor the voltage directly and not have to use a divider.
RonS is offline   Reply With Quote
Old 11-06-2008, 09:37 AM   #12
Constant Bitrate
 
Join Date: Dec 2007
Posts: 178
booksix is an unknown quantity at this point
I could do that but it's have to be 4 batteries one after the other, not random, but this could still work ok... Any other thoughts on options?
booksix is offline   Reply With Quote
Old 11-06-2008, 11:15 AM   #13
Low Bitrate
 
Join Date: Dec 2007
Posts: 105
RonS is an unknown quantity at this point
right now .. No.. I will keep thinking. But 400 volts is a little tough. I was thinking about measuring across a shunt. But that would vary as the load went up and down. Hmmmm How about a voltage to frequency converter going to a frequency to voltage converter. Kind of a strange way to do it but it might work. The LM231 will take 40 volts. So a 10 to 1 divider would work. I will have to look at that. I am not real sure if it would work for you.
RonS is offline   Reply With Quote
Old 11-06-2008, 11:33 AM   #14
Constant Bitrate
 
Join Date: Dec 2007
Posts: 178
booksix is an unknown quantity at this point
Varying readings should be ok. I think, even analog volt gauges for this application drop when load is applied. But I could be wrong, I'll check while I'm working at the EV shop tomorrow.


edit: btw the way, thanks for the help! I've never studied anything electrical or computer related so my knowledge of circuit and components is very limited. I've gone to wikipedia twice for this thread already! I know... and I'm planning a high voltage electric car! LOL Please bear with me!

Last edited by booksix; 11-06-2008 at 11:36 AM.
booksix is offline   Reply With Quote
Old 11-06-2008, 11:50 AM   #15
Fusion Brain Creator
 
Join Date: Mar 2005
Posts: 2,197
greenman100 is on a distinguished road
Really, the best way is a shunt driving an optoisolator.

http://en.wikipedia.org/wiki/Opto-isolator
greenman100 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial - Steering Wheel Controls greenman100 FB Documentation and Tutorials 192 11-24-2008 12:33 AM
Powering car from a 13.8V power supply ok? PURDooM Power Supplies 27 06-12-2006 12:56 PM
n00b question about voltage divider masch Power Supplies 7 04-12-2004 08:39 PM
voltage divider to get higher voltage query... THEMP3KID Power Supplies 2 09-23-2002 08:34 AM



All times are GMT -5. The time now is 03:37 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics