Serial.print("Current: ") Serial.print(current_mA) Serial. Serial.print("Load Voltage: ") Serial.print(loadvoltage) Serial.println(" V") Serial.print("Shunt Voltage: ") Serial.print(shuntvoltage) Serial.println(" mV") Serial.print("Bus Voltage: ") Serial.print(busvoltage) Serial.println(" V") ![]() Loadvoltage = busvoltage + (shuntvoltage / 1000) Shuntvoltage = ina219.getShuntVoltage_mV() Serial.println("Measuring voltage and current with INA219. Or to use a lower 16V, 400mA range (higher precision on volts and amps): Deploy LabVIEW code to embedded targets and take advantage of APIs for interacting with device peripherals and IO, including digital, analog, SPI, I2C, UART, PWM, and more. To use a slightly lower 32V, 1A range (higher precision on amps): The LabVIEW Hobbyist Toolkit adds support for Arduino, Raspberry Pi, and BeagleBone embedded platforms. you can call a setCalibration function to change this range (see comments). By default the initialization will use the largest range (32V, 2A). will pause Zero, Leonardo, etc until serial console opens Ģ) I think that another method for getting the results in LabVIEW is to send the results from Arduino (which gives the correct results) to LabVIEW. The datasheet of INA 219 is here: and my program here. I don't think that the program is good and I don't understand the I2C communication type. ![]() The problem is that I need the results for analyzing them and I need (1) to read the sensor's values in LabVIEW or (2) to send the results from the Arduino to Labview.ġ) For reading the results from Adafruit INA 219 in Labview I make a program using the I2C library and Linx but I don't receive the correct values. I try to read voltage and current from an Adafruit INA 219 sensor with Arduino and I get the correct results.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |