PDA

View Full Version : Parallel resistances



Newzed
01-05-2006, 05:36 AM
Here is another handy little Stamp utility.· This one calculates the total value of up to 5 resistors in parallel.· Max resistor value that can be entered is, naturally, about 65000.

If you want to calculate for less than·5 resistors -·say 3 - ·when the R4 prompt comes up just enter a 0 and·the program will jump to the calculation routine.

Worst case error is about 4 percent, which is really insignificant unless you're dealing with 1 percent resistors.· Even then, I don't think it matters that much.

The program is written for a BS2E but you can change the directive to suit your application.

Enjoy!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Do you have a Stamp Tester yet?
http://hometown.aol.com/newzed/index.html

Joe Fishback
01-08-2006, 08:15 AM
Sid,

I have enjoyed looking over your various Stamp utilities, they have given me a lot of good ideas for future codes. I was wondering about you dividing the resistor values into 50000 in your last "Resistors in Parrallel" uyility. Did you divide into 50000 instead of 1 so PBasic can do the math without using decimals?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
······ Joe Fishback

-Robots are my friends-