How to make PCB layout more reasonable
The layout of components in PCB board is crucial. Correct and reasonable layout not only makes the layout more neat and beautiful, but also affects the length and number of printed wires. Good PCB device layout is extremely important to improve the performance of the whole machine.
So how to make the layout more reasonable?
01 Key points of PCB layout of wireless module
Analog circuits and digital circuits are physically separated, for example, the antenna ports of MCU and wireless module are as far away as possible;
Try to avoid arranging high-frequency digital wiring, high-frequency analog wiring, power wiring and other sensitive devices under the wireless module, and copper can be laid under the module;
The wireless module should be kept as far away as possible from parts with large electromagnetic interference such as transformers, high-power inductors, and power supplies;
When placing a board-mounted PCB antenna or ceramic antenna, the PCB under the antenna part of the module needs to be hollowed out, copper should not be laid, and the antenna part should be as close to the board as possible;
Whether the RF signal or other signal wiring should be as short as possible, other signals should also be kept away from the transmitting part of the wireless module , to avoid interference;
Layout needs to consider that the wireless module needs to have a relatively complete power ground, and the RF routing needs to leave space for the ground hole;
The voltage ripple required by the wireless module is relatively high, so it is best to add a more suitable filter capacitor close to the module voltage pin, such as 10uF;
The wireless module has a fast transmission frequency and has certain requirements for the transient response of the power supply. In addition to selecting a power supply solution with excellent performance during design, it is also necessary to pay attention to the reasonable layout of the power supply circuit during layout to give full play to the power supply performance; such as DC-DC layout, it is necessary to pay attention to the distance between the freewheeling diode ground and the IC ground as close as possible to ensure reflux, and the distance between the power inductor and the capacitor as close as possible.
02 Line width and line spacing setting
Line width and line spacing setting have a huge impact on the performance improvement of the entire board. Reasonable setting of routing width and line spacing can effectively improve the electromagnetic compatibility and various aspects of performance of the entire board.
For example, the width of the power line should be set based on the current of the whole machine load, the power supply voltage, the copper thickness of the PCB, the length of the line, etc. Usually, a line with a width of 1.0mm and a copper thickness of 1oz (0.035mm) can pass a current of about 2A.
Reasonable setting of the line spacing can effectively reduce phenomena such as crosstalk, such as the commonly used 3W principle (that is, when the center spacing between the wires is not less than 3 times the line width, 70% of the electric fields can be kept from interfering with each other).

Power routing: According to the current, voltage size and PCB copper thickness of the load, the current usually needs to be reserved twice the normal working current, and the line spacing should try to meet the 3W principle.
Signal routing: According to the comprehensive consideration of the signal transmission rate, transmission type (analog or digital), routing length, etc., it is recommended that the spacing of ordinary signal lines meet the 3W principle, and differential lines are considered separately.
RF routing: The line width of RF routing needs to consider the characteristic impedance. The commonly used RF module antenna interface is 50Ω characteristic impedance. According to experience, the RF line width of ≤30dBm (1W) is 0.55mm, and the copper spacing is 0.5mm. More accurately, the characteristic impedance of about 50Ω can be adjusted with the assistance of the board factory.
03 The spacing between devices
is something we must consider when setting the PCB layout. If the spacing is too small, it is easy to cause soldering and affect production.

The distance recommendations are as follows:
Similar devices: ≥0.3mm; Different devices: ≥0.13*h+0.3mm (h is the maximum height difference of the surrounding adjacent devices); The distance between devices that can only be manually soldered is recommended: ≥1.5mm; Direct plug devices and surface mount devices should also maintain a sufficient distance for production, and it is recommended to be between 1-3mm.
04 Control of the distance between the board edge and the device and traces During PCB layout and routing
it is also very important to design the distance between the device and the trace from the board edge reasonably. For example, in the actual production process, most of the panels are assembled. Therefore, if the device is too close to the board edge, it will cause the pad to fall off during PCB separation, or even damage the device. If the line is too close, it is easy to cause the line to break during production and affect the circuit function.

Recommended distance and placement:
Device placement: It is recommended that the device pad is parallel to the “V cut” direction of the panel, in order to make the mechanical stress on the device pad uniform and in the same direction during separation, reducing the possibility of pad falling off. Device distance: The placement distance of the device from the board edge is ≥0.5mm; trace distance: The distance between the trace and the board edge is ≥0.5mm.
05 Connection of adjacent pads and teardrops
If the adjacent pins of the IC need to be connected, it should be noted that it is best not to connect directly on the pad, but to lead it out of the pad to connect, so as to prevent the IC pins from being short-circuited during production. In addition, the line width between adjacent pads should also be noted. It is best not to exceed the size of the IC pin, except for some special pins such as power pins.

Teardrops can effectively reduce the reflection caused by sudden changes in line width, allowing the traces to connect smoothly to the pads;
Adding teardrops solves the problem that the connection between the traces and the pads is easily broken by impact;
From the appearance point of view, adding teardrops can also make the PCB look more reasonable and beautiful.

06 The parameters of the vias and the reasonableness of the size of the vias have a great impact on the performance of the circuit.
Reasonable via size settings need to consider the current that the vias bear, the frequency of the signal, the difficulty of the manufacturing process, etc., so PCB Layout requires special attention. In addition, the placement of the vias is also important. If the vias are placed on the pads, it is easy to cause poor device welding during production. Therefore, the vias are generally placed outside the pads. Of course, in the case of extremely tight space, the vias are placed on the pads and the plate-in-hole process of the board manufacturer is also possible, but this will increase the production cost.
Key points of via setting:
Different sizes of vias can be placed in a PCB due to the needs of different routings, but it is usually not recommended to exceed 3 types to avoid causing great inconvenience to production and raising costs;
The depth to diameter ratio of the via is generally ≤6, because when it exceeds 6 times, it is difficult to ensure that the hole wall can be evenly copper plated;
The parasitic inductance and parasitic capacitance of the via also need to be paid attention to, especially in high-speed circuits, special attention should be paid to its distributed performance parameters;
The smaller the via, the smaller the distributed parameters, the more suitable it is for high-speed circuits, but its cost is also high.

The above 6 points are some precautions for PCB Layout sorted out this time. I hope it can be helpful to everyone. Welcome to express your unique insights in the comment area.







