Skip to content

7. Electronics design

Assignment

Redraw an echo hello-world board, add(at least)a button and LED (with current-limiting resistor)check the design rules, make it, and test that it can communicate extra credit: simulate its operation

I downloaded Kicad software using link link here After i went to the kicad website and downloaded the worldwide OSDN version for window 10. i watched more tutorals on youtube to get more familiar

Designing process

my work was to create a board with a button that act as switch in put.the plan was for the LED to stay on unless the button was pushed. The componts i would use from the previous board would be: .ATtiny45-20s

.Resistor

.LED

.AVR-ISP-6

.Switch (Button B3SN)

.VCC

.GND

Design Rules

Design Rules define all the parameters that the board layout has to follow. The Design Rule Check checks the board against these rules and reports any violations.

The Design Rules of a board can be modified through the Design Rules dialog, which appears if the DRC command is selected without a terminating ‘;’.

Newly created boards take their design rules from the file ‘default.dru’, which is searched for in the first directory listed in the “Options/Directories/Design rules” path. If no such file is present, the program’s builtin default values apply.

Note regarding the values for Clearance and Distance: since the internal resolution of the coordinates is 1/10000mm, the DRC can only reliably report errors that are larger than 1/10000mm.

File

The File tab shows a description of the current set of Design Rules and allows you to change that description (this is strongly recommended if you define your own Design Rules). There are also buttons to load a different set of Design Rules from a disk file and to save the current Design Rules to disk. Note that the Design Rules are stored within the board file, so they will be in effect if the board file is sent to a board house for production. The “Load…” and “Save as…” buttons are merely for copying a board’s Design Rules to and from disk.

Layers

The Layers tab defines which signal layers the board actually uses, how thick the copper and isolation layers are, and what kinds of vias can be placed (note that this applies only to actual vias; so even if no via from layer 1 to 16 has been defined in the layer setup, pads will always be allowed).

The layer setup is defined by the string in the “Setup” field. This string consists of a sequence of layer numbers, separated by one of the characters ‘‘ or ‘+’, where ‘‘ stands for core material (also known as FR4 or something similar) and ‘+’ stands for prepreg (or any other kind of isolation material). The actual core and prepreg sequence has no meaning to EAGLE or KiCAD other than varying the color in the layer display at the top left corner of this tab (the actual multilayer setup always needs to be worked out with the board manufacturer). The vias are defined by enclosing a sequence of layers with (…). So the setup string

(1*16)

would mean a two layer board, using layers 1 and 16 and vias going through the entire board (this is also the default value). When building a multilayer board the setup could be something like

(12)+(1516)

which is a four layer board with layer pairs 1/2 and 15/16 built on core material and vias drilled through them, and finally the two layer pairs pressed together with prepreg between them, and vias drilled all the way through the entire board. Besides vias that go trough an entire layer stack (which are commonly referred to as buried vias in case they have no connection to the Top and Bottom layer) there can also be vias that are not drilled all the way through a layer stack, but rather end at a layer inside that stack. Such vias are known as blind vias and are defined in the “Setup” string by enclosing a sequence of layers with [t:…:b], where t and b are the layers up to which that via will go from the top or bottom side, respectively. A possible setup with blind vias could be

[2:1+((23)+(1415))+16:15]

which is basically the previous example, with two additional outer layers that are connected to the next inner layers by blind vias. It is also possible to have only one of the t or b parameters, so for instance

[2:1+((23)+(1516))]

would also be a valid setup. Finally, blind vias are not limited to starting at the Top or Bottom layer, but may also be used in inner layer stacks, as in

[2:1+[3:2+(3*4)+5:4]+16:5]

A blind via from layer a to layer b also implements all possible blind vias from layer a to all layers between layers a and b, so

[3:1+2+(3*16)]

would allow blind vias from layer 1 to 2 as well as from 1 to 3.

Kicad layer set up

Click board setup at the top. in layers, you can custom your layer set.

By default, you will have two copper layers. you can see the top copper layer and the bottom copper layer. These are signal layers.

To set up layers in the PCB;

.Select the Board setup button

.Click the layers option

.Select the number of inside layers

Clearance

