Shop OBEX P1 Docs P2 Docs Learn Events
Parallel resistances — Parallax Forums

Parallel resistances

NewzedNewzed Posts: 2,503
edited 2006-01-08 01:15 in BASIC Stamp
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

Comments

  • Joe FishbackJoe Fishback Posts: 99
    edited 2006-01-08 01:15
    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-
Sign In or Register to comment.