![]() In the setup function we open the serial communication with the baud rate of 9600 because I want to display the measurements to the serial monitor of the Arduino IDE. Loadvoltage = busvoltage + (shuntvoltage / 1000) Shuntvoltage = ina219.getShuntVoltage_mV() Open serial communications and wait for port to open: Serial. # include "Wire.h" # include "Adafruit_INA219.h" If you want to know how I2C is able to transfer data between electrical devices, I recommend my I2C tutorial.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |