Group Assignment
Individual assignment
My experience in this area is very limited, and the mini-course on electronics presented by Monther from Vujadé helped me organize my thoughts and figure out how to start.
As a remote student, I joined the VujaDé Lab session online from Kuwait while the team in Saudi Arabia ran the bench. The group assignment for this week is to use the test equipment in our lab to observe the operation of an embedded microcontroller — we covered the digital multimeter and the digital oscilloscope on an Arduino test board.
01 | Digital multimeter — we used it to verify the basics of the circuit.
02 | Digital oscilloscope — to observe the "invisible" behaviour of electricity. We wanted to see how the Arduino actually controls power using Pulse Width Modulation (PWM).
analogWrite(): we discussed how this function doesn't actually output an analog voltage. It outputs a fast digital signal (≈ 490 Hz on most pins, 980 Hz on pins 5 and 6 of the Uno). The "analog" effect is just our eyes / loads averaging the high-frequency switching.analogWrite() or its MicroPython equivalent) lets me do. Going from "the LED looks dimmer" to "the duty cycle is 50%" is a big mental shift.
00 | I started this task by asking Google AI Gemini to provide me with steps to use Wokwi to design and simulate a simple circuit
03 | I connected the parts as shown in the drawing. The LED anode is connected to the resistor and then to ground on the microcontroller. The LED cathode goes to pin 10 on the microcontroller. I also connected one leg of the button to the ground of the microcontroller, and the other leg to pin 9
04 | I copied the code from Gemini AI, which first defines each pin to a variable name, then uses an if-condition to define the behavior of the circuit
06 | I followed the documentation by Musaed AlKout and changed my circuit to connect the LED to the button instead of to ground
07 | After running the circuit, the LED did not turn on. Then I changed the code and ran the simulation.
09 | When running the new code, the button was working, as the message "LED OFF/LED ON" was printed in the simulation — but the LED was not on yet
10 | I checked the connection, and after searching I found that I had misunderstood the LED legs. The short leg (cathode) is straight and the long leg (anode) is curved, even though it looked shorter. I switched the connections
01 | I am using the ESP32-C3 SuperMini for my final project (continuing from Week 04 — Embedded Programming), so I had to get the footprint from SnapEDA
00 | I followed this YouTube tutorial