Electronics Production

Week 8 - Documentation

For this week, we are going to work on electronics production. The idea is to use what we learned in the electronics design week to make an actual board, so we can start connecting our projects.

Software and Equipment:

Mini Router CNC 3018 PRO:

Descriptimage

Soldering Station:

Descriptimage

Digital Microscope:

Descriptimage

PCB Parametrization

For the PCB parametrization, we designed a PCB board where we change the route and gap from 0.001 to 0.02in.

Descriptimage

Now, we use Fabmodules to get the .nc file.

Descriptimage

We machine the PCB.

Descriptimage

This is the result:

Descriptimage

By analyzing the PCB, we can determine that the smallest gap can be 0.016in and that the routes can go as small as 0.001in.

Descriptimage

Redesingning my circuit

Instead of using a Xiao SAMD21 and a Bluetooth module HC-05 I'm going to use an ESP-WROOM-32 for my project.

Descriptimage

Image taken from: michianti.org

The following diagrams are for the electronics schematic:

Esp32-Wroom-32

Descriptimage
Descriptimage

Switch buttons

Descriptimage

Connectors

Descriptimage

Diagrams taken from Espressif-esp32_devkit

Input voltaje regulator

Descriptimage

Diagram taken from LD1117V33-TO-220


Design process

Using the diagrams shown before, I can start designing my own board. My goal is to have this board as a dev kit, so I will make all the connections necessary to have all the pins available. I won't explain the whole process of the designing because it's the same as what we have done in week 6, so if you are interested on reading more of it, go check the electronics design week.

Electronic Schematics:

Descriptimage

2D PCB Final Design:

Descriptimage

3D PCB Design:

Descriptimage

Part List:

Descriptimage

Setting up my electronic board

You will need to save the 2D PCB as an image to use it later, so follow the next steps:

1 / 5

Step 1: Go to the command line mode.
2 / 5

Step 2: Write “export” and click enter.
3 / 5

Step 3: Select “Image”.
4 / 5

Step 4: A window will pop up. Select the name and where you want to save the image. Make sure to select the option “Monochrome”, and give a big resolution, 2000 is fine. The area must be Full, then press ok.
5 / 5

Step 5: Now you can open your PNG file of the PCB.

Getting the final PCB design

Previously, I showed you how the final PCB board would look like, but to get to that result there were many unsuccessful attempts. Figuring out if the design was going to work required a careful overview of the PCB simulation made in Mods.

So before going to the attempts, lets check out Mods.

Getting the final PCB design

Previously, I showed you how the final PCB board would look like, but to get to that result there were many unsuccessful attempts. Figuring out if the design was going to work required a careful overview of the PCB simulation made in Mods.

So before going to the attempts, lets check out Mods.

1 / 14

Step 1: Go to the next url:http://mods.cba.mit.edu/ in your favorite browser.
2 / 14

Step 2: Press right click and a menu box will appear.
3 / 14

Step 3: Select “programs”, a new menu box will replace the previous one.
4 / 14

Step 4: Select “open server program”. A new menu will replace the previous one.
5 / 14

Step 5: Scroll down to Machine>Roland>mill> MDX-20 or SRM-20, and then select PCB png.
6 / 14

Step 6: The next set of tables will appear.
7 / 14

Step 7: Zoom to the first three boxes, these are the ones will be using now.
8 / 14

Step 8: Press select PNG.
9 / 14

Step 9: Select the PNG file you just exported from Fusion 360.
10 / 14

Step 10: Set the PCB defaults, in my case, I change the mill traces (1/64) tool diameter (in) to 0.012. Press the green button.
11 / 14

Step 11: In the mill raster 2D box choose the offset number you want, this means the times the router will cut through your board, 4 is ok for me. Them, press the button “calculate”.
12 / 14

Step 12: It will start “calculating”.
13 / 14

Step 13: After a moment, it will be finished and a new window will be opened with the preview, if not just press “view”.
14 / 14

Step 14: Now you can check if there are no shortcuts made. You can notice that by observing the routes (white lanes) and if they don't intercept with each other, creating possible shortcuts.

So, now that we can use mods, let check how well it went for my circuit. Spoiler alert: It took me a while to finally get it right. It's just a matter of keep going.

Attempts

The errors will be pointed with a purple box.

First Attempt:

Descriptimage
Descriptimage

Second Attempt:

Descriptimage
Descriptimage

Third Attempt:

Descriptimage
Descriptimage

Fourth Attempt:

Descriptimage
Descriptimage

Fifth Attempt:

Descriptimage
Descriptimage

The fifth attempt didn't have shortcut problems, so I'm staying with this one.

See the following gallery to compare the changes the electronic design went over each attempt!

1 / 5

PCB 1
2 / 5

PCB 2
3 / 5

PCB 3
4 / 5

PCB 4
5 / 5

PCB 5
1 / 5

PCB 1
2 / 5

PCB 2
3 / 5

PCB 3
4 / 5

PCB 4
5 / 5

PCB 5

Cutting the circuit

Now that we have our file ready, let's go to Candle. *If you haven't download Candle, search in the web, it was easier for me to find it searching for “candle cnc”. Go to the github page and download the GBRL zip file.*

Descriptimage

Now, execute Candle and open your .nc file.

Descriptimage

This is a preview of the circuit in candle.

Descriptimage
Descriptimage

So now, we are ready to cut. I'm using a V-Groove mill to trace the routes and a 1/32" ball nose end mill for the contour.

Descriptimage

Machining process:

Descriptimage

Descriptimage

And here we finally have our circuit PCB:

Descriptimage

Soldering time!

After many attempts to get the PCB, it's time to solder the components. This was not easy, the components were so small and the PCB I designed was to compact, because I wanted it to look “pro”…

It took many attempts again. I even ruined one esp32.

Descriptimage

But this is me, making it look like if I knew what I was doing…

Descriptimage

I repeat, after many attempts, I finally got it, my circuit.

Descriptimage

Soldering time!

Searching for the correct temperature to solder our circuit I asked different electronic blogs like Techspray and buil-electronic-circuits. The suggested temperature range goes from 320-370°C, so I decided to use 350°C as my soldering temperature.


After this, I deserve a break, right? Wrong! That doesn't exist in Fab Academy. (Sad Face☹)

The time of the truth

Ok, so now that we have our PCB, let's program it! I didn't designed the PCB with a port to download a program, instead, I will use serial communication to do so. I'm the module YP-05 FTDI FT232L USB to TTL UART.

Descriptimage

Then we connected the module, the circuit, and my computer.

Descriptimage

I'm going to download the blinking led program, and here you have it. My circuit is alive! Feeling like Frankenstein jaja…


After this, I deserve a break, right? Wrong! That doesn't exist in Fab Academy. (Sad Face☹)

Descriptimage

Here, you can download the board files:

my_circuit