There is a module: ti.com/lit/ds/symlink/ina219.pdf
CJMCU - 219 INA219 I2C interface Bi-directional current/power monitoring sensor module.
Please tell me, how can I connect it?
Is there a JS for it?
I don't believe there is a library for that but it's unlikely to be too hard for you to make one - it's usually just a matter of doing what the datasheet says.
If you post up here with any questions we can try and help you out.
A Google search produces at least one path for a driver in C.
A bit of translation would produce the code that you need. ( a week to a month estimate)
This link is a good discussion of the chip
A NODEjs version of the code
Have fun sorting it all out.
Attached is a start on the translation of the Adafruit C code.
Since I don't have the chip it is untested.
It should give you an idea of what is involved.
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem