Speed ​​up loading of sprint layout macros. Creating a macro. Macros and element libraries

There is no fundamental difference between creating a board and creating a macro. In this case, the same copper layers (M1, M2) are used for contact pads and conductors and silk-screen printing layers (K1, K2) for drawing projection lines of the component body. The projection of the body is carried out using the simplest graphic elements (line, circle, etc.) in a silk-screen printing layer.

Example:

You need to create a macro for a 14-pin DIP package.

(This is just an example. It is quite natural that such a corpus already exists in the library.)

14 contact pads are applied to the M2 layer (bottom side) along a given grid (the grid pitch corresponds to the pin pitch). To identify the first pin, its pad can be made square.

Now you should make layer K1 active (silkscreen, top) and draw the outline of the body using the graphics commands. Additionally, you can mark a cutout on the body for better visualization.

So, the macro is almost ready.

Select a point on the working field with the cursor, press the left mouse button and, while holding it, mark the selection area. In this case, you should ensure that only those elements from which the macro is built fall into the selected area.

The selected elements will turn pink.

3. Saving a macro

To save the macro, selectSave as macro.. . in the menu File.

The same command is executed when you click the save button on the library panel.

This will open a dialog box. The save directory in it corresponds to the current library section. If you want to save the macro in another section, you must select the section accordingly.

The macro must be given a valid name. Macro file extension".lmk" (assigned by default to all macros) will be added automatically.

After saving the macro, it will be added to the selected library section.

Once upon a time, creating a printed circuit board (PCB) for an electronic device was just an add-on, a supporting technology to improve quality and repeatability in mass production of electronics. But this was at the dawn of the development of electronics. Now the creation of software is a whole separate branch of technical art.

As Wikipedia says, PP is:

A dielectric plate on the surface and/or in the volume of which electrically conductive circuits of an electronic circuit are formed. A printed circuit board is designed to electrically and mechanically connect various electronic components. Electronic components on a printed circuit board are connected by their terminals to elements of a conductive pattern, usually by soldering.

Today, radio amateurs have access to factory production to order their printed circuit boards. It is enough to prepare the necessary files with the PCB design and additional information about holes, etc., send to production, pay and receive ready-made factory-quality PCBs with silk-screen printing, solder mask, precisely drilled holes, etc. Or you can make PP the old fashioned way at home using LUT and a cheap etching solution.

But before you make a PP, you need to draw it somehow. Currently, there are dozens of programs for these purposes. They can be used to design both single-layer and multi-layer printed circuit boards. In RuNet, the Sprint Layout program is most widespread among radio amateurs. You can draw PP in it as in a graphics editor. Only your own specialized set of drawing tools. This program is simple, convenient and a good place to start your acquaintance with PCB design in CAD.

I have no goal to create complete guide. Online huge amount manuals on SL, so I will try to give a concise description so that you can quickly get down to business - drawing a printed circuit board, so I will try to talk about some useful SL functions that are really needed when creating a PCB.

General view and working area

The program itself looks like a regular Windows application: at the top there is a strip with the program menu (file, actions, board, functions, service, options, help). On the left is a panel with tools that are used when drawing a printed circuit board. On the right is a window that displays the properties of the working field, a specific track, a specific group of tracks, etc. Those. If you select an object on the PP, its properties will be displayed in the window on the right. A little further to the right of the “Properties” window is the “Macros” window. Macros are a convenient tool for grouping and reusing previously drawn parts or parts of a board. I will dwell on them in more detail, since they save incredible time and reduce the number of errors on the board.

Working field

The black mesh field is the working field. This is where you will place contact pads, holes for radio components and draw tracks between them. The field also has some properties. The obvious ones are length and width. The field size determines the maximum size of the PP. In this case, the width and length are specified in millimeters. This is an important clarification, since the grid cell size is set by default not in millimeters, but in mil (i.e., not metric, but inch units):

This strange measure of length came to us from England and is equal to 1/1000 of an inch:
1 mil = 1 ⁄ 1000 inch = 0.0254 mm = 25.4 microns

Mil is widely used in electronics, but in Sprint Layout you can configure the grid to be displayed in mm. Install it the way that is most convenient for you. Mil is a smaller measure and therefore allows you to more accurately position the elements of the printed circuit board on the working field.

Sprint Layout Toolbar

Cursor (Esc) is a common tool that is used to select an element on the PP: a hole or part of a track.

Scale (Z) -- used to increase/decrease the size of the printed circuit board pattern. It is convenient when there are many thin paths and you need to highlight one among them.

Track(L)-- used to draw a conductive path. This tool has several operating modes. More on them later.

Contact(P)-- the tool is designed for drawing vias. You can select the shape of the hole, and also set the radius of the hole itself and the radius of the foil around it.

SMD contact (S) - for designing PCBs using SMD components. Draws contact pads of the required sizes.

Circle/Arc (R) -- to draw a conductor in the shape of a circle or arc. It can be convenient in some cases.

Square (Q), Polygon (F) , Special forms (N) -- tools for creating sites and areas of a certain type.

Text(T)-- for writing text. You can set how the text will be displayed on the board: normally or mirrored. This helps to display correctly on the board, for example, when using LUT.

Mask (O) -- for working with solder mask. By default, when you turn on this tool, the entire board except the pads is “covered” with a solder mask. You can arbitrarily open/close any contact or track with a solder mask by clicking on it with the left mouse button.

Jumpers (C) is a virtual connection that is preserved during any manipulations with the contact tracks between which it is installed. When printing, the jumpers are not displayed in any way, but they are used for auto-routing.

Highway (A) is the simplest autorouter. Allows you to lay contact paths between contacts using arranged connections. In order to distinguish automatically laid paths from manually laid ones, SL draws a gray line in the middle along such a path.

Test (X) -- the simplest tool control. It can be used to highlight one specific track in a layer. Convenient for checking the correct layout of tracks.

Meter (M) is a convenient tool for measuring distances on a board drawing. The meter shows: cursor coordinates, changes in cursor coordinates in X and Y, the distance between the start and end points and the diagonal inclination angle of the rectangle constructed from the start and end points of the meter.

Photo view (V) -- shows approximately what your board should look like after industrial manufacturing.

SL allows you to draw multilayer PCBs. For home purposes, you are unlikely to go beyond a 2-layer board. But if you order from production, then Sprint Layout has the necessary capabilities for rendering a board with several layers. There are seven in total: two outer copper layers (top and bottom), two silkscreen layers for the outer layers, two inner layers, and one non-printed layer for drawing the outline of the board.

Working with layers is similar to working with layers in Photoshop or GIMP (If you haven’t used gimp, I recommend it. It’s like Photoshop, only free): you can place tracks in different layers, turn layers on and off, etc. Switching the working layer and controlling visibility is done at the bottom of the working field using this control:

Each layer in SL has its own purpose:

  • M1- top layer
  • K1- marking of elements of the top layer
  • B1- inner layer
  • B2- another inner layer
  • M2- bottom layer
  • K2- marking of elements of the lower layer
  • ABOUT- layer for drawing board outlines

When creating your board, you should remember that the text and elements in the M2 layer must be reflected. Usually SL automatically makes the text reflected, but you should still check from time to time.

When working in SL, only one layer is always active. It is on this layer that all contact pads and tracks will be placed. While working with this layer, all other layers are considered inactive - tracks and contacts on them cannot be changed.

Macros and element libraries

Each electronic component has its own dimensions, its own number of pins, etc. You won’t draw them by eye every time, especially since there are macros and entire libraries of macros with already verified and prepared components for this purpose.

Macros are a small piece of PCB that you can use multiple times. In Sprint Layout, you can turn anything into a macro and then reuse it over and over again in other projects. Very useful and convenient.

Macros can be combined into libraries. At the same time, the library is just an ordinary folder in which a bunch of macros are piled up, which are interconnected by some kind of logic. For example, these are smd resistors or Soviet operational amplifiers, etc. Macros and libraries are most often located in the root folder of the SprintLayout/MAKROS/ program

The process of creating a macro is very simple:

  1. We arrange contacts
  2. In the marking layer we draw a graphic designation of the component
  3. Save the macro

Little tricks when working with Sprint Layout

#1 hotkeys

Although clicking on icons with the mouse is quite convenient, SL has the ability to control almost everything from the keyboard, which increases the speed of work.

Arrows Up, Down, Left, Right Allows you to move components across the working field by 1 grid step in 1 click. If you also hold down Ctrl, the step will be 1/100 mm
Ctrl Unsnaps the snap to the grid. This allows, for example, to reduce the movement step
F1-F4 Selecting a layer. Each key activates the corresponding layer
F5-F8 Make layer visible/invisible
Delete Delete something on the workspace
Space Allows you to switch the bend of the conductor. In total, SL has 5 types of bending of the conductive track.
Ctrl+C Copy selection
Ctrl+Y Redo undone action
Ctrl+Z Cancel action
Ctrl+X Cut selection. Will be buffered
Ctrl+V Paste from clipboard
Ctrl+D Duplicate selection
Ctrl+A Select all components in the field
Ctrl+R Rotate selection
Ctrl+H Flip selection horizontally
Ctrl+T Flip selection vertically
Ctrl+G Grouping selected components into a group
Ctrl+U Breaking a group down into its constituent components
Ctrl+W Move selection to the back of the board

No. 2 Fast grid spacing switching

I wrote above that the grid step can be selected, but I did not say that using keys 1 to 9 you can quickly change the grid step. They are easily configured via "hot keys" in the grid settings menu.

No. 3 Cascade installation of elements

In the "Actions" menu there is an interesting function "Cascade/Cascade in a circle". It allows you to arrange contacts or components in a cascade: along a given radius or in the form of a matrix. It is very convenient when you need to create many identical elements or pads located in a circle or in a grid.

No. 4 Filling empty space with copper

For various reasons, it is sometimes necessary to cover the empty space on the board with copper so that it does not short circuit with the traces of the board. In Sprint Layout, there is a button at the bottom of the work field for these purposes:

No. 5 Several boards on one sheet

There are several ways to get several identical boards on one sheet. First, you can simply select the entire board and copy it as many times as needed. Secondly, you can turn such a board into a macro and simply use the macro to copy the board. Very convenient if you need to make a panel from circuit boards. True, this is not necessary to transfer to production - they will be able to make such panels themselves. The only exception is the case when you need to place several different boards in one file.

No. 6 Installation of reference marks

If you suddenly plan to not only order a PCB in production, but also perform automatic installation of SMD components, then you should familiarize yourself with the reference points and how to install them.

In general reference points-- these are special marks on the PCB that allow installation robots to correctly recognize the position and pattern of the printed circuit board during the installation process.

Commonly accepted reference marks look like this:

Using fiducial marks, you can help the mounting equipment to accurately determine the position of the board itself on the panel (if several identical boards are located on the same panel), and specific elements on the board. Conventionally, all reference marks can be divided into 4 groups:

  • Common PCB Fiducial Marks
  • Local reference marks of individual elements
  • PCB Panel Fiducial Marks

Sprint Layout 6 has the ability to create fiducial marks. To do this, draw a reference mark on the copper layer, then go to the mask editing mode ("O" key) and remove the mask over the drawn circle. Next, when exporting Gerber files, you should set the gap for the solder mask to the required size (This will not affect the gap between the mask and the contacts, since such a gap is adjusted separately, but it will affect the gaps between other PCB elements forced open from the mask).

No. 7 How to change the type of bend of the track

In order to change the bend of the track in SL, you just need to press the space bar (selecting the track drawing tool - L in front of these). The following types of bends are available for drawing:

I’ll finish here, since the Sprint Layout program is very simple (but at the same time very convenient and useful) and you will get much more pleasure by experimenting on your own. Take action!

/blog/sprint-layout-dlya-nachinayuschih/ Learn to draw professional PCBs yourself with Sprint Layout. This is the most popular program for creating PP among radio amateurs of all ages and skills. 2016-12-20 2017-02-04 sprint layout, layout 6.0, sprint layout rus, sprint layout 7.0

Great radio amateur and program designer

Sprint Layout 6 Rus program
15200 macros for the program Program Sprint Layout 6 Rus
Video tutorial on working in the program Program Sprint Layout 6 Rus
Portable version

Very good and widespread amateur radio program for creating printed circuit boards. The program is Russified (very good translation), does not require installation on a computer (portable version). The program comes with more than 15,000 macros. The program archive is located on my Yandex Disk, you can download it from the link at the end of the article

This is what a printed circuit board might look like in Sprint Layout 6 Rus:

If you don’t know how to work in this program, then I suggest watching the video tutorial, which can be downloaded from the link at the end of the article: The video tutorial is also stored on Yandex Disk, file size is 99 megabytes, WMV video format, which allows you to view it in any video player.
The video tutorial was created based on version 5 of the program. In the 6th version, an interesting function appeared - loading a printed circuit board design, which is not suitable for manufacturing a printed circuit board using the LUT method (from a magazine article or book), and based on it, you can re-route the device tracks.

Procedure:

1. Place the cursor in the work field and right-click. In the window that appears, select the “Properties” menu:

In the window that appears, set the dimensions of the board; they are usually indicated in articles (for example, 70 by 45 mm).

2. Select the “Load drawing” menu, a window appears through which we load our printed circuit board drawing:

Usually the design of the loaded board does not fit into the dimensions we set (70x45).

In this case, in the “Resolution” column, increasing or decreasing the readings, we fit the downloaded drawing into our dimensions.

After all the contacts and tracks are drawn, through the “Load drawing” menu, simply delete the loaded drawing

Despite the simplicity of this program, I am often asked to write an article on it. But I had no time for everything. Therefore, he took on the role of Captain Obvious Sailanser. Having completed this titanic work. I just corrected it and added some details here and there.

Everyone has probably known for a long time a program for making printed circuit boards called Sprint-Layout, on at the moment latest version proudly called 5.0

The program itself is very simple and does not require much time to master, but allows you to make boards of fairly high quality.

As I said, the program itself is quite simple, but it has many buttons and menus that help us in our work. Therefore, we will divide our lesson in drawing a board into several parts.
In the first part, we will get acquainted with the program and find out where and what is hidden in it. In the second part, we will draw a simple board that will contain, for example, a couple of microcircuits in DIP packages (and we will make these microcircuits with complete zero), several resistors and capacitors, we will also look at such an interesting feature of the program as Macro creator and use it to make a microcircuit package, for example TQFP-32.
I will also show you how to draw a board from a picture or photograph.

Part 1: What and where we hide and how it helps us in drawing a printed circuit board.

After we found the program, downloaded it, unpacked it from the archive and launched it, we see this window.

First, let's see what's hidden behind the File inscription.

We click on this inscription, and immediately we have a drop-down menu.

  • New,Open,Save,Save as, Printer settings..., Seal…, Exit Everything is clear with this brethren. This is not the first day we’ve been sitting in Windows.
  • Save as macro... This option allows us to save a selected fragment of a diagram or other parts as a macro, which has the .lmk extension, so as not to repeat the steps to create them again in the future.
  • Autosave.. In this option, you can configure autosaving of our files with the .bak extension and set the required interval in minutes.
  • Export In this option, we can export to one of the formats, i.e. save our scarf as a picture, as a gerbera file for further transfer to production, save as an Excellon drilling file, and also save as contour files for subsequent creation of a scarf using a CNC machine. Usually useful in preparation for factory production.
  • Directories... In this option we can configure parameters for working with the program, such as keyboard shortcuts for file locations, macros, layer colors, etc., etc.

Let's move on to the next item: Editor

The next item we have is Action

Next on our list is Options.

So, the first point is to set up the basic parameters. We can specify the length units in our case mm, specify the color of the hole in the pad, in our case it coincides with the background color and will be black; if later our background is red, then the color of the hole in the pad will also be red. You can also just select the hole color as white, and it will be white no matter what the background is.
The second item we have is Virtual nodes and routes. This item, if it is checked, gives a very interesting property in the program, it places several virtual nodes on the conductor on which we draw.

And the program will automatically add several more virtual nodes in the areas between the real nodes and we have the opportunity to further edit our track. This can be very convenient when you have to drag, for example, a third track between two already laid ones.

Mirror macros and text on the reverse side
If this item is activated, then when inserting text or a macro onto a layer, the program itself will look to mirror it or not so that later the details or inscriptions have the correct display on our finished board.

The next item we have is the Board Card, this item has one interesting joke, if it is activated, then a small window appears on the left side of our program.

It’s like a smaller copy of our scarf; it’s up to everyone to decide whether to include it or not; it’s up to me personally. Fans of the RTS genre will also appreciate it :)

Pop-up windows are basically all sorts of hints in the program - obviously.

Limit font height (min 0.15mm)
This is the checkbox that many beginners and not only users of this program are looking for; if it is checked, then when we make inscriptions on the board or on elements, we cannot make the size of the letters less than 1.5 mm. So if you need to put text somewhere smaller than 1.5 mm, I recommend removing it. But when sending it to production, this must be taken into account. Not everywhere they can print silk-screen printing of such low resolution.

Let's go further and see another interesting point, namely Ctrl+ mouse to remember parameters of selected objects, if this item is activated, then one interesting thing appears. For example, we drew two contact pads and laid a track between them, say 0.6 mm wide, then we did something else and something else and in the end we simply forgot what the width of this track was. Of course, you can just click on it and in the track width setting we will see its width,

here, instead of 0.55, our width will become 0.60, but then adjusting the slider to the right of the number in order to adjust the width to 0.6 is lazy, but if we click on the same track with the Ctrl button held down, then our value is 0, 6 will immediately be remembered in this window and a new path, we will draw with a thickness of 0.6 mm.

Using increments of 0.3937 instead of 0.4.
The translation is of course very clumsy in the original, this item is written like this: HPGL-Skalierung mit Faktor 0.3937 statt 0.4 in general, this item is responsible for creating an HPGL file for subsequent transfer to a coordinate machine, and indicates whether to use one decimal place or, depending on the machine, use four characters after the comma.

We are done with the first point and now let’s move on to the second point of our window, it’s called Colors and let’s see what’s hiding there.

There is nothing special here either, we just indicate the paths where and what we have, this setting takes place if we install the program from a distribution downloaded from the official website, but since the program works great for us without any installation, then we simply don’t have to change anything and move on.

Here, too, everything is quite simple and we simply indicate the number by how long the program can roll back changes for us, if something was messed up when drawing our board, I set the maximum number to 50.

Let's move on to the next point, and it's called I max they show movies in 3D format

In it we see keyboard shortcuts for certain operations and if something happens we can change them, although I didn’t really bother with this and left everything as it is by default.

We are done with the Settings item and let's look at the rest of the options in the drop-down menu Options

Properties
If we select this item, a window will open on the right side of the program

Which will allow us to control our drawn scarf, set restriction gaps, etc. An extremely convenient and extremely necessary thing. Especially when sending boards to production, and even in handicraft conditions it comes in handy. The point is. For example, we set a minimum gap of 0.3mm and a minimum track of no less than 0.2mm, and during the DRC check the program will find all the places where these standards are not met. And if they are not fulfilled, then there may be mistakes in the manufacture of the board. For example, the tracks will stick together or some other problem. There is also a check of hole diameters and other geometric parameters.

Library
When you select this item, we will see another window on the right side of the program.

A very interesting point: it allows you to put a picture background to our table in the program where we draw a scarf. I won’t describe it in detail yet, but I’ll come back to it.

Metallization
When selecting this option, the program fills the entire free area with copper, but at the same time leaves gaps around the drawn conductors.

These gaps can sometimes be very useful to us, and with this approach the board turns out more beautiful and more aesthetically pleasing. I’ll also go into more detail about adjusting the width of the gap when we draw the board.

Whole fee
We select this option, the scale on the screen will decrease, and we will see our entire scarf.

All components
Similar to the top point, but with the only difference that it will reduce the scale depending on how many components are scattered across our scarf.

All selected
This item will adjust the screen size up or down depending on what components are currently selected.

Previous scale
Return to the previous scale, everything is simple here.

Refresh Image
A simple option simply updates the image on our screen. Useful if there are any visual artifacts on the screen. Sometimes there is a glitch like this. Especially when copy-pasting large pieces of the circuit.

About the project...
If you select this option, you can write something about the project itself, and then remember, especially after yesterday, that I drew there, it looks like this.

Here we see that we have to drill 56 holes and we need to adjust five of them so that the internal point on the contact pad is 0.6 mm.

Macro creator...
A very, very, very, useful item in the program that allows us to draw a complex body, such as SSOP, MLF, TQFP or some other in a minute or two. When you click on this item, a window like this will open.

Here we can select and configure the drawing of our case, looking at the data from the datasheet for a particular chip. We select the type of sites and the distance between them. Type of location and oops! The board has a ready-made set of pads. All that remains is to design them on a silk-screen printing layer (for example, frame them) and save them as a macro. All!

The following points, such as Registration and a question mark, i.e. I will not describe the help because there is absolutely nothing in them that will help us in the further drawing of our scarf, although the help will be useful for those who are fluent in the German language.

Uf described the points in the drop-down menus, but all these points have their own icons in the form of pictures on the panel just below, that is, all the options necessary for the work of this panel are placed there.

I won’t dwell on it in too much detail because it duplicates the menu items, but when further drawing I will simply refer to these icons so as not to complicate perception with phrases like, Select the menu item File, New.

As I said, I will describe these icons, I will move from left to right and simply list them; if there is any setting thread in the icon, I will go into more detail.
Let's go from left to right New, Open file, Save file, Print file, Undo action, Repeat action, Cut, Copy, Paste, Delete, Duplicate, Rotate and here we'll make our first stop and look at this item in more detail, if you choose which one then the component on our scarf and click on the small triangle next to the rotation icon, we will see the following.

This is where we can choose at what angle we should rotate our part, as I said above, it was 90 degrees by default, but here it’s 45 and 15 and 5, and we can even set our own, for example, like I set 0.5, that is, half a degree.
Now let's have fun! We throw the components onto the board, unfold it at random, at arbitrary angles. We draw all this up with crooked lines ala Topor and show off to our friends the stoned boards with psychedelic wiring :)

I’ll also dwell on this point in more detail, the point is actually very good, it helps to give a beautiful and aesthetic appearance to the scarf so that in the future you can brag to your friends how everything is neat and beautiful, for example, we put SMD parts on our board and they are all crooked and crooked - for snapping to the grid, and here we select several details and choose left alignment and everything looks neat.

Update, Template, Properties, Control, Library, About and Transparency
Transparency is also quite an interesting point, which allows you to see the layers, especially useful when making a double-sided board and a lot of conductors on each layer, if you press this button it will look something like this.

Let's go point by point from top to bottom.
Cursor This item, when clicked on, simply represents a cursor that allows us to select some element on the board and drag it across the board while holding the left mouse button
Scale When you click on this icon, the pointer changes to a lens with a plus and minus sign on the edges and, accordingly, if you press the left mouse button, the image will increase; if the right mouse button, it will decrease. In principle, when drawing a scarf, you don’t have to select this item, but scroll the mouse wheel forward or backward, respectively, the scale will increase forward and decrease back.
Conductor When we select this icon, the pointer changes to a dot with a crosshair and allows us to draw a path from one pad to another. The path is drawn on the active layer, which is selected at the bottom.

If you select the line “with metallization,” then the contact pad will change color to bluish, with a thin red circle inside, this will imply that metallization is taking place in this hole and that this hole is a transition hole from one side of the board to the other. It is also very convenient to install such contact pads on double-sided boards, because during subsequent printing, these contact pads will be printed on both sides of our future board.
SMD contact When you select this icon, it becomes possible to place small SMD contacts on our scarf.
Arc This icon allows us to draw a circle or make an arc.

This is especially true for those who make their scarves using LUT technology and for whom, when printing on a laser printer, the printer does not make large painted areas perfectly black. In the settings you can also select the thickness of the border to adjust the roundness of the corners of our polygon.
Figure
If you select this icon, then a window opens from which you can draw either a figurine or a fancy spiral.

Compound
When you select this icon, the pointer becomes small and the “aerial” connection mode is turned on, just click on one pad and then on the other and between them this wonderful green thread will appear, which many people use to show jumpers on the board that will later be needed solder. But I wouldn’t recommend making jumpers for her. The fact is that they do not provide a connection during an electrical test. It is best to make jumpers with tracks on the second layer, connecting them through through metallized holes. In this case, an electrical test will show a contact. So, IMHO, the connection is a useless thing.

Another useless thing :) However, maybe sometimes it will help to find a path in a tricky place. Yes, it walks along the grid, so if you want it to work better, make the grid smaller.

Control
Electrical control. Allows you to find all closed circuits. An extremely useful thing for wiring. Especially when you already have a lot of different circuits installed and your eye refuses to perceive this mess. And I poked it with the tester and everything lit up. Beauty! It is especially useful to calculate earth and power. So as not to forget to ask for anything. The main thing is to make jumpers not through the “connection”, but along the second layer.

Photoview
In general, it’s a cool thing, you can see how the scarf will look if it’s made in production, or you should post a more beautiful drawing somewhere on a forum or website. It’s also good to see the solder mask, where it is and where it is not. Well, you can admire the silk-screen printing. In general, a useful feature. It also allows you to catch bugs with mirror images of letters/components or if something is accidentally put on the wrong layer.

In this mode, you can remove or, conversely, cover parts with a mask. Just poking at the wires. There is white - it means open.

Now let's get to some minor tweaks.
The first point we have is setting the grid step, the first seven points of the grid step are filled by the program manufacturer itself and they cannot be changed in any way, you can only select, but also in the grid setting you can add your own dimensions, just click “Add grid step...” and enter your parameters that I and did by adding a grid pitch of 1mm, 0.5mm, 0.25mm, 0.10mm, 0.05mm and 0.01mm

The currently active grid step is displayed with a tick and is currently 1 mm

You can also remove the marked grid step or turn off snapping to the grid altogether, just click on the corresponding line. And if you move with the Ctrl key pressed, the grid step is ignored. Convenient when you need to move something off the grid.

The following three configurable items:

  • Configuring Width Width, where we customize the width of our conductor.
  • Setting the size of the contact pad, here we adjust the outer and inner diameter.
  • And the last setting is to adjust the dimensions of the SMD pad horizontally and vertically.

You can also create your own line/area sizes and save them so that you can later select from the list.

Now only the bottom panel remains:

Everything is simple here, on the left we have the cursor position and 5 working layers; the active working layer is currently marked with a dot.
Next we have a button, Coating free areas of the board with metal, this button covers the entire free area of ​​the board with copper and makes gaps around the conductors, and in this window the size of the required gap is adjusted. It is only necessary to note that the gap is set for each line separately! Those. It's no use clicking this counter. It is necessary to isolate the entire board (or a specific wiring) and only then adjust it.

Below it is another icon, a shaded rectangle. It has one interesting property: if you click on it, we can free the area that we select from filling on the board.

There really is one subtlety here. The fact is that if we try to connect our fill with wiring, then nothing will work. Because the filling will scatter to the sides in panic. The solution is simple - we throw it from the ground point to the fill and make a gap equal to zero for this conductor. All!

You can also make a negative inscription on the fill. This is also done simply - put the inscription on the fill (the fill runs away from the inscription in different directions), and then in the properties check the “No gap” checkbox. That's it, the inscription became in the form of slits in the fill.

Yes, I forgot about this little hint that appears if you click on a small question.

This is where we will finish our first lesson, in it we learned what and where we hide and what is located, what is configured and where.

Part No. 2
Let's draw a simple scarf and create a body TQFP-32 and learn how to draw a scarf found on the Internet.

In the last part, we got acquainted with the program, found out what, where, is hidden, what is configured and what is not, we learned the small features that are in the program.
Now, after reading in the first part, let’s try to draw a simple board.

Let's take as an example simple diagram, I dug it up in one of the old magazines, I won’t say which one, maybe one of the site visitors will remember this magazine.


We see that the old scheme has gone through a lot of things, including edits with a pencil and filling with alcohol rosin flux, but for our purposes it is ideal because of its simplicity.
Before we draw our scarf, we will analyze the diagram to see what parts we will need.

  • Two microcircuits in DIP packages with 14 legs for each microcircuit.
  • Six resistors.
  • One polar capacitor and two regular capacitors.
  • One diode.
  • One transistor.
  • Three LEDs.

Let's start drawing our details, and first we'll decide what our microcircuits look like and what dimensions they have.

This is what these microcircuits look like in DIP packages, and their dimensions between the legs are 2.54 mm and between the rows of legs these dimensions are 7.62 mm.

Now let’s draw these microcircuits and save them as a macro, so that we don’t have to draw again in the future and we will have a ready-made macro for subsequent projects.

We launch our program and set the active layer K2, the size of the contact pad is equal to 1.3 mm, its shape is selected “Rounded vertically”, the width of the conductor is equal to 0.5 mm, and the grid pitch is set to 2.54 mm.
Now, according to the dimensions that I gave above, let’s draw our microcircuit.

Everything worked out as planned.

Then we will save our future payment. Click on the floppy disk icon and enter the file name in the field.

We have drawn the location of the legs of the microcircuit, but our microcircuit has some kind of unfinished look and looks lonely, we need to give it a neater look. We need to make a silkscreen outline.

To do this, switch the grid pitch to 0.3175, set the conductor thickness to 0.1 mm and make layer B1 active.

With this triangle we will indicate where we will have the first pin of the microcircuit.

Why did I draw it this way?
Everything is very simple, in our program by default there are five layers: layers K1, B1, K2, B2, U.
Layer K2 is the soldering side (bottom) of the components, layer B1 is the marking of the components, i.e. where to put something or a silk-screen printing layer that can then be applied to the front side of the board.
Layer K1 is the top side of the board if we make the board double-sided, respectively, layer B2 is the marking or silk-screen printing layer for the top side and, accordingly, layer U is the outline of the board.

Now our microcircuit looks neater and neater.

Why do I do this? Yes, simply because I am depressed by boards made poorly and on a quick fix Sometimes you download a thread for a scarf from the Internet, but there are only contact pads and nothing else. We have to check each connection according to the diagram, what came from where, what should go where...

But I digress. We made our microcircuit in a DIP-14 package, now we need to save it as a macro so that later we don’t have to draw something like this, but simply take it from the library and transfer it to the board. By the way, you are unlikely to find an SL5 without macros at all. Some kind of minimum set standard cases are already in the macros folder. And entire sets of macro-assemblies circulate on the network.

Now hold down the left mouse button and select everything we just drew.

And all our three objects will be grouped into one

Here is the letter M on the microcircuit.
And let's look at our just created macro in the macro window

Great, but it wouldn’t hurt to decide what size our board would be. I figured out the dimensions of the parts and how they could be roughly scattered and calculated that in the end my size was 51mm by 26mm.
Switch to layer U - the milling layer or board border. At the factory, they will go through this contour with a milling cutter during manufacturing.

Choose a grid pitch equal to 1 mm

An observant person will say, yeah, the starting point of the contour does not lie directly at zero and he will be absolutely right. For example, when I draw my boards, I always retreat 1 mm from the top and left. This is due to the fact that in the future the payment will be made either
using the LUT method or using a photoresist, and in the latter it is necessary that the template have negative tracks, i.e. white tracks on a dark background, and with this approach in board design ready-made template then it’s easier to cut out and make several copies on one sheet. And the board itself looks much more beautiful with this approach. Many people have probably downloaded boards from the network and the most funny thing happens when you open such a board and there is a drawing in the middle of a huge sheet and some kind of crosses around the edges.
Now let's change the grid pitch to 0.635 mm.

And we’ll roughly install our microcircuits

And put two contact pads at a distance of 2.54 mm

And on it we will draw the approximate radius of our capacitor; for this we will need the arc tool.

So we got our capacitor, look at the circuit and see that it is connected to pins 4,5 and 1 of the microcircuit, so we’ll plug it in approximately there.
Now let’s set the width of the track to 0.8 mm and start connecting the legs of the microcircuit, we connect it very simply, first we clicked on one leg of the microcircuit with the left button of the microcircuit, then on the other, and after we brought the conductor (track) to where we wanted, click the right one, after that clicked right the path will no longer continue.


Now, using a similar principle, we build parts, placing them in our board, drawing conductors between them, scratching our heads when we can’t lay a conductor somewhere, thinking, laying conductors again and in some places do not forget to change the width of the conductor, thus gradually building the board, also When laying conductors, press the spacebar on the keyboard; this button changes the bending angles of the conductor, I recommend trying this cool thing. Separately, I would like to dwell on the grouping of objects. Several objects can be collected into one by clicking on them with the left mouse button while holding Shift, and then click group. So, we draw, we draw, and in the end we get this:

The resulting board looks like this:

Now a little explanation on printing a mirror/non-mirror image. Usually the problem arises with LUT when, due to inexperience, you print an image in the wrong display. The problem is actually solved simply.

In all board layout programs, it is accepted that the PCB is “transparent”, so we draw the tracks as if looking through the board. It’s easier this way, in the sense that the numbering of the pins of the microcircuits turns out natural, and not mirrored, and you don’t get confused. So here it is. The bottom layer is already mirrored. We print it as is.

But the top one needs to be mirrored. So when you make a double-sided board (although I don’t recommend it, most of the boards can be placed on one side), then its top side will need to be mirrored when printing.

Now we have drawn a simple scarf, there are only a few small touches left.
Reduce the overall size of the working field and print. However, you can simply print it as is.

Let's set several copies, you never know if we mess it up:

All this is good, of course, but it wouldn’t hurt to finish the scarf itself, bring it to mind, and put it in the archive, in case it comes in handy, or needs to be sent to someone later, but we don’t even have the elements signed, what and where it is, in principle It’s possible, and so we remember everything, but the other person to whom we give it will swear for a long time, checking it against the diagram. Let's make the final touch, put the designations of the elements and their denomination.
First, let's switch to layer B1.

After we have placed all the designations of the elements, we can align them so that it looks more neat, after all these actions our scarf looks like this:

And in the field we write our value of resistor R1 according to the diagram, it is 1.5K
We wrote it, click OK and then if we move the pointer to resistor R1, its value will be displayed.

Right on the inscription, right-click and select New Board from the drop-down menu. After we answer the question in the affirmative, open the properties of the new scarf and call it TQFP-32.

Now we open the datasheet for the microcircuit that we are going to draw, for example, we will do it by looking at the datasheet from ATmega-8.

We look at the chip in the datasheet and see a square with a pancake leg on each side, well, no problem, just in the top drop-down menu we select another location, namely Four-sided, and click on the SMD contact. That’s all now, looking at the datasheet, and in this window we look where to enter which parameter, in the end we fill in all the fields, and we get the following result:

Now we have a very small touch left - to zoom in on the image by turning the mouse wheel away from you, switch to layer B2, and draw the outline of the microcircuit and indicate where we will have the first leg.


That's all, our case for the TQFP-32 microcircuit has been created, now if you can print it out, attach the microcircuit to a piece of paper, and if it’s a little off, then slightly adjust the parameters, and then save it as a macro so that you don’t have to draw a similar case in the future.

Rendering a picture
And the last step of our lesson, I will tell you how to make a scarf from an image of a board found in a magazine or on the Internet.

To do this, let's create the following tab and call it Internet.
In order not to search for a long time to repeat, let’s go to the Internet and type “Printed circuit board” in a search engine; the search engine will throw out a bunch of links and pictures; we’ll select something from them just like that.

After we've drawn it, let's take our image and use graphic editor Let’s remove everything that is on the left side, we don’t need it in principle, and save the right side to a file with the extension .BMR. If we are scanning a scarf from some magazine, it is better to scan with a resolution of 600 dip and save it to a file.BMR After saving it in the program, go to the K2 layer and click on the TEMPLATE icon.

Click the Upload button... and select our file. After this, our screen will look like this

That's all, now we just outline this picture in detail. There are quite possible cases when the details may not fit 100% into what is drawn in the picture, this is not scary, the main thing is that there is a picture on the background layer and a set of macros with a fixed size, and this is the most important thing. The Sprint-Layout program has an excellent set of macros, and gradually, when new details are drawn, it will also be replenished with its own.

If you click on the top one, then while we hold it, our paths will become invisible, and if on the bottom, then while we hold it, our picture that was superimposed as the background will become invisible.

That’s basically all I think about the Sprint-Layout program for beginners; there’s plenty of information to master it, and of course you need to remember everything, what and where to click, how and what to do. And at the end of the lesson about the Sprint-Layout program, you can download the file itself with these boards, on which this program was mastered.

Happy board making!