# 2. Kirchhoff’s Voltage and Current Laws¶

## 2.1. Objectivec¶

The objective of this Lab activity is to verify Kirchhoff’s Voltage Law (KVL) and Kirchhoff’s Current Law (KCL) using mesh and nodal analysis of the given circuit.

## 2.2. Notes¶

In this tutorials we use the terminology taken from the user manual when referring to the connections to the Red Pitaya STEMlab board hardware. Extension connector pin used as 5V voltage source are show in the documentation here.

Background

- Kirchhoff’s Voltage Law states that the algebraic sum of all the voltages around any closed path (loop or mesh) is zero. If we define the voltages across each resistor R1 through R5 as V1 through V5, applying Kirchhoff’s voltage law to the first and the second loops in the circuit shown in figure 1 yields:

Loop 1

Loop 2

- Kirchhoff’s Current Law states that the algebraic sum of all the currents at any node is zero. If we define the currents through each resistor R1 through R5 as I1 through I5, applying Kirchhoff’s current law to the first four nodes in the circuit shown in figure1 yields the following equations;

*Node a:*

*Node b:*

*Node c:*

*Node d:*

## 2.3. Materials¶

Red Pitaya STEMlab 125-14 or STEMlab 125-10

Various Resistors:

- 1 KΩ (2),
- 1.5 KΩ (2),
- 2.2 KΩ

## 2.4. Procedure¶

Step 1.

Construct the circuit shown in Figure 1 using these resistor values:

- R1 = 1 KΩ
- R2 = 2.2 KΩ
- R3 = 1.5 KΩ
- R4 = 1 KΩ
- R5 = 1.5 KΩ

Step 2.

Use color_coding_tool to select correct resistors from your kit. Use Multimeter, resistance measurements to check actual resistor values.

Step 3.

Instead of voltage source “V_{s}” shown on the Figure 1 use the STEMlab voltage pins on extension connector E2. Connect the 5V pin to nodeaand connect nodeetoGNDpin.

Circuit on the breadboard is shown in picture bellow.

Step 4.

Accurately measure all voltages and calculate currents in the circuit using the Oscilloscope application.

Measuring voltage drop across desired resistor is done in such way that Oscilloscope probe of IN1 is connected to the one side of the resistor and Oscilloscope probe of IN2 is connected to another side of the resistor. Voltage difference VIN1-VIN2 will give an voltage on the measured resistor.

- Set probes attenuation to x10
- Connect probes to the desired resistor

- Start Oscilloscope application

- In the IN1 and IN2 settings menu select Probe attenuation x10
- In the measurement menu select “MEAN” , select IN1 and press DONE
- In the measurement menu select “MEAN” , select IN2 and press DONE

After clicking “done” the measurements of the mean value of the IN1 and IN2 will be shown. Use this measurement to calculate voltage on R1.

V_{R1}= MEAN( IN1 ) - MEAN( IN2 )

I_{R1}= V_{R1}/ R_{1}.

Note

To obtain correct voltages signes, when performing measurement always work in the same direction: for example, connect IN1 probe on the side of the resistor where marked arrow begins (Figure 1)

Step 5.

Record the measurements in a tabular form containing the measured voltage and current values as shown below.

Branch current/voltage V [volts ] I [mA] R [KΩ] V _{1}, I_{1}V _{2}, I_{2}V _{3}, I_{3}V _{4}, I_{4}V _{5}, I_{5}V _{s},I_{s}Step 6.

Verify KVL for the loops in the circuit using loop equations 1 and 2.Step 7.

Verify KCL for the nodes in the circuit using node equations a, b, c and d.

## 2.5. Questions¶

- Calculate the ideal voltages and currents for each element in the circuit and compare them to the measured values.
- Compute the percentage error in the two measurements and provide a brief explanation for the error.