Azzera filtri
Azzera filtri

Reading INA 219 sensor through Arduino

3 visualizzazioni (ultimi 30 giorni)
Vasco Sampaio
Vasco Sampaio il 22 Feb 2018
Modificato: Gongyan Du il 18 Mag 2020
Hey guys,
I'm trying to read data from my INA 219 current sensor, through ARDUINO UNO.77 I'm new to I2C communication so I'm getting hard time getting significant data out of it. I guess my issue is with the sensor itself and not so much the programming part. Anybody with experience in INA219 who can give me an hint of what I should do. Maybe there's a couple of configurations I'm skipping. Thanks in advance!
  2 Commenti
Marcin Kozusznik
Marcin Kozusznik il 1 Lug 2019
You need to send and receive 'uint16' not uint8. INA has 16 bit communication interface.
Gongyan Du
Gongyan Du il 18 Mag 2020
Modificato: Gongyan Du il 18 Mag 2020
@Marcin Kozusnik, @Vasco Sampaio:
I make such a result according to your program code.
40761 65535
40761 65535
40761 65535
40761 65535
40761 65535
40761 65535
40761 65535
I would like to ask how to display the current value
Thanks you!

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su MATLAB Support Package for Arduino Hardware in Help Center e File Exchange

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by