Shop OBEX P1 Docs P2 Docs Learn Events
Using INA219B current/voltage sensor with Stamps — Parallax Forums

Using INA219B current/voltage sensor with Stamps

stamptrolstamptrol Posts: 1,731
edited 2013-12-23 07:46 in General Discussion
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,

Comments

  • trookstrooks Posts: 228
    edited 2013-12-17 09:37
    It seems to me that nothing you already own from this company and understand how to use will be of any use if you want to buy the next whiz-bang product they produce. - - tim rooks
  • kwinnkwinn Posts: 8,697
    edited 2013-12-17 21:29
    stamptrol wrote: »
    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,

    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.
  • kwinnkwinn Posts: 8,697
    edited 2013-12-17 21:43
    trooks wrote: »
    It seems to me that nothing you already own from this company and understand how to use will be of any use if you want to buy the next whiz-bang product they produce. - - tim rooks

    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.
  • stamptrolstamptrol Posts: 1,731
    edited 2013-12-23 07:46
    In looking for some sample code for the INA219 voltage/current sensor by TI, I was a bit surprised at the lack of samples.

    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
Sign In or Register to comment.