Electronic design
This week’s group assignment consisted of learning how to use laboratory test equipment to observe and analyze the operation of a microcontroller circuit board.
As a minimum requirement, we demonstrated the use of:
The system under test was an ESP32-C3 development board powered via USB (5V) and operating at 3.3V logic level.
The objective was to understand how electrical signals behave in real hardware and to validate circuit functionality before moving into PCB design.
| Equipment | Description | Useful For |
|---|---|---|
| Regulated Power Supply | Provides stable DC voltage independent of input fluctuations. | Safely powering circuits during testing. |
| Multimeter | Measures Voltage (AC/DC), Current, Resistance, Continuity, and sometimes Capacitance. | Diagnosing circuit issues and verifying correct electrical values. |
| Oscilloscope | Displays voltage as a function of time (Voltage vs Time). | Observing waveform shape, frequency, amplitude, and signal integrity. |
| Logic Analyzer | Captures multiple digital signals simultaneously. | Analyzing digital communication and logic states. |
| Mixed Signal Oscilloscope | Combines analog and digital signal analysis. | Testing circuits with both analog and digital components. |
Ohm’s Law relates voltage, current, and resistance:
V = I × R
Where:
V = Voltage (Volts)
I = Current (Amperes)
R = Resistance (Ohms)
Derived forms:
I = V / R
R = V / I
Power is the rate at which electrical energy is consumed.
P = V × I
Alternative forms using Ohm’s Law:
P = I² × R
P = V² / R
Where:
P = Power (Watts)
ESP32-C3 GPIO = 3.3V
LED forward voltage ≈ 2.0V
Desired current = 5mA (0.005A)
R = (3.3V − 2.0V) / 0.005A
R = 260Ω
Standard value used: 220Ω
Power dissipation in resistor:
P = V × I
P = 1.3V × 0.005A
P = 0.0065W (6.5mW)
A 1/4W resistor is more than sufficient.
Purpose: Verify correct power supply levels.
Measurements performed:
Working battery → 8.9V
Dead battery → 1.2V
ESP32-C3 3.3V output → 3.2V
This confirmed proper voltage regulation.
Purpose: Confirm resistor value.
Measured value: 220Ω
Purpose: Ensure circuit connections are closed and solder joints are correct.
Beep indicates closed circuit.
Purpose: Determine actual current consumption.
Current must be measured in series.
Measured value for blinking LED circuit: 5.4 mA
Calibration was required to properly visualize the waveform.
The ESP32-C3 was programmed with a blinking LED (100 ms interval).
Probe connections:
Tip → GPIO pin
Ground clip → GND
Observed waveform:
Square wave
0V (LOW)
3.3V (HIGH)
LOW = 500 ms
HIGH = 100 ms
The waveform width changed accordingly, demonstrating duty cycle variation.
We transmitted character “K”. ASCII binary: 111101011
Oscilloscope displayed Start bit (0), Data bits, Stop bit (1).
This confirmed correct digital serial transmission.
For the practical measurements, I used a XIAO board. This board works mainly with 3.3V logic, while it can also expose the 5V USB rail depending on the power source. These two voltages were used as the first measurement points in this practice.
| Pin / Rail | Function |
|---|---|
| 5V | USB supply rail |
| 3V3 | Regulated logic voltage used by the board |
| GND | Electrical reference point for all measurements |
| D2 | GPIO pin used for PWM and digital signal tests |
The first practical step was verifying the main power rails of the XIAO. All voltage measurements were made with respect to GND, since ground defines the electrical zero reference of the board.
I first measured the 5V rail of the board. Using the Fluke 117 multimeter, the measured value was 5.066 V. On the oscilloscope, the signal remained stable around the DC level, with a recorded Vmax = 5.40 V and Vmin = 5.00 V.
The second measurement was the 3.3V regulated rail, which is especially important because it is the working logic level of the XIAO. Using the multimeter, the measured value was 3.295 V. On the oscilloscope, the voltage remained stable with Vmax = 3.36 V and Vmin = 3.32 V.
The following table summarizes the voltage measurements obtained using both the multimeter and the oscilloscope. This comparison helps validate the stability of the power rails and highlights the difference between static and dynamic measurement methods.
| Signal | Multimeter (DC Value) | Oscilloscope Vmax | Oscilloscope Vmin | Observation |
|---|---|---|---|---|
| 5V Rail | 5.066 V | 5.40 V | 5.00 V | Stable DC voltage with minor variation observed in oscilloscope |
| 3.3V Rail | 3.295 V | 3.36 V | 3.32 V | Regulated voltage line with stable behavior |
One of the most useful experiments of this week was generating a PWM (Pulse Width Modulation) signal on pin D2 and observing its behavior in the oscilloscope.
PWM is a digital technique used to simulate analog behavior by rapidly switching a signal between HIGH and LOW states. What changes is not the maximum voltage, but the proportion of time that the signal remains in the HIGH state. This proportion is known as the duty cycle.
In this exercise, I tested three duty cycle levels to compare how the square wave changes while keeping the same peak logic voltage.
int pwmPin = 2;
void setup() {
pinMode(pwmPin, OUTPUT);
}
void loop() {
analogWrite(pwmPin, 64); // PWM low (25%)
}
int pwmPin = 2;
void setup() {
pinMode(pwmPin, OUTPUT);
}
void loop() {
analogWrite(pwmPin, 128); // PWM medium (50%)
}
int pwmPin = 2;
void setup() {
pinMode(pwmPin, OUTPUT);
}
void loop() {
analogWrite(pwmPin, 255); // PWM high (100%)
}
As a final practical exercise, I programmed the XIAO to turn an LED on and off every second using pin D2. This made it possible to observe a slower and more explicit digital square wave on the oscilloscope.
// BLINK DIGITAL - SQUARE WAVE (approx. 1 Hz)
int ledPin = 2; // Pin D2
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
digitalWrite(ledPin, HIGH); // LED on
delay(1000); // 1 second
digitalWrite(ledPin, LOW); // LED off
delay(1000); // 1 second
}
This measurement is especially useful because it clearly shows the logic transition between HIGH and LOW states, making it easier to understand how a digital signal behaves over time.