The Clearance tab defines the various minimum clearance values between objects in signal layers. These are usually absolute minimum values that are defined by the production process used and should be obtained from your board manufacturer.

If you want to change your target length, right click the track and select length tuning setting. As we just saw, the target length is 100mm. we will see what happens when we write 40 mm.

So we set the target length to 40 mm. it is still indicating Too short:37.44mm/40mm. Now we want to make it 40mm.

The actual minimum clearance between objects that belong to different signals will also be influenced by the net classes

Note that a polygon in the special signal named OUTLINES will be used to generate outlines data and as such will not adhere to these clearance values.

Distance

The Distance tab defines the minimum distance between objects in signal layers and the board dimensions, as well as that between any two drill holes. Note that only signals that are actually connected to at least one pad or smd are checked against the board dimensions. This allows edge markers to be drawn in the signal layer without generating DRC errors.

For compatibility with version 3.5x the following applies: If the minimum distance between copper and dimension is set to 0 objects in the Dimension layer will not be taken into account when calculating polygons (except for Holes, which are always taken into account). This also disables the distance check between copper and dimension objects.

Sizes

The Sizes tab defines the minimum width of any objects in signal layers and the minimum drill diameter. These are usually absolute minimum values that are defined by the production process used and should be obtained from your board manufacturer. The actual minimum width of signal wires and drill diameter of vias will also be influenced by the Net Class the signal belongs to.

Restring

The Restring tab defines the width of the copper ring that has to remain after the pad or via has been drilled. Values are defined in percent of the drill diameter and there can be an absolute minimum and maximum limit. Restrings for pads can be different for the top, bottom and inner layers, while for vias they can be different for the outer and inner layers. If the actual diameter of a pad (as defined in the library) or a via would result in a larger restring, that value will be used in the outer layers. Pads in library packages can have their diameter set to 0, so that the restring will be derived entirely from the drill diameter.

Shapes

The Shapes tab defines the actual shapes for smds and pads. Smds are normally defined as rectangles in the library (with a “roundness” of 0), but if your design requires rounded smds you can specify the roundness factor here. Pads are normally defined as octagons in the library (long octagons where this makes sense), and you can use the combo boxes to specify whether you want to have pads with the same shapes as defined in the library, or always square, round or octagonal. This can be set independently for the top and bottom layer. If the “first” pad of a package has been marked as such in the library it will get the shape as defined in the third combo box (either round, square or octagonal, or no special shape). The Elongation parameters define the appearance of pads with shape Long or Offset.

Supply

The Supply tab defines the dimensions of Thermal and Annulus symbols used in supply layers. Please note that the actual shape of supply symbols may be different when generating output for photoplotters that use specific thermal/annulus apertures! See also the notes about “Supply Layers” in the LAYER command.

Masks

The Masks tab defines the dimensions of solder stop and cream masks. They are given in percent of the smaller dimension of smds, pads and vias and can have an absolute minimum and maximum value. Solder stop masks are generated for smds, pads and those vias that have a drill diameter that exceeds the given Limit parameter. Cream masks are generated for smds only.

Misc

The Misc tab allows you to turn on a grid and angle check.

Kicad schematic Editor

I first had to download the component library for FabAcademy first. I used GitLab linkto download the library.i extracted the files and loaded it into a separate directory to incorporate it into Kicad.I added the following,most of the components are from Fab library.

I connected components together

Below is the schematic Editor of the circuit in KiCAD.

Below is PCB made of Route tracks and edgecuts.

I generated SVG images from KiCAD and imported them in GIMP to increase their resolution and convert them in PNG.

Below is my F.CU image in Gimp to produce F.CU PNG.

Below is my Edge cut image in Gimp to produce F.CU PNG.

rml files are exported to mods online software.

Milling PCB

Now after designing PCB i have to mill it.

I printed PCB but i found mistake due to i didn’t invert traces colors in GIMP software.

I collected mistake by inverting traces colors from black color to white color.

You have to make solidaling

You have to measure continuity

After solidering the board i programmed it. my program is in week9.

MY FILES

Here i am uploading the files that i have been making this week.

PCB file


Last update: September 15, 2022