A desktop automatic welding method, device, equipment and storage medium

By establishing a machine reference coordinate system on the automatic welding machine, identifying and planning the welding path, detecting and compensating for posture deviations, and utilizing multi-temperature zone heating configuration and stepped heating program, the problem of the two-dimensional vision system being unable to accurately perceive the position of the welding target is solved, thus achieving precision and reliability in the welding process.

CN123149504APending Publication Date: 2026-11-24SHENZHEN BAIGUANG ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611642330.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-22
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, two-dimensional vision systems cannot accurately perceive the true position of the welding target in three-dimensional space, leading to serious errors in welding.

Method used

By acquiring images of the 3D calibration board on the desktop of the automatic welding machine, a unified machine reference coordinate system is established, the 3D coordinates of the point to be welded are identified, the welding path is planned, the robotic arm is controlled to move the upper heater above the point to be welded, the positional deviation is detected and compensated, and welding is performed using a multi-temperature zone heating configuration and a stepped heating program.

Benefits of technology

It achieves precise positioning of the solder tip in three-dimensional space, ensuring that the hot air gun nozzle maintains the optimal working distance from the solder pad, preventing unstable soldering quality caused by positional deviation, and improving the soldering success rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123149504A_ABST
    Figure CN123149504A_ABST
Patent Text Reader

Abstract

This application provides a desktop automatic soldering method, apparatus, equipment, and storage medium. The method includes: acquiring images of a 3D calibration board on the desktop of an automatic soldering machine and establishing a unified machine reference coordinate system based on the image data; performing feature recognition on the image data of the PCB board to be soldered to determine the three-dimensional coordinates of the points to be soldered in the machine reference coordinate system, and planning a soldering path based on the three-dimensional coordinates; controlling a robotic arm to move an upper heater above the points to be soldered according to the three-dimensional coordinates, detecting the relative pose of the upper heater and the points to be soldered, and determining the pose deviation compensation amount of the upper heater; and controlling the soldering of the PCB board to be soldered according to the soldering path and the pose deviation compensation amount. This allows the solder head to be accurately positioned in the three-dimensional space of each solder point, ensuring that the hot air gun nozzle and the solder pad always maintain the optimal working distance during the soldering process, preventing unstable soldering quality due to positional deviation, and effectively improving the success rate of soldering.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of automated processing technology, and in particular to a desktop automatic welding method, apparatus, equipment and storage medium. Background Technology

[0002] In such precision welding scenarios, traditional soldering methods that rely on manual visual positioning are no longer able to meet the stringent requirements of consistency and reliability for industrial production.

[0003] In practical applications, existing solutions suffer from several drawbacks. The slight height difference between the pads and leads of micro-components, coupled with thermal deformation of the PCB during preheating, prevents the 2D vision system from accurately perceiving the true position of the soldering target in 3D space. When the soldering tip operates based on 2D coordinates, height deviation along the Z-axis often leads to uncontrolled spacing between the hot air gun nozzle and the pads. Excessive spacing results in cold solder joints, while insufficient spacing can damage components. Summary of the Invention

[0004] This application provides a desktop automatic welding method, apparatus, equipment, and storage medium to solve the problem in related technologies where two-dimensional vision systems cannot accurately perceive the true position of the welding target in three-dimensional space, leading to serious welding errors.

[0005] The first aspect of this application provides a desktop automatic welding method, the desktop automatic welding method comprising: Images are acquired from the 3D calibration board on the desktop of the automatic welding machine, and a unified machine reference coordinate system is established based on the acquired image data. Feature recognition is performed on the acquired PCB board image data to be soldered to determine the three-dimensional coordinates of the solder points in the machine's reference coordinate system, and a soldering path is planned based on the three-dimensional coordinates. The robotic arm is controlled to move above the point to be welded according to the three-dimensional coordinates, and the relative pose of the upper heater and the point to be welded is detected to determine the pose deviation compensation amount of the upper heater. The welding of the PCB board to be welded is controlled according to the welding path and the position deviation compensation amount.

[0006] Optionally, in a first implementation of the first aspect of this application, the step of performing feature recognition on the acquired PCB board image data to be soldered, determining the three-dimensional coordinates of the solder points in the machine reference coordinate system, and planning the soldering path based on the three-dimensional coordinates includes: A panoramic image of the PCB board to be soldered is acquired in the machine reference coordinate system; Based on the contour features of the pre-stored PCB design file, template matching is performed in the panoramic image to determine the planar position and deflection angle of the PCB board to be soldered in the machine reference coordinate system. Based on the planar position and deflection angle, a fine imaging area for all solder joints is determined on the stereo calibration plate, a high-resolution image of the fine imaging area is acquired, and the first center pixel coordinates of the solder joint are identified in the high-resolution image. Based on the coordinates of the first center pixel and the calibration parameters of the binocular vision module, the three-dimensional coordinates of the point to be soldered in the machine reference coordinate system are obtained by stereo vision calculation. Path optimization is performed on all coordinate points in the three-dimensional coordinate system to generate a welding path.

[0007] Optionally, in the second implementation of the first aspect of this application, the step of optimizing the path of all coordinate points in the three-dimensional coordinates to generate the welding path includes: Extract the spatial location data of all points to be soldered from the three-dimensional coordinates, and determine the Euclidean distance between every two points to be soldered based on the spatial location data, and construct the path distance matrix between all points to be soldered; Based on the path distance matrix, traverse all possible welding sequence of weld points and accumulate the corresponding total path length to determine the welding sequence of weld points with the shortest total movement distance, thus obtaining the initial optimal path; In the initial optimal path, the path segment in which the upper heater interferes with the components on the PCB board to be soldered during continuous welding is identified; Based on the path segment, additional obstacle avoidance path points are introduced to locally reconstruct the initial optimal path, generating a collision-free and shortest welding path.

[0008] Optionally, in the third implementation of the first aspect of this application, the step of detecting the relative pose of the upper heater and the weld point, and determining the pose deviation compensation amount of the upper heater, includes: The robotic arm is controlled to carry the upper heater down along the Z-axis to a preset laser focusing plane, and laser stripes are projected onto the area where the welding point is located through the laser displacement sensor on the side of the upper heater; Simultaneously acquire laser stripe deformation images modulated by the morphology of the surface of the point to be soldered and the surrounding components. Based on the bending and breaking characteristics of the laser stripes in the laser stripe deformation images, identify the contour boundary of the point to be soldered and the projection position of the tip of the upper heater. The minimum circumscribed geometric center of the point to be welded is determined based on the contour boundary, and the minimum circumscribed geometric center is compared with the projected position of the tip of the upper heater to extract the horizontal position deviation in the X-axis and Y-axis directions. The height deviation between the tip of the upper heater and the surface of the weld point is determined based on the Z-direction step change of the laser stripe when it crosses the contour boundary. The pose deviation compensation amount of the upper heater is generated based on the horizontal position deviation and the height deviation.

[0009] Optionally, in the fourth implementation of the first aspect of this application, the step of controlling the welding of the PCB board to be welded based on the welding path and the pose deviation compensation amount includes: According to the welding path, the multi-temperature zone heating configuration corresponding to the current welding point is retrieved from the pre-stored process parameter library; Based on the pose deviation compensation amount, the target coordinates of the current welding point in the welding path are corrected, and the robotic arm carrying the upper heater is controlled to move to the compensated actual working coordinates. The motion commands controlling the robotic arm are feedforward and corrected based on the pose deviation compensation amount, so as to drive the upper heater to move to the target coordinates of the corresponding welding point in the welding path. The upper heater and lower preheater are started synchronously according to the multi-temperature zone heating configuration, and the weld points are welded through a stepped heating program.

[0010] Optionally, in the fifth implementation of the first aspect of this application, the step of synchronously starting the upper heater and the lower preheater according to the multi-temperature zone heating configuration and welding the joint to be welded through a stepped heating procedure includes: According to the preheating stage target temperature and the first temperature rise slope defined in the multi-temperature zone heating configuration, each heating zone is synchronously controlled to start heating and reach the preheating stage target temperature at the first temperature rise rate, and enter the first constant temperature stage. The heating zone includes an upper heater, a lower preheater and a bottom infrared preheating plate. During the duration of the first constant temperature stage, the actual temperature of each heating zone is monitored in real time, and the heating power of each heating zone is adjusted independently to stabilize the actual temperature of each heating zone within the allowable fluctuation range of the target temperature in the corresponding preheating stage. After the duration of the first isothermal stage is completed, the upper heater is controlled to rise to the target temperature of the welding stage at a second heating rate according to the target temperature of the welding stage and the second heating slope defined in the multi-temperature zone heating configuration. At the same time, the lower preheater and the bottom infrared preheating plate are controlled to rise to the corresponding welding stage compensation temperature at a third heating rate, and the second isothermal stage is entered until the welding process cycle of the current weld point is completed.

[0011] Optionally, in the sixth implementation of the first aspect of this application, after the step of controlling the welding of the PCB board to be welded according to the welding path and the pose deviation compensation amount, it further includes: After completing the welding of a weld point, the robotic arm is controlled to move the upper heater directly above the current weld point and acquire an image of the relative position between the tip of the upper heater and the current weld point. The second center pixel coordinates of the tip of the upper heater and the current solder joint are identified in the relative position image, and the instantaneous pose data of the upper heater after completing the previous solder joint operation are determined based on the second center pixel coordinates. The cumulative offset error generated by the upper heater during the welding process is obtained by performing a differential calculation between the real-time pose data and the three-dimensional coordinates of the current welding point. The three-dimensional coordinates of all points to be welded in the welding path are corrected based on the cumulative drift error.

[0012] A second aspect of this application provides a desktop automatic welding device, which is used to implement a desktop automatic welding method. The desktop automatic welding device includes: The data acquisition module is used to acquire images of the 3D calibration board on the desktop of the automatic welding machine and establish a unified machine reference coordinate system based on the acquired image data. The determination module is used to perform feature recognition on the acquired PCB board image data to be soldered, determine the three-dimensional coordinates of the points to be soldered in the machine reference coordinate system, and plan the soldering path based on the three-dimensional coordinates. The detection module is used to control the robotic arm to move the upper heater above the point to be welded according to the three-dimensional coordinates, and to detect the relative pose of the upper heater and the point to be welded, and to determine the pose deviation compensation amount of the upper heater. The welding module is used to control the welding of the PCB board to be welded according to the welding path and the position deviation compensation amount.

[0013] A third aspect of this application provides an electronic device, including a memory and a processor, wherein the processor is configured to execute a computer program stored in the memory, and when the processor executes the computer program, it implements the steps of the desktop automatic welding method provided in the first aspect of this application.

[0014] The fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it implements the steps of the desktop automatic welding method provided in the first aspect of this application.

[0015] In summary, the desktop automatic welding method, apparatus, equipment, and storage medium provided in this application acquire images of a three-dimensional calibration board on the desktop of an automatic welding machine, and establish a unified machine reference coordinate system based on the acquired image data. Feature recognition is performed on the acquired PCB board image data to determine the three-dimensional coordinates of the points to be welded in the machine reference coordinate system, and a welding path is planned based on these three-dimensional coordinates. A robotic arm carrying an upper heater is moved above the points to be welded according to the three-dimensional coordinates, and the relative pose of the upper heater and the points to be welded is detected to determine the pose deviation compensation amount of the upper heater. Welding of the PCB board is controlled according to the welding path and the pose deviation compensation amount. This allows the solder head to be accurately positioned in the three-dimensional space of each solder point, ensuring that the hot air gun nozzle and the solder pad maintain the optimal working distance during the welding process, preventing unstable welding quality due to positional deviations, and effectively improving the welding success rate. Attached Figure Description

[0016] Figure 1 A schematic flowchart of the desktop automatic welding method provided in the embodiments of this application; Figure 2 A schematic diagram of the program modules of the desktop automatic welding device provided in the embodiments of this application; Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0017] To make the inventive objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0018] To address the problem in related technologies where two-dimensional vision systems cannot accurately perceive the true position of the welding target in three-dimensional space, leading to serious welding errors, embodiments of this application provide a desktop automated welding method, such as... Figure 1 This is a flowchart illustrating the desktop automatic welding method provided in this embodiment. The desktop automatic welding method includes the following steps: Step 110: Collect images of the 3D calibration board on the desktop of the automatic welding machine, and establish a unified machine reference coordinate system based on the collected image data.

[0019] Specifically, a 3D calibration board is placed within the soldering machine's working area, its surface featuring precisely arranged geometric patterns. Two cameras simultaneously capture these patterns from different angles. By analyzing the subtle differences in the patterns between the two images, various camera parameters are calculated. This process is akin to establishing a precise spatiotemporal coordinate network for the entire vision system, unifying the movement trajectories of the vision system and the robotic arm within the same three-dimensional spatial framework. All subsequent positioning and movement will be based on this established reference coordinate system, ensuring that every point seen by the vision system accurately corresponds to the actual position reachable by the robotic arm.

