rajsodhi
Joined: 11 Feb 2003 Posts: 2 Location: California
|
11 Feb 2003 19:49 Resistor and capacitor value selection given discrete values |
|
|
|
Hi,
I thought these little Matlab programs were pretty useful.
Say you want to find a resistor value combination that most closely approximates a particular divide ratio, or whatever other function you can think of for r1 and r2. Given discrete values in your kit, which two will get you the closest?
Or say you want to pick a resistor and a capacitor whose corner frequency is some desired number, say, 2.5 kHz. Given all the fixed values, what combination will get you the closest?
These little programs help with this problem. Feel free to modify the code to suit your needs. Like say you only want to choose from resistors presently in your bill of materials, then the selection list would need to be modified. The basic algorithm presented may be expanded to accomodate functions of three values, like r1, r2, and r3.
Enjoy!
Raj
|
|