Showing posts with label LTspice. Show all posts
Showing posts with label LTspice. Show all posts

Friday, 11 October 2019

Tutorial 1.11: Calculating the Currents in the PCB:


The Circuit in LTspice


1.      The circuit in LTspice looks like shown in figure 1.11A below:


Fig. 1.11A: Circuit In LTspice



The Currents


1.    The drain current in U2 Si4128Dy is as shown in by the light blue trace 

       figure 1.11B below:


Fig. 1.11B: Drain Current in Si128DY Over 1ms.




2.     The drain current in Si4128DY in the time period of (60 – 280)us is shown in 

         figure 1.11C below.


Fig. 1.11C: Drain Current During Time Period of (60 - 280)us.



3.      The RMS value of the drain current during the period of (60-280)us = 1.7001A.

4.      The RMS value of the drain current in U2 over 1ms time period is 907.78mA as 

          shown in figure 1.11D below:


Fig. 1.11D: RMS Value of Drain Current of 1ms Time Period


5.      RMS Source current of U2 over a time period of 1ms = 907.66mA as shown in 

         figure 1.11E below:



Fig. 1.11E: Source Current U2 Over Time Period of 1ms


6.      The current in U1 LTC1624 pin SW up to 1ms = 63.165mA as shown in 

          figure 1.12F in the purple trace below:



Fig. 1.11F: Current in pin SW of U1 LTC1624 Over 1ms Time Period


7.      The current in inductor L1 is shown by the light blue trace in figure 1.11G below. 

8.      The RMS current in inductor l1 over a 1ms period = 1.9488A.



Fig. 1.11G: Current in Inductor L1 Over 1ms Period



9.     The current in the trace or wire between R2 and C1 as in the LTspice circuit in
        
         figure 1.11A above is shown in figure 1.11H below:



Fig. 1.11H: Current in Trace or Wire Between R2 and C1


10.    The current between R2 and C1 has an RMS value of = 1.9488A.

11.     From the above, we can conclude that the RMS value of the current does not 

          exceed 2A and reaches a peak value spikes of 6.4A over a period 

          of 280us - 60us = 220us.



Summary of Currents


A summary of current calculations from previous tutorials are shown in table 1.11A below:



Table 1.11A: Summary of Previous Current Calculations


A further summary of current calculations are shown in table 1.11B below:

Table 1.11B: Further Summary of Previous Current Calculations




KiCad Eeschema Circuit


The KiCad Eeschema circuit is shown for ease of reference in figure 1.11I below:


Fig. 1.11I: KiCad Eeschema Circuit



Input Current


1.     The input current in the conductor between IN pin V1 and capacitor C5 1000p in 
   

        the LTspice circuit is shown by the light blue trace in figure 1.11J below:




Fig. 1.11J: Conductor between IN pin V1 and capacitor C5 1000p Over Time Period of 1ms

2.     As can be seen from above the input current in the conductor between IN pin V1 

        and capacitor C5 1000p  over a time period of 1ms is 907.73mA

3.     The input current in the conductor between pin V1 IN and capacitor C5 1000p  over 

        a time period of 40us and 280us is shown by the light blue trace in figure 1.11K below:




Fig. 1.11K: Current In Conductor between pin V1 IN and capacitor C5 1000p Over Time Period 40us - 280us



4.       The RMS value of the current is 1.6329A.

5.        The results over 1ms period of 907.73mA are tabulated in table 1.11C below:



Table 1.11C: Input Current Pin V1 of IN Over 1ms Period





LTspice Capacitor C5



1.      The current in the LTspice circuit in capacitor C5 1000p over 1ms period is shown 



          in the purple trace in the figure below:




Fig. 1.11L: Current in LTspice Capacitor C5

2.      The current in capacitor C5 1000p over 1ms period is 3.404mA

3.      Capacitor C5 1000p in LTspice is C2 1000pF in KiCad Eeschema.



Conductor LTspice Capacitor C5 1000p and pin Sense-  of U1 LTC1624 and R4 .033


1.    The current in the LTspice circuit in the lower conductor between C5 1000p and 

        pin Sense- of U1 LTC1624 and R4 .033 is shown by the light blue trace in 

        figure 1.11M  below:




Fig. 1.11M: conductor between LTspice Circuit C5 1000p and pin Sense- of U1 LTC1624 and R4 .033

2.      As can be seen, it is described as I(R4)+Ix(U2D) by the LTspice software and is 
  
         written in light blue at the top of the graph in the figure above. 

3.       It is the current in R4 .033 and Drain current U of U2 Si4128DY. 

4.       It is in total 3.43mA. 

5.       In KiCad Eeschema it is the current in the lower top horizontal conductor between 

          pin 1 ISENSE of U1 LTC1624CSB and Drain current pins 5, 6, 7, 8 of U2

           SI4128DY_T1-GE3.



LTspice Pin Vin of U1 LTC1624




1.     In the LTspice circuit the current flows into pin Vin of U1 LTC1624 is shown in the 



        light blue trace in figure 1.11N below:



 
Fig. 1.11N: Current flowing Into Pin Vin of U1 LTC1624




2.      This current is 6.4948mA.

3.      In the KiCad Eeschema circuit, it is the current that flows into 

         pin 8 VIN of U1 LTC1624CSB.


4. A summary of the currents calculated above by LTspice are shown in table 1.11D below:



Table 1.11D



Current In LTspice Circuit Capacitor C2 100p


1.      In the LTspice circuit current in C2 100p capacitor is shown in the light blue trace in 

        the figure below:


Fig. 1.11O: Current In Capacitor C2 100p in LTspice Circuit

2.        In the LTspice circuit the current in capacitor C2 100p is 354.8nA. 

3.        In KiCad Eeschema it is capacitor C1 100pF.



Current In Capacitor C4 0.1u In LTspice Circuit



1.      In the LTspice circuit the current in capacitor C4 0.1u is shown in the light blue trace 

        in figure 1.11P below:



Fig. 1.11P: Current in Capacitor C4 0.1uF in LTspice Circuit


2.      The current is 54.69mA. 

3.       In KiCad Eeschema it is referred to as C4 0.1uF.


The Current In Diode D1 MBRS340 In The LTspice Circuit 


1.     The current in the LTspice circuit in diode D1 MBRS340 is shown in the light blue 

        trace in figure 1.11Q below:



Fig. 1.11Q: Current In Diode D1 MBRS230 In LTspice Circuit

2.       Current in the diode D1 MBRS340 is 1.7209A. 

3.        The Kicad Eeschema diode is referred to as D1 MBRS340.


Current In The Conductor Between Pin Tg of U1 LTC1624 And Pin G of U2 Si4128DY


1.      In the LTspice circuit the current in the conductor between pin Tg of U1 LTC1624 

        and pin G of U2 Si4128DY is shown by the light blue trace in figure 1.11R below:





Fig. 1.11R: Current Between Pin Tg of U1 LTC1624 and Pin G of U2 Si4128Dy


3.      In the LTspice circuit the current between pin Tg of U1 LTC1624 and pin G of U2 

         Si4128DY is 14.396mA. 

4.      In the Kicad Eeschema circuit the conductor is between pin 6 TG of U1 LTC1624CSB

         and pin 4 Gate of U2 SI4128DY-T1-G3.

5.      Summary of calculations done above are summarized as follows in table 1.11E below:


Table 1.11E



Current In The Conductor In LTspice Circuit Between Pin FB of U1 LTC1624 

And R2  35.7K And R1 20K 



1.       The current in the conductor in LTspice Circuit between pin FB of U1 LTC1624 and 

          R2 35.7K and R1 20K is shown in the light blue trace in figure 1.11S below:




Fig. 1.11S: Current In The Conductor  Between Pin FB of U1 LTC1624 and R2 35.7K and R1 20K


2.      The current in the conductor in the LTspice circuit between pin FB of U1 LTC1624 

         and R2 35.7K and R1 20K is 374.34nA. 

3.     The KiCad Eeschema description of this conductor is the conductor between 

         pin 3 SET of U1 LTC1624CSB and R2 35.7k and R3 20k.




Current In Capacitor C1 200u In The LTspice Circuit 




1.      The current in capacitor C1 200u in the LTspice circuit is shown in the light blue 

         trace in figure 1.11R below:



Fig. 1.11R: Current In Capacitor C1 200u In LTspice Circuit


2.     The current in capacitor C1 200u in LTspice circuit is 1.627A. 

3.      The KiCad Eeschema description of this capacitor is C5 200uF. 

4.      The calculations done above are tabulated in table 1.11F:



Table 1.11F


KiCad Eeschema Circuit With All The Relevant Currents 



The KiCad Eeschema circuit with all the relevant currents is shown in figure 1.11S below:


Fig. 1.11S: KiCad Eeaschema Circuit With Currents Indicated


Conclusion

From the above we can classify the currents into two groups:

1.       Currents that range from 354.8nA to 63.165mA and are below 100mA; and


2.        Currents that range from 671.75mA to 1.9488A  and are below 2A.




Previous: Tutorial 1.10: Assign Footprints To Switching Regulator and MOSFET Transistor.







Friday, 20 September 2019

Tutorial 1.9: Assign Footprints to Resistors


The Circuits


1.     Our circuit Eeschema circuit looks like shown in figure 1.9A below:




Eeschema circuit diagram
Fig. 1.9A: Eeschema Circuit




2.     The LTspice XVll simulation circuit of the Eeschema circuit is shown in figure 1.9B

         below:



LTspice simulation circuit
Fig. 1.9B: LTspice Simulation Circuit.


Calculate The Power Consumption In The Resistors







Watch this video on Youtube Calculate Power in Resistors Using LTspice

Power Consumption in Resistor (10 R1 - 6.8k) in Eeschema



1.     The power plot or light blue trace of R1 - 6.8kohm in Eeschema (R3 in 


        LTspice circuit) is shown in figure 1.9C below:



Power Graph in R1 as calculated by LTspice
Fig. 1.9C: Power Graph in R1




2.      The power in R1 in Eeschema starts at 0 then goes up to  23uW after 0.05ms. 


3.       The power thereafter remains at zero and then at 0.25ms goes briefly to 6uW.


4.       The average power in R1 as calculated by LTspce in R1 over a period of 1ms is 


          403.59nW.


5.       The point is the power consumption in R1- 6.8kohm in Eeschema  


          (R3 in LTspice circuit) is very low so a normal 250mW resistor should be more


          than adequate. 






Power Consumption in (11 R2 - 35.7k) in Eeschema


1.     The power plot or light blue trace of R2 - 35k7 ohm in Eeschema (R2 in 

        LTspice circuit) is shown in figure 1.9D below:



Power Graph in R2
Fig. 1.9D: Power Graph in R2




2.      From the light blue trace, it can be seen that the power consumption in R2 starts at 0.

3.      After 0.1ms it starts to rise until at about 0.25ms it reaches about 130uW.

4.      After a slight overshoot, it settles at 130uW. 

5.      The average power in R2 as calculated by LTspce in R2 over a period of 1ms is 

          104.37uW.

5.      A normal 250mW resistor should be more than adequate. 




Power Consumption in R3 - 20K ohm in Eeschema


1.     The power plot or purple trace of R3 - 20k ohm in Eeschema (R1 in 

        LTspice circuit) is shown in figure 1.9E below:


Fig. 1.9E: Power Graph in R3



2.      From the purple trace or plot, it can be seen that the power consumption in 

          R3 starts at 0.

3.      After 0.1ms it starts to rise until at about 0.25 ms it reaches about 73 uW.

4.      After a slight overshoot, it settles at roundabout 71uW.

5.       The average power in R3 as calculated by LTspce in R3 over a period of 1ms is 

          58.477uW.

6.       A normal standard 250mW resistor should be more than adequate. 


Power Consumption in R4 - 0.033 ohm in Eeschema


1.     The power plot or light blue trace of R4 - 0.033 ohm in Eeschema (R4 in 


        LTspice circuit) is shown in figure 1.9E below:




Fig. 1.9E Power Trace Plot in Resistor R4 0.033 Ohm




2.      From the red trace or plot, it can be seen that the power consumption in R4 

          starts at approximately 0.08ms at a peak of 0.9W

3.      After 0.1ms it starts to rise until at about 0.15 ms it reaches a peak of about 1.4W.

4.      It then drops down to a peak of about 1.3W after 0.25ms.

5.      After that, it collapses completely to 0W at 0.28ms.

6.      It then wakes up at 0.29 ms raises briefly to perhaps a peak of 0.3W.


7.      After about 0.35ms it never exceeds a peak of 0.2W.


8.       We can thus say after 0.28ms or 280us a normal standard 250 mW resistor should 


          be more than adequate. 


9.      The question is what about the time period between 0.1 ms (100us) and 

         0.28ms   280us?   

10.     We can ask LTspice to expand the graph and then we get the power consumption in 

         R4 in the period of 0.1 ms (100us) and 0.28ms (280us) shown in figure 1.9F below.


Fig. 1.9F: Power Consumption in R4 during 60us - 280 us.


11.       We can ask LTspice to calculate the average power consumption which shown 

           in the square in the upper left and is estimated at 95.38mW.  

12.     Once again a normal standard 250 mW resistor should be able to handle this.

Current in R4 0.033 Ohm Resistor


1.     We may as well look at the current in R4 the 0.033 Ohm resistor.

2.     The Current plot in the R4 resistor is shown in figure 1.9G below:

Fig. 1.9G: Current in R4 0.33 Ohm Resistor

3.     We can say that the current in R4 peaks at 6.6A in the first 0.25 ms and after about 0.2
    
        ms peaks at 2.4A.

4.     Current in R4 in the time period between 80uS and 280uS is shown in figure 1.9H

        below:


Fig. 1.9H: Current in R4 between 100uS and 280uS.



5.     Over the time period of (80-280)us we can say the average current is 736.35mA and
    
        root mean square value is 1.7822A.  

6.     Current in R4 after 0.21 ms is shown in figure 1.9I below:


Fig. 1.9I: Current in R4 after 0.28ms

7.     The current for the time period between 210us to 1ms is on average 281.04mA and 

        the RMS value is 671.75mA. 

8.     The current plays an important role in our choice of copper thickness. 



KiCad Resistor Footprint Format


1.      Footprints are grouped into libraries (directories with .pretty extension) based on 

         their primary function. 

2.       Each footprint is a .kicad_mod file (stored within a .pretty directory).


Axial Resistors


1.      The format for axial resistors is:

          R_Axial_L[Length]_D[Diameter]_P[Pitch]_[Modifiers]_[Orientation]_[Options] 

2.       Where:

           2.1.       L - Length - Resistor body length.

           2.2.       D - Diameter - Body diameter.

           2.3.        P - Pitch - Lead spacing.

            2.4.       Modifiers - Modifiers to footprint specifications (Optional).

            2.5.       Orientation - Resistor orientation (Vertical / Horizontal) (Optional).

            2.6.        Options - Extra footprint options (Optional).

3.        Example: R_Axial_L3.6mm_D1.6mm_P5.08mm_Horizontal 

4.        This means the leads of the resistor are axial, the body length of the resistor is

            3.6 mm, the diameter of the resistor is 1.6 mm, the spacing between the leads are 

            5,08 mm and the footprint is for a horizontally mounted resistor.


Choose Resistor Footprint and Assign Resistor Footprint to Resistors






You can watch this video on YouTube by clicking on choose and assign resistor footprint.



Choose Resistors for R1, R2 and R3


1.     A good choice for resistors would be the Vishay MBA/SMA 0204 series.

2.     The datasheet can be found at Vishay

3.      Particulars of the resistors appear in figure 1.9J below:

 Particulars of Vishay Resistors
Fig. 1.9J: Particulars of Vishay Resistors


4.      The technical specifications are shown in figure 1.9K below:

Technical Specification of Resistors
Fig. 1.9L: Technical Specification of Resistors
5.    From the above, we see that MBA/SMA 0204 has a DIN size of 0204, resistance range

       0,22 Ohm to 10 Mega Ohm and a rated dissipation of 0.4 W.

6.    The resistor dimensions are shown in figure 1.9L below:


Resistor Dimensions
Fig. 1.9L: Resistor Dimensions
 7.     The MBA/SMA 0204 resistors have:

         7.1     L = 3.0 mm.

         7.2     D = 1.6 mm.

         7.3     M (or P in KiCad) = 5.0 mm.

8.      Re-written in KiCad format it would be: R_Axial_L3.6mm_D1.6mm_P5.00mm.

Assign Footprints to Resistors R1, R2 and R3


1.     In the Assign Footprints window in the middle window Symbol: Footprint  

         Assignments click on 10   R1 -     6.8k :.

2.      In the left column under Footprint Libraries click on Resistor_THT.

3.      In the right column under Filtered Footprints double click on 

        Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08_Horizontal 

4.      Click on View selected footprint icon.

5.      It is the icon with the vertical IC with red legs and magnifying glass in the lower 

          right corner.

6.       The footprint should be as shown in figure 1.9M below:


Kicad Resistor Footprint
Fig. 1.9M: Resistor Footprint


7.       Click on the 3D Display icon.

8.     It is the icon with a square dark grey component mounted in a green PCB board  

          viewed from the side.

9.      It is shown in figure 1.9N below:


3D View of Resistor
Fig. 1.9N: 3D View of Resistor


10.     Click on Apply, Save Schematic & Continue. 

11.      Repeat for all the other resistors up and until 12   R3 -      20k:. 

12.      After all the resistors have been assigned footprints it should like in the 

           Assign Footprints window as  shown figure 1.9O below:




Footprint Assignments to R1, R2 and R3
Fig. 1.9O: Footprint Assignments to R1, R2 and R3

13.      Click Apply, Save Schematic & Continue.

14.      Click OK.



Choose Resistor and Design Resistor and Assign Footprint





You can watch this video on YouTube by clicking on design resistor footprint and 

assign resistor footprint.


Choose Resistor for Symbol 13 Resistor R4 0.033 Ohm 


1.      I found this SBL4R033J current sense resistor of 0.033 ohm on 

         the element 14 website.


2.      Particulars of the resistors appear in figure 1.9P below:



0,033 Ohm Resistor on element 14 website
Fig. 1.9P: 0,033 Ohm Resistor on element 14 website



3.    It costs $2.15 for one.

4.    For the technical datasheet of the resistor click on SBL4R033J 

5.    The particulars of Tyco Electronic low ohmic current sense resistors are shown in 

        figure 1.9Q.

Low Ohmic Current Sense Resistors
Fig. 1.9Q: Low Ohmic Current Sense Resistors

6.       The dimensions for the low ohmic resistors are shown in figure 1.9R below:



Dimensions of Low Ohmic Current Sense Resistors
Fig. 1.9Q Dimensions of Low Ohmic Current Sense Resistors



Design Footprint For Resistor  R4 0.033 Ohm


1.     Open the Footprint Editor.

2.     Click File and select New Footprint ...

3.     Type in the name:

        THT_R_Axial_L18mm_D6.4mm_P40.00_Horizontal.

4.     Click OK.

5.     Click File and select Save.

6.     Choose in my case the KICADFootprints library.

Draw Pad1


1.    Select Add pad.

2.    Set the pad properties as in figure 1.9R below:


Properties of Pad1 of Resistor Footprint
Fig. 1.9R: Properties of Pad1 of Resistor Footprint

3.   Click OK.


Draw Pad2


1.    Select Add pad.

2.    Set the pad properties as in figure 1.9R below:



 Properties of Pad 2 of Resistor
Fig. 1.9R: Properties of Pad 2 of Resistor


3.   Click OK.


Draw The Front Fabrication Layer of The Footprint


The fabrication layers are used to display the simplified mechanical outline of

