Difference between revisions of "PCB Artist"

From Mech
Jump to navigationJump to search
 
(87 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[image:CircuitBoard.jpg|right]]
[[image:CircuitBoard.jpg|400px|right]]

== What is a PCB? ==
A printed circuit board, or PCB, is an epoxy board clad with copper sheets to make electrical connections along fixed routes. A PCB can have many layers of copper and insulator, depending on the complexity of the design. Layers are connected with vias, plated holes maintaining electrical conductivity. A finished PCB is often covered with solder mask, a solder-phobic layer that helps prevent solder bridges, making the PCB green. A white silk screen can be drawn on top of this, used to label the outlines of components and give other critical information. For more information on PCBs, see the wikipedia page [http://en.wikipedia.org/wiki/Printed_circuit_board Printed Circuit Board].

PCBs are created in a variety of ways. A common method is covering the copper you wish to keep and dipping the board in acid, which etches away the copper you do not want. This method can be done by hand.

A more professional and reliable PCB can be made by designing your circuit in CAD software and ordering the part from a PCB production house. The remainder of this page will describe how to use the proprietary software PCB Artist to design and order a complete PCB.


== Advanced Circuits and PCB Artist ==
== Advanced Circuits and PCB Artist ==


Advanced Circuits [http://www.4pcb.com (www.4pcb.com)] is a company based in Colorado known for their quick turn around and good prices on low volume printed circuit board (PCB) orders. This has been the main supplier for PCBs created by students for class or research at Northwestern.
Advanced Circuits [http://www.4pcb.com (www.4pcb.com)] is a company based in Colorado known for their quick turn-around and good prices on low volume printed circuit board (PCB) orders. This is the main supplier for PCBs created by students for clases or research at Northwestern.


Previously, the PCB was created in TraxxMaker or other CAD PCB program, many of which are outdated and difficult to use. Advanced Circuits has created PCB Artist, free software to create schematics and PCBs. This software is designed to order only from Advanced Circuits, although the file type produced is .brd. This somewhat simplistic software is very intuitive (once comfortable) and allows for simple changes and editing. Additionally, the component library offered is up to date and contains many specific components. This Wiki page will cover the development and ordering process of the a simple PCB board.
Previously, the PCB was created in TraxxMaker or other CAD PCB program, many of which are outdated and difficult to use, then uploaded to Advanced Circuits. Advanced Circuits has created PCB Artist, free software to create schematics and PCBs. This software is designed to order only from Advanced Circuits. This somewhat simplistic software is very intuitive (once comfortable) and allows for simple changes and editing. Additionally, the component library offered is up to date and contains many specific components. This Wiki page will cover the development and ordering process of a simple PCB board.
<br clear=all>


====Contact at Advanced Circuits====
====Contact at Advanced Circuits====
Line 15: Line 21:
Call: 1-800-979-4PCB (4722) Ext: 1685
Call: 1-800-979-4PCB (4722) Ext: 1685


== Getting Setup ==
== Getting Set Up ==
*Have a complete circuit schematic and know exactly what parts (including part numbers) you are using.
*Have a complete circuit schematic and know exactly what parts (including part numbers) you are using.


*[http://www.4pcb.com/index.php?load=content&page_id=46 Download the software] Or, type “PCB Artist” into google. Then click the download button in the middle of the screen.
*[http://www.4pcb.com/index.php?load=content&page_id=46 Download the software] Or, type “PCB Artist” into google. Then click the download button in the middle of the screen.


*[http://www.4pcb.com/index.php?load=content&page_id=306 Help Guides and User Reference documents]
*Review the material on this page: [http://www.4pcb.com/index.php?load=content&page_id=306 Help Guides and User Reference documents]


Browse through the [http://www.4pcb.com/downloads/pcbartist/PCBArtistTutorial.pdf Advanced Circuits tutorial pdf] to get familiar with the program interface and design process. In general, you will:


*Create a schematic (.sch) that represents the circuit you want to create. This schematic is just like any other schematic you would draw by hand, but it will be used to automate the process of laying out your physical PCB and is very helpful in debugging.
<br clear=all>


*Create a PCB design (.pcb) that represents your physical PCB, based on your schematic. In this CAD process, the program will automatically grab the components you need and place them outside of the board. You then place each component and connect the pins based on how they are connected in the schematic. The program helps you by highlighting the nets (all the pins that need to be connected) in different colors. You choose how to connect each pin, the width of the copper trace, the layer the copper should be on (top or bottom for a 2 sided board), and the size of the vias. You can have PCB Artist automatically place your components and connect them, but the result may not be pretty or successful.
== Ordering ==
Ordering Options:
*Barebones: These boards are very basic. They do not have solder mask (the green coating), or text on the board and the traces are exposed. However, they are fairly cheap (charged by area) and they ship in 1 business day. Perfect for prototyping. [https://www.barebonespcb.com More info]


*Check for errors. Use the Design Rule Check tool to make sure the board is machinable and the pins are connected as they are in your schematic. Carefully scan your board to make sure vias don't accidentally touch traces. Put some silk screen labels next to pins and components, and put your name and the version of your board somewhere for later reference.
*33- Each 2 layer PCBs can be ordered for $33 each, shipping in about a week. These are complete, boards with screen printing and solder mask. The max size is 60 square inches. With the promo “student” the min qty of 4 is waived, allowing you to order a single board. [http://www.4pcb.com/index.php?load=content&page_id=130 More info]


*Order your board! Use the student deal ($33 for one board), but note it generally takes a week to make and a few days to ship (another $15). So order early and design carefully.
*Other promotions: Advanced Circuits offers various other promotions for students and first time customers. If you have questions, contact Jackie Sartin, our rep. [http://www.4pcb.com/index.php?load=content&page_id=129 More info]


Some general tips:
After ordering, it’s a good idea to call and make sure they have received your order, check the turn around date, promotions and any other info.


*Don't try to make a 2" x 2" board if your space constraints allow for a larger board. It is not worth the effort and possible mistakes trying to squeeze everything into a tiny area if you don't have to.
===Advantages===


*Connect your power and ground traces first, they are usually the most complicated.
Many robots are limited by the use of motorized wheels. However, there are many advantages for building a robot that mimics the motion of a snake. Several advantages for movement of a snake robot are listed below:


*Try to keep an organized board. Keep components with many connections close together.
*Move across uneven terrain, since it is not dependent on wheels
*Possibly swim if water-proofed
*Move across soft ground such as sand, since it can distribute its weight across a wider area


*Use a convention like top layer traces go left-right and bottom layer traces go up-down, this will make routing much easier.
Also, from a systems standpoint, the snake robot can be very modular with many redundant segments. As a result, it is very easy to replace broken segments as well as shorten or lengthen the robot.


*Give yourself some prototyping area and add extra vias to traces. Thus will allow you some wiggle room when your board arrives and has errors (every board will have some errors!). Traces can be cut with a razor blade fairly easily if the board is not too tight, and can be remade with wires if you remember to leave some extra vias around to solder to.
===Disadvantages===


==Download and Installation Instructions==
Although there are many advantages for building a snake like robot, there are several disadvantages which are listed below:


Download and install PCB Artist from Advanced Circuits at [http://www.4pcb.com/index.php?load=content&page_id=46 the Advanced Artist website.] The latest version as of 1/7/2010 is 1.3.2. It is PC only and works best in Windows XP.
*Low power and movement efficiency
*High cost of actuators (servos or motors)
*Difficult to control high number of degrees of freedom


To install a library, download [[Media:ME333_Lab22.zip | the example .zip file here]]. Extract the files and place them in the PCB Artist Library folder. On Windows XP the default location is: C:\Documents and Settings\All Users\Documents\PCB Artist\Library, and on Windows Vista or Windows 7 the default location is C:\Users\Public\Documents\PCB Artist\Library.
(Ma, 206)


[[Image:library.jpg]]
== Robot Snake Motion ==
[[image:Serpentine_curves.jpg|thumb|300pix|right|Serpentine Curves]]


==Create a Schematic==
Real snake motion does not follow specified equations. However, research has proven that the serpentine motion of a snake can be modeled with the following equations (Saito etal, 72-73):
Open a new schematic.


[[Image:new_schematic.jpg]]
<math>x(s)= \int_{0}^{s} \cos (\zeta_\sigma) d\sigma</math>


Select Add a Component.
<math>y(s)= \int_{0}^{s} \sin (\zeta_\sigma) d\sigma </math>


[[Image:select_component.jpg]]
<math>\zeta_\sigma= a \cos (b\sigma) +c\sigma </math>


Choose the library your component is in (the ME333 library).
where the parameters ''a'', ''b'', and ''c'' determine the shape of the serpentine motion. The graph shows how the parameters influence the serpentine curve. Basically, ''a'' changes the appearance of the curve, ''b'' changes the number of phases, and ''c'' changes the direction.


[[Image:select_schematic_library.jpg]]


Place the component R-3. Components should be arranged so that the schematic can be read and understood easily, they do not need to be laid out as they would on the PCB, we will do that later. To drag components around in the schematic, click the arrow button in the toolbar at the top to get the arrow cursor.
The serpentine curve can be modeled with a snake like robot by changing the relative angles between the snake robot segments using the following formula with the number of segments (n):


[[Image:place_schematic_component.jpg]]


Add the LED from the ME333 library and connect the components using the Add Schematic Connection tool (the icon on the left that looks like a pencil drawing a line). Such connections will make it easier to create the PCB. They indicate which pins need to be connected on the PCB, but they do not represent the actual paths the traces will take. We will design those later.
<math>\phi_i = \alpha sin(\omega t +(i-1)\beta ) + \gamma, \left ( i=1, ..., n-1 \right )</math>


[[Image:connect_schematic_components.jpg]]
where &alpha; , &beta; , and &gamma; are parameters used to characterize the serpentine curve and are dependent on ''a'', ''b'', and ''c'' as shown below:


Add a voltage source and ground from the Schema library and connect them to the schematic.


[[Image:complete_schematic.jpg]]
<math>\alpha = a \left | \sin \left ( \frac{\beta}{2} \right ) \right | </math>


Save the file (.sch). Now we can design a PCB for this circuit.
<math>\beta = \frac{b}{n} </math>


==Create PCB from Schematic==
<math>\gamma = -\frac{c}{n} </math>
Open your schematic and go to Tools, Schematic <--> PCB, Translate to PCB.


[[Image:translate_to_pcb.jpg]]


Go through the New PCB Wizard, selecting your board size or defining a custom size. This can always be changed later if you need a larger or smaller board.
The equations above for &phi;<sub>i</sub>,&alpha;,&beta;, and &gamma; were used in this snake like robot as shown in the [[Robot Snake#PIC Code|code section]].


[[Image:board_size.jpg]]

Use a 2 layer board with the default properties. At this screen,

[[Image:special_reqs.jpg]]

do not enter anything, but later we will add a comment to allow us to buy a Student discount board for $33 plus shipping.

Enter a board number and revision number. Use a 1 week turn around with 1 unit. Ignore the cost, that will change to $33 later.

[[Image:pcb_production.jpg]]

Have the program place the components outside of your board so you can arrange them where you want them.

[[Image:place_components.jpg]]

Translate the components to the inside of the green box which represents the outline of your board. Rotate a component by right clicking on the part and choosing rotate. All of the components must be moved inside of the green box to finish the board. These will be their locations on the board.

[[Image:move_and_rotate.jpg]]

Select Add Track and connect the pins connected by the yellow line. Try to follow a convention, like a grid, to make things easier on more complicated boards. The default track width should be fine for most purposes. If there will be a lot of current flowing on the track, you should make it wider by right-clicking and choosing Properties. Tracks can be as wide as you want, within the spacing constraints. Ground tracks are often chosen to be as wide as possible.

[[Image:add_trace.jpg]]

A good convention is to have traces running vertically be on one side of the board, and traces running horizontally be on the other. Select a portion of the trace, right click and select Properties. Here you can change the layer of the board and the width of the trace.

[[Image:edit_trace.jpg]]

Notice how the traces are automatically connected with a via to maintain connection.

[[Image:automatic_via.jpg]]

Traces do not have to be drawn orthogonally. While drawing a trace, right click and select segment mode. These different modes will draw traces in a different way. Miter is the most common.

[[Image:miter_trace.jpg]]

An orthogonally drawn trace can be turned into a miter by double clicking the corner and dragging the corner in.

Use the Add Pad button and Add track to complete the circuit. You need to add these vias to make the power and ground connections because they do not translate from the Schematic Schema to the PCB. If you were to make this board, you would solder wires to these vias to supply power.

[[Image:add_via.jpg]]

Add some text reminders to the silkscreen layer to remind yourself where to solder the power and ground, what direction the LED goes, and what resistor to use.

[[Image:add_text.jpg]]

When your board is complete, use the Design Rule Check to automatically look for errors in connecting pins and accidentally crossed traces. You can check all the boxes.

[[Image:design_rule_check.jpg]]

Go to Settings, PCB Configuration to make your board bigger or smaller or change other properties. You can also click on specific edges of your board to resize the board, or use the arrow to drag a box around all the components to select them and drag them around inside the board.

[[Image:pcb_config.jpg]]

Use this document, [[Media:Student Order Process updated 4-14.pdf|Student Order Process]], to purchase a board with the $33 Student Discount. (Maximum board size for this special is 60 square inches.)

Go back to PCB Configuration and Enter Student in the Special Requirements section.

[[Image:student_order.jpg]]

Go to Output, Submit Order. PCB Artist will perform a Design Rule Check. After that, enter the Promotion Code 33each. If you do not have an Advanced Circuits account, go to [http://www.4pcb.com 4pcb.com] and make one. Then you may order your board.

[[Image:submit_order.jpg]]

==Adding a Component to the Library==

A majority of the time the component you want to use is not in the existing libraries, therefore, you have to create a component. A component consists of a schematic symbol, a pcb symbol and a mapping between the pins of the schematic symbol and the pcb symbol. This section details how to create a component using the SN74HC04 Hex Inverter as an example.

===Create a Schematic Symbol===

With PCBArtist open (it doesn't matter if any schematics or pcb files are open), click on the blue book at the top of the screen.

[[Image:PCBArtist_BlueBook.jpg]]
<br clear=all>
This opens the Library Manager of schematic symbols, pcb symbols and components. It will look something similar to the image below.

[[Image:PCBArtist_LibraryManager.jpg]]
<br clear=all>
<br clear=all>


To make a component, we first need to download the datasheet of the component. Download the datasheet for the Hex Inverter [[Media:SN74HC04Inverter.pdf|here]].
== Mechanical Design ==
<br clear=all>
[[image:FullSnake.jpg|thumb|right|The Snake]]
The robotic snake consists of a head segment and several body segments. The head segment houses the onboard microcontroller and xBee radio. The body segments house the servo motors and the batteries required to power each motor. As the snake is designed to be modular, there is no limit to the number of body segments. More segments will allow it to move more smoothly, while fewer segments will be easier to control. For this design, seven body segments were used due to material limitations.


On the first page of the datasheet, we can find a schematic of the component for SN74HC04. We will use this schematic to make our schematic in PCB Artist.
Mechanically, the snake is designed to move in a serpentine motion, imitating the motion of a real snake. As discussed above, real snakes move with anisotropic coefficients of friction. It is difficult to locate materials with this property, but passive wheels satisfy the friction requirements. The friction will be lower in the direction of rolling, thus providing the required difference in friction. The only problem with this approach is that the wheel may slide in the normal direction if the weight applied to the wheel is not sufficient.
*In PCBArtist, click on the 'Schematic Tab' of the Library Manager.
*Click on the 'Wizard' Button in the middle of the window to begin creating a schematic symbol.


This wizard will help you make your schematic symbols.
===Parts List===
*Click 'Next'
[[Image:PCBArtist_Sch_Start.jpg]]
<br clear=all>


*Choose English with a precision of 1 (these are the units for the symbol)
*Motors: Futaba S3004 standard ball bearing RC servo motor, Tower Hobbies LXZV41 $12.99
*Click 'Next'
*Wheels: McMasterCarr Acetal Pulley for Fibrous Rope for 1/4" Rope Diameter, 3/4" OD McMasterCarr 8901T11 $1.66
[[Image:PCBArtist_Sch_Tech.jpg]]
*O-Rings (Tires): McMasterCarr Silicone O-Ring AS568A Dash Number 207, Packs of 50 McMasterCarr 9396K209 $7.60/50
<br clear=all>
*PVC Pipe: McMasterCarr Sewer & Drain Thin-Wall PVC Pipe Non-Perforated, 3" X 4-1/2' L, Light Green McMasterCarr 2426K24 $7.06
*1/8th inch plastic for chassis: (Shop Stock) or McMasterCarr Polycarbonate Sheet 1/8" Thick, 12" X 12", Clear, McMasterCarr, 8574K26 $6.32
*Dowel Pins: 1" long, 1/4" diameter
*Sheet Metal: For the connecting segments
*Fasteners: Screws for the servos and chassis, washers for the standoffs
*Standoffs: Used 1" and 1/2" to achieve a level snake
*Velcro: To attach battery packs and housing to the chasis
*Ball caster: For the head


*Next we are going to choose the type of symbol. Our chip has pins on two sides so select the rectangle with pins on two sides (the first one).
*Select the 'center' option for Origin. If you decide to rotate the symbol, it will rotate about this point.
*Select the top left corner for Component Name. This indicates where the component name will be placed.
*Click 'Next'
[[Image:PCBArtist_Sch_SymbolType.jpg]]
<br clear=all>


*In the next window, you can choose how you want the pins to be represented, the size of these and the length of the lines going to the pins. Leave these with the default values.
=== The Body Segments ===
*Click 'Next'
[[image:Chasis.jpg|thumb|right|A Single Chasis Without a Servo]]
[[Image:PCBArtist_Sch_Styles.jpg]]
<br clear=all>
The next window determines the number of pins on each side of the component and some dimensions.
*Enter 7 for both Pins on left and Pins on Right.
*The other dimensions are not as important for the schematic, leave these as the default. (They can be editted later if too big or too small).
*The last part on this page describes how the pins are numbered. Since the schematic on the datasheet spirals the numbers, select the 'Spiral Round' option.
*Click 'Next'
[[Image:PCBArtist_Sch_Pins.jpg]]
<br clear=all>


The last window is where you name the symbol and save it to a specific library.
Each of the body segments are identical and includes a chassis, a servo, a connector, standoffs and two passive wheels as can be seen in the picture.
*Name the component SN74HC04_Inverter and save it in the ME333_Lab2 Library that you downloaded above.
*Click Finish
You have now created a schematic symbol. If you checked the 'Edit the symbol now' box, you can see the schematic and edit if you want. We won't do any editting right now though.
[[Image:PCBArtist_Sch_Finish.jpg]]
<br clear=all>


===Create a PCB Symbol===
[http://www.youtube.com/watch?v=wBcJkNHEaAs Video of 3 body segments moving]
The next step is to create a pcb symbol for the component. This will be the footprint on your PCB. Look at the datasheet again and find the Plastic Dual-In Line Package footprint for the SN74HC04 (page 10). This tells us the dimensions we need for our footprint.


*Click on the Library Manager (blue book).
==== Chassis ====
*Go to the PCB Symbols tab.
*Click on the Wizard again.
*Click Next on the start up window.
*On the Technology window, choose English with 'thou' as the unit and precision of 1. We choose this because it is the smallest unit on the datasheet for the English units.


The next window is the footprint type.
The base of the chassis is made from a thin (approx. 1/8th inch) piece of polycarbonate. The chassis must be wide enough to hold a servo motor with a AAA battery pack on each side and long enough for the servo and a standoff (the connection for the previous segment). The polycarbonate was cut into a rectangle to meet the specifications for our servo motor. Five holes were then drilled in the rectangle, four to mount the servo and one for the standoff. The holes are drilled to allow the servo to be located in the center of the chassis.
* Select DIP type (the top left).
* For Origin - select center
* For Name - select center - this is where the name will be displayed on the PCB
*Click 'Next'
[[Image:PCBArtist_PCB_FootPrint.jpg]]
<br clear=all>


The next window describes the pads on the PCB. This window will be different for the different types of chips.
==== Connector ====
*Choose 14 pads
*For the Pad Style, choose 'Round' and leave Style blank.
The units are in thousands of inches
*e = 100 for 0.1 in pitch (as shown on the datasheet).
*E = 400. We can put this value between 325 and 430 as shown on the datasheet, but we also know that the chip can plug into a breadboard (spacings of 0.1 in), so 400 thou is a good number.
*PW = 60 and HD = 30. HD refers to the hole diameter for the pin. The pin diameter is around 20 thou as shown on the datasheet, so 30 thou is a good number with extra space. PW is the pad width (extra copper) surrounding the hole. Extra 30 thou is generally a good pad width.
*Choose Pin 1 Position to be the lower left corner (same as in the footprint on the datasheet)
*We don't want the pin numbers to be displayed on the PCB so select Hide for the Pin Numbers
*Pin number is counter clockwise.
*Click Next
[[Image:PCBArtist_PCB_Pads.jpg]]
<br clear=all>


The next window describes the silk screen (the writing on top of the PCB).
A connector was machined to attach to the servo horn of one body segment and to attach to the next segment's standoff. The length of this connector is about 3 inches and is just long enough to prevent collision between segments. A shorter beam allows for greater torque. This connection needs to be as tight as possible and the beam must be mounted perpendicular to the chassis.
*Click Yes
*Layer - Top Silkscreen
*Inside pads by 25 (sometimes you may want the silk screen to be outside the pads, but it is really your choice)
*Include Marks - Notch at end (12.5) --> this helps you figure out the orientation of the component
*Click Next
[[Image:PCBArtist_PCB_SilkScreen.jpg]]


<br clear=all>
[[image:ChasisUnderside.jpg|thumb|right|The Underside of a Chassis]]
The next window asks if you want a placement shape (rectangle) around the entire component. We are not going to include this.
*Click No
*Click Next


*On the final window, name it SN74HC04_Inverter (same name as the schematic) and save it in the ME333 Library.
====Standoffs ====
*Click Finish


You have now created a PCB footprint.
Standoffs were used to attach the servo to the chassis and to attach the connector to the chassis. Two standoffs (1 in and 1/2 in) and several washers were used to make the connector parallel to the ground.


==== Passive Wheels ====
[[image:Wheel.jpg|thumb|left|A Passive Wheel on the Dowel Pin]]
Passive wheels were mounted to the bottom of the chassis. Each wheel was made of a 3/4 inch pulley and an o-ring. The o-ring was used to increase friction with the ground. The wheels have been set on polished metal dowel pins which allow the wheels to rotate more freely than when placed on wooden dowels. The dowel pin axles were mounted (hot glue works but is not very strong) in the center of the segment. The center of the segment is not the center of the polycarbonate rectangle. Instead, the entire segment length is the distance from the standoff on one chassis to the center of the servo horn on the other. In this project, the length of the connector was made to be about half the length of the segment. Therefore, the wheels were placed at the same location as the stand off as can be seen in the image. The wheels are held in place with zip ties.
<br clear=all>
<br clear=all>


===Create a Component===
==== Fully Assembled Body Segment ====
We created a schematic symbol and a pcb symbol above. Now we are going to create a component to link the two symbols.
[[image:BuiltChasis.jpg|thumb|right|A Chassis Built Showing a Standoff and Batteries]]

[[image:BuiltChasis2_MLS.jpg|thumb|right|Chassis with Batteries Removed]]
*Click on the Library Manager and go to the Component tab.
A fully assembled chassis has a mounted servo and is connected to a segment on either side. AAA batteries packs were attached to the sides of the motor with velcro to allow easy removal. The small electronic circuit board for each segment was mounted on the front of the motor to allow easy access to the switch. (See Electronic Design for more information on the circuit board and batteries)
*Click on the Wizard button
*Click Next on the opening window

The first window allows you to select what type of component you are making. You can make a Normal Component (both Schematic and PCB), only a Schematic component or only a PCB component.
*Select Normal Component
*Click Next

This windows contains the details for the component.
*Name = SN74HC04_Inverter (same as the symbols)
*Package - type DIP (this really doesn't matter)
*Default Reference - choose IC for integrated circuit
*Component pins - 14
*Number of Gates - 1 - this is the number of times your schematic symbol is needed for the component
*Click Next
[[Image:PCBArtist_Component_Details.jpg]]
<br clear=all>
<br clear=all>

In the next window you select the schematic symbol that you want to use
*Select SN74HC04_Inverter from the ME333 Library
*Click Next
In the PCB window, you select the pcb symbol that you want to use
*Select SN74HC04_Inverter from the ME333 Library
*Click Next

The next window assigns the pins from the schematic to the pcb.
Since we choose our pins in the schematic and pcb to have the same order:
*Select Assign 1-to-1 button to assign Pin 1 Schematic to Pin 1 PCB ... etc
We can also choose to add names to each pin.
*Assign the pins names (1A,1Y,GND..etc) to each of the pins as shown on the datasheet.
*Click Next
[[Image:PCBArtist_Component_Pins.jpg]]
<br clear=all>

On the final window:
*Click Save the component to the library --> Put it in the ME333 library
If you want to edit the component now (check the next box)
*Click finish

You have now created a component and can use it with schematics and pcbs.

== Practice Making a PCB ==
After reviewing this tutorial, you are ready to [[Practice Making a PCB]].

Latest revision as of 16:01, 13 January 2010

CircuitBoard.jpg

What is a PCB?

A printed circuit board, or PCB, is an epoxy board clad with copper sheets to make electrical connections along fixed routes. A PCB can have many layers of copper and insulator, depending on the complexity of the design. Layers are connected with vias, plated holes maintaining electrical conductivity. A finished PCB is often covered with solder mask, a solder-phobic layer that helps prevent solder bridges, making the PCB green. A white silk screen can be drawn on top of this, used to label the outlines of components and give other critical information. For more information on PCBs, see the wikipedia page Printed Circuit Board.

PCBs are created in a variety of ways. A common method is covering the copper you wish to keep and dipping the board in acid, which etches away the copper you do not want. This method can be done by hand.

A more professional and reliable PCB can be made by designing your circuit in CAD software and ordering the part from a PCB production house. The remainder of this page will describe how to use the proprietary software PCB Artist to design and order a complete PCB.

Advanced Circuits and PCB Artist

Advanced Circuits (www.4pcb.com) is a company based in Colorado known for their quick turn-around and good prices on low volume printed circuit board (PCB) orders. This is the main supplier for PCBs created by students for clases or research at Northwestern.

Previously, the PCB was created in TraxxMaker or other CAD PCB program, many of which are outdated and difficult to use, then uploaded to Advanced Circuits. Advanced Circuits has created PCB Artist, free software to create schematics and PCBs. This software is designed to order only from Advanced Circuits. This somewhat simplistic software is very intuitive (once comfortable) and allows for simple changes and editing. Additionally, the component library offered is up to date and contains many specific components. This Wiki page will cover the development and ordering process of a simple PCB board.

Contact at Advanced Circuits

Jackie Sartin - Regional Sales Manager

E-mail: jackies@4pcb.com Call: 1-800-979-4PCB (4722) Ext: 1685

Getting Set Up

  • Have a complete circuit schematic and know exactly what parts (including part numbers) you are using.
  • Download the software Or, type “PCB Artist” into google. Then click the download button in the middle of the screen.

Browse through the Advanced Circuits tutorial pdf to get familiar with the program interface and design process. In general, you will:

  • Create a schematic (.sch) that represents the circuit you want to create. This schematic is just like any other schematic you would draw by hand, but it will be used to automate the process of laying out your physical PCB and is very helpful in debugging.
  • Create a PCB design (.pcb) that represents your physical PCB, based on your schematic. In this CAD process, the program will automatically grab the components you need and place them outside of the board. You then place each component and connect the pins based on how they are connected in the schematic. The program helps you by highlighting the nets (all the pins that need to be connected) in different colors. You choose how to connect each pin, the width of the copper trace, the layer the copper should be on (top or bottom for a 2 sided board), and the size of the vias. You can have PCB Artist automatically place your components and connect them, but the result may not be pretty or successful.
  • Check for errors. Use the Design Rule Check tool to make sure the board is machinable and the pins are connected as they are in your schematic. Carefully scan your board to make sure vias don't accidentally touch traces. Put some silk screen labels next to pins and components, and put your name and the version of your board somewhere for later reference.
  • Order your board! Use the student deal ($33 for one board), but note it generally takes a week to make and a few days to ship (another $15). So order early and design carefully.

Some general tips:

  • Don't try to make a 2" x 2" board if your space constraints allow for a larger board. It is not worth the effort and possible mistakes trying to squeeze everything into a tiny area if you don't have to.
  • Connect your power and ground traces first, they are usually the most complicated.
  • Try to keep an organized board. Keep components with many connections close together.
  • Use a convention like top layer traces go left-right and bottom layer traces go up-down, this will make routing much easier.
  • Give yourself some prototyping area and add extra vias to traces. Thus will allow you some wiggle room when your board arrives and has errors (every board will have some errors!). Traces can be cut with a razor blade fairly easily if the board is not too tight, and can be remade with wires if you remember to leave some extra vias around to solder to.

Download and Installation Instructions

Download and install PCB Artist from Advanced Circuits at the Advanced Artist website. The latest version as of 1/7/2010 is 1.3.2. It is PC only and works best in Windows XP.

To install a library, download the example .zip file here. Extract the files and place them in the PCB Artist Library folder. On Windows XP the default location is: C:\Documents and Settings\All Users\Documents\PCB Artist\Library, and on Windows Vista or Windows 7 the default location is C:\Users\Public\Documents\PCB Artist\Library.

Library.jpg

Create a Schematic

Open a new schematic.

New schematic.jpg

Select Add a Component.

Select component.jpg

Choose the library your component is in (the ME333 library).

Select schematic library.jpg

Place the component R-3. Components should be arranged so that the schematic can be read and understood easily, they do not need to be laid out as they would on the PCB, we will do that later. To drag components around in the schematic, click the arrow button in the toolbar at the top to get the arrow cursor.

Place schematic component.jpg

Add the LED from the ME333 library and connect the components using the Add Schematic Connection tool (the icon on the left that looks like a pencil drawing a line). Such connections will make it easier to create the PCB. They indicate which pins need to be connected on the PCB, but they do not represent the actual paths the traces will take. We will design those later.

Connect schematic components.jpg

Add a voltage source and ground from the Schema library and connect them to the schematic.

Complete schematic.jpg

Save the file (.sch). Now we can design a PCB for this circuit.

Create PCB from Schematic

Open your schematic and go to Tools, Schematic <--> PCB, Translate to PCB.

Translate to pcb.jpg

Go through the New PCB Wizard, selecting your board size or defining a custom size. This can always be changed later if you need a larger or smaller board.

Board size.jpg

Use a 2 layer board with the default properties. At this screen,

Special reqs.jpg

do not enter anything, but later we will add a comment to allow us to buy a Student discount board for $33 plus shipping.

Enter a board number and revision number. Use a 1 week turn around with 1 unit. Ignore the cost, that will change to $33 later.

Pcb production.jpg

Have the program place the components outside of your board so you can arrange them where you want them.

Place components.jpg

Translate the components to the inside of the green box which represents the outline of your board. Rotate a component by right clicking on the part and choosing rotate. All of the components must be moved inside of the green box to finish the board. These will be their locations on the board.

Move and rotate.jpg

Select Add Track and connect the pins connected by the yellow line. Try to follow a convention, like a grid, to make things easier on more complicated boards. The default track width should be fine for most purposes. If there will be a lot of current flowing on the track, you should make it wider by right-clicking and choosing Properties. Tracks can be as wide as you want, within the spacing constraints. Ground tracks are often chosen to be as wide as possible.

Add trace.jpg

A good convention is to have traces running vertically be on one side of the board, and traces running horizontally be on the other. Select a portion of the trace, right click and select Properties. Here you can change the layer of the board and the width of the trace.

Edit trace.jpg

Notice how the traces are automatically connected with a via to maintain connection.

Automatic via.jpg

Traces do not have to be drawn orthogonally. While drawing a trace, right click and select segment mode. These different modes will draw traces in a different way. Miter is the most common.

Miter trace.jpg

An orthogonally drawn trace can be turned into a miter by double clicking the corner and dragging the corner in.

Use the Add Pad button and Add track to complete the circuit. You need to add these vias to make the power and ground connections because they do not translate from the Schematic Schema to the PCB. If you were to make this board, you would solder wires to these vias to supply power.

Add via.jpg

Add some text reminders to the silkscreen layer to remind yourself where to solder the power and ground, what direction the LED goes, and what resistor to use.

Add text.jpg

When your board is complete, use the Design Rule Check to automatically look for errors in connecting pins and accidentally crossed traces. You can check all the boxes.

Design rule check.jpg

Go to Settings, PCB Configuration to make your board bigger or smaller or change other properties. You can also click on specific edges of your board to resize the board, or use the arrow to drag a box around all the components to select them and drag them around inside the board.

Pcb config.jpg

Use this document, Student Order Process, to purchase a board with the $33 Student Discount. (Maximum board size for this special is 60 square inches.)

Go back to PCB Configuration and Enter Student in the Special Requirements section.

Student order.jpg

Go to Output, Submit Order. PCB Artist will perform a Design Rule Check. After that, enter the Promotion Code 33each. If you do not have an Advanced Circuits account, go to 4pcb.com and make one. Then you may order your board.

Submit order.jpg

Adding a Component to the Library

A majority of the time the component you want to use is not in the existing libraries, therefore, you have to create a component. A component consists of a schematic symbol, a pcb symbol and a mapping between the pins of the schematic symbol and the pcb symbol. This section details how to create a component using the SN74HC04 Hex Inverter as an example.

Create a Schematic Symbol

With PCBArtist open (it doesn't matter if any schematics or pcb files are open), click on the blue book at the top of the screen.

PCBArtist BlueBook.jpg
This opens the Library Manager of schematic symbols, pcb symbols and components. It will look something similar to the image below.

PCBArtist LibraryManager.jpg

To make a component, we first need to download the datasheet of the component. Download the datasheet for the Hex Inverter here.

On the first page of the datasheet, we can find a schematic of the component for SN74HC04. We will use this schematic to make our schematic in PCB Artist.

  • In PCBArtist, click on the 'Schematic Tab' of the Library Manager.
  • Click on the 'Wizard' Button in the middle of the window to begin creating a schematic symbol.

This wizard will help you make your schematic symbols.

  • Click 'Next'

PCBArtist Sch Start.jpg

  • Choose English with a precision of 1 (these are the units for the symbol)
  • Click 'Next'

PCBArtist Sch Tech.jpg

  • Next we are going to choose the type of symbol. Our chip has pins on two sides so select the rectangle with pins on two sides (the first one).
  • Select the 'center' option for Origin. If you decide to rotate the symbol, it will rotate about this point.
  • Select the top left corner for Component Name. This indicates where the component name will be placed.
  • Click 'Next'

PCBArtist Sch SymbolType.jpg

  • In the next window, you can choose how you want the pins to be represented, the size of these and the length of the lines going to the pins. Leave these with the default values.
  • Click 'Next'

PCBArtist Sch Styles.jpg
The next window determines the number of pins on each side of the component and some dimensions.

  • Enter 7 for both Pins on left and Pins on Right.
  • The other dimensions are not as important for the schematic, leave these as the default. (They can be editted later if too big or too small).
  • The last part on this page describes how the pins are numbered. Since the schematic on the datasheet spirals the numbers, select the 'Spiral Round' option.
  • Click 'Next'

PCBArtist Sch Pins.jpg

The last window is where you name the symbol and save it to a specific library.

  • Name the component SN74HC04_Inverter and save it in the ME333_Lab2 Library that you downloaded above.
  • Click Finish

You have now created a schematic symbol. If you checked the 'Edit the symbol now' box, you can see the schematic and edit if you want. We won't do any editting right now though. PCBArtist Sch Finish.jpg

Create a PCB Symbol

The next step is to create a pcb symbol for the component. This will be the footprint on your PCB. Look at the datasheet again and find the Plastic Dual-In Line Package footprint for the SN74HC04 (page 10). This tells us the dimensions we need for our footprint.

  • Click on the Library Manager (blue book).
  • Go to the PCB Symbols tab.
  • Click on the Wizard again.
  • Click Next on the start up window.
  • On the Technology window, choose English with 'thou' as the unit and precision of 1. We choose this because it is the smallest unit on the datasheet for the English units.

The next window is the footprint type.

  • Select DIP type (the top left).
  • For Origin - select center
  • For Name - select center - this is where the name will be displayed on the PCB
  • Click 'Next'

PCBArtist PCB FootPrint.jpg

The next window describes the pads on the PCB. This window will be different for the different types of chips.

  • Choose 14 pads
  • For the Pad Style, choose 'Round' and leave Style blank.

The units are in thousands of inches

  • e = 100 for 0.1 in pitch (as shown on the datasheet).
  • E = 400. We can put this value between 325 and 430 as shown on the datasheet, but we also know that the chip can plug into a breadboard (spacings of 0.1 in), so 400 thou is a good number.
  • PW = 60 and HD = 30. HD refers to the hole diameter for the pin. The pin diameter is around 20 thou as shown on the datasheet, so 30 thou is a good number with extra space. PW is the pad width (extra copper) surrounding the hole. Extra 30 thou is generally a good pad width.
  • Choose Pin 1 Position to be the lower left corner (same as in the footprint on the datasheet)
  • We don't want the pin numbers to be displayed on the PCB so select Hide for the Pin Numbers
  • Pin number is counter clockwise.
  • Click Next

PCBArtist PCB Pads.jpg

The next window describes the silk screen (the writing on top of the PCB).

  • Click Yes
  • Layer - Top Silkscreen
  • Inside pads by 25 (sometimes you may want the silk screen to be outside the pads, but it is really your choice)
  • Include Marks - Notch at end (12.5) --> this helps you figure out the orientation of the component
  • Click Next

PCBArtist PCB SilkScreen.jpg


The next window asks if you want a placement shape (rectangle) around the entire component. We are not going to include this.

  • Click No
  • Click Next
  • On the final window, name it SN74HC04_Inverter (same name as the schematic) and save it in the ME333 Library.
  • Click Finish

You have now created a PCB footprint.


Create a Component

We created a schematic symbol and a pcb symbol above. Now we are going to create a component to link the two symbols.

  • Click on the Library Manager and go to the Component tab.
  • Click on the Wizard button
  • Click Next on the opening window

The first window allows you to select what type of component you are making. You can make a Normal Component (both Schematic and PCB), only a Schematic component or only a PCB component.

  • Select Normal Component
  • Click Next

This windows contains the details for the component.

  • Name = SN74HC04_Inverter (same as the symbols)
  • Package - type DIP (this really doesn't matter)
  • Default Reference - choose IC for integrated circuit
  • Component pins - 14
  • Number of Gates - 1 - this is the number of times your schematic symbol is needed for the component
  • Click Next

PCBArtist Component Details.jpg

In the next window you select the schematic symbol that you want to use

  • Select SN74HC04_Inverter from the ME333 Library
  • Click Next

In the PCB window, you select the pcb symbol that you want to use

  • Select SN74HC04_Inverter from the ME333 Library
  • Click Next

The next window assigns the pins from the schematic to the pcb. Since we choose our pins in the schematic and pcb to have the same order:

  • Select Assign 1-to-1 button to assign Pin 1 Schematic to Pin 1 PCB ... etc

We can also choose to add names to each pin.

  • Assign the pins names (1A,1Y,GND..etc) to each of the pins as shown on the datasheet.
  • Click Next

PCBArtist Component Pins.jpg

On the final window:

  • Click Save the component to the library --> Put it in the ME333 library

If you want to edit the component now (check the next box)

  • Click finish

You have now created a component and can use it with schematics and pcbs.

Practice Making a PCB

After reviewing this tutorial, you are ready to Practice Making a PCB.