Difference between revisions of "Tutorial: Printed-Circuit Boards"
(→Adding New Elements) |
(→FreePCB) |
||
Line 162: | Line 162: | ||
* Click on a rat-line, highlight it, and press the '''F4''' key, or click on '''Route Segment''' to create a trace. The rat line disappears and is replaced by a green trace (top layer traces are green). | * Click on a rat-line, highlight it, and press the '''F4''' key, or click on '''Route Segment''' to create a trace. The rat line disappears and is replaced by a green trace (top layer traces are green). | ||
* Repeat the process until all the rat-lines have been replaced by traces, as illustrated below. | * Repeat the process until all the rat-lines have been replaced by traces, as illustrated below. | ||
− | + | <br /> | |
+ | <center> | ||
+ | [[Image:FreePCB5.png|500px]] | ||
+ | </center> | ||
+ | <br /> | ||
<br /> | <br /> | ||
<br /> | <br /> |
Revision as of 11:08, 23 June 2011
--D. Thiebaut 12:37, 20 June 2011 (EDT)
Contents
Software
All are open-source.
- TinyCAD
- FreePCB
- ViewMate (get the free registration code via email to install)
- PCBExpress/Sunstone: Web site where to order PCB from.
Process
- First create schematics with TinyCAD
- Then route the lines on a 4-layer board with FreePCB
- Check the CAM files generated by FreePCB with ViewMate
- Once the output files are ready, upload them to PCBExpress (accept 4-layers+mask option).
An Example
- We'll create a PCB for the following simple circuit taken from seekic.com:
TinyCAD
Generating the Schematics
- Open TinyCAD
- Open the 74TTL library in the left pane
- Pick the Hex Inverters
- Drop two inverters on the blank schematics pane
- Update the reference for each gate (U1A and U1B) in the Tool Options window.
- Open the Analog library, and pick the Resistor, and drop it on the schematics pane where resistors are needed. Use the Tool Options window to set the orientation of the resistors to left.
- For each resistor, use the Tool Option menu to set the Ref to Rn where n is 1, 2, 3, or 4, and Add a value field to the Parameter list for indicating the value in ohm.
- To add the crystal, search for it in the Filter box and pick the X-Crystal symbol.
- It might be a good time to save your work!
- Click on the Wire tool button and use the mouse to connect all the component pins together, recreating the wiring of the original circuit.
- Add out output connector (J0 - Connection Output)
Assigning Packages to Parts
- Depending on the type of circuits you will be using, you can now edit your different parts and add a new Package field, as illustrated here for the 7404 chip.
- Refer to the FreePCB documentation for the type of packages supported. Here's the list of packages picked for this project:
U1 14DIP300
Rn RC06
X1 CK12-B
J0 HOLE_100_SQR_200
- (where n in Rn is 1, 2, 3, and 4.)
- Assigning packages to the parts now will allow the FreePCB, our next software tool to automatically generate footprints for our parts.
Testing
- Check your design by clicking on Special in the top menu, then Check Design Rules.
- Accept the defaults and click Check
- You should get a message indicating that Vcc and GND of the 7404 are not connected.
Generate the Net-List File
- Using the top menu, click Special, Create PCB Net List, select PADS-PCB for the format, and save to file.
- You should get the following output:
- You are now ready for the second step
FreePCB
- The official manual for FreePCB is a Must-Read and can be found here.
- Open FreePCB
- From the menu, File, New, and create a new project
- Name: oscillator
- Layers: 2 (sufficient for right now)
- accept all the other default value
- Click Ok
- You should be presented with an empty grid:
Board Outline
- Create the outline of your board. This can be any polygone shape you can define by consecutive points.
- From the top menu, click Add, Board Outline, then click points on the grid to create a rectangle. Don't worry about the size yet, all the points can be moved in or out later to create as tight a layout as you wish.
- Make sure your last point coincide with your first point.
Import the Net List file
- From the main menu, browse around your file system and pick the oscillator.net file created by TinyCAD in the steps above.
- FreePCB should show the parts and rat wires connecting the different parts of your circuit:
- Click on each part and use F4 (Move Part) to move the parts in a layout that minimizes rat lines crossings.
Adding New Elements
- Add two mounting holes for connecting the power to the board: from the menu select Add, Part, th_mounting_hole and pick two circular holes, making sure you give a reference to both of them (we use P1 and P2 here, for Power).
- Add the text "+5V" next to one of the just added mounting holes using the Add, Part, and Text menu options.
Converting Rat-Lines to Copper Traces
- For this project we selected only 2 different copper layers. We'll create traces on the top layer, and reserve the bottom layer for Ground.
- In the leftmost column, select the top copper [1*] so that the white arrow points to it.
- Click on a rat-line, highlight it, and press the F4 key, or click on Route Segment to create a trace. The rat line disappears and is replaced by a green trace (top layer traces are green).
- Repeat the process until all the rat-lines have been replaced by traces, as illustrated below.