How to Make (Almost) Anything


Week 11
Task1: Individual assignment: Design, build, and connect wired or wireless node(s) with network or bus addresses and a local interface.
For this week assignment I wanted to use two Xiaorp2040 to talk each other, sender will receive data from pressure sensor (resistive) through an analog pin (A3), and transfer data to A0 internally, then receiver is connected to A0-A0 to get the data from sender. So, I designed the PCB based on this idea, and connected A0-A0, and A3 for the sensor input, also I used 3.3k pull up resistor in the PCB. Sender works with 3.7V LiPo battery and receiver powered by USB since I wanted to monitor the data on the screen (serial plotter). Below is the figure for PCB design, I used KiCAD [1] for this design and line thicknesses are 0.406 mm.
PCB design
After the design, I milled the PCB with Roland SRM 20 [2], and I used Mods [3] to connect the machine and create the tool paths. First, I used 1/64 drill bit for milling the traces and 1/32 to cut the edges and take the PCB out. After that I soldered the tabs and two Xiao RP 2040 to the PCB, as well as resistor and sensor. Below is the picture for fabrication of the PCB.
PCB fab
Finally, I uploaded the below code to sender and receiver microcontrollers.
Arduino code
Below picture shows that, when I press the sensor, analog read starts reading if I hold press, and it stops when stop pressing on it.
Final action
PCB files: https://drive.google.com/drive/folders/1y_DsuZbjFnXMSBbzSzzBwcIs0iuOINDD?usp=sharing
References:
[1] https://www.kicad.org/
[2] https://www.rolanddga.com/products/3d/srm-20-fresadora-compacta
[3] https://modsproject.org/

Umut Civici