Using INA219B current/voltage sensor with Stamps
stamptrol
Posts: 1,731
Hi folks.
Has anyone used the INA219B current sensor with the Stamp family? On the product page I see a Spin example, but was hoping for something that would work with the I2C Stamps.
Thanks,
Has anyone used the INA219B current sensor with the Stamp family? On the product page I see a Spin example, but was hoping for something that would work with the I2C Stamps.
Thanks,
Comments
Based on what I see in the INA219B data sheet and the BS2 manual it should be possible to use it with the BS2. Between the information in the INA219 and BS2 manuals along with the spin examples it should not be too hard to get it working.
Hardly a fair statement. Any new "whiz-bang" product made by any company will require some study to understand and apply effectively. How can one progress and enhance products without changing them? This particular chip combines two functions (supply voltage and current measurements) and one communications protocol (I2C), all of which are well understood, into a single product. If one already knows about those functions and the protocol, then using that chip or module requires only reading the data sheet to learn how to use it. All the information is available, it only requires a bit of study.
Lots for the 'duino's, but the code is thoroughly cloaked in "libraries" so not much use for those wanting to adapt to other languages.
In keeping with the spirit of the season, lets also just say the documentation is not particularly clear and leave it there.
Anyway, I've attached a code example which may be useful for anyone heading down the path to ina219 enlightenment.
Cheers and Happy Holidays.
Tom