Kernel: Python 2 (SageMath)
In [19]:
In [20]:
In [21]:
Out[21]:
[ 0. 0.125 0.25 0.375 0.5 0.625 0.75 0.875 1. ]
[ 0.01 0.3125 0.625 0.9375 1.25 1.5625 1.875 2.1875 2.49 ]
Calculate the Rid for all target voltages with simple voltage dividing.
Vo = Vi * R /(Rbias + R) => R = Rbias / (Vi/Vo - 1)
In [22]:
These are the values of the Rids:
("ID number", "R in ohm")
In [23]:
Out[23]:
[(0, 66.869300911854097), (1, 2301.2552301255232), (2, 5140.1869158878517), (3, 8730.1587301587297), (4, 13414.634146341466), (5, 19784.172661870503), (6, 28947.36842105263), (7, 43258.426966292143), (8, 67629.629629629664)]
Calculate and verify good mergins.
In [24]:
Out[24]:
Tolerance is +- 0.125 V
In [ ]:
In [25]:
Out[25]:
<matplotlib.collections.PathCollection at 0x7f9beae72f90>
In [26]:
Out[26]:
[0.13500000000000001, 0.4375, 0.75000000000000011, 1.0625, 1.3750000000000002, 1.6875, 2.0, 2.3125, 2.6150000000000002]
[-0.115, 0.1875, 0.50000000000000011, 0.81249999999999989, 1.1250000000000002, 1.4375, 1.75, 2.0625, 2.3650000000000002]
In [27]:
Out[27]:
0.0525
0.0625
0.0625
0.0625
0.0625
0.0625
0.0625
0.0525