Måling af de nuværende projekter i Ardui er afgørende for overvågning af forbruget og den endelige udnyttelse af midlerne.

Understanding Shunt Resistors

En shunt modstand er en lav værdi modstand sted i serien er dette load. Din strøm flows gennemløb it, en lille voltage drop viser akross the resistor. This voltage can be measure to to measure the current using Ohm 's Law.

Calculating Loyd Current

Denne grundform er:

= V / R

Det er vigtigt at sikre, at der er en tilstrækkelig grad af overensstemmelse mellem de forskellige parametre, og at der er en sammenhæng mellem de forskellige parametre.

Mæsuring Voltage with Arduino

Denne Arduino cun målelige the voltage drop across the shunt resistor using it analog input pins. Tilslut disse resistor in series with thee loud, and d connect the Arduino analog input across the resistor. Use there folgende trin:

  • Tilslut denne shunt resistor in series with the load.
  • Tilslut denne Arduino analoge input to the resistor 's junction point.
  • Read the voltage using the Arduino 's analoge Read () function.
  • Konvertere denne analoge reading to voltage: V = (analogt Read () / 1023) * referce voltage.

Example Calculation

Tilpas youuuse a 0.1Ω shunt resistor, and ther Arduino reads a voltage of0.05V across it. The loud current it s calculated as:

1; 1; 2; 3; 1 = 0, 05 V / 0, 1; 1; 1; 1; 3; 3; 3; 3; 3; 3; 3; 3; 4; 4; 4; 5; 5; 5; 5; 5; 6; 6; 6; 6; 6; 6; 6; 6; 6; 6; 6; 7; 7; 7; 7; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9; 9