![](../week08/Pixar08.jpg)
Grupal Assignment.
Use the test equipment in your lab to observe the operation of a microcontroller circuit board.
We tested the voltage on the pins to check if they matched the value printed
First test with the 5V Arduino Uno R3 pin.
![](../week08/Test01.jpg)
Then with the 3.3V pin
![](../week08/Test02.jpg)
In both cases the voltage was correct.
I did not have an Oscilloscope so I decided to make my own.
I followed this tutorial.
I wanted to test the 3.3 voltage of the Xiao RP2040.
![](../week08/Oscilloscope01.jpg)
![](../week08/Oscilloscope02.jpg)
The values weren't accurate, so I modified the code to have the values in volts.
The value goes from 682 to 687, the average is 684.5, divided by the 3.3V it gives a 207.42 factor
I just divided the value by the factor to have a value near reality.
I also added a delay so the curve won't move so quickly.
Here is the final code:
void setup() {
Serial.begin(9600);
}
void loop() {
float val = analogRead(A0);
Serial.println("Voltage:");
Serial.println(val/207.42);
}
![](../week08/Oscilloscope03.jpg)
Individual Assignment.
Design a development board to interact and communicate with an embedded microcontroller.
For this assignment I used KiCad 8.0
![](../week08/KiCad01.jpg)
After installing KiCad, I also installed the symbol and footprint for the Xiao RP2040 microcontroller found here.
First we start with the Schematic Editor and add components with the Add a symbol icon o the A key.
![](../week08/KiCad02.jpg)
In the same way I added several connectors and then added the wires for the connections.
![](../week08/KiCad03.jpg)
I updated the PCB from Schematic.
![](../week08/KiCad04.jpg)
![](../week08/KiCad05.jpg)
Then I added a shape for the PCB in the Edges Cuts layer. As a tribute to the late Akira Toriyama,
I chosed the head of Son Goku.
![](../week08/KiCad06.jpg)
![](../week08/KiCad07.jpg)
![](../week08/KiCad08.jpg)
Then I had to create the pathway for the connections which was a real puzzle. I used 0.8mm for power and GND path and 0.4mm for connections.
![](../week08/KiCad09.jpg)
The 3D view.
![](../week08/KiCad10.jpg)
Then I exported as DXF the files to Aspire.
![](../week08/KiCad11.jpg)
![](../week08/KiCad12.jpg)
First I tried my DXF files on the laser cutter on MDF to see if there is some troubles before sending it to the cnc
![](../week08/Laser01.jpg)
Here the paths are together so I changed.
![](../week08/Laser02.jpg)
First try with the CNC with a 10 degrees flat tool. I went too deep, 0.25mm instead of 0.035mm.
![](../week08/CNC01.jpg)
The laser part went well.
![](../week08/CNC02.jpg)
I'm making the new PCB to correct de paths and making a case for it.
I will use Fusion to make the case, first I imported the shape.
![](../week08/Fusion01.jpg)
Then I extruded to have a 3D model.
![](../week08/Fusion02.jpg)
I imported the 3D Model from KiCad so I can make the holes for the connexions.
![](../week08/Fusion03.jpg)
I moved the PCB Model so I could make the holes by copying the shpae of the connexions.
![](../week08/Fusion04.jpg)
![](../week08/Fusion05.jpg)
You can download the case here
For the new PCB, I used Soldering Paste and an InfraRed Oven.
![](../week08/Solder01.jpg)
![](../week08/Oven01.jpg)
![](../week08/PCB02.jpg)
Here is the result.
![](../week08/PCB03.jpg)
![](../week08/Case01.jpg)
Here are the files to be downloaded.
extra credit: try another design workflowextra credit: make a case for it
extra credit: simulate its operation