[0020] Step 120: Perform feature recognition on the acquired PCB board image data to be soldered, determine the three-dimensional coordinates of the solder points in the machine reference coordinate system, and plan the soldering path based on the three-dimensional coordinates.

[0021] Specifically, the PCB board containing the components is fixed on a workbench, and a binocular camera performs a panoramic scan of the board. The captured board outline is then compared with pre-stored design drawings to automatically identify all locations requiring soldering. For each solder joint, its precise coordinates in three-dimensional space are calculated by analyzing the parallax information from the left and right camera images. These coordinates include not only planar position but also height information, forming a complete set of spatial coordinates.

[0022] In one optional implementation of this embodiment, the steps of performing feature recognition on the acquired PCB board image data to determine the three-dimensional coordinates of the solder points in the machine reference coordinate system, and planning the soldering path based on the three-dimensional coordinates, include: acquiring a panoramic image of the PCB board to be soldered in the machine reference coordinate system; performing template matching in the panoramic image based on the contour features of the pre-stored PCB design file to determine the planar position and deflection angle of the PCB board to be soldered in the machine reference coordinate system; determining the fine imaging area of ​​all solder points on the stereo calibration board based on the planar position and deflection angle, acquiring a high-resolution image of the fine imaging area, and identifying the first center pixel coordinates of the solder points in the high-resolution image; obtaining the three-dimensional coordinates of the solder points in the machine reference coordinate system through stereo vision calculation based on the first center pixel coordinates and the calibration parameters of the binocular vision module; and optimizing the path of all coordinate points in the three-dimensional coordinates to generate a soldering path.

[0023] In this embodiment, a panoramic image of the PCB board to be soldered is acquired in the machine reference coordinate system. The camera used is calibrated according to the aforementioned calibration parameters to ensure the consistency between the image and the spatial coordinates. An image covering the entire board surface is obtained by stitching multiple images or taking a large field of view shot at once. Then, based on the board outline or positioning hole outline in the pre-stored PCB design file, the board position and deflection angle are located in the panoramic image using a template matching method. Template matching refers to sliding and comparing the outline image of the design file in the image to be tested and calculating the similarity to determine the optimal matching position and rotation angle, thereby obtaining the planar displacement and angular deviation in the machine reference coordinate system. Then, based on the planar position and deflection angle, the fine imaging area corresponding to each solder point is mapped in the visible range of the stereo calibration board. The fine imaging area refers to the local high-resolution image that is magnified and re-acquired on the basis of the panoramic view to ensure pixel-level recognition accuracy. These local images are obtained by camera movement or lens zoom and are acquired under high illumination and high contrast settings to improve the robustness of center pixel positioning. Then, the center pixel coordinates of the solder point are identified in the high-resolution image. The center pixel coordinates represent the position of the center of the solder pad in the image plane in the form of pixel rows and columns. Next, using the pixel coordinates and the calibration parameters of the binocular vision module, the three-dimensional coordinates of the solder joint in the machine's reference coordinate system are obtained through stereo vision calculation. The calculation process involves recovering the depth based on the disparity values ​​of the corresponding pixels of the left and right cameras and mapping the pixel positions to three-dimensional space by combining the camera's intrinsic and extrinsic parameters, thereby obtaining the precise X, Y, and Z values ​​of each solder joint. Finally, the obtained three-dimensional coordinate set is used for path optimization to generate the welding path.

[0024] In one optional implementation of this embodiment, the step of optimizing the path of all coordinate points in the three-dimensional coordinate system to generate a welding path includes: extracting the spatial position data of all points to be welded from the three-dimensional coordinate system, determining the Euclidean distance between each pair of points to be welded based on the spatial position data, and constructing a path distance matrix between all points to be welded; traversing all possible welding sequence of points according to the path distance matrix and accumulating the corresponding total path length to determine the welding sequence of points with the shortest total movement distance, thus obtaining the initial optimal path; identifying the path segments in the initial optimal path where the upper heater interferes with the components on the PCB board to be welded during continuous welding; and based on the path segments, introducing additional obstacle avoidance path points to locally reconstruct the initial optimal path, thereby generating a collision-free and shortest welding path.

[0025] In this embodiment, spatial position data of all solder points to be soldered is extracted from the three-dimensional coordinate set. The spatial position data refers to the X, Y, and Z values ​​of each solder point in the machine's reference coordinate system. Then, the Euclidean distance between any two points is calculated. The Euclidean distance refers to the shortest straight-line interval between two points in three-dimensional space. Based on this, the corresponding distance is filled in for each pair of solder points to construct a path distance matrix. The path distance matrix is ​​a square matrix, and the straight-line distance between two points is recorded at the intersection of its rows and columns for easy lookup in the table later. Next, possible soldering sequences are enumerated by traversing the solder point arrangement. For each candidate sequence, the distance between adjacent solder points is accumulated by looking up the matrix to obtain the total movement length of the sequence. The solder point sequence with the shortest total movement length is selected from all candidates as the initial optimal path. If the number of solder points is large, a segmented search and progressive improvement search process is adopted to obtain an approximately optimal sequence within an acceptable time. Subsequently, collision detection was performed on the obtained initial optimal path. By simulating the geometry of the upper heater segment by segment along the path and comparing it with the three-dimensional height information of the components on the PCB, path segments that might interfere during continuous movement or docking were identified. Collision detection included calculating the relative positions between the heater and components at several interpolation points along the motion trajectory and determining whether the minimum clearance was below a safety threshold. Finally, for the marked segments with interference risk, additional obstacle avoidance path points were introduced in their vicinity to construct local detour trajectories. The connection relationships between the detour points were recalculated to ensure that the newly generated local road segments could avoid highly protruding components while minimizing the increased movement distance. Thus, through local reconstruction, the initial optimal path was transformed into a collision-free soldering path that maintained the overall shortest possible path.

[0026] Step 130: Based on the three-dimensional coordinates, control the robotic arm to move the upper heater above the point to be welded, and detect the relative pose of the upper heater and the point to be welded to determine the pose deviation compensation amount of the upper heater.

[0027] Specifically, the robotic arm carries the upper heater and moves it above the solder pad. The relative posture between the two is detected using vision or laser sensing to calculate the deviation between the tip position and the actual solder pad coordinates. The posture error information acquired during this process includes horizontal displacement and height differences, reflecting the skewing of the heater tip due to assembly errors, thermal deformation, or accumulated errors in the motion system. By calculating the posture deviation signal in real time, the control system can compensate for the deviation before performing heating and contact, ensuring a precise correspondence between the heater tip and the solder pad.

[0028] In one optional embodiment of this example, the step of detecting the relative pose of the upper heater and the solder joint and determining the pose deviation compensation amount of the upper heater includes: controlling a robotic arm to lower the upper heater along the Z-axis to a preset laser focusing plane; projecting laser stripes onto the area where the solder joint is located through a laser displacement sensor on the side of the upper heater; simultaneously acquiring a laser stripe deformation image modulated by the morphology of the surface of the solder joint and surrounding components; identifying the contour boundary of the solder joint and the projection position of the tip of the upper heater based on the bending and breaking characteristics of the laser stripes in the laser stripe deformation image; determining the minimum circumscribed geometric center of the solder joint based on the contour boundary, and comparing the minimum circumscribed geometric center with the projection position of the tip of the upper heater to extract the horizontal position deviation in the X-axis and Y-axis directions; determining the height deviation between the tip of the upper heater and the surface of the solder joint based on the Z-direction step change generated by the laser stripes when crossing the contour boundary; and generating the pose deviation compensation amount of the upper heater based on the horizontal position deviation and the height deviation.

[0029] In this embodiment, the robotic arm carries the upper heater down along the Z-axis to a preset laser focusing plane. The preset laser focusing plane refers to the spatial height where the laser displacement sensor image is clearest and the stripe deformation can be fully resolved. Laser stripes are projected onto the area to be soldered through the laser displacement sensor on the side of the heater. The laser stripes are linear laser beams that have been collimated or shaped by a cylindrical lens. They will deform when affected by height differences, tilt, and abrupt edge changes on the surface of the object. Subsequently, the laser stripe deformation image modulated by the morphology of the surface to be soldered and the surrounding components is acquired simultaneously. The contour boundary of the area to be soldered and the projection position of the tip of the upper heater are identified based on the bending and breaking characteristics of the stripes in the image. Bending reflects the stripe offset caused by the gradual change in surface height, and breaking reflects the discontinuity in the image when the stripes cross abrupt height changes or sharp boundaries. By analyzing the continuity and local abrupt changes of the entire laser stripe, the area to be soldered and the surrounding component area can be distinguished. The projection position of the heater tip can be identified from the intersection or obstruction of the stripes. Next, the minimum circumscribed geometric center of the solder joint is determined based on the identified contour boundary. The minimum circumscribed geometric center refers to the center point of the smallest rectangle or the smallest closed region enclosing the contour of the solder joint. This center point can be calculated through the overall distribution of contour pixels. This geometric center is then compared with the projected position of the heater tip to extract the horizontal deviation in the X and Y axes. Next, the height deviation is determined based on the Z-direction step change generated by the laser stripes when crossing the contour boundary. The Z-direction step change refers to the sudden increase or decrease in pixel displacement when the stripes encounter different height differences. By quantifying the jump amplitude of the stripes at the boundary, the height difference between the heater tip and the actual solder pad surface can be deduced. When the stripe change is not significant, the boundary recognition accuracy is enhanced through multi-frame superposition or multi-angle compensation. For example, when the solder pad area is small and there are large components around it, a clearer step feature can be obtained by changing the laser projection angle. Finally, the pose deviation compensation amount of the heater is generated based on the horizontal deviation and the height deviation. This compensation amount includes translation correction values ​​in the X and Y directions and height correction values ​​in the Z direction, so that the control system can perform real-time correction of the heater end position before performing welding, thereby ensuring that the heater tip is accurately aligned with the center of the solder pad in three-dimensional space and maintains a suitable contact height.

[0030] Step 140: Control the welding of the PCB board to be welded according to the welding path and the position deviation compensation amount.

[0031] Specifically, after positional deviation compensation, the control system directly drives the robotic arm to perform soldering actions based on the optimized soldering path and corrected spatial coordinates. By precisely adjusting the landing position and trajectory of the end effector, the solder head can contact the solder joint area in a stable posture and complete the soldering operation. The compensated spatial commands make the final working position closer to the theoretical target, thereby ensuring the positional consistency between solder joints, the repeatability of soldering actions, and the reliability of the overall process. This allows the automated soldering process to maintain high processing quality without the need for additional complex hardware.

[0032] In one optional implementation of this embodiment, the steps of controlling the soldering of the PCB board to be soldered according to the soldering path and the position deviation compensation amount include: calling the multi-temperature zone heating configuration corresponding to the current solder point from the pre-stored process parameter library according to the soldering path; correcting the target coordinates of the current solder point in the soldering path based on the position deviation compensation amount, controlling the robotic arm to move with the upper heater to the compensated actual working coordinates; and performing feedforward correction on the motion command of the robotic arm based on the position deviation compensation amount to drive the upper heater to move to the target coordinates of the corresponding solder point in the soldering path; and simultaneously starting the upper heater and the lower preheater according to the multi-temperature zone heating configuration, and soldering the solder point through a stepped heating program.

[0033] In this embodiment, when the multi-zone heating configuration corresponding to the current point to be soldered is retrieved from the pre-stored process parameter library according to the welding path, the entries in the process parameter library are first searched. The process parameter library is a set of parameters indexed by pad type, solder type, component heat capacity, and board properties, while the multi-zone heating configuration includes the target temperature, heating rate, holding time, and zone heating strategy for the upper heater and the lower preheater, respectively. Therefore, the search results directly determine the temperature curve and control strategy for this operation. Subsequently, the target coordinates of the current point to be soldered in the welding path are corrected based on the obtained pose deviation compensation amount by subtracting the original target coordinates in the X, Y, Z and angular directions, respectively. Alternatively, a corresponding compensation value can be added to obtain the compensated actual working coordinates. Then, the robotic arm is controlled to move the upper heater to the compensated coordinate position. Simultaneously, feedforward correction is incorporated when generating motion commands. Feedforward correction involves pre-adjusting the command trajectory before sending the motor motion command to compensate for known dynamic errors. For example, the target position is moved forward by a certain distance to compensate for actuator lag, or a smooth segment is added to the speed curve to reduce overshoot caused by inertia. This drives the upper heater to more accurately reach the corresponding target coordinates in the welding path. After the position is reached and stabilized, the upper heater and lower preheater are synchronously started according to the multi-temperature zone heating configuration. Synchronous start means starting according to the configuration... The defined time axis simultaneously triggers each heating unit, which is independently controlled according to its target temperature and heating rate. During heating, temperature sensors sample in real time to monitor the actual temperature of each zone. The sampling results are used to adjust the heating power to maintain the tracking accuracy of the target curve. Then, a stepped heating program is executed for welding heating. First, a preheating stage is performed with a relatively gentle heating rate to reach the target preheating temperature and maintain it for a certain duration to dissipate local thermal stress. Next, a faster second heating rate is used to raise the upper heater to the higher temperature required for the welding stage, and if necessary, the lower preheater is compensated for by heating to maintain the temperature difference on the board surface within the allowable range. Finally, after welding is completed, a cooling strategy is implemented. Slightly reduce the temperature of each zone to avoid thermal shock; to ensure the reliability of the entire process, the temperature control loop adopts a limiting and buffering mechanism to prevent overshoot caused by power surges, and forms a closed-loop coordination between feedforward correction and real-time feedback. For example, when the pose compensation amount changes with thermal expansion, the feedforward amount will be dynamically updated according to the latest measurement value. For example, for small surface mount pads, a smaller heating gradient and a shorter soldering segment can be used, while for large pins or high-heat-capacity components, a longer preheating and a slower heating segment can be used to ensure solder flow and solder joint quality. Thus, through the coordination of parameter library calling, coordinate correction, motion feedforward and multi-zone stepped heating, a precise and repeatable soldering process is achieved.

[0034] In one optional embodiment of this example, the steps of synchronously starting the upper heater and lower preheater according to the multi-temperature zone heating configuration and welding the joint to be welded through a stepped heating program include: synchronously controlling each heating zone to start heating according to the preheating stage target temperature and the first heating slope defined in the multi-temperature zone heating configuration, and reaching the preheating stage target temperature at the first temperature rise rate, entering the first constant temperature stage, wherein the heating zone includes the upper heater, the lower preheater, and the bottom infrared preheating plate; monitoring the actual temperature of each heating zone in real time during the duration of the first constant temperature stage, and stabilizing the actual temperature of each heating zone within the allowable fluctuation range of the corresponding preheating stage target temperature by independently adjusting the heating power of each heating zone; after the duration of the first constant temperature stage is completed, controlling the upper heater to rise to the welding stage target temperature at the second heating rate according to the welding stage target temperature and the second heating slope defined in the multi-temperature zone heating configuration, and simultaneously controlling the lower preheater and the bottom infrared preheating plate to rise to the corresponding welding stage compensation temperature at the third heating rate, entering the second constant temperature stage, until the welding process cycle of the current joint is completed.

[0035] In this embodiment, when controlling heating according to the target temperature and first heating slope defined in the multi-temperature zone heating configuration, the control system first analyzes the temperature curve parameters of the preheating stage. The target temperature of the preheating stage is the stable temperature that each heating zone is expected to reach during the preheating process, while the first heating slope is the target temperature increase per unit time, used to limit the heating rate and protect the thermal stability of the pads and components. Subsequently, each heating zone is simultaneously controlled to start heating. Each heating zone includes an upper heater, a lower preheater, and a bottom infrared preheating plate. The upper heater is mainly responsible for providing concentrated heat directly above the solder joints, the lower preheater provides more uniform heat transfer from the back of the PCB to the solder pad area, and the bottom infrared preheating plate further adjusts the overall background temperature of the PCB through infrared radiation. Therefore, simultaneous activation allows the entire area to enter the controlled heating process in a unified sequence. After activation, each heating zone controls its power output according to the first heating slope, causing the temperature to gradually rise along the set time curve and reach a stable range near the target temperature of the preheating stage, thus entering the first constant temperature stage. During the first isothermal phase, the actual temperature of each heating zone is monitored in real time by temperature sensors. These sensors, which can be thermocouples or infrared temperature measurement components, are placed around the heating coil or on the surface of the heating plate. High-frequency sampling is used to acquire temperature changes in each zone and transmit this data to the control system. Based on the deviation between the monitored values ​​and the target temperature, the control system adjusts the heating power of each heating zone to achieve fine control. For example, when the actual temperature of the upper heater is slightly higher than the target temperature, the control system reduces the power output of that zone, causing the temperature to fall back to within the allowable fluctuation range. Conversely, when the temperature of the lower preheater is lower than the target temperature, its power is increased to raise the temperature. This method keeps the temperature of each zone stable within the allowable fluctuation range near the target temperature. The allowable fluctuation range is defined by process parameters to ensure uniform heating of the pads, solder, and components during the preheating phase. For example, for high-heat-capacity metal shields, a smaller fluctuation range can be set to avoid stress accumulation due to uneven temperature. After the first isothermal phase is completed, the control system initiates the heating process for the welding stage based on the target temperature and the second heating slope defined in the multi-temperature zone heating configuration. During this stage, the upper heater rises to the target temperature of the welding stage at a second heating rate. The second heating rate is higher than the first heating rate, so that the solder joint reaches the higher temperature required to melt the solder in a shorter time, thereby ensuring that the solder has sufficient wetting ability. At the same time, the lower preheater and the bottom infrared preheating plate are controlled to rise to their corresponding welding stage compensation temperature at a third heating rate. The third heating rate and the compensation temperature are used to maintain a uniform heating environment around the board and components, so that there will not be an excessive temperature gradient when the local rapid heating of the solder joint occurs.Subsequently, based on position monitoring, temperature feedback, and welding duration control, all heated areas enter the second isothermal stage after reaching their respective target values. During this stage, the temperature remains stable until the welding process cycle of the current solder joint is completed. In the second isothermal stage, by continuing the previous real-time temperature monitoring and power adjustment strategy, the heating area is ensured to maintain a stable thermal field suitable for sufficient solder melting and flow. This allows the solder to form a uniform spread on the pad surface and maintain good solder activity before the heater is removed. For example, when soldering fine-pitch surface mount leads, the stability of the second isothermal stage has a crucial impact on suppressing solder bridging. Excessive temperature may lead to overflow, while insufficient temperature may result in incomplete wetting defects. Therefore, the control system uses continuous monitoring and fine-grained power adjustment to address these issues. Through the above heating control logic, the temperature-time curve of the entire welding cycle can be kept consistent with the board's thermal distribution, thereby improving the solder joint formation quality and welding stability.

[0036] In one optional embodiment of this example, after controlling the welding of the PCB board to be welded according to the welding path and the pose deviation compensation amount, the method further includes: after completing the welding of a solder joint, controlling the robotic arm to move the upper heater directly above the current solder joint, and acquiring a relative position image between the tip of the upper heater and the current solder joint; identifying the second center pixel coordinates of the tip of the upper heater and the current solder joint in the relative position image, and determining the instantaneous pose data of the upper heater after completing the previous solder joint operation based on the second center pixel coordinates; performing differential calculation between the instantaneous pose data and the three-dimensional coordinates of the current solder joint to obtain the cumulative offset error generated by the upper heater during the welding process; and correcting the three-dimensional coordinates of all solder joints in the welding path according to the cumulative drift error.

[0037] In this embodiment, after completing the soldering of a solder joint, the robotic arm first moves the upper heater directly above the current solder joint and acquires an image of the relative position between the tip of the upper heater and the solder joint. The relative position image refers to an image frame that simultaneously includes the tip of the solder head and the pad area from the same viewpoint, which facilitates direct measurement of their relative positional relationship on the pixel plane. Then, the second center pixel coordinates of the tip of the upper heater and the current solder joint are identified in the relative position image. The center pixel coordinates represent the center position of the target on the image plane in the form of row and column index of the image. The identification can be more accurate through edge detection and sub-pixel-level center fitting. Subsequently, based on the obtained second center pixel coordinates, the instantaneous pose data of the upper heater after completing the previous soldering operation is derived, that is, the instantaneous three-dimensional position and attitude information of the solder head relative to the machine reference coordinate system is obtained. The pose data can be obtained by combining the pixel coordinates with the calibration parameters of the binocular vision module for back projection or by mapping the monocular image coordinates to a known height plane, so as to obtain both the translation in space and the estimation of the small angular deflection around each axis. Then, the real-time pose data is compared with the originally expected 3D coordinates of the current welding point using differential calculation. This differential calculation involves subtracting the translation and angle values ​​of both data under the same coordinate reference to obtain the offset components in the X, Y, and Z directions and around each axis. This offset result represents the cumulative offset error generated by the upper heater during the welding process. The cumulative offset error reflects the displacement and attitude drift caused by factors such as thermal deformation, changes in contact force, and mechanical clearance since the initial calibration or the most recent calibration. Based on the obtained cumulative drift error, the 3D coordinates of all unwelded welding points in the welding path are corrected. The correction operation first applies a translation compensation in space to the original coordinates of each remaining welding point, which is in the same direction as the error. When a significant angular deviation is identified, a rigid rotation correction is performed on the coordinate set to maintain the relative geometric relationship. If the cumulative error exhibits a non-rigid distribution, a hybrid strategy of local translation and height compensation is adopted in local areas to avoid new deviations caused by overcorrection. To ensure the reliability of the correction, after each correction, several key solder joints will be used as verification points for rapid visual retesting. By re-acquiring relative position images and comparing the corrected pixel deviations, it is confirmed whether the correction result has reached the preset accuracy threshold. If the verification result still exceeds the allowable error range, a more refined calibration process is triggered, including re-performing a tip focal plane scan or using the laser stripe method to measure a more accurate height deviation, thereby obtaining a more accurate compensation amount.The correction strategy also includes drift accumulation rate analysis, which records the trend of the offset obtained from multiple differences over time or the number of weld points to determine whether the drift is linearly cumulative or related to specific working conditions, thus deciding whether to use simple linear interpolation correction or partitioned dynamic correction. For example, when it is found that the Z-direction error increases by 0.05 mm every ten weld points, incremental pre-compensation can be performed on subsequent coordinates according to this growth rate, thereby pre-offsetting the upward drift caused by thermal expansion when actually reaching the weld point. Finally, to avoid introducing erroneous compensation due to single abnormal measurement errors, the correction process integrates the statistical results of multiple frames of observations and applies upper and lower limits to the compensation amount. When the cumulative drift exceeds the preset safety threshold, continuous operation is paused and the process is backtracked to the reference calibration point for complete back-verification. This ensures that the working coordinates reached after correction not only eliminate the systematic error caused by cumulative drift but also do not cause new geometric deviations due to overcorrection, thereby maintaining the continuous accuracy and process consistency of the batch welding process.

[0038] According to the desktop automatic welding method provided in this application, images are acquired from a 3D calibration board on the desktop of an automatic welding machine. A unified machine reference coordinate system is established based on the acquired image data. Feature recognition is performed on the acquired PCB board image data to determine the three-dimensional coordinates of the points to be welded in the machine reference coordinate system, and a welding path is planned based on the three-dimensional coordinates. The robotic arm is controlled to move above the points to be welded based on the three-dimensional coordinates, and the relative pose of the upper heater and the points to be welded is detected to determine the pose deviation compensation amount of the upper heater. Welding is controlled based on the welding path and the pose deviation compensation amount. This method enables the solder head to accurately position itself in the three-dimensional space of each solder point, ensuring that the hot air gun nozzle and the solder pad maintain the optimal working distance during the welding process, preventing unstable welding quality due to positional deviations, and effectively improving the welding success rate.

[0039] Figure 2 This application provides a desktop automatic welding device, which can be used to implement the desktop automatic welding method described in the foregoing embodiments. For example... Figure 2 As shown, the desktop automatic welding device mainly includes: The acquisition module 10 is used to acquire images of the three-dimensional calibration board on the desktop of the automatic welding machine and establish a unified machine reference coordinate system based on the acquired image data. The determination module 20 is used to perform feature recognition on the acquired PCB board image data to be soldered, determine the three-dimensional coordinates of the solder point in the machine reference coordinate system, and plan the soldering path based on the three-dimensional coordinates. The detection module 30 is used to control the robotic arm to move the upper heater above the point to be welded according to the three-dimensional coordinates, and to detect the relative pose of the upper heater and the point to be welded, and to determine the pose deviation compensation amount of the upper heater. The welding module 40 is used to control the welding of the PCB board to be welded according to the welding path and the position deviation compensation amount.

[0040] In one optional implementation of this embodiment, the determining module is specifically used for: acquiring a panoramic image of the PCB board to be soldered in the machine reference coordinate system; performing template matching in the panoramic image based on the contour features of the pre-stored PCB design file to determine the planar position and deflection angle of the PCB board to be soldered in the machine reference coordinate system; determining the fine imaging area of ​​all solder points on the stereo calibration board based on the planar position and deflection angle, acquiring a high-resolution image of the fine imaging area, and identifying the first center pixel coordinates of the solder points in the high-resolution image; obtaining the three-dimensional coordinates of the solder points in the machine reference coordinate system through stereo vision calculation based on the first center pixel coordinates and the calibration parameters of the binocular vision module; and optimizing the path of all coordinate points in the three-dimensional coordinates to generate a soldering path.

[0041] In an optional implementation of this embodiment, the determining module is further configured to: extract the spatial position data of all points to be soldered from the three-dimensional coordinates, and determine the Euclidean distance between each pair of points to be soldered based on the spatial position data, and construct a path distance matrix between all points to be soldered; traverse all possible soldering sequences according to the path distance matrix and accumulate the corresponding total path lengths to determine the soldering sequence with the shortest total moving distance, and obtain the initial optimal path; identify the path segments in the initial optimal path where the upper heater interferes with the components on the PCB board to be soldered during continuous soldering; and based on the path segments, introduce additional obstacle avoidance path points to locally reconstruct the initial optimal path, generating a collision-free and shortest soldering path.

[0042] In one optional embodiment of this example, the detection module is specifically used to: control the robotic arm to lower the upper heater along the Z-axis to a preset laser focusing plane, and project laser stripes onto the area where the solder joint is located through a laser displacement sensor on the side of the upper heater; simultaneously acquire laser stripe deformation images modulated by the morphology of the surface of the solder joint and surrounding components, and identify the contour boundary of the solder joint and the projection position of the tip of the upper heater based on the bending and breaking characteristics of the laser stripes in the laser stripe deformation image; determine the minimum circumscribed geometric center of the solder joint according to the contour boundary, and compare the minimum circumscribed geometric center with the projection position of the tip of the upper heater to extract the horizontal position deviation in the X-axis and Y-axis directions; determine the height deviation between the tip of the upper heater and the surface of the solder joint according to the step change in the Z-direction generated when the laser stripes cross the contour boundary; and generate the pose deviation compensation amount of the upper heater according to the horizontal position deviation and the height deviation.

[0043] In one optional implementation of this embodiment, the welding module is specifically used for: retrieving the multi-temperature zone heating configuration corresponding to the current point to be welded from the pre-stored process parameter library according to the welding path; correcting the target coordinates of the current point to be welded in the welding path based on the pose deviation compensation amount, controlling the robotic arm to move with the upper heater to the compensated actual working coordinates; and performing feedforward correction on the motion command of the robotic arm based on the pose deviation compensation amount to drive the upper heater to move to the target coordinates of the corresponding point to be welded in the welding path; and synchronously starting the upper heater and the lower preheater according to the multi-temperature zone heating configuration, and welding the point to be welded through a stepped heating program.

[0044] In one optional embodiment of this example, the welding module is further configured to: synchronously control each heating zone to start heating according to the preheating stage target temperature and the first heating slope defined in the multi-temperature zone heating configuration, and reach the preheating stage target temperature at the first temperature rise rate, entering the first constant temperature stage, wherein the heating zone includes an upper heater, a lower preheater, and a bottom infrared preheating plate; monitor the actual temperature of each heating zone in real time during the duration of the first constant temperature stage, and stabilize the actual temperature of each heating zone within the allowable fluctuation range of the corresponding preheating stage target temperature by independently adjusting the heating power of each heating zone; after the duration of the first constant temperature stage is completed, control the upper heater to rise to the welding stage target temperature at the second heating rate according to the welding stage target temperature and the second heating slope defined in the multi-temperature zone heating configuration, and simultaneously control the lower preheater and the bottom infrared preheating plate to rise to the corresponding welding stage compensation temperature at the third heating rate, entering the second constant temperature stage, until the welding process cycle of the current weld point is completed.

[0045] In an optional embodiment of this example, the welding module is further configured to: after completing the welding of a weld point, control the robotic arm to move the upper heater directly above the current weld point, and acquire an image of the relative position between the tip of the upper heater and the current weld point; identify the second center pixel coordinates of the tip of the upper heater and the current weld point in the relative position image, and determine the instantaneous pose data of the upper heater after completing the previous weld point operation based on the second center pixel coordinates; perform differential calculation between the instantaneous pose data and the three-dimensional coordinates of the current weld point to obtain the cumulative offset error generated by the upper heater during the welding process; and correct the three-dimensional coordinates of all weld points in the welding path according to the cumulative drift error.

[0046] According to the desktop automatic welding device provided in this application, images are acquired from a 3D calibration board on the desktop of the automatic welding machine. A unified machine reference coordinate system is established based on the acquired image data. Feature recognition is performed on the acquired image data of the PCB board to be welded to determine the three-dimensional coordinates of the points to be welded in the machine reference coordinate system, and a welding path is planned based on the three-dimensional coordinates. The robotic arm is controlled to move above the points to be welded according to the three-dimensional coordinates, and the relative pose of the upper heater and the points to be welded is detected to determine the pose deviation compensation amount of the upper heater. Welding is controlled on the PCB board to be welded according to the welding path and the pose deviation compensation amount. This allows the solder head to be accurately positioned in the three-dimensional space of each solder point, ensuring that the hot air gun nozzle and the solder pad always maintain the optimal working distance during the welding process, preventing unstable welding quality due to positional deviation, and effectively improving the welding success rate.

[0047] According to the scheme provided in this application Figure 3 An electronic device is provided as an embodiment of this application. This electronic device can be used to implement the desktop automatic welding method described in the foregoing embodiments, and mainly includes: The system includes a memory 301, a processor 302, and a computer program 303 stored on the memory 301 and executable on the processor 302. The memory 301 and the processor 302 are connected via communication. When the processor 302 executes the computer program 303, it implements the desktop automated welding method described in the foregoing embodiments. The number of processors can be one or more.

[0048] The memory 301 can be a high-speed random access memory (RAM) or a non-volatile memory, such as a disk storage device. The memory 301 is used to store executable program code, and the processor 302 is coupled to the memory 301.

[0049] Furthermore, embodiments of this application also provide a computer-readable storage medium, which may be disposed in the electronic device described in the above embodiments, and the computer-readable storage medium may be as described above. Figure 3 The memory in the illustrated embodiment.

[0050] The computer-readable storage medium stores a computer program that, when executed by a processor, implements the desktop automated soldering method described in the foregoing embodiments. Furthermore, the computer-readable storage medium can also be a USB flash drive, external hard drive, read-only memory (ROM), RAM, magnetic disk, or optical disk, or any other medium capable of storing program code.

[0051] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0052] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0053] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A desktop automatic welding method, characterized in that, include: Images are acquired from the 3D calibration board on the desktop of the automatic welding machine, and a unified machine reference coordinate system is established based on the acquired image data. Feature recognition is performed on the acquired PCB board image data to be soldered to determine the three-dimensional coordinates of the solder points in the machine's reference coordinate system, and a soldering path is planned based on the three-dimensional coordinates. The robotic arm is controlled to move above the point to be welded according to the three-dimensional coordinates, and the relative pose of the upper heater and the point to be welded is detected to determine the pose deviation compensation amount of the upper heater. The welding of the PCB board to be welded is controlled according to the welding path and the position deviation compensation amount.

