In this blog post, i’ll explore three fundamental equations that define the relationship between voltage (V), current (I), resistance (R), and power (P):

  1. Voltage (V) = Current (I) × Resistance (R)
  2. Power (P) = Voltage (V) × Current (I)
  3. Resistance (R) = Voltage (V) / Current (I)

These equations are the backbone of electronics and electrical engineering, and understanding them can help you diagnose problems, design circuits, and appreciate how electronic devices around you work.

Voltage, Current, and Resistance: Ohm’s Law

Ohm’s Law is a basic law of physics that explains the relationship between voltage, current, and resistance in a circuit. It’s expressed by the equation:

[ V(V) = I(A) \times R(\Omega) ]

  • Voltage (V): Measured in volts (V), voltage is the force that pushes electric charge around a circuit.
  • Current (I): Measured in amps (A), current is the flow of electric charge.
  • Resistance (R): Measured in ohms (Ω), resistance is the opposition to the flow of current.

In simple terms, if you know any two of these values, you can calculate the third. For example, if you have a 12-volt battery (V) and a 6-ohm resistor (R), you can calculate the current (I) as 2 amps.

Calculating the Current through a LED

float voltage = 5.0; // Supply voltage in volts (Arduino's 5V pin)
float resistance = 330; // Resistance in ohms (330-ohm resistor connected to the LED)

float current = voltage / resistance; // Using Ohm's law: I = V / R

// Print the current in amps
Serial.println("Current through the LED is " + String(current) + " A");

This example calculates the current through a LED with a 330-ohm resistor connected in series. This is a common setup to prevent excessive current through the LED.

Power: The Work Done by Electricity

The amount of work that electricity can do, or the rate at which energy is used, is called power. It’s calculated using the formula:

[ P(W) = V(V) \times I(A) ]

  • Power (P): Measured in watts (W), power is the product of voltage and current.

So, in our earlier example with a 12-volt battery and 2-amp current, the power would be 24 watts.

Calculating the Power Consumed by a Motor

float voltage = 5.0; // Supply voltage in volts (Arduino's 5V pin)
float current = 0.5; // Current in amps (Typical current draw for a small hobby motor)

float power = voltage * current; // Using the power equation: P = V * I

// Print the power in watts
Serial.println("Power consumed by the motor is " + String(power) + " W");

This example calculates the power consumed by a small hobby motor connected to the Arduino. Knowing the power consumption can be vital for battery-powered projects.

Calculating Resistance

Understanding resistance is vital for designing and troubleshooting circuits. You can calculate resistance using the formula:

[ R(\Omega) = V(V) / I(A) ]

If you know the voltage across a component and the current flowing through it, you can determine its resistance.

Finding the Resistance of an Unknown Resistor

float voltage = 5.0; // Supply voltage in volts (Arduino's 5V pin)
float current; // Current in amps, to be measured using a current sensor

// Read the current using a current sensor (e.g., ACS712)
current = analogRead(A0) * (5.0 / 1023.0) / 0.185; // Example conversion for ACS712 5A sensor

float resistance = voltage / current; // Using Ohm's law: R = V / I

// Print the resistance in ohms
Serial.println("Resistance of the unknown resistor is " + String(resistance) + " ohms");


Buy Me a Coffee