components on the PCB. The recommended line width is 0.1mm.


Draw The Top Horizontal Line of Mechanical Outline


1.     In the Footprint Editor click Add graphic line.

2.      Draw a horizontal line. 

3.      Set the properties of the line as in figure 1.9S below:


Fabrication Layer Top Horizontal Line
Fig. 1.9S: Fabrication Layer Top Horizontal Line

4. Click OK.


Draw The Bottom Horizontal Line of Mechanical Outline


1.     In the Footprint Editor click Add graphic line.

2.      Draw a horizontal line opposite and below the top horizontal line. 

3.      Set the properties of the line as in figure 1.9T below:



Fabrication Layer Bottom Horizontal Line of Footprint for Resistor
Fig. 1.9T: Fabrication Layer Bottom Horizontal Line


4. Click OK.



Draw The Left Vertical Line of Mechanical Outline


1.      In the Footprint Editor click Add graphic line.

2.      Draw a vertical line to the left and between the top and bottom horizontal lines. 

3.      Set the properties of the line as in figure 1.9U below:



Fabrication Layer Left Vertical Line
Fig. 1.9U: Fabrication Layer Left Vertical Line



4.     Click OK.


Draw The Right Vertical Line of Mechanical Outline


1.      In the Footprint Editor click Add graphic line.

2.      Draw a vertical line to the left and between the pad and bottom horizontal lines. 

3.      Set the properties of the line as in figure 1.9V below:



Fabrication Layer Right Vertical Line
Fig. 1.9V: Fabrication Layer Right Vertical Line

4.      Click OK.


Draw Left Horizontal Line Pad To Body (Left Terminal Outline)


1.      In the Footprint Editor click Add graphic line.

2.      Draw a vertical line to the left and between pad 1 and body vertical line. 

3.      Set the properties of the line as in figure 1.9W below:



Fabrication Layer Left Terminal Outline Pad to Body
Fig. 1.9W: Fabrication Layer Left Terminal Outline

4.     Click OK.


Draw Right Horizontal Line Pad To Body (Right Terminal Outline)


1.      In the Footprint Editor click Add graphic line.

2.      Draw a horizontal line to the right and between pad 2 and body vertical line. 

3.      Set the properties of the line as in figure 1.9X below:



Fabrication Layer Right Terminal Outline
Fig. 1.9X: Fabrication Layer Right Terminal Outline




4.      Click OK.



REF** Text On Fabrication Layer


1.      In the Footprint Editor click Add Text.

2.      Type " %R"  in the Text box of the Footprint Text Properties window. 



3.      In the Layer drop-down list choose F.Fab.


4.      The Footprint Text Properties should be as in figure 1.9Y below:


Footprint-Text-Properties-of-REF**
Fig. 1.9Y: Footprint Text Properties of REF**


5.     Click OK.



Silkscreen Layer


1.       The silkscreen is printed to the external surface of a PCB to aid in 

          the component identification and orientation. 

2.      This layer contains the component RefDes (reference designator) to 

          locate components on the board after assembly. 

3.       Silkscreen line width should nominally be 0.12 mm.


Draw Horizontal Lines


1.      In the Footprint Editor click Add graphic line.

2.      Draw the top horizontal line just above the top horizontal line in the fabrication layer. 

3.      Set the properties of the line as in figure 1.9Z below:



Silkscreen Layer Top Horizontal Line
Fig. 1.9Z: Silkscreen Layer Top Horizontal Line


4.     Click OK. 

5.     Draw the bottom horizontal line in the same manner except set Start point Y:

        and End point Y: at 3,3.


Draw Vertical Lines


1.      In the Footprint Editor click Add graphic line.

2.      Draw the left vertical line between the horizontal lines on the left. 

3.      Set the properties of the line as in figure 1.9AA below:



Left Vertical Line in Silkscreen layer
Fig. 1.9AA: Left Vertical Line in Silkscreen Layer


4.      Click OK.


5.      Draw the right vertical line on the right, between the horizontal lines.

6.     The only difference is that Start point X: and End point X: is at 9,1.



Draw The Horizontal Lines Pad To Body


1.      In the Footprint Editor click Add graphic line.

2.      Draw the left horizontal line to the right and between pad 2 and the vertical line

         of the body. 

3.      Set the properties of the line as in figure 1.9BB below:



Silkscreen Left Horizontal Line Pad To Body
Fig. 1,9BB: Silkscreen Left Horizontal Line Pad To Body


4.     Click OK.

5.      Draw the right horizontal line on the right, between the vertical body line and pad 2.

6.     The only difference is that Start point X: is at 9,1 and End point X: is at 18,5.



REF** Text On Silkscreen Layer


1.      In the Footprint Editor click Add Text.

2.      Type " REF**"  in the Text box of the Footprint Text Properties window. 

3.      In the Layer drop-down list choose F.SilkS.

4.      The Footprint Text Properties should be as in figure 1.9CC below:      


Silkscreen Layer REF**
Fig. 1.9CC: Silkscreen Layer REF**


5.      Click OK.

Courtyard Layer


1.    The component courtyard is defined as the smallest rectangular area that

       provides a minimum electrical and mechanical clearance around the combined

       component body and land pattern boundaries. 

      
2.    It is allowed to create a contoured courtyard area using a polygon instead of a


       simple rectangle. (IPC-7351C).

3.    Courtyard uses line width 0.05mm.

4.     All courtyard line elements are placed on grid of 0.01mm.

5.      Unless otherwise specified, clearance is 0.25mm.


6.      Connectors, Canned capacitors and crystals should have a clearance of 0.5mm.

7.      BGA devices should have a clearance of 1.0mm.


8.      Kicad example of courtyard layer is shown in figure 1.9CCA below:

Kicad example of courtyard layer or outline
Fig. 1.9CCA: Kicad example of courtyard layer


9.      See Kicad Courtyard Layer Requirements.



Draw Horizontal Lines of Courtyard Layer


1.      In the Footprint Editor click Add graphic line.

2.      Draw the top horizontal line just above the top horizontal line in the fabrication layer. 

3.      As far as the total width of the courtyard is concerned, take: the pitch width along an

         axis  +  the radius of the pad.

4.     This gives us 20mm + 2.5mm/2 = 21.25mm.

5.     To this, we must add 0.25mm courtyard clearance = 21.25mm + 0.25mm = 21.50mm.

6.      However, let's make it 22mm.

7.      As far as the height is concerned we already have the top horizontal silkscreen

         line at 3.3mm.

8.     If we add 0.25mm for courtyard clearance then we have 3.3mm + 0.25mm 

        = 3.55mm.

9.      So let us make that then at 3.6mm.

10.    Set the properties of the line as in figure 1.9DD below:




Horizontal Line of Courtyard
Fig. 1.9DD: Horizontal Line of Courtyard



11.     Click OK.

5.       Now draw the bottom horizontal line on the courtyard layer.

5.      The only difference set Start point Y: and End point Y: at 3,5mm.



Draw Vertical Lines of Courtyard Layer


1.      In the Footprint Editor click Add graphic line.

2.      Draw the left vertical line between the horizontal lines on the left. 


3.      Set the properties of the line as in figure 1.9EE below:



Vertical Line of Courtyard
Fig. 1.9EE: Vertical Line of Courtyard


4.     Click OK.

5.     Draw the right vertical line between the horizontal lines on the right.

6.     The only difference set Start point X: and End point X: to 22.

7.     Finally, the footprint for symbol 13, resistor R4 of 0.033 Ohm is as shown in

        figure 1.9FF:



Footprint for 0.033 Ohm Resistor
Fig. 1.9FF: Footprint for 0.033 Ohm Resistor


8.     Assign footprint to 13. R4 0,033 ohm as is shown in figure 1.9GG below:


Footprint Assigned To 13 R4 0.033 Ohm Resistor
Fig. 1.9GG: Footprint Assigned To 13 R4 0.033 Ohm Resistor




Let me know if you notice any mistakes.