2. The desktop automatic welding method according to claim 1, characterized in that, The steps of performing feature recognition on the acquired PCB board image data to determine the three-dimensional coordinates of the points to be soldered in the machine's reference coordinate system, and planning the soldering path based on the three-dimensional coordinates, include: A panoramic image of the PCB board to be soldered is acquired in the machine reference coordinate system; Based on the contour features of the pre-stored PCB design file, template matching is performed in the panoramic image to determine the planar position and deflection angle of the PCB board to be soldered in the machine reference coordinate system. Based on the planar position and deflection angle, a fine imaging area for all solder joints is determined on the stereo calibration plate, a high-resolution image of the fine imaging area is acquired, and the first center pixel coordinates of the solder joint are identified in the high-resolution image. Based on the coordinates of the first center pixel and the calibration parameters of the binocular vision module, the three-dimensional coordinates of the point to be soldered in the machine reference coordinate system are obtained by stereo vision calculation. Path optimization is performed on all coordinate points in the three-dimensional coordinate system to generate a welding path.

3. The desktop automatic welding method according to claim 2, characterized in that, The step of optimizing the path of all coordinate points in the three-dimensional coordinate system to generate the welding path includes: Extract the spatial location data of all points to be soldered from the three-dimensional coordinates, and determine the Euclidean distance between every two points to be soldered based on the spatial location data, and construct the path distance matrix between all points to be soldered; Based on the path distance matrix, traverse all possible welding sequence of weld points and accumulate the corresponding total path length to determine the welding sequence of weld points with the shortest total movement distance, thus obtaining the initial optimal path; In the initial optimal path, the path segment in which the upper heater interferes with the components on the PCB board to be soldered during continuous welding is identified; Based on the path segment, additional obstacle avoidance path points are introduced to locally reconstruct the initial optimal path, generating a collision-free and shortest welding path.

4. The desktop automatic welding method according to claim 2, characterized in that, The step of detecting the relative pose of the upper heater and the weld point, and determining the pose deviation compensation amount of the upper heater, includes: The robotic arm is controlled to carry the upper heater down along the Z-axis to a preset laser focusing plane, and laser stripes are projected onto the area where the welding point is located through the laser displacement sensor on the side of the upper heater; Simultaneously acquire laser stripe deformation images modulated by the morphology of the surface of the point to be soldered and the surrounding components. Based on the bending and breaking characteristics of the laser stripes in the laser stripe deformation images, identify the contour boundary of the point to be soldered and the projection position of the tip of the upper heater. The minimum circumscribed geometric center of the point to be welded is determined based on the contour boundary, and the minimum circumscribed geometric center is compared with the projected position of the tip of the upper heater to extract the horizontal position deviation in the X-axis and Y-axis directions. The height deviation between the tip of the upper heater and the surface of the weld point is determined based on the Z-direction step change of the laser stripe when it crosses the contour boundary. The pose deviation compensation amount of the upper heater is generated based on the horizontal position deviation and the height deviation.

5. The desktop automatic welding method according to claim 1, characterized in that, The step of controlling the soldering of the PCB board to be soldered based on the soldering path and the pose deviation compensation amount includes: According to the welding path, the multi-temperature zone heating configuration corresponding to the current welding point is retrieved from the pre-stored process parameter library; Based on the pose deviation compensation amount, the target coordinates of the current welding point in the welding path are corrected, and the robotic arm carrying the upper heater is controlled to move to the compensated actual working coordinates. The motion commands controlling the robotic arm are feedforward and corrected based on the pose deviation compensation amount, so as to drive the upper heater to move to the target coordinates of the corresponding welding point in the welding path. The upper heater and lower preheater are started synchronously according to the multi-temperature zone heating configuration, and the weld points are welded through a stepped heating program.

6. The desktop automatic welding method according to claim 5, characterized in that, The step of synchronously starting the upper heater and lower preheater according to the multi-temperature zone heating configuration, and welding the joints to be welded through a stepped heating program, includes: According to the preheating stage target temperature and the first temperature rise slope defined in the multi-temperature zone heating configuration, each heating zone is synchronously controlled to start heating and reach the preheating stage target temperature at the first temperature rise rate, and enter the first constant temperature stage. The heating zone includes an upper heater, a lower preheater and a bottom infrared preheating plate. During the duration of the first constant temperature stage, the actual temperature of each heating zone is monitored in real time, and the heating power of each heating zone is adjusted independently to stabilize the actual temperature of each heating zone within the allowable fluctuation range of the target temperature in the corresponding preheating stage. After the duration of the first isothermal stage is completed, the upper heater is controlled to rise to the target temperature of the welding stage at a second heating rate according to the target temperature of the welding stage and the second heating slope defined in the multi-temperature zone heating configuration. At the same time, the lower preheater and the bottom infrared preheating plate are controlled to rise to the corresponding welding stage compensation temperature at a third heating rate, and the second isothermal stage is entered until the welding process cycle of the current weld point is completed.

7. The desktop automatic welding method according to claim 1, characterized in that, After the step of controlling the welding of the PCB board to be welded according to the welding path and the pose deviation compensation amount, the method further includes: After completing the welding of a weld point, the robotic arm is controlled to move the upper heater directly above the current weld point and acquire an image of the relative position between the tip of the upper heater and the current weld point. The second center pixel coordinates of the tip of the upper heater and the current solder joint are identified in the relative position image, and the instantaneous pose data of the upper heater after completing the previous solder joint operation are determined based on the second center pixel coordinates. The cumulative offset error generated by the upper heater during the welding process is obtained by performing a differential calculation between the real-time pose data and the three-dimensional coordinates of the current welding point. The three-dimensional coordinates of all points to be welded in the welding path are corrected based on the cumulative drift error.

8. A desktop automatic welding device, characterized in that, The desktop automatic welding device is used to implement the desktop automatic welding method according to claim 1, and the desktop automatic welding device includes: The data acquisition module is used to acquire images of the 3D calibration board on the desktop of the automatic welding machine and establish a unified machine reference coordinate system based on the acquired image data. The determination module is used to perform feature recognition on the acquired PCB board image data to be soldered, determine the three-dimensional coordinates of the points to be soldered in the machine reference coordinate system, and plan the soldering path based on the three-dimensional coordinates. The detection module is used to control the robotic arm to move the upper heater above the point to be welded according to the three-dimensional coordinates, and to detect the relative pose of the upper heater and the point to be welded, and to determine the pose deviation compensation amount of the upper heater. The welding module is used to control the welding of the PCB board to be welded according to the welding path and the position deviation compensation amount.

9. An electronic device, characterized in that, Includes memory and processor, of which: The processor is used to execute computer programs stored in the memory; When the processor executes the computer program, it implements the steps of the desktop automatic welding method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the desktop automatic welding method according to any one of claims 1 to 7.