DS2438 current sense

Is there any version of the DS2438 library which include current sensing?
TIA

As I see the library can measured both Vsense voltage values, so you should be able to perform current calculations:

That's the library I'm using and it is showing chip pin VAD as CHA & chip pin VDD as CHB from the Voltage A/D converter but nothing from the Vsense+/- chip pins of the separate Current A/D converter .

Maybe it is a hardware problem.

Your right, it looks as tho the author never finished this project.
However if you look at that github link under issues it seems someone added current sensing functionality and included updated .h and .cpp files that never got integrated into the main library. You could try those.

Thanks for noting the 'issues' section on the GitHub project. That cpp is bigger that the original so I assume it replaces it, rather than needing to be merged. I'm not very clear about how the IDE chooses which library/files it's going to pull in so I spent a lot of time last night messing about with different libraries & those .h & .cpp files. Deleting all then just installing a DS2438 & one of the many OneWire libraries in various combinations. But still no luck. I will persevere.
It's a shame Maxim don't contribute to the Arduino libraries as that chip has loads of great features (RTC, memory, State-of-charge accumulator).

I have made progress. Now reading the timestamp OK & reading the current without complaint but 0.0. Probably needs calibration for the Rsense.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.