Test Git
This commit is contained in:
10
src/main.cpp
10
src/main.cpp
@ -11,6 +11,7 @@ Strom Spannung Messen und Serial Ausgeben
|
||||
Adafruit_INA219 ina219;
|
||||
|
||||
|
||||
|
||||
void setup(void)
|
||||
{
|
||||
Serial.begin(115200);
|
||||
@ -45,6 +46,7 @@ void loop(void)
|
||||
float current_mA = 0;
|
||||
float loadvoltage = 0;
|
||||
float power_mW = 0;
|
||||
float current_mA_m1 = 0;
|
||||
|
||||
shuntvoltage = ina219.getShuntVoltage_mV();
|
||||
busvoltage = ina219.getBusVoltage_V();
|
||||
@ -52,12 +54,14 @@ void loop(void)
|
||||
power_mW = ina219.getPower_mW();
|
||||
loadvoltage = busvoltage + (shuntvoltage / 1000);
|
||||
|
||||
current_mA_m
|
||||
|
||||
// Serial.print("Bus Voltage (V): "); Serial.print(busvoltage); Serial.println(" V");
|
||||
// Serial.print("Shunt Voltage (mV): "); Serial.print(shuntvoltage); Serial.println(" mV");
|
||||
Serial.print("Load Voltage V:"); Serial.println(loadvoltage);
|
||||
Serial.print("Current mA:"); Serial.println(current_mA);
|
||||
Serial.print("Load_Voltage_Vx100:"); Serial.print(loadvoltage*100);
|
||||
Serial.print(" Current_mA:"); Serial.println(current_mA);
|
||||
// Serial.print("Power mW: "); Serial.print(power_mW); Serial.println(" mW");
|
||||
// Serial.println("");
|
||||
|
||||
delay(300);
|
||||
delay(100);
|
||||
}
|
||||
Reference in New Issue
Block a user