Skip to content

8. Electronics Production

Here under are the list of information from other instructors during the global session;
* DocumentAs You Go

Unit description

  • Group assignment:

    • Characterize the design rules for your in-house PCB production process: document the settings for your machine.
    • Document the workflow for sending a PCB to a boardhouse
    • Document your work to the group work page and reflect on your individual page what you learned
  • Individual assignment:

    • Make and test a microcontroller development board that you designed

Learning outcomes

  • Describe the process of tool-path generation, milling/laser engraving, stuffing, de-bugging and programming

  • Demonstrate correct workflows and identify areas for improvement if required

Group Assignment

—> Go to Group Assignment

Individual Assignment

Regarding my week06 Development Board, I had suggestion from my instructor Kae who knows about my final project;
* #### Instruction from Kae
With the current board, wiring is required, but it is possible to combine it with a potentiometer to drive a single servo motor, or to connect an IMU.
example of connection
example of connection

Suggested Improvements from Kae;
The following changes may improve usability: 1) Use D3 instead of D1 for the LED D1 is an analog-capable pin and can be used for sensors, so using it for an LED may be wasteful. It is recommended to use D3, which has no other specific functions. Note that this LED pin is also exposed on the header pins. Because the pin carries the LED load, extra care is required when using it as an input or output. 2) If pins are available, it may be useful to connect GND, 3.3 V, and 5 V This can improve flexibility for future connections. 3) Placing J6 on the left side makes wiring easier This layout simplifies connections for sensors and I²C devices, and makes it easier to design boards related to input circuitry.

suggested improvement

Having those suggestion, I decided to modify my development board by following this.

My previous Development Board was as follows;
Edge.Cut done

Here under are the points my instructor suggested me to design PCB;
Data lines should be as short as possible to minimize the electricity delay.
Power lines should not be too close to other lines to be free from getting short circuit by soldering.
* Make a group for Power and Ground lines with set of pins.

Firstly, I modified the schematics to change the LED connection from D1 to D3 to Keep D1 for other purpose such as Analog input while D3 does not have such function but digital connection only.
modified Schematics

Secondly, I modified the distance between each pins and micro computer, and changed the position of switch from bottom to top left.
modified distance

There is a cross line of +3V3
cross line occurs

While I was wondering how to solve this cross line issue, Daisuke suggested me of swapping J2 pin and J3 pins’ position.

Yes, It worked!
swapping J2 and J3

Execute “Design Rules Checker”.
Design Rules Checker

Got two errors but for Switch not closed with lines which is not necessary.
got only one error with Switch

PullDown File menu and select “Plot”.
Plot

For Lines “F.Cu” and “Edge Cuts” milling, Select all necessary points as below, then click “Plot”.
select all necessary points

Output Messages by Plot comes.
Output Messages

For Hole “B.Cu” milling, Select all necessary points of which “Drill marks” setting need to be selected as “Actual size”, then click “Plot”.
select for B.Cu milling

Holes plot were made.
holes plot

Open “Mods” and select PullDown menu at top left “Program”.
select Programs

Select “mill 2D PCB” in SRM-20 mill.
select mill 2D PCB

Click “Select SVG file” button in Mods.
select SVG file

Select lines cut “F_Cu” SVG file in you PC.
select lines cut SVG file

Check if the shape and size is similar to what you designed.
Be careful that the size might be different sometimes due to the PC system and process.
In such case, you have to try to get exactly the same size as you designed in KiCad drawing.

Actually, this drawing is not the correct one. I should have made “inverse” of this drawing for circuit line milling.

check design

Select “1/64 flat” as the cutting tool.
select 1/64 flat

Switch On both “edit info collapse” switches.
switch on both "edit info collapse

Click “calculate” button to make the milling path.
Calculate

Automatically, below like 3D milling path will appear.

Still I didn’t realize that this milling is wrong at this point.

milling path

One rml file which is the trace path of milling is made at “Download” folder.
rml file was made

Next I worked with the “Edge Cut” design, which is all black colored square made by KiCad.
edge cut

Since “Mods” makes tool path at the black color part in the design file such as “png” or “SVG”, you need to draw only cutting line. Then, open “Edge_Cuts” file with InkScape, and set “Stroke Style” Width as 1.5 mm.
Stroke width 1.5mm

Set stroke color as white, and you will see the white square as follows.
By applying “inverse” of this figure, it will be black frame which will be considered milling path by “Mods”.
Save the file with PNG format.
stoke color set as white

Select “Edge_Cuts PNG file” in Mods.
select png file in Mods

Press “invert” button and you get the black framed square as follows.
press invert

Choose “1/32 cutout” for Edge Cut.
choose 1/32 cutout

Same as “F_Cu”, it is very important to set “0” at the x,y,z origin part, and switch On the “edit info collapse” switches.
set "0" for offset

Click “Calculate” for making milling path.
calculate

3D image of “Edge Cuts” is made.
3D image

Lastly, I worked with the “B.Cu” (Hole Cutting) design.
Objective of this process is to remain only “inner circle” since outer circle hole is too big for the Development Board.
Open the B.Cu file with InkScape

Change Back Ground Color from White to Black by setting RGB as 0,0,0.
change background color to Black

Then, export with “PNG file” format.
export as PNG file

You get following design PNG file.
By inverting this color, “Mods” will make hole cut path.
PNG file for hole drill

Open B_Cu PNG file by “Mods”.
Open B_Cu PNG file

Apply “invert” by clicking the button.
invert

Select “1/32 drill” for the hole drilling path.
1/32 drill

Same as previous other settings, it is very important to set “0” at the x,y,z origin part, and switch On the “edit info collapse” switches.
set 0 for origin

Click “Calculate” for making drilling path.
Calculate

You get following 3D view of drilling result image.
3D view


Operation of Copper Board Cut

Following the group work, I proceeded to cut from the “f_Cu” (lines cutting) with Roland SR20 milling machine.

I used new 1/64 inch End-Mill for “f_cu” cutting.
my new 1/64 inch end-mill

Cutting with 1/64 inch End-Mill
cutting with 1/64

First cut was done with 1/64 End-Mill.
first cut done

Cleaned the surface and showed my instructor the cut result, and was tolled “Cut path is opposite!”.
Yes, I made mistake “Not inverting” the path design at the “Mods” for this path making.
First Cut result

Then, I opened the “Mods” and made “revert” of “f_Cu” file and Calculated.
reverted and calculated

Yes, this appearance must be the correct cut path.
3D image of f_Cu correct design

“f_Cu” cut with correct path and surface cleaned for next cut by changing the End-Mill from 1/64 to 1/32 inch.
F_Cu cut with correct path

Hole cutting with 1/32 inch End-Mill
Hole cutting

Edge Cutting with 1/32 inch End-Mill
Edge Cutting

All cut done
All Cut done

Apply seal remover liquid
Applying seal remover liquid

CNC Cut result
Cut result

Surface cleaning with a metal fiver
surface clean

Files

KiCad Project File

KiCad Schematic file

KiCad Board file

CAM RML file: f_CU

CAM RML file: B_Cu

CAM RML file: Edge_Cuts