Skip to content

4.Electronics Design and Production

Electronics Design and Production.

This section includes my first trial electronic design using KiCad and its PCB production using SRM-20 milling machine.Then finally soldering the components and testing their contuinity.

1)Electronics Design using KiCad

My initial list of components to be considered for design were below using XIAO SAMD21 as microcontroller.The components and their pin outs are:

  1. Microwave Radar sensor(RCWL-0516) with pin outs-(GND,OUT & VIN.)
  2. PIR infrared IR sensor(AM321) with pin outs - (GND,Signal & VCC)
  3. PUMP with pin outs - (VCC, GND, Signal)
  4. speaker with pin outs - (VCC,RX,TX,GND)

Since the XIA0 SAMD21 was not available in KiCad, i will be using the XIAO RP2040 as my microcontroller as they have similar pinouts.

xiaoRP2040pinouts

image source from here

1.1.Working with KiCad (Creating the Schematic.)

Firstly i worked with Schematic by adding the components i want.

schematic image 4

1.3.Switching to PCB Editor

Then, i had to start PCB designing.So i clicked on “Switch to PCB Editor” to shift from schematic design.

pcbEDITOR IMAGE 1

The schematic editor got into PCB editor.

PCBeditor image 2

Now, before i really start with the PCB design, I had to make settings to the design rules like constriants and Pre define sizes and Net classes and these values.

adding constraints

pcd trace image

To make border for my board, i clicked on “Edge.Cuts” under the “Layers” and selected line to draw as i wanted to my my PCB boarder irregular shaped and was it was connected.

So this is how my edited PCD design looked.

edited pcb design

To look my PCB design in 3D view, i clicked on this icon and it looks this way.

3dviewClick

3dVIEW

The more detailed information regarding my first trial design of XIAO SAMD21 MCU board is here at my week 6 Electronic Design.

2)Electronics Production for my first trial PCB.

2.1. Exporting F.Cu files and Edge.Cuts files.

week8image1

week8image 2

week 8 image 3

My png files exported from Inkscape looked like this.

png files from inkscape

2.2.Using MODS to convert PNG files to rml

To convert my files, i searched mods from google chrome.

Once i get to the mods, right clicked on the blue icon and selected program.

week8image6

I continued by selecting ‘open program’ followed by clicking on ‘mill 2D PCB’ under “SRM-20 mill”.

week8image7

week8 image8

week8image9

week8image10

This is how my F.Cu traces looked when viewed.

week8image 11

week8image12

Here is the final workflow to download rlm file for F.Cu

week8image 13

week8image14

links for adding library for XIAO Samd21 here

2.3.PCB milling using ROLAND SRM-20.

week8image15

For my PCB milling, i used 1/64” and 1/32” end mills for making traces of F.Cu and Edge.Cuts respectively.

week8image16

The setting of Copper Clad board.

week8 image 17

Ensured that the copper Clad boards were fixed gently on its bed.

week8image18

week8image18.5

Now, i opened the “VPanel” which was the driver for the Roland SRM-20 milling machine and displayed its panel where i jogged the X,Y and Z axes.

week8 image 19

I inserted the 1/64” end mill with the help of allen key and tighten it to its spindle and chuck.

week8image20

Followed by making Z-axis zero by making use of ‘Curser Step’ to touch the paper placed to act gently on the Copper clad board.

week8image21

Running the SRM-20 Milling machine.

week8image 22

After completing the milling work, i cleaned the working area by vacuum cleaner.

week8image23

week8image24

2.4.Soldering works for my PCB board.

collected materails required

I started soldering and i checked the continuity of circuits after every components to ensure the working.

solderprocess image 1

I continued soldering.

solderprocessimage2

My final board after soldering looked this way and again checked for the contuinity for all the traces and components.It shows fine.

solder processimage 3

xiao samd21 pin outs

To make convenient to use for this work, i have sketched to show the pins and layout for my PCB board as per the design.

week8programimage1

For More detailed on my first trial PCB production can be availed from my week 8 Electronics Production.