You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int32_t shuntVoltage = getShuntRaw(deviceNumber);
if (ina.type == INA260) // INA260 has a built-in shunt
{
int32_t busMicroAmps = getBusMicroAmps(deviceNumber); // Get the amps on the bus from device
shuntVoltage = busMicroAmps / 200; // 2mOhm resistor, convert with Ohm's law
}
If it's a 2mOhm resistor, by Ohm's Law (V=IR) should this not be
shuntVoltage = busMicroAmps / 500;
rather than / 200 as it is right now?
(V = IR, so microVolts = microAmps * Ohms, so V = I * 0.002 = I / 500)
The text was updated successfully, but these errors were encountered:
In
INA.cpp
(line 623):If it's a 2mOhm resistor, by Ohm's Law (V=IR) should this not be
shuntVoltage = busMicroAmps / 500;
rather than
/ 200
as it is right now?(V = IR, so microVolts = microAmps * Ohms, so
V = I * 0.002 = I / 500
)The text was updated successfully, but these errors were encountered: