KiCad/Миниурок: различия между версиями

Содержимое удалено Содержимое добавлено
м робот косметические изменения
Строка 3:
<!-- Взято с http://kicad.bokeoa.com/wiki/index.php/Mini_tutorial , нужно перевести и перенести оттуда картинки в викисклад -->
 
== Вводный миниурок KiCad ==
<!-- ==Mini-Tutorial Scope== -->
 
Строка 25:
__TOC__
 
== Создание проекта ==
<!-- ==Creating the KiCad project.== -->
 
Строка 38:
#* Сохраните проект кнопкой ''"Сохранить" ("Save")''. В папке появится файл ''RS232.pro'', содержащий установки вашего проекта.
 
<center>[[ИзображениеФайл:Kicad main window.png|KiCAD Project Manager]]</center>
 
В правой части панели имеются четыре большие кнопки запуска компонентов KiCad. Слева направо, это:
Строка 48:
Каждая кнопка запускает соответствующую программу. Мы будем использовать эти программы по мере изучения (за исключением '''GerbView''').
 
== Создание принципиальной схемы в EeSchema ==
<!-- ==Drawing the Schematic with EeSchema== -->
 
Строка 56:
На правом краю окна редактора схем есть вертикальная панель инструментов, которые мы и будем использовать для рисования схемы. Этими инструментами можно выбирать объекты, размещать компоненты, вводить связи и т.д.
 
<center>[[ИзображениеФайл:Eeschema main window1.png]]</center>
 
Завершение работы инструмента: вы можете выбрать другой инструмент из правой инструментальной панели или же указать '''End Tool''' по правому клику мышки.
 
=== Инструмент ''Добавить компоненты'' ===
 
* На правой панели нажмите кнопку ''Добавить компоненты (Add components)'' (она выглядит как вентиль И). Курсор изменится со стрелки на карандаш. Кликните в поле схемы чтобы начать размещение компонента. Появится диалог '''Выбор компонента (Component Selection)'''. Вы можете выбрать компонент несколькими путями:
Строка 75:
* Для начала нажмите '''Используя Обозреватель библиотек (By Lib Browser)'''. Выберите библиотеку '''CONN''' (разъемы). В соседней панели прокрутите вниз и выберите разъем '''DB9'''. Условное графическое изображение разъема будет видно в правой панели. В инструменте нажмите '''Экспортировать в схему (Export to Schematic)''' справа.
 
<center>[[ImageФайл:Add_Components_Tool.PNG|500px]]</center>
 
* Левой кнопкой мышки вставьте символ в нужное место схемы. Позже вы сможете переместить его если нужно. Зеркальное отражение компонента можно произвести следующим образом:
Строка 84:
** Вставьте остальные пять конденсаторов как показано на рисунке. Это сделать легко если использовать двойной клик в '''Списке истории (History list)''' диалога '''Выбор компонента (Component Selection)'''.
 
<br /><center>[[ImageФайл:Add_Components_Tool_2.PNG|500px]]</center><br />
 
** Вставьте другие компоненты из списка ниже используя методику этого урока.
Строка 93:
(имеется идентичная копия в библиотеке "special")
 
=== Панорамирование и Масштаб ===
 
Во время работы со схемой вы можете перемещаться по схеме (pan) и изменять масштаб (zoom), следующими способами:
Строка 101:
* И наконец, наиболее удобно использовать колесо мышки, вращая которое можно изменить масштаб в точке курсора мышки. Также, если просто кликнуть на колесо, дисплей сцентрируется в точке курсора мышки.
 
=== Инструмент ''Добавить питание'' ===
 
Для подключения питания и земли к компонентам схемы в EeSchema предназначены специальные псевдокомпоненты. Они не похожи на обычные компоненты, так как им не соответствуют реальные корпуса с контактными площадками. Это символы из библиотеки "power". Их можно ставить в схему инструментом "Add Components", но есть способ проще.
Строка 113:
2x PWR_FLAG
 
=== Инструмент ''Выбор'' (''Selection'') ===
 
'''Активируйте инструмент "Selection"''' - это кнопка со стрелкой на правой панели инструментов. Это инструмент по умолчанию, который становится активным при окончании других инструментов клавишей Esc или по правому клику - "End Tool". При выборе "Selection" курсор имеет форму стрелки.
 
В режиме селекции вы можете выполнять различные операции с компонентами: сдвиг, дать новую ориентацию, копировать и т.д. - кликнув правой клавишей мыши на компоненте. В сущности это можно делать в режиме "Add component" по правому клику. Но главное отличие режима селекции от режимов "add" состоит в реакции на левый клик. Левый клик в режиме "add" добавляет соответствующую тему (компонент, связь и т.д.), тогда как в режиме селекции левый клик дает возможность выделить множество объектов в прямоугольном регионе и перетащить их.
 
Освобождение левой клавиши мышки в конце операции drag-select засвечивает выбранные компоненты. Если затем сдвинуть мышь, вместе с ней потянется и селектирование. Чтобы сделать нечто еще с селекцией, сделайте правый клик. Высплывающее меню имеет несколько опций, включая '''Zoom, Place, Save, Copy, Drag, и Delete'''.
Строка 127:
(As an alternative to choosing the selection
operation by right-clicking, you can use the Ctrl and Shift keys while
you're dragging out the selection rectangl)e. Look at the popup menu
to see which keys do what. It doesn't work to use Ctrl and Shift
after you have dragged out the rectangle; they must be down during the
initial left-down that begins the rectangle.
Строка 136:
'''Расставьте компоненты''' как показано на рисунке ниже, используя технику, описанную выше. На рисунке показаны все расставленные компоненты, но еще не соединенные связями.
 
[[ImageФайл:parts_schematic.png]]
 
Теперь назначьте емкости конденсаторов "0.1 uF" в соответствии со спецификацией MAXIM.
Чтобы сделать это, сделайте правый клик на каждом конденсаторе, выберите "Edit Component > Value" и измените "CP" на "0.1 uF".
Если у вас много конденсаторов с одним номиналом, вы можете ускорить работу, копируя конденсатор с нужным номиналом контекстной командой "'''Copy Component'''" - копия будет иметь тот же номинал. Также можно назначить номинал сразу же после добавления компонента в схему - меню по правому клику доступно и в режиме "Add Component".
 
В нашей схеме только конденсаторам нужно ставить номинал. Для других компонентов поле номинала содержит номер компонента (the part number). Номинал может иметь значения сопротивления, емкости, частоты, скорости и т.д.
Строка 150:
Нумеровать компоненты, как видите, несложно. Это можно сделать и после соединения всех связей. Но это нужно обязательно сделать до запуска контроля схемы (Electrical Rules Check) или генерации списка связей (Netlist Generation).
 
=== Инструмент ''Добавить соединения'' ===
 
'''Активируйте инструмент "Add wires"''' из правой панели инструментов.
Строка 165:
Zoomed in finished wire connections:
 
[[ImageФайл:zoomed_schematic.png]]
 
=== "Electrical Rule Check" - проверка схем ===
 
Задача Electrical Rule Check (ERC) - проверка корректности соединений схемы.
Строка 178:
 
 
''Примечание.'' Иногда при запуске ERC вы можете получить сообщение вроде '''"Item not annotated: #FLG?" (or #PWR?'''. Это означает, что вы забыли присвоить схемные номера (reference designators) некоторым компонентам. Используйте команду "'''Schematic Annotation'''" для автоматической нумерации компонентов как это было описано выше. Вы могли пронумеровать комоненты и вручную, но есть сложности с поиском элементов. Дело в том, что поиск "'''Find Components and Texts'''" (он выглядит как бинокль) трактует символ "?" как шаблон одного символа, и поиск "#PWR?" найдет компонент "#PWR5", "#PWR6" и т.д. Сейчас пока что нет возможности отключить "?".
Друга проблема поиска состоит в том, что он не подсвечивает найденный компонент. Но это можно попробовать обойти таким образом: увеличьте схемы и сделайте поиск. Он обычно центрирует экран рядом с найденным компонентом.
 
Строка 189:
ERC маркирует проблемное место маленькой стрелкой (вы можете записать список проблем в файл). Увидеть что это за нарушение можно, кликнув на стрелочке и взглянув на статусную строку. Если разыскать некоторые стрелки затруднительно, попробуйте отыскать "Find components and texts".
 
==== Инструмент ''Добавить метку неподключенного вывода'' ====
 
ERC обычно сообщает в протоколе пины, никуда не подсодиненные. В некоторых случаях это реальная проблема - пропущенный контакт; в других же случаях может быть пин никуда не соединен намеренно. Вы можете объяснить контролеру ERC о намеренном неподсоединении пина, ставя на него маркер "'''noconn'''".
Строка 201:
<figure>
 
==== Ошибки на выводах питания - PWR_FLAG ====
 
Кликните на маркере ошибки (маленькая стрелка) на одном из симолов питания (GND or +5V) и посмотрите на статусную строку внизу слева окна. Вы увидите сообщение вроде такого:
Строка 215:
Подсоедините флаг PWR_FLAG к связи +5V и другой - к GND и перезапустите ERC. Это дожно избавить от оставшихся ошибок. На рисунке ниже показано отсутствие ошибок когда все соединения сделаны верно.
 
[[ImageФайл:complete_ERC.png]]
 
=== Редактирование параметров компонента ===
 
Перед продолжением проведите визуальную проверку того, что верные значения даны всем
Строка 232:
Окончательная схема должна выглядеть примерно так
 
[[ImageФайл:complete_schematic.png]]
 
=== Генератор списка соединений ===
 
'''Создать список соединений''' - щелкните по кнопке "Создание списка соединений"
Строка 243:
которое получается из названия проекта.
 
== Определение типов корпусов с помощью Cvpcb ==
<!-- ==Assigning package types with Cvpcb.== -->
 
Строка 286:
Рисунок, демонстрирующий законченный список:
 
[[ImageФайл:complete_cvpcb.png]]
 
Теперь сохраните список соединений нажатием на кнопку "Сохранить список соединений и список компонентов"
Строка 303:
и связанные с ними модули/типы корпусов. Такой файл полезен при сборке печатной платы, когда последняя уже будет изготовлена.
 
== Разводка печатной платы в Pcbnew ==
<!-- ==Laying out the circuit board with Pcbnew.== -->
 
Строка 313:
''or from the "Run Pcbnew" button in EeSchema's top toolbar.''
 
=== Чтение списка соединений (Reading in the netlist) ===
 
'''Считать список цепей(соединений) - «Read in the netlist file».''' Если диалог выбора списка цепей (netlist) не начинается автоматически, нажмите на кнопку "Считать список цепей"("Read netlist") находящуюся на верхней панели инструментов. В окне диалога, нажмите кнопку «Пролистать»(«Browse»), чтобы запустить диалог выбора файла, а затем выберите файла списка цепей(netlist), который вы недавно создали для своего проекта. Вернувшись в диалог считывания соединений, нажмите кнопку «Считать загруженный список цепей» («Read Current Netlist») в Pcbnew, после этого запустите проверку печатной платы(«Footprint Test») на возможные ошибки в расположении посадочных мест(модулей) под компоненты.
Строка 321:
-модуль имеет меньшее количество выводов, чем связанный с ним компонент
 
-обозначения выводов модуля не соответствуют обозначениям выводов компонента (например, выводы компонента могут быть пронумерованы, в то время как выводы модуля могут быть обозначены буквам)
 
Чтобы исправить такие ошибки, вам придется: или выбрать другой модуль, соответствующий компоненту, или изменить компонент, или изменить модуль — но так чтобы они совпадали.
Строка 329:
 
''English:''
'' '''Read in the netlist file'''. If''
''the netlist selection dialog doesn't start automatically, click the''
''"Read netlist" button in the top toolbar. In the Netlist dialog,''
''click Select to get a file selector dialog, then choose the netlist''
''file that you have just created for our project. Back in the Netlist''
''dialog, click Read to load the netlist file into Pcbnew, then Module''
''Test to check for possible errors in the assignment of modules to''
Строка 351:
 
''Note that you can reread the netlist into a partially designed board,''
''for example if you make a change to the schematic. The details of''
''this process are not be covered in this tutorial.''
 
=== Расстановка модулей (Spreading out the modules) ===
 
Редактор схем Pcbnew при загрузке нового списка соединений добавляет все его модули в чертеж. Это ставит их всех в одном месте, друг поверх друга, где их порой трудно найти.Если чертёж не имеет контур(очертания) платы, то недавно добавленные модули находятся на пересечении с двумя синими линиями сверху и слева от листа с рамкой. Если чертеж имеет контур платы, то в дальнейшем новые модули размещаются на обозначенной плате.
 
Отдельными модулями очень легко управлять. Сначала нажмите на кнопку "Режим работы Модуля: ручное и автоматическое перемещение или место расположения модулей" ("Mode Module: Manual and Automatic Move or Place for modules"), на верхней панели (вторая справа). Необходимо чтобы кнопка была во "вжатом" положении. Затем щелкните правой кнопкой мыши в пустом пространстве чертежа, и выберите пункт "Перемещение и размещение Glob"> «Переместить все модули» ("Glob Move and Place>Move All Modules"). Это расставит модули.
 
Переместите группу модулей в центр листа следующим образом: выделите все содержащиеся модули рамочкой (т.е. удерживая левую кнопку мыши до тех пор, пока не переместите курсор мыши в расположенный напротив край рамочки). Отпустите кнопку мыши, переметите мышь, таким образом что бы рамочка была около цента красного наброска листа. Левая кнопка закрепить в новом положении, и нажмите кнопку ОК в диалоговом окне.
Строка 369:
''English:''
''When you load a new netlist, Pcbnew adds all of its modules to the''
''drawing. It places them all in one place, on top of one another,''
''where they are sometimes difficult to find. If the drawing does not''
''yet have a board outline, newly-added modules are placed at the''
''intersection of the two blue lines above and left of the sheet frame.''
Строка 378:
'' '''Separate the modules''' so they are easy to manipulate. First click on''
''the "Mode Module ..." button in the top toolbar (second from right).''
''You want that button to be in the "down" position. Then right-click''
''in an open area of the drawing, and select "Glob Move and Place>Move''
''All Modules". That will spread out the modules.''
 
''Move the group of modules to the center of the sheet as follows:''
''Drag-select a rectangle containing all the modules (i.e. hold down the''
''left mouse button while moving the mouse to the opposite corner''
''of the rectangle). Release the mouse button, the move the mouse''
''so the rectangle is near the center of the red sheet outline.''
''Left-click to place the block in the new position, and click''
Строка 392:
''If you end a block operation with right-click instead of left-click,''
''you'll get a popup menu that lets you can choose operations like Copy,''
''Drag, Mirror, and Delete. "Mirror" is is how you move modules from''
''the top "component" side to the bottom "copper" side of the board, and''
''vice versa.''
 
''At this point you could draw the outline of your circuit board. That''
''would be especially appropriate if you already know the board form factor.''
''In this tutorial, we'll decide on the board size later and wait to''
''draw in the outline. When a board outline has been defined, Pcbnew can''
''place components automatically, but we're going to do a manual placement.''
 
=== Вспомогательное размещение - Placement aids ===
 
Прежде чем мы продолжим с размещением, давайте взглянем на некоторые особенности Pcbnew, которые могут нам помочь с этой задачей. Наиболее важными из них являются ratsnests и airwires(соединения по воздуху).
Строка 408:
''English:''
''Before we continue with placement, let's look at some of Pcbnew's''
''features that can help us with that task. The most important are''
''ratsnests and airwires.''
 
==== Ratsnests и Airwires ====
 
При перемещении модулей, Pcbnew будет показывать "airwires", представляющие собой белые линии соединений каждого из контактов модулей до ближайшей точки (контакта или дорожки) в той же цепи. Airwires(соединения по воздуху, воздушные нити) динамически меняются когда вы двигаете компонент, "как резинка" и временами "обхватывают" остальные близлежайшие конечные точки. Эта функция поможет вам найти места с предельно короткой протяженностью связи. Вы можете включать функцию airwire одновременно с "Модулем Ratsnest"("Module Ratsnest"), кнопка на левой панели инструментов.
 
Так как модуль airwires предназначен для просмотра, Pcbnew умеет показывать общий ratsnest("general ratsnest"), с указанием всех несвязанные цепей на всем чертеже. Это полезно для просмотра плохо различимых точек на чертеже - в районах пересечений вспомогательной сетки. В более поздних стадиях процесса трассировки, это полезно для обнаружения цепей, которые еще не были разведены. Вы можете включать эту функцию одновременно с "Общим ratsnest"("General ratsnest"), кнопка на левой панели инструментов. Если ratsnests отображается неправильно, то команда "Обновить" (кнопка в правой части меню, или средняя кнопкой мыши), зачастую, исправит картину.
 
Если вы хотите не использовать "Общий ratnests" - отключить для удобства просмотра, но все еще хотите видеть ratsnest для определенного контакта или компонента, используйте "Местное отображение Ratsnest"("Display Local Ratsnest", в русской версии этот инструмент называется "Добавить модули" - согласно справочным данным "KiCad"), расположенный на правой панели. Когда этот инструмент активен, нажав на контакт или модуль - будет показывать его ratsnest. Вы можете добавить дополнительные отображения ratsnests, нажав на нескольких модулях, или очистки показ, нажав в пустой области. (Вы можете увидеть модуль ratsnest, переместив его, но возможен риск разорвать какую-нибудь связь, которая уже подключена к нему. Если вы нарушите связи таким образом, вам придется удалить связи или их сегменты и восстановить их.)
Строка 423:
''When you are moving a module Pcbnew will show "airwires", which are''
''white lines connecting each of the modules pins to the nearest other''
''place (pin or track) on the same net. The airwires dynamically''
''change as you move the component, "rubberbanding" and sometimes''
''"snapping" to other nearer endpoints. This feature helps you find''
''placements with short overall connection lengths. You can turn the''
''airwire feature on and off with the "Module Ratsnest" button in''
Строка 432:
''In addition to the per-module animated airwires, Pcbnew can display''
''a "general ratsnest", showing all the unconnected nets for the whole''
''drawing. That's useful for seeing "hotspots" in the drawing - areas''
''where many nets cross. In later stages of the layout process, it's''
''helpful for locating nets that have not yet been routed. You can''
''turn this feature on and off with the "General ratsnest" button in''
''the left toolbar. If the ratsnests seem to display incorrectly,''
''the "Redraw" command (in the right-click menu, or middle mouse button)''
''will often fix the display.''
Строка 442:
''If you want to leave "general ratnests" turned off for tidiness, but''
''you still want to see the ratsnest for a specific pin or component,''
''use the "Display Local Ratsnest" tool in the right toolbar. When that''
''tool is active, clicking on a pin or module will display its ratsnest.''
''You can add additional ratsnests to the display by clicking on more''
''modules, or clear the display by clicking in an empty region. (You''
''could see a module's ratsnest by moving it, but that would risk breaking''
''any tracks that are already connected to it. If you break tracks in''
''this way, you would have to delete the tracks or some segments thereof''
''and reconnect them.)''
 
==== Подсветка цепи - Net highlighting ====
 
«Подсветка цепи» инструмент (на правой панели) предусматривающий другой метод просмотра соединений для конкретной цепи. С активацией этой инструмента, при нажатии на ножку(площадку) или на дорожку, все ножки(площадки) и дорожки в этой цепи станут подсвечены. При нажатии на другую ножку(площадку) изменится подсветка новой цепи, при нажатии на свободное место погасится вся подсветка.
 
 
''English:''
''The "Net highlight" tool (right toolbar) provides another way to see''
''the connections for a particular net. With that tool active, if you''
''click on a pad or a track, all of the pads and tracks on that net''
''will be highlighted. Clicking on a different pad will change the''
''highlight to the new net, and clicking in an empty are will clear''
''all the highlighting.''
 
==== Правила контроля чертежа - Design Rules Check ====
 
«Правила контроля чертежа» («DRC») - функция контроля новых трасс(соединений), чтобы они не слишком близко располагались друг к другу. Эти разрешающие правила настраиваются в пункте меню - «Размеры»> «Дорожки и переходные отверстия»(«Dimensions»>«Tracks and Vias»). С включенными Правилами контроля чертежа("DRC On"; по умолчанию), Pcbnew не позволит вам разместить отрезок трассы(дорожки), который нарушает правила. При проведении отрезка трассы, «охраняемое пространство» вокруг него отображается узким линиями. Если это «охраняемое пространство» совпадает с имеющимся объектом, Pcbnew не размещает отрезок трассы при нажатии кнопки. Правила контроля чертежа могут быть отключены «Выключить Правила контроля чертежа»("DRC Off"), в верхней части левой панели.
Строка 473:
''English:''
''The "Design Rule Check" (DRC) feature checks new tracks to ensure that''
''things don't get too close together. (The clearance rules are configured''
''by the "Dimensions>Tracks and Vias" menubar item.) With "DRC on" (the''
''default), Pcbnew will not allow you to place a track segment that violates''
''the rules. While you are drawing a track segment, the "keepout area"''
''around it is shown by narrow lines. If that keepout area overlaps an''
''existing object, Pcbnew won't place the segment when you click.''
''DRC can be turned off with the "DRC Off" button at the top of the left toolbar.''
 
