The debug board is a rather useful tool in the development of various electronic devices. But is it possible to create it with your own hands? Or should we rely only on industrial analogues? What features does this device have? Weโll talk about this today.
general information
When they talk about this topic, the most commonly understood is the debug board for Atmega8 or another similar microcontroller, which is based on an 8 or 16-bit operating principle. But the world is moving forward. The time has come for 32-bit microcontrollers. In this regard, we will consider what may be available to us now. Particular attention should be paid to the STM32 debugging board, although the article still considers AVR. But first, imagine the big picture.
The advent of 32-bit microcontrollers has significantly expanded the amount of tasks that they could perform. But it is necessary to optimize the decisions made and the technology being created. Although attention will be paid to the old models, because it is simply impossible not to note their universality and quality factor.
What is STM32?
Of course, the most interesting part of the article is the debug board. But to understand the additional point, let's look at the main one. Let's say we have STM32F103C8T6. The debug board is a microcontroller design that is built on the core of the ARM Cortex-M3. It has a significant number of advantages, the most important of which is universality. By the way, now Cortex-M3 is a full-fledged industry standard. The debug board is a surface on which all STM32 legs can interact, ensuring the fulfillment of existing tasks.
Getting started
So, we need a debug board. What parameters should she have? Buy it or do it yourself? What size should she be? Here with the last question we will begin. Initially, it is necessary to choose such a device so that all mechanisms and constituent elements can successfully fit on it. In most cases, it is enough that the debug board for the AVR has sides of fifteen centimeters. This size is suitable due to its compact size and capabilities.
Before proceeding with the manufacture or purchase of the board, you must first draw up its circuit. To do this, you can lay out the elements on paper and draw connection lines between them. If everything worked out without problems - excellent, then you can start practical actions. Then you just need to place and solder all the required elements, and that's it - the board is ready. So it looks briefly. Now let's look at everything in more detail.
Planning
The need to use debug boards sooner or later overtakes every amateur radio operator. This is a kind of debugging at the iron level. If desired, you can buy a ready-made board for every taste. But we are interested in a detailed analysis of this topic? Therefore, we will consider how to create a debug board with your own hands.
Initially, it is necessary to decide whether we are developing a board for specific needs or doing universal. Since the first option is quite specific, the second one will be considered within the framework of the article. You need to think about the foundation. If you look at most casual amateur circuit boards, it should be noted that they look very messy. The wires stick out as you like, and consider what is connected to what can be somewhat problematic. Therefore, it is necessary to provide for the possibility of securing them so that they do not overlap.
If you create for a specific case and develop a scheme, then you can etch the track. This option is the most interesting. By the way, the situation when a universal scheme is used, and the tracks are applied or deleted, is quite popular. To better understand, let's look at a few examples.
Power board
Suppose we are building something significant in size, and our device consists of several modules. In this case, the circuit board should include the possibility of obtaining at the input of a constant or alternating voltage. To achieve several connection methods, you need to think about connectors and terminal blocks. To ensure operation, it is necessary to provide not only batteries, but also a stabilizer. And in case of light overloads and related overheating, you can use a small radiator.
Microcontroller board
And here is the fun part. It is quite possible that debug boards for microcontrollers and auxiliary elements are the most difficult components. After all, they are the โbrainsโ of technical devices. For a successful start in the field of debug boards, it is undesirable to start with complex 32-bit controllers. You can start with something simpler. For example, from the veteran of mechatronic developments ATmega8. In order not to complicate the situation further, you can get by building one-sided printing.
But what if the requirements go beyond this? Use duplex printing? As an option, yes. But if the excess of capabilities is insignificant, then often you can do without mounting jumpers. It is better to take out the port connectors and pull-up chains on separate miniature scarves. This approach will facilitate the wiring of the microcontroller board. But this is only a general theory. Let's talk about practical implementation.
Manual PCB manufacturing
Initially, we need paper on which the layout for the printed circuit board will be drawn. It is desirable that it be thin. This is important to achieve accurate hole drilling. To avoid any surprises, the paper can be glued to cardboard with glue. Next, cut out the glued pattern. Well, the drilling template is ready. We select the blank of foil fiberglass of the required size. We attach a paper-cardboard template and draw it around the perimeter with a pencil or marker. Then we cut fiberglass according to the lines drawn by us, using scissors for metal, or we saw with a hacksaw. Glue the parts with glue.
By the way, a little advice: you do not need to smear the entire surface, just leave a drop of glue in each of the four corners. If you donโt want to wait, use the โMomentโ. It will allow you to continue working in a few seconds.
Drill holes
For this purpose, a special mini-machine is best suited. But you can use hand tools. Drills with a diameter of 0.8 mm are more than enough for the vast majority of purposes. It should be noted that a quality board may not work the first time due to the complexity of the work and the need to have a firm hand. If such actions will be carried out for the first time (and so, most likely, will be), then we can only advise you to mentally prepare for the drill being broken. After completing the entire spectrum of work, to make sure of their quality, look at the clearance. If certain defects are noticeable, they must be promptly eliminated.
Drawing a topographic drawing
Places where conductive paths will pass must be protected from destruction during etching. To do this, they are covered with a special mask. Before applying, remove all foreign substances. This is especially true for glue that could accidentally leak to the surface.
After the tracks are marked, we can begin the process of applying the drawing. For this purpose, waterproof enamel (any) is suitable.
Transfer the drawing from paper to fiberglass
This is the most crucial stage. It is necessary to apply the paper (the side where the picture is) to the fiberglass and press with great effort. Then we heat the resulting โsandwichโ in the oven to a temperature of 200 degrees. We wait until the board cools to room value. After that, it remains to tear off the paper - and the drawing will remain on the printed circuit board. This may seem rather complicated, especially with temperature. Especially for such doubting people, some craftsmen suggest using an electric iron. But here one important warning should be made: the result is unstable. Of course, you can try to practice a day or two, and perhaps it will not be worse than in the case of the stove. But still there is the problem of the difficulty of ensuring the simultaneous heating of the surface throughout the printed circuit board to one temperature. Therefore, the drawing in this way is not completely transferred.

The most significant problems are the gaps that arise with such a creation. For safety, during the "preparation" of the printed circuit board in the oven, it can additionally be covered from different sides with sheets of metal five to six millimeters thick. This is done to avoid negative deformation during heat treatment of the board.
Conclusion
Here, in general, the board for AVR is ready. Of course, a universal method is described here, and everyone will have to finish it for specific conditions independently, guided by their needs. You can also experiment with the creation of universal boards. Each craftsman constantly modifies them in some way, so that they are better and better. In addition, their development allows to ensure the reliability of the created schemes.