| 23 | == calibration and performance == |
| 24 | |
| 25 | For the calibration process, I used a good linear power supply (both current and voltage adjustable) and a 4000 points digital multimeter. A switching power |
| 26 | supply was not good enough, ripple noise impacted values reported by our |
| 27 | circuit. |
| 28 | |
| 29 | For voltage input, we selectable 3 divider values: 4.92, 11 and 19.33, |
| 30 | which gives ranges of 6.63V, 13.5 and 26.1V respectively. |
| 31 | |
| 32 | For current input, we have 3 selectable shuts: 0.05, 0.1 and 0.2 ohms. |
| 33 | The shunt's volatge is then amplified by 10 by the AD623 amplifier. |
| 34 | This gives ranges of 2.68A, 1.34A and 0.67A respectively. |
| 35 | |
| 36 | For each tension or current range, we take 8 samples between 0 and a value |
| 37 | close to the max of the range. For each sample we get the pic's output for |
| 38 | about 5 seconds, and we note the real value using the digital multimeter. |
| 39 | |
| 40 | From this process, we found that that the AD623 output can't go down to 0, |
| 41 | it stays positive by anout 6mV. |
| 42 | This means we can't measure currents smaller than 3mA on the 0.67A scale, |
| 43 | and 12mA on the 2.68A scale. |
| 44 | We also find that, assuming an ideal power supply without noise or ripple, |
| 45 | we have a +/-7 unit error on the ADC's output. This is less than 0.18% of the |
| 46 | full range (or +/- 4.8mA on the 2.68A range input). |
| 47 | |
| 48 | |
| 49 | |