''Now let's return to the task at hand. '''Place the components''' as shown in the''
''following figure. You can right-click over a module to select various''
''ways to move and reorient it.''
 
<figure>
 
=== Автоматическая разводка(трассировка) - Auto-routing ===
 
Разместив все модули, давайте попробуем авто-трассировку. Команды автоматической трассировки доступны в меню нажатием правой кнопкой мыши, но сначала вам надо сделать их доступными - нажатием кнопки "Режим Трассировки и Авто-трассировки"("Mode Track and Autorouting" ), кнопка на верхней панели инструментов.
Строка 499:
 
''English:''
''Having placed all the modules, let's '''try the auto-router'''. The auto-routing''
''commands are accessed with the right-click menu, but you first have to''
''enable them by clicking the "Mode Track and Autorouting" button in the''
Строка 505:
 
''We wish to make a single-sided board for this simple circuit, so we'll''
''tell the auto-router to use only one side. Right-click in an empty area''
''and select "Global Autoroute>Select layer pair". In the dialog, select''
''"Copper" for both Top Layer and Bottom Layer, and click OK. (Some people''
''call it the "solder side" instead of the "copper side".)''
 
''Now right-click in an empty area and select "Global Autoroute >''
''Autoroute All Modules". Since this is a small circuit, you should''
''soon see a routing similar to the one in the figure below. (For''
''complex circuits or slow machines the routing process can take''
''several minutes.)''
Строка 520:
''In addition to autorouting everything at once, you can tell Pcbnew to autoroute''
''a single module, net or pad. Right-click "Autoroute" over a module to route''
''all the nets connected to that module. Right-click "Autoroute net" over a pad''
''to route the entire net connected to that pad. Right-click "Autoroute pad" over a''
''pad to route a portion of the net, from that pad to a nearby neighbor. You''
''can use these to help the autorouter to do a good job by choosing the order''
''in which nets are routed.''
 
=== Manual layout ===
 
Manual intervention is usually necessary to complete the layout.
Often the autorouter does not find a way to route some of the nets -
those unrouted nets are displayed with ratsnest lines. For some of
the routed nets, the user will often prefer a different routing than
the one the autorouter chose.
Строка 539:
some combination of the two.
 
The following figure shows a layout that was redone manually. In
order to reduce the risk of short circuits during later fabrication
steps, the manual layout avoids having tracks pass between pairs
Строка 549:
the layout:
 
==== Deleting tracks ====
 
From the right-mouse menu you can delete
single track pieces. If you want to delete several tracks in
succession, it's faster to use the "Delete items" tool in the right
toolbar (the icon looks like a pencil eraser). Notice the special
cursor shape when Delete tool is active. Remember to turn off the
Delete tool when you're done (right-click "End Tool", or choose a
different tool from the right toolbar, or just hit the Esc key), so
Строка 561:
 
When using the right-mouse to delete tracks, you can choose to delete
either a Segment, a Track, or a Net. A "segment" is a piece of track
between two "nodes" (a node is a place where the track can change
direction). A "track" is a connected set of segments between two
module pads. A "net" is all of the tracks that are associated
with a given schematic net.
 
==== Drawing tracks ====
 
To draw a new tracks, use the "Add tracks and vias" tool from the right
toolbar. To start a track, left-click on a pad. Extend the track
line to the next corner and left-click again to place the corner node.
(If the corner does not "stick" when you try to place it, the Design Rule
Checker found a problem. A small white arrow shows the interfering
object.) Continue extending the track and placing corners as
necessary. When you reach the destination point (typically a pad),
finish the track by either double-clicking on the destination point,
or with right-click "End Track".
Строка 581:
While you are drawing a track, Pcbnew hightlights all of the items
that are supposed to be attached to that net - both pads and
already-placed tracks. It also displays a white ratsnest line from
the starting pad to the nearest pad on the net, and yellow airwires to
all of the other pads on that net. That helps you see possible
destinations for your new track.
 
The Design Rule Checker will prevent you from connecting a new track
to an existing item (track, pad, or via) on a different net from the
one you're routing. It won't even let you get too close to such an
item. ("Too close" is defined by "menubar > Dimensions > Track
and Vias > Clearance".) This means you cannot connect things on the
board unless they are connected on the schematic!
 
'''Connect the remaining nets''' - the DB9 connector pins on
the component side of the board. On the real circuit board, which is
intended to be single-sided, we'll need to use wires or jumpers for
those connections, but we can use Pcbnew to represent those wires as
if they were component-side PCB tracks. This will also give us an
opportunity to illustrate Pcbnew's multiple-layer capabilities.
 
See Also: [[Manual_Routing_NotesManual Routing Notes]]
 
=== Двусторонние печатные платы ===
 
Earlier, we told the autorouter to use only the copper side, and we've
been using that side for our manual routing too. Now we want to start
using the component side too. There are several different ways to
control the layer selection, depending on which tool is active.
 
Строка 619:
 
'''Connect the DB9 pins'''. Start drawing a track from one of the MAX232 pins that is supposed
to be connected to the DB9 connector. That track should start out
on the copper layer. Extend the track toward the DB9 as shown in
the figure below.
 
Строка 626:
 
When you get near the DB9, right-click "Place Via" and then extend the
track over to the DB9 connector pin. Notice that the track switched
to the component side after the via. (The board could still be fabricated
as single sided, using jumper wires instead of the component side tracks.)
 
Repeat the process for the 2 remaining unconnected nets as shown in the
figure below. Now that you are drawing on the component side of the
board, you have two options for connecting the remaining tracks:
 
Строка 639:
 
b) You could manually switch back to the copper side, then start the
track at the MAX232 end. To switch manually, either right-click
"Select Working Layer", or choose "copper" from the drop-down list
near the right end of the top toolbar.
Строка 646:
 
If you need to move a module to the other side of the board,
use right-click "Invert Module". The pads will change color,
showing you that they are on the other layer, and the drawing
will change to its mirror image, consistent with the flip that
must occur to put the device "upside down".
 
=== Многослойные печатные платы ===
 
Мы рассмотрели работу только с двумя слоями, но Pcbnew позволяет использовать больше.
Строка 658:
ddd
 
=== Набросок платы - Board outline ===
 
'''Draw the board outline'''. There's a special "Edges PCB" layer for this purpose.
You can select it from the drop-down list in the top toolbar, or
with right-click "Select Working Layer" (but the right-click
Строка 666:
 
There's a feature that's very helpful for drawing board outlines - you
can add full-length crosshairs to the cursor. They make it much
easier to draw rectangular shapes, and also to line up objects. To
enable the crosshairs, click on the "Change Cursor Shape" button in
the left toolbar.
Строка 674:
choose the "Add graphic line or polygon" tool from the right toolbar.
Draw a board outline as shown below, closing the figure by double-clicking
or right-click "End Drawing". While you are drawing, note the X,Y
coordinate display in the status bar at the bottom of the window.
That can help you get the board dimensions right.
Строка 680:
<figure>
 
There are other tools for drawing circles, arc, text, etc. They are useful
not only for board outlines, but also for drawing on auxiliary layers
like silkscreens and solder masks. This tutorial does not explore that
topic in detail.
 
=== Zone Fills ===
 
At this point, we could fabricate the design, but instead we'll do one
last optimization. We'll fill the open areas on the copper side with
a copper zone. In addition to the extra electrical grounding, it reduces
waste because less corrosive liquid ("etchant") is needed to dissolve
away the copper. (It also make mechanical etching or PCB milling
feasible.)
 
Строка 698:
that net using the Net Highlight tool.
You must first wire up the net with traces before filling in the zone, or
you will get DRC errors. If you do not want the zone to be connected to a net,
make sure that no net is currently hightlighted (also look in the status bar
at the bottom of the window).
Строка 706:
the polygon.
Then, in an empty area, right-click "Select Working Layer" and
choose the copper layer. In an empty area inside the board
outline, right-click "Fill zone". You'll get a dialog with several
options controlling the filling process. Experiment to see how they
work. If you don't like the result of a fill, right-click "Delete Zone"
and try again. If there are unfilled "islands", you can fill them
too by doing the fill operation with the mouse over those zones.
 
Строка 717:
 
Figure below demonstrates a completed board
[[ImageФайл:complete_board.png]]
 
The "Zone Limit" boundary cannot be edited; you have to delete it and start over.
This can be tedious if you want to revise your layout. One workaround is to
draw a boundary with a track that is not associated with any net. You can draw
such a track by turning DRC off. The zone fill will stop at that track (assuming
that it is not highlighted when you perform the fill), and you can later reposition
the track with the usual track editing commands.
 
== Просмотр 3D-модели платы в 3D Viewer ==
<!-- ==Viewing the board with 3D Viewer== -->
 
You can look at a 3D representation of the board by selecting
"3D Display > 3D Display" from the menubar. The 3D Viewer lets
you rotate the image to see it from any angle. The 3D view
doesn't show filled zones, because they would obscure everything
else.
 
The 3D view always shows tracks and vias; it shows the part packages
too if the necessary library files are present. The 3D view of this
design can be more elaborate if you copy some 3D components from
the author's web site (address at end).
Строка 743:
bring up it's Module Properties dialog (either by double-clicking
in an free area over the module with the Selection tool active,
or with right-click "Edit Module"). Select the "3D settings" tab.
Browse to find the file "soquete_16.wrl". (It will be easier to
find your additional 3D shape files if you place them in the project
directory or a subdirectory.)
Строка 750:
The 3D view of a device can consist of several different pieces,
so you could display both the socket and also the part in the
socket. To do that, go into the "3D Settings" dialog as before
and this time click on "Add 3D Shape". Browse to select the
shape "dil_16.wrl", and set the Y Offset to 0.1500. That will lift
the part picture off the board so it appears to be in the socket.
You could have done this in the other order too - instead of
Строка 760:
 
You could also use the new capacitor models (c_vert_c1v5.wrl) from the
author's web site. It's not a good idea to change the models in the
original KiCad libraries. Instead, put the new models in a separate
directory and edit the module properties to refer to the file in the
new directory. The result should look like the following figures.
 
Figure shows an axonometric view of board from component side
 
[[ImageФайл:complete_3D.png]]
 
== Создание файлов для промышленного изготовления платы ==
<!-- ==Generating files for PCB fabrication.== -->
 
Строка 802:
that you have used the wrong pad layout for a part. -->
 
После уточнения масштаба можете печатать окончательный чертеж. Удостовертесь, что сделали выбор правильных слоев перед печатью!
<!-- After you have adjusted the scale, you can do the final print. Be sure
to select the correct layers before printing! -->
 
== Ограничения миниурока ==
<!-- ==Tutorial Omissions== -->
 
There are many aspects of KiCad that this tutorial does not address. Information about
them may be found in the on-line help. Here is a partial list of such things:
 
* Preferences
Строка 830:
* Device documentation features
 
== Благодарности ==
<!-- ==Acknowledgments== -->