This week we focused on the fundamentals of electronics design, specifically learning how to design our own printed circuit boards (PCBs). For this we first needed to do our schematics, which are abstract diagrams that use standardized symbols to represent components and electrical connections (nets).
After that we runned a simulation to verify that the circuit worked before fabrication, by checking voltage levels, signal behavior. Then we organized our components using an EDA (Electronic Design Automation) software, in this case I used Ki Cad. Here we routed traces while respecting design rules (trace width, clearance, etc).
To know more about this check the group assignment:
For this exercise I did an interactive lighting and sound control system, that includes a series of WS2812B Neopixels (intelligent RGB LEDs), two potentiometers (one thought for brightness and one to control color), a speaker, a button and a JST PH connector to add a battery.
Electronic Simulation on Falstad
Falstad is a browser-based electronic circuit simulator. I chose to use it because it helped me understand voltage and current, by showing the "real" current flow, as well as circuit examples.
3. Then use draw to create your components symbols (I used a 5V source, 3 leds, 3 resistors, 1 interuptor and GND)
3.1 You can modify the components values. To calculate the resitance I used the Ohm's Law and each LED has diferent values because some need less voltage (Red consumes less that the Blue LED).
4. Run the simulator and change values if necessary.
You can also simulate on Ki Cad, although I found it less intuitive.Here is how te simulator window looks (there is no simulation here just the interface).
Electronic Components & Schematics on Ki Cad
1. Install Ki Cad. Before creating a new file project, we will install the Fab Library.
1.1 To do so, go to Plug in and Content Manager,search KiCad FabLib and install it (usually it is at the end of the Libraries list).
2. After that go to File and create a new project, this will create both a schematic (.sch) and pcb design (pcb) files.
This is how the schematic interface looks.
3. To add components go to the "Add Symbol" tool and search for the one you want (its better if you use the fab library). In this case I searched for the micro-controller XIAO RP2040.
3.1 Add all the components necessary (First I used another type of RGB led but later on changed them for the ones we have at our Fab)
4. Connect the componnets to appropiate pins and add power symbols (Voltage or Gnd) and resistors. (for the LEDs).
5. After connecting everything, go to Inspect in the tool bar and select Electrical run checker (ERC).This will help us to identify errors.
5.1 Some common ones are connection errors and that the software doesnt read power at all (for that we add the PWR FLAG symbol)
After clearing and correcting the errors we can do our PCB design.
PCB Design on Ki Cad
1. Switch to PCB editor.
2. Click update PCB from schematic.
2.1 All your component will appear condensed.
2.2. Go to File Import Graphics if you design an specific shape for your PCB.
2.3 Import them as DXF and place it on the Edge cut layer.
Your design will appear, rotate it if necessary.
3. Organize your components and untangle them.
4. Once they are corectly placed, start wiring them.
5. To wire them you need to have follow Desing Rules. To edit them Go to board Setup and change the parameters. These were the ones I used.
You can also verify if everything is correct if you go to Inspect and click on Design Rules Checker (DRC).
3D Viewer
1. After you are done, go to View and select 3D viewer (or press Alt +3)
3. If you want to make a case return to the PCB editor and click export as step or stl
This were the parameters I used.
Then I uploaded the stl file to skecthfab.
Learning Outcomes
This week I learned more about electronics components and circuit design by exploring schematics outside of Wokwi. Working with the circuit diagrams and planning PCB layouts helped me understand how each component connects, why resistors are used, and how Ohm’s Law applies to control current safely.
Understanding component connections:
I learned how and why each component is placed in a circuit and how their interaction affects overall functionality. If something is not connecten it will affect the system.
Applying Ohm's Law and choosing resistances:
The Ohm's Lay states that Voltages (V)= Current(I) * Resistance(R). In this exercise it help me select the correct resistor to protect LEDs and regulate current.
Importance of pin selection:
Choosing the right microcontroller pins ensures proper circuit operation and prevents conflicts.
PCB layout planning:
Organizing components and traces carefully prevents wire crossings and improves the future manufacture and welding. For me this was the biggest challenge, specially wiring the LEDs because ended up changing some pins to improve the net.
Running checks:
Performing Electrical Rules Check (ERC) and Design Rules Check (DRC) helps detect errors before and while building the PCB.
In future weeks this will help me to plan and design the PCB for my pill dispenser. I tried to add components that I may use on it like the leds, potentiometers and the buzzer.