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.
Musaed AlKout is the one who had the full process documented in detail; I will cover some highlights on my page.
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 project, so I had to get the footprint from SnapEDA
00 | I followed this YouTube tutorial