How to Make (Almost) Anything


Week 10
Task1: Group assignment: Measure the power consumption of an output device.
So, I tested the servo I am using (SG90) with multimeter, I read the current that is drawn by the servo (0.5 amps) and multiplied with the voltage that it uses (6V), so in total, power consumption is 3Watts.
piezo test
Task2: Individual assignment: Add an output device to a microcontroller board you have designed and program it to do something.
For this week assignment I wanted to drive a servo motor with a PCB a designed for Xiaorp2040 and I designed the PCB in a way that it can be used with battery (3.7V LiPo). I used KiCAD 7.0 to design the PCB, below picture shows the schematic and PCB design from KiCAD (line thicknesses are set to 0.406 as well as the clearances in design rules). I used 3.3V and GND to power the servo motor and D0 as a signal pin.
piezo test
After this I exported the Gerber files (files links below) and imported them to the website here [1] to export them as a png file to mill in Roland SRM 20 CNC machine [2].
piezo test
To machine the PCB, I used 1/64 drill bit for traces and 1/32 drill bit for cutting the edges.
piezo test
First, I cut the traces and cleaned the dust, then I changed the drill bit to 1/32 and cut the edges to take the board out.
piezo test
After that I cleaned the PCB and prepared for soldering. First, I put some solder on to the female connector pins, then same as to the battery connector. Then I put some solder backside of the Xiaorp2040 board pins to make the soldering easy. Finally, I put solder on to the PCB where the parts will connect and assembled. And everything was ready to assemble and program.
piezo test
I used Arduino to program the Xiaorp2040, you need to download the library for this [3].
piezo test
Here is the result!
piezo test
PCB files: https://drive.google.com/drive/folders/1pR8rmb09aoar5a6aeZ1-2Nh7zPEP8Q4g?usp=sharing
References:
[1] https://quentinbolsee.pages.cba.mit.edu/gerber2img/
[2] https://www.rolanddga.com/products/3d/srm-20-fresadora-compacta
[3] https://wiki.seeedstudio.com/XIAO-RP2040-with-Arduino/

Umut Civici