@@ -113,7 +113,7 @@ TODO Test
113113
114114```
115115
116- TODO Test
116+ _ Tested - see #2 _
117117
118118
119119### Special characters
@@ -169,26 +169,23 @@ Note this might differ per breakout board.
169169
170170### Performance
171171
172- TODO run tests and fill performance figures.
173-
174- Run ** INA238_performance.ino** sketch to get a first indication.
175- Numbers below are based upon tests with TODO.
172+ Run ** INA238_performance.ino** sketch to get a first indication of your
173+ board used.
174+ Numbers below are based upon tests with RP2040 (see issue #2 ).
176175
177176Time in micros, I2C speed in kHz.
178177
179178| I2C | function | time | notes |
180179| :-----:| :------------------| :------:| :-------:|
181- | 100 | getBusVoltage | | 100%
182- | 100 | getShuntVoltage | |
183- | 100 | getCurrent | |
184- | 100 | getPower | |
185- | 100 | getTemperature | |
186- | 100 | getEnergy | |
187- | 100 | getCharge | |
188- | | | | other functions similar gain.
189- | 200 | getBusVoltage | |
190- | 400 | getBusVoltage | |
191- | 800 | getBusVoltage | |
180+ | 100 | getBusVoltage | 620 | 100%
181+ | 100 | getShuntVoltage | 590 | 95%
182+ | 100 | getCurrent | 583 | 94%
183+ | 100 | getPower | 728 | 117%
184+ | 100 | getTemperature | 601 | 97%
185+ | | | | other functions similar gain.
186+ | 200 | getBusVoltage | 350 | 56%
187+ | 400 | getBusVoltage | 237 | 38%
188+ | 800 | getBusVoltage | 167 | 27%
192189
193190
194191Most non core functions are as fast as ** getTemperature()**
@@ -279,8 +276,6 @@ Read datasheet for details, section 7.6.1.2, page 21++
279276- ** void setADCRange(bool flag)** flag = false => ~ 163.84 mV, true => ~ 40.96 mV
280277- ** bool getADCRange()** return set value.
281278
282- TODO: examples to show the effect of the ADC configuration.
283-
284279
285280### ADC mode
286281
@@ -386,7 +381,7 @@ Read datasheet for details, section 7.3.6, page 16++
386381
387382Note: the implementation of this part is rather minimalistic and
388383might be changed / extended in the future.
389- Idem INA228 library.
384+ Idem see my INA228 library.
390385
391386#### Shunt
392387
@@ -428,17 +423,22 @@ Idem INA228 library.
428423- update documentation.
429424- test and verify with hardware
430425- keep sync INA228 where possible.
426+ - fix TODO's in code + readme.md
431427
432428#### Should
433429
434- - TODO's in code and docs.
435- - add error handling.
436430- how to detect nothing connected?
437431 - vshunt > maxVShunt (new variable)
438432 - current > maxCurrent
433+ - examples
434+ - example to show the effect of the ADC configuration.
435+ - improve error handling (INA228)
436+ - constants/enum
439437
440438#### Could
441439
440+ - improve API thresholds and limits (INA228)
441+ - improve API use bitmasks for diagnostics (INA228)
442442- write examples, (please share yours).
443443- improve unit tests
444444- clean up magic numbers in the code?
0 commit comments