Group Work 2026 – Test and Measure an Output Device
Assignment: Measure the power consumption of an output device.
Output Devices
Output devices convert signals from a microcontroller into observable actions, such as light, sound, or movement. In this experiment, we used a light-emitting diode (LED) as the output device. We programmed the LED to blink periodically and measured the total electrical current consumed by the operating microcontroller board and its connected LED circuit.
LED Output Using XIAO ESP32C3
For this group work, we used a Seeed Studio XIAO ESP32C3 development board to control an external LED. The XIAO ESP32C3 is a compact microcontroller board with programmable digital input/output pins. By switching a GPIO pin between HIGH and LOW, the board can turn an LED on and off at a defined interval.
The LED was connected through a current-limiting resistor to prevent excessive current flow. Unlike a measurement of the LED branch alone, our objective was to determine the total current consumption of the complete board while the LED was blinking.
Materials Needed
- Seeed Studio XIAO ESP32C3 development board
- LED
- 220 Ω current-limiting resistor
- Breadboard and jumper wires
- VICTOR VC9806+ digital multimeter
- Suitable regulated power supply and connecting leads
Circuit Setup
- Connect the LED anode (long leg) to the XIAO ESP32C3 D8 pin.
- Connect the LED cathode (short leg) to a 220 Ω resistor, and connect the other end of the resistor to GND.
- Connect the board to a suitable power source. For a total-current measurement, arrange the power connection so the multimeter can be inserted in series with the board's power input.
- Ensure the board and LED circuit share a common ground.
Important: The XIAO ESP32C3 GPIO uses 3.3 V logic. The power connection must follow the board's permitted input-voltage specifications. Do not connect a current meter across the power supply terminals, and do not feed 5 V directly into a 3.3 V GPIO pin.
Code for Controlling the Blinking LED
The following Arduino code switches the external LED on for 500 ms and off for 500 ms, producing a repeating blinking pattern.
#define LED_PIN D8
void setup() {
pinMode(LED_PIN, OUTPUT);
}
void loop() {
digitalWrite(LED_PIN, HIGH);
delay(500);
digitalWrite(LED_PIN, LOW);
delay(500);
}
The LED completes one on/off cycle every second. Because the LED draws additional current when it is on, the board's total power consumption can vary during the blinking cycle.
Measure the Total Power Consumption
We used a VICTOR VC9806+ digital multimeter to measure the current consumed by the entire XIAO ESP32C3 board and its LED circuit, rather than the current flowing through the LED alone.
Multimeter Setup and Measurement
- Upload the LED blinking program to the XIAO ESP32C3 and confirm that the LED blinks correctly.
- Disconnect power before modifying the circuit.
- Set the VICTOR VC9806+ to DC current measurement mode, starting with a suitable safe range.
- Disconnect the positive supply lead and insert the multimeter in series between the power source and the board's power input. The complete board supply current must pass through the meter.
- Restore power and observe the current reading while the LED repeatedly turns on and off.
- Record the supply voltage and the current readings with the LED ON and OFF, or obtain an average current over multiple blinking cycles.
Measurement note: If the board is powered through USB while a separate supply line is being measured, the reading may not represent the entire board's current. Use a single appropriately connected supply path for the total-current test. If using the board's 5 V input, follow its specified power requirements.
Observing the Readings
During operation, the LED switches between its ON and OFF states at 500 ms intervals. We can compare the total supply current in these two states to understand how the LED output affects the overall power consumption of the microcontroller circuit.
Measured total input values:
| Measurement | Value |
|---|---|
| Supply voltage | 5.00 V |
| Total measured supply current during LED blinking | 0.093 A (93 mA) |
| Calculated total input power at the measured current | 0.465 W (465 mW) |
Power Calculation
The total electrical input power of the XIAO ESP32C3 board and connected LED circuit is calculated using:
P = V × I = 5.00 V × 0.093 A = 0.465 W
During the LED blinking test, the measured total current was 0.093 A at a supply voltage of 5 V, corresponding to 0.465 W (465 mW) of total input power at the measured operating point. This is the combined power consumption of the development board and LED circuit, not the power of the LED alone. Because the LED switches ON and OFF, the instantaneous current may vary; without time-averaged current data, 0.465 W should be reported as the power calculated from the recorded reading rather than a verified cycle-average power.
Conclusion
In this experiment, we used the XIAO ESP32C3 to control a blinking LED and used the VICTOR VC9806+ multimeter to investigate the total power consumption of the operating board. By measuring current at the board's power input, we assessed the combined electrical demand of the microcontroller and its output circuit. At a measured supply voltage of 5.00 V and total supply current of 0.093 A, the calculated system input power was 0.465 W. This value includes the development board and its LED output circuit.
