Pages: [1] 2 3   Go Down
Author Topic: 0-5 v into 0-2.5 volts ?  (Read 3146 times)
0 Members and 1 Guest are viewing this topic.
UK
Offline Offline
Sr. Member
****
Karma: 0
Posts: 308
Arduino - very interesting !
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i have a board with a 0-2.5 v input (not arduino)

i have a sensor with a 0-5v output

is it possible to use a resistor to reduce the voltage ?

what sort of resisitor should i use ?
Logged

Offline Offline
God Member
*****
Karma: 2
Posts: 711
a, b = b, a+b
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


you need to build a voltage divider.

http://en.wikipedia.org/wiki/Voltage_divider

Look at the first picture of the page (at the right). Thats how you need to set it up. Use the first formula on the page to calculate your resistor values.

Cheers

p.
Logged


UK
Offline Offline
Sr. Member
****
Karma: 0
Posts: 308
Arduino - very interesting !
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you ;-)
Logged

Offline Offline
God Member
*****
Karma: 2
Posts: 711
a, b = b, a+b
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

if you have further questions, feel free to ask ahead.

p.
Logged


Offline Offline
Full Member
***
Karma: 0
Posts: 217
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In this case, you'd use two of the same value resistors, so you dont have to do much calculating.
Logged

UK
Offline Offline
Sr. Member
****
Karma: 0
Posts: 308
Arduino - very interesting !
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thats neat - 2 resistor values the same, reduce the value by half smiley-wink
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 217
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


It's like splitting dinner with a friend.
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 435
Posts: 23600
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

As long as your friend is a light eater.
Otherwise the current into your load overcomes the current into the bottom resistor and throws the voltage off.

With a lightload, say 2 5K resistors, Vin to R1 to R2 to ground, Vout from the R1/R2 junction:

Vout = Vin x R2/(R1+R2)
= 5V x 5000/(5000+5000) = 2.5V

However if Vout was connected the equivalent of a 1K resistor, the 5K and the 1K in parrallel act like an 833 ohm resistor (2 resistors in parallel = R1*R2(R1+R2) )
Then Vout = Vin x 833/(833+5000) = 0.71V

That's why voltage dividers are okay for signals, but not as power sources.
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
Jr. Member
**
Karma: 0
Posts: 58
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would use a pot of say 50K ohms.  The run the voltage through the pot and the wiper will be the voltage out.  It is the same as a voltage divider circuit but uses the wiper to make two resistors, one on each side of the wiper.

Something like this:
   -0  |  0-

the circles are the terminals to the pot and the | is the wiper.  This is a general solution that can be used whenever you need to get less voltage then you have. 

Use your VOM to see what the voltage is on the wiper and you are done.  If you want to check it you can then test the resistance between each terminal and the wiper.  And, with nothing up my sleeve, I predict that you will find that the ratio is the same as what the voltage divider formula predicted.
       
Logged

0
Offline Offline
Shannon Member
****
Karma: 159
Posts: 10409
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You need to know the input impedance of the 2.5V circuit really - if it has a very large impedance the simple R - R divider will work, if it has a low impedance then it will become part of the divider and the voltage will drop by more than half...
Logged

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

UK
Offline Offline
Sr. Member
****
Karma: 0
Posts: 308
Arduino - very interesting !
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

so you are saying a simple resisistor will do the same trick reducing a voltage from 0-5 v to 0 to 2.5 volts

how do i calculate the correct resistor - it is a signal wire

---------------------------------------

on another thought - the board is -2.5 v to +2.5 v   -  is it easy to convert 0-5v into -2.5 to +2.5 ?


thanks for the replies
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 238
Posts: 24285
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
so you are saying a simple resisistor will do the same trick reducing a voltage from 0-5 v to 0 to 2.5 volts
Only if you know the impedance of the input.

Quote
how do i calculate the correct resistor - it is a signal wire
What sort of "signal wire"?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 435
Posts: 23600
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

Simple way is take your 0-5V signal and run it thru a capacitor. Like 10uF.
If that doesn't give enough drive, then buffer the output of the cap with an op-amp with +/- power supply.


* Digital_analog_buffer.jpg (20.73 KB, 960x720 - viewed 31 times.)
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
Full Member
***
Karma: 0
Posts: 217
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


If it's from a sensor to a input on a micro,a voltage divider seems better (assuming he just wants to scale 0-5v to 0-2.5v)

How does the output of a cap give you a negative voltage?
« Last Edit: May 03, 2012, 12:55:11 am by db2db » Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 435
Posts: 23600
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

The cap lets the signal swing back & forth across the level on the other side of the cap - in this case, the virtual ground of the op amp.

http://en.wikipedia.org/wiki/AC_Coupling

"on another thought - the board is -2.5 v to +2.5 v   -  is it easy to convert 0-5v into -2.5 to +2.5 ?"
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.

Pages: [1] 2 3   Go Up
Jump to: