Skip to content

7. Electronics design

Reguirements

group project

use the test equipment in your lab to observe the operation of a microcontroller circuit board

Our Group members: Anssi, Achille, Jari and me. This weeks group project documentation is in Achille’s site

individual project

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 it extra credit: simulate its operation

individual project

Research

First got echo hello-world board desing data but I have to note requiremets (add (at least) a button and LED). So, I have to add button and LED to board. Our hello-world board based on ATtiny212/412 microcontroller. I will use my new programmer to program my echo hello-world board.

EchoBoard+Button+LED.jpg

I found good template for my projet. Antti Rytilahti has ready made schema in his page Antti Rytilahti schematic-editor

Template

I used in Electronics production week Autodesk Eagle, but now I decided to use KiCad to design my new PCB.

Plan to work flow

KiCad install and Fab Lab settings 1. Downloading installing programm 2. Installing of KiCad 3. Fab Lab settings 4 Design of PCB 1. Create a schematic 2. Create a layout 3. Create the actual PCB 4. Production of PCB 1. Milling data 2. Cut 3. Milling Soldering Programming Testing

KiCad install and Fab Lab settings

Installing process

Step 1. I went KiCad home page. There I found download button for downloading.

KiCad-01.jpg

Step 2. I saved kicad-6.0.2-x86_64.exe to my PC

KiCad-02.jpg

Step 3. I started installing process to start kicad-6.0.2-x86_64.exe. I did not changed componets selections. Default selections was OK for me.

KiCad-03.jpg

Step 4. I set destinatin Folder for KiCad program

KiCad-04.jpg

Step 5. Then installing started

KiCad-05.jpg

Step 6. Installing took time, but at last installing was at the end.

KiCad-06.jpg

Step 7. At last I konfigured KiCad to start with default settings

KiCad-07.jpg

Fab Lab settings

After installing it is necessary to included Fab Lab’s components libraries and footprints to KiCad.

Step 1. I went Gitlab to download libraries. Address is https://gitlab.fabcloud.org/pub/libraries/electronics/kicad There are good instruction to install libraries. I followed that in next steps KiCad+FabLab-01.jpg

Step 2. I pushed download icon. Then popup menu appeared. KiCad+FabLab-02.jpg

Step 3. I downloaded repository in Zip format (Compressed Folder) to my PC KiCad+FabLab-03.jpg

Step 4. Then I Unzipped Zip (Compressed Folder) to KiCad folder KiCad+FabLab-04.jpg

Step 5. I opened KiCad. I selected Preferences and then Configure Paths… KiCad+FabLab-05.jpg

Step 6. Then popup menu appeared. KiCad+FabLab-06.jpg

Step 7. I clicked plus mark to add new line to FAB KiCad+FabLab-07.jpg

Step 8. Then I selected to Path Kicad-master folder KiCad+FabLab-08.jpg

Step 9. Now there are new line to FAB Kicad-master KiCad+FabLab-09.jpg

Step 10. Then I selected Preferences and then Manage Symbol Libraries… KiCad+FabLab-10.jpg

Step 11. Then popup menu appeared to choose Global Symbol Table. I selected default value (Copy default global symbol library table) and pushed OK button. KiCad+FabLab-11.jpg

Step 12. Then popup Symbol Libraries table appeared KiCad+FabLab-12.jpg

Step 13. I clicked plus mark to add new line to fab.lib KiCad+FabLab-15.jpg

Step 14. I selected fab.lib file from Kicad-master folder KiCad+FabLab-16.jpg

Step 15. Now there are new line to fab.lib file KiCad+FabLab-17.jpg

Step 16. Then I selected Preferences and then Manage Footprint Libraries… KiCad+FabLab-18.jpg

Step 17. Then popup Global Footprint Library table appeared. I selected default value (Copy default global footprint library table) and pushed OK button. KiCad+FabLab-19.jpg

Step 18. Now there are new line to fab.pretty KiCad+FabLab-23.jpg

Design of PCB

Start new project

Step 1. I selected File and then New Projet… KiCad-Design-01.jpg

Step 2. Then popup Menu appeared to give name and select folders new project. I gave name EchoHello_ATiny KiCad-Design-02.jpg

Step 3. After that project have EchoHello_ATiny.kicad_pcb and EchoHello_ATiny.kicad_sch parts KiCad-Design-03.jpg

Schematic design - Schematic Editor

Step 1. I selected Tools and then New Projet… KiCad-Design-04.jpg

Step 2. Then new Sheet appeared KiCad-Design-05.jpg

Step 3. I started to add components to sheet - Place/Add symbol. First I added Microcotroller. KiCad-Design-06.jpg

Step 4. Then new menu appeared. I typed to filter field “fab att”. KiCad-Design-07-1.jpg

Step 5. Then I got list. I selected “Microcontroller_ATtiny412_SSFR” KiCad-Design-08.jpg

Step 6. Then selected component appeared to Sheet. KiCad-Design-09.jpg

I added rest of components and symbols (Grd and Vcc) to sheet in the same way (Steps 4, 5 and 6)

These components and symbols are needed to insert to sheet - ATtiny412 (Main IC) - C (Capacitor) - R (Resistor) - BUTTON_B3SN (Push bottun, OMRON) - LED (LED) - Conn_FTDI_01x06_Male (6pin connector for FTDI) - Conn_01x03_Male (3pin connector for serial&power) - VCC - GND

Note! You can use hotkey to rotate (“R”) components

Step 7. Then all components and symbols were on sheet. I got a idea add pictures of template and components list to sheet. KiCad-Design-10.jpg

I connected components and symbols wires tool by hotkey “w”.

Then I started to give values to components.

Step 8. I clicked component and then I pushed hotkey “v” to open value menu. KiCad-Design-12.jpg

I added rest of values to components in the same way (Step 8 ).

Now all components were values, but not numbers. I ran Annotate Schematic to number components

Step 9. I clicked Tools and then Annotate Schematic… KiCad-Design-13.jpg

Step 10. Then Annotate Schematic menu appeared. Defaults values were ok. I pushed Annotate button. KiCad-Design-14.jpg

Step 11. Then Annotate messages appeared. I pushed Close button. KiCad-Design-15.jpg

Step 12. After that components got number values. KiCad-Design-16.jpg

Next I checked electrial rules

Step 13. I clicked Inspect and then Electrial Rules Checker KiCad-Design-17.jpg

Step 14. Then Annotate Electrial Rules Checker menu appeared. I pushed Run ERC button. KiCad-Design-18.jpg

Step 15. Checking gave some errors and warnings. I checked errors and warnings and fixed them KiCad-Design-19.jpg

Then I checked footprints

Step 16. I clicked Tools and then Assign Footprints… KiCad-Design-20.jpg

Step 17. Then Assign Footprints menu appeared. I checked that all components had footprints. I clicked first line “1C11uF:fab:c_1206” KiCad-Design-21.jpg

Step 18. Then Footprint picture of component appeared. KiCad-Design-22.jpg

PCB design

Step 19. To start PCB design I clicked Tools and then Update PCB from Schematic… KiCad-Design-23.jpg

Step 20. Then Update PCB from Schematic menu appeared. I pushed Update PCB button. KiCad-Design-24.jpg

Step 21. And next I pushed Close button. KiCad-Design-25.jpg

Step 22. All components appeared onto PCB KiCad-Design-26.jpg

Step 23. I zoomed view KiCad-Design-27.jpg

Step 24. I placed and rotated components to right positions KiCad-Design-29.jpg

Step 25. Then I connected all the wires except Gnd. KiCad-Design-30.jpg

Step 26. Then I added text “Hello World Echo by HTL” KiCad-Design-31.jpg

Step 27. I placed the text to right positions KiCad-Design-32.jpg

Step 28. Then I drawed Edge Cut KiCad-Design-33.jpg

Then I addedd Ground area

Step 29. I clicked Place and then Add Filled Zone KiCad-Design-34.jpg

Step 30. Then Copper Zone Properties menu appeared. I clicked OK button KiCad-Design-35.jpg

Step 31. Then Update PCB from Schematic menu appeared. I clicked Update PCB button KiCad-Design-36.jpg

Step 32. Now my PCB was ready KiCad-Design-37.jpg

At finally I plot milling files

Step 33. I File and then Plot… KiCad-Design-38.jpg

Step 34. Then Plot menu appeared. KiCad-Design-39.jpg

Step 35. I choosed Plot format: Gerber, Include Layers: F.Cu, Edge.Cuts I clicked Plot button KiCad-Design-40.jpg

Step 36. At last I got gerber files to milling. KiCad-Design-41.jpg

Step 37. I also saved Plot format: SVG, Include Layers: F.Cu, Edge.Cuts I clicked Plot button KiCad-Design-42.jpg

Production of PCB and programming

I have documented PCB manufacturing and echo hello board programming processes in week 5. Electronics productions.

Testing

Step 1. I connected the board to my programmer EchoBoard+Button+LED-02.jpg

Step 2. I uploaded echo program to Echo board. It works fine. EchoPCB-Testing-01.jpg

Files

KiCad files

.SCH EchoHello_ATtiny.kicad_sch

.PCB EchoHello_ATtiny.kicad_pcb

.PRO EchoHello_ATtiny.kicad_pro

Gerber format

.GRB EchoHello_ATtiny-F_Cu.gbr

.GRB EchoHello_ATtiny-Edge_Cuts.gbr

SVG format

.SVG EchoHello_ATtiny-F_Cu.svg

.SVG EchoHello_ATtiny-Edge_Cuts.svg