calculator for resistive divider using standard resistor values?
Dec 23, 2005 15 Replies
M
M. Noone
Hi - I feel like I saw this somewhere but have since lost the link. It was a website where you could put in the ratio you want a resistive voltage divider to give, and it would give you combinations of standard resistor values that would yield that ratio.
Anybody know of anything like this?
Or are there any tricks to finding these values that I'm just not aware of?
Thanks,
-M. Noone
Didn't find your answer? Ask the community — no account required.
M
M. Noone
R
Rich Grise, but drunk
Spreadsheet.
Cheers! Rich
K
Ken Moffett
"Ken Taylor" wrote in news:DiZqf.10243$vH5.499299 @news.xtra.co.nz:
formatting link
J
Joerg
Hello Ken,
Cool. I've always use a slide rule calculator for that. Well, maybe I'll keep doing that.
Regards, Joerg
formatting link
M
M. Noone
Looks good - I'll hold on to that for the future. Thanks,
-M. No>
};
K
Ken Taylor
Google. I actually used Altavista and used +resistor +combination
+calculator and got hits. I'm sure it would work for you too.
Cheers.
Ken
J
John Devereux
I once knocked up a C program that you are welcome to try, or perhaps expand on.
It has a very lazy algorithm that searches all combinations of 2 and 3 resistor dividers to find the closest match. You can customise the first line of main() to choose between e6, e12 or your own resistor value series. There are still plenty of configurations it does not try, such as three resistors in series. Also you have to get the correct power of 10 by yourself!
int main(void) { /* customise these three (6 or 12) */ float * base_series=e12_base; int base_N=12;
int decades=6;
float target;
int N=base_N*decades; int x,y,z; float min_error=1E30; float error; float ratio; int x_min, y_min, z_min;
float series[N]; int i; float decade=1; int n=0; for(i=0;i
F
Fred Bloggs
Oh well- forget it then!- waaaaa...ay too much thinking required....
J
John Devereux
:)
John Devereux
F
Fred Abse
That's a bit restricted.
-- "Electricity is of two kinds, positive and negative. The difference is, I presume, that one comes a little more expensive, but is more durable; the other is a cheaper thing, but the moths get into it." (Stephen Leacock)
K
Ken Taylor
Misattributed, but I'll take any collateral accolades.
Ken
J
John Devereux
Yes, my interest was in getting as close as possible with a *limited* range of part values.
You can edit the program to put whatever sequence you like in. That's what the my_base array was for, just fill it in with E96 or whatever.
John Devereux
B
Bob Monsen
I wrote a javascript version a year of two ago:
formatting link
Regards,
Bob Monsen
My dear, I used to think I was serving humanity?¡Ä and I pleasured in
the thought. Then I discovered that humanity does not want to be
served; on the contrary it resents any attempt to serve it."
~ Jubal Harshaw