Monday 25 December 2017

STEPS FOR DESIGNING A PCB(USING KICAD)

1. Draw the schematic( In kicad)

2. Ds1307 was not in component library. With the help of an existing component , modidied it and named it as ds1307 using libedit( as far as i remembered)

3. After completing schematic do the erc Check.( Electrical rules check).

4. Do the necessary correction.

5. Now generate the netlist file. Use the default pcbnew option.

6. Now run cvpcb from the schematic window to assign footprints to the corresponding components. Observed that footprints for 7segments(both 1inch and .56 inch were not present).

7. Open Pcbnew and click 'new module'  to open footprint editor.

8. First set the grid value to 1.27mm.
then draw the pads in through hole mode and spacing between pins 2.54mm. This is done according the to the concerned datasheet.

9. After drawing footprint save it with a name( 7segment-ca && 7segment-ca-56in) in the current active library/directory named 'display'.

10. Now run cvpcb again. Assign the corresponding footprints to the components. Click 'save'. All information will be saved in a given name with a .cmp extension.

11. Now run pcbnew for a second time. Read the netlist file. All components along with footprints will pile on the top left corner of the pcbnew window.

12. Draw a line arround it with the select tool and drag it in the middle of pcbnew window.

13. For a complex design like rtc autorouting is required. KiCad does not have this facility, but it has allied software FreeRouting for autorouting from FreeRouting.net. Plugin for FreeRouting is there in 'Tool' option in pcbnew window.

14. What I have done: Download FreeRouting zip archieve from github. It is freerouting-master.zip of 8.?? Mb size. This archieve has a folder named 'binaries'. This folder contains two files: freerouting.jar & freerouting.exe. I executed freerouting.exe, a small window appeared seeking the .dsn file exported from kicad.

15. Previously from the dialogbox of 'tool'-->FreeRouting option in pcbnew window i exported my RTC layout as RTC.dsn file which is received by FreeRouting window.

16. A new window according to the size of layout will be opened. Click button Autorouting. The traces will be started drawing by the software itself.

17. After completing autorouting the layout board is to be exported to session file with .ses extension. Close FreeRouting window.

18. Open KiCad again now import board layout from the corresponding session file( .ses file) generated by FreeRouting software. There were no border line mentioned. Select Edges-Cuts from the options menu. Now selecting ... tool draw the board outline by clicking at the four corners of the board. End the drawing by double clicking the mouse.

19. Now produce gerber files. Go to File-->plot menu dialog from pcbnew layout window. Keep the default options. Select gerber from the plot menu. Select the required destination folder. Now press gerber button. Four files will be generated for 2 layers pcb. Again generate the drill file. Set the destination folder, press drill button. Note: Here something must be done for putting the correct solder mask over the pcb(i did not do this as i made the pcb without solder mask with a HAL finish).

20. Now produce the map file from the same plot window. Send these set of files to the manufacturer.

Contact Subhra: subhra.mukherjee.kol@gmail.com

Subhra's Philosophy


No comments:

Post a Comment