3D printing method, electronic device, and computer readable storage medium
By adjusting the distance between the nozzle assembly and the printing platform in the 3D printing equipment, ensuring that the printing line width meets the preset requirements, the problem of low accuracy of existing 3D printing equipment is solved and the user experience and printing quality are improved.
Patent Information
- Application Number
- PCT/CN2024/087867
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-26
- Filing Date
- 2024-04-16
- Publication Date
- 2024-12-05
AI Technical Summary
The printing accuracy of existing 3D printing equipment is low, which makes it difficult for the printed 3D models to meet the user's requirements, which in turn leads to poor user experience.
By controlling the nozzle assembly to print preset lines on the printing platform, obtain the actual line width and the preset printing line width of the 3D model to be printed for comparison, and adjust the relative distance between the printing platform and the nozzle assembly according to the comparison results to ensure the nozzle assembly The sprayed print line meets the preset line width requirements.
It improves the printing accuracy of 3D printing equipment, improves the user experience, avoids the printing line width that does not meet the requirements, and enhances the printing quality.
Smart Images

Figure CN2024087867_05122024_PF_FP_ABST
Abstract
Description
3D printing method, electronic device and computer-readable storage medium Technical Field
[0001] The present application relates to the field of 3D printing technology, and in particular to a 3D printing method, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the rise of concepts like smart manufacturing and Industry 4.0, 3D printing technology is becoming increasingly widespread. 3D printing, first appearing in the mid-1990s, is essentially a state-of-the-art rapid prototyping device utilizing technologies like photocuring and paper lamination. It operates on essentially the same principle as conventional printing: a printer is filled with "printing material" such as liquid or powder. Once connected to a computer, the computer controls the process of layering the "printing material," ultimately transforming the blueprint on the computer into a physical object. This printing technology is known as 3D printing.
[0003] In the related art, the printing accuracy of 3D printing equipment is low, resulting in the printed 3D models being difficult to meet user requirements, which in turn leads to a poor user experience.
[0004] Summary of the Invention
[0005] In view of this, the present application provides a 3D printing method, an electronic device, and a computer-readable storage medium, which can improve the printing accuracy of a 3D printing device, thereby improving the user experience.
[0006] A first aspect of the present application provides a 3D printing method, which is applied to a 3D printing device, wherein the 3D printing device includes a nozzle assembly and a printing platform, and the nozzle assembly is used to spray printing material onto the printing platform. The method includes: controlling the nozzle assembly to print at least one preset line on the printing platform; obtaining the actual line width of the preset line; comparing the actual line width with the preset printing line width of the 3D model to be printed, and determining an adjustment value based on the comparison result, wherein the adjustment value is used to adjust the relative distance between the printing platform and the nozzle assembly; after adjusting the relative distance between the printing platform and the nozzle assembly according to the adjustment value, controlling the nozzle assembly to print the 3D model to be printed on the printing platform.
[0007] Compared with the related art, the embodiments of the present application have at least the following advantages: by controlling the nozzle assembly to print a preset line on the printing platform, so as to know the actual line width of the printing line currently printed by the 3D printing device, and then compare the actual line width with the preset printing line width of the 3D model to be printed, and adjust the relative distance between the printing platform and the nozzle assembly according to the comparison result, the distance between the nozzle assembly and the printing platform can be made to reach an appropriate value, thereby ensuring that the printing line formed after the nozzle assembly sprays the printing material on the printing platform meets the preset printing line width requirement, avoiding the occurrence of "the relative distance between the printing platform and the nozzle assembly is large or small, resulting in a smaller or larger line width of the printing line formed after the nozzle assembly sprays the printing material on the printing platform", thereby improving the printing accuracy of the 3D printing device and thus improving the user experience.
[0008] In some possible implementations, before controlling the nozzle assembly to print at least one preset line on the printing platform, the method further includes: inputting preset slicing parameters and printing material parameters of the 3D model to be printed into 3D printing slicing software to obtain the preset printing line width.
[0009] By adopting this technical solution, an accurate preset printing line width can be obtained, further improving the printing accuracy of the 3D printing equipment.
[0010] In some possible implementations, before controlling the nozzle assembly to print at least one preset line on the printing platform, it also includes: obtaining N preset extrusion parameter values of the nozzle assembly according to the preset slicing parameters and the printing material parameters, wherein each preset extrusion parameter value corresponds to a different part of the 3D model to be printed, and N is a constant greater than 1; controlling the nozzle assembly to print at least one preset line on the printing platform according to the preset printing line width of the 3D model to be printed includes: controlling the nozzle assembly to print N preset lines on the printing platform according to the N preset extrusion parameter values, wherein one preset extrusion parameter value corresponds to one preset line; obtaining the actual line width of the preset line includes: obtaining N actual line widths of the N preset lines; comparing the actual line width with the preset printing line width, and determining the adjustment value according to the comparison result, includes: comparing the N actual line widths with the preset printing line width, and determining the adjustment value according to the comparison result.
[0011] By adopting this technical solution, it is possible to ensure that the actual line width of each part of the 3D model to be printed can meet the preset printing line width requirements, further improving the printing accuracy of the 3D printing equipment.
[0012] In some possible implementations, the comparing the N actual line widths with the preset printing line widths and determining the adjustment value based on the comparison result includes: calculating the average value of the N actual line widths; comparing the average value with the preset printing line width, and determining the adjustment value based on the comparison result.
[0013] By adopting this technical solution, a specific method for determining the adjustment value can be achieved.
[0014] In some possible implementations, the 3D model to be printed includes M different parts, where M is an integer greater than 1; each part of the 3D model to be printed corresponds to at least two of the preset extrusion parameter values; after controlling the nozzle assembly to print N preset lines on the printing platform according to the N preset extrusion parameter values, it also includes: selecting the optimal preset line for each part from the preset lines corresponding to the M parts, and using the preset extrusion parameter value corresponding to the optimal preset line of each part as the final extrusion parameter value for printing the 3D model to be printed.
[0015] By adopting this technical solution, the optimal preset line for each part can be obtained, thereby determining the final extrusion parameter value for each part and improving the printing quality of the 3D printing equipment.
[0016] In some possible implementations, selecting the optimal preset line for each part from the M preset lines corresponding to the parts includes: calculating the line width standard deviation of multiple preset lines corresponding to each part, and taking the preset line with the smallest line width standard deviation for each part as the optimal preset line for the part.
[0017] In some possible implementations, the line width standard deviation of the preset line is calculated in the following manner: obtaining the line width values of the preset line at multiple different positions; calculating the average line width value of the preset line based on the multiple line width values; and calculating the line width standard deviation based on the average line width value and the multiple line width values.
[0018] In a second aspect, the present application discloses an electronic device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the electronic device executes the above-mentioned 3D printing method.
[0019] A third aspect of the present application discloses a computer-readable storage medium, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned 3D printing method.
[0020] It can be understood that the electronic device of the second aspect and the computer-readable storage medium of the third aspect provided above correspond to the method of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.
[0022] FIG1 is a flow chart of a 3D printing method provided in one embodiment of the present application.
[0023] FIG2 is a flow chart of a 3D printing method provided in one embodiment of the present application.
[0024] FIG3 is a schematic structural diagram of a printing line A provided in an embodiment of the present application.
[0025] FIG4 is a flow chart of a 3D printing method provided in an embodiment of the present application.
[0026] FIG5 is a diagram showing the printing effect of a 3D printing device on a printing platform provided in an embodiment of the present application.
[0027] FIG6 is another effect diagram of the 3D printing device provided in one embodiment of the present application printing on the printing platform.
[0028] FIG7 is a schematic diagram of a scanning and printing platform of a 3D printing device provided in an embodiment of the present application.
[0029] FIG8 is a schematic diagram of comparing normal vectors of a standard horizontal plane and a fitting plane provided by an embodiment of the present application.
[0030] FIG9 is a diagram showing an application scenario of printing compensation for printing platform deformation provided by an embodiment of the present application.
[0031] FIG10 is a flowchart of a 3D printing method provided in one embodiment of the present application.
[0032] FIG11 is a working interaction diagram of a 3D printing device provided in one embodiment of the present application.
[0033] FIG12 is a schematic diagram of a scenario of line height detection of a 3D printing device provided in an embodiment of the present application.
[0034] FIG13 is an image captured by a camera of a 3D printing device in an online high-inspection scenario according to an embodiment of the present application.
[0035] FIG14 is another image captured by the camera of the 3D printing device provided in an embodiment of the present application in an online high-inspection scenario.
[0036] FIG15 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to more clearly understand the above-mentioned objectives, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features therein can be combined with each other in the absence of conflict.
[0038] In the following description, many specific details are set forth to facilitate a full understanding of the present application. The described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application pertains. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0040] It should be further noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0041] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. A and B can be singular or plural.
[0042] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0043] To facilitate understanding, some illustrations of concepts related to the embodiments of the present application are given for reference.
[0044] 3D printing equipment, also known as three-dimensional printers or stereo printers, is a rapid prototyping process that typically uses digital printing technology to create materials. 3D printing equipment is often used to create models or parts in fields such as mold manufacturing and industrial design.
[0045] Please refer to FIG1 , which is a flow chart of a 3D printing method provided in an embodiment of the present application. This embodiment is applied to a 3D printing device. The 3D printing device includes a nozzle assembly and a printing platform. The nozzle assembly is used to spray printing material onto the printing platform, including the following steps:
[0046] Step 101: Control the nozzle assembly to print at least one preset line on the printing platform.
[0047] In some embodiments, the 3D printing device is communicatively connected to the 3D printing slicing software, or the 3D printing device is equipped with the 3D printing slicing software. Before controlling the nozzle assembly to print the preset line, the 3D printing slicing software receives the preset slicing parameters and printing material parameters of the 3D model to be printed input by the user. The 3D printing slicing software obtains the preset extrusion parameter value based on the preset slicing parameters and printing material parameters. The 3D printing device controls the nozzle assembly to print at least one preset line on the printing platform based on the preset extrusion parameter value.
[0048] Specifically, the preset slicing parameters include, but are not limited to, temperature, layer height, speed, support, and retraction. Temperature refers to the nozzle temperature. When the 3D printing device has a heated bed, the temperature also includes the temperature of the heated bed. Layer height refers to the height of each layer of the 3D model to be printed. The smaller the layer height, the more layers are required for the entire print. Speed generally refers to the movement speed of the print head, and can also include the printing material filling speed, wall speed, etc. Support is the structure that supports the overhanging features on the 3D model to be printed. Retraction includes retraction distance and retraction speed. Retraction determines the amount and speed of the filament being sucked back into the nozzle to prevent material from seeping out before extrusion.
[0049] Printing material parameters include but are not limited to: material type, required quantity, etc.
[0050] In some embodiments, the printing platform includes a formal printing area and an informal printing area, and the 3D printing device controls the nozzle assembly to print N preset lines in the informal printing area according to N preset extrusion parameters.
[0051] In some embodiments, the relative positional relationship between the formal printing area and the informal printing area is not specifically limited. For example, the central area of the printing platform can be used as the formal printing area, and the peripheral area surrounding the central area can be used as the informal printing area. Other areas of the printing platform can also be used as the formal printing area according to actual needs. These will not be detailed here.
[0052] Step 102: Obtain the actual line width of the preset line.
[0053] In some embodiments, the 3D printing device includes a photographing device, which photographs an image of the preset line and then obtains the actual line width of the preset line based on the image of the preset line.
[0054] In some embodiments, the actual line width of the preset line may also be measured using tools such as a digital caliper and a microscope.
[0055] Step 103: Compare the actual line width with the preset printing line width of the 3D model to be printed, and determine an adjustment value based on the comparison result. The adjustment value is used to adjust the relative distance between the printing platform and the nozzle assembly.
[0056] In some embodiments, the 3D printing slicing software receives preset slicing parameters and printing material parameters of the 3D model to be printed input by the user, and the 3D printing slicing software obtains a preset printing line width according to the preset slicing parameters and printing material parameters.
[0057] In some embodiments, the adjustment value is determined in the following manner: when the actual line width is greater than the preset printing line width, the adjustment value is determined to increase the relative distance between the printing platform and the nozzle assembly; when the actual line width is less than the preset printing line width, the adjustment value is determined to reduce the relative distance between the printing platform and the nozzle assembly.
[0058] Specifically, if the actual line width is larger than the preset printing line width, it means that the distance between the printing platform and the nozzle assembly is too close, and the printing platform needs to be adjusted downward by a certain distance to increase the relative distance between the printing platform and the nozzle assembly; if the actual line width is smaller than the preset printing line width, it means that the distance between the printing platform and the nozzle assembly is too far, and the printing platform needs to be adjusted upward by a certain distance to reduce the relative distance between the printing platform and the nozzle assembly.
[0059] In some embodiments, the 3D printing device includes a motor, which is connected to the printing platform and is used to control the lifting and lowering of the printing platform. When the actual line width is greater than the preset printing line width, the motor controls the printing platform to descend; when the actual line width is less than the preset printing line width, the motor controls the printing platform to rise.
[0060] In some embodiments, the 3D printing device pre-sets a distance adjustment value. Taking the distance adjustment value as 5 mm as an example, when the printing platform needs to rise, the motor controls the printing platform to rise 5 mm, and then the 3D printing device controls the nozzle assembly to reprint a preset line on the printing platform, and compares the line width of the new preset line with the preset printing line width again to determine whether it is necessary to control the printing platform to rise 5 mm again, until the difference between the actual line width of the preset line finally printed by the nozzle assembly on the printing platform and the preset printing line width meets the printing requirements, then stop controlling the printing platform to rise 5 mm, and print the 3D model to be printed according to the relative distance between the printing platform and the nozzle assembly at this time.
[0061] Step 104: After adjusting the relative distance between the printing platform and the nozzle assembly according to the adjustment value, control the nozzle assembly to print the 3D model to be printed on the printing platform.
[0062] The steps for printing the 3D model to be printed in the formal printing area are described in detail later. To avoid repetition, they will not be repeated here.
[0063] Compared with the related art, the embodiments of the present application have at least the following advantages: by controlling the nozzle assembly to print a preset line on the printing platform, so as to know the actual line width of the printing line currently printed by the 3D printing device, and then compare the actual line width with the preset printing line width of the 3D model to be printed, and adjust the relative distance between the printing platform and the nozzle assembly according to the comparison result, the distance between the nozzle assembly and the printing platform can be made to reach an appropriate value, thereby ensuring that the printing line formed after the nozzle assembly sprays the printing material on the printing platform meets the preset printing line width requirement, avoiding the occurrence of "the relative distance between the printing platform and the nozzle assembly is large or small, resulting in a smaller or larger line width of the printing line formed after the nozzle assembly sprays the printing material on the printing platform", thereby improving the printing accuracy of the 3D printing device and thus improving the user experience.
[0064] Please refer to Figure 2, which is a flow chart of the 3D printing method provided in an embodiment of the present application. This embodiment is a further improvement on the previous embodiment, and the main improvement is that: in this embodiment, different preset extrusion parameter values are set for different parts of the 3D model to be printed, and the nozzle assembly is controlled to print preset lines on the printing platform according to each preset extrusion parameter value. Finally, the average line width of each preset line is compared with the preset printing line width to obtain a more accurate adjustment value, further improving the printing accuracy of the 3D printing device, thereby further improving the user experience.
[0065] The specific process of this embodiment is shown in FIG2 , and includes the following steps:
[0066] Step 201: Obtain N preset extrusion parameter values of the nozzle assembly according to preset slicing parameters and printing material parameters, and different parts of the 3D model to be printed correspond to at least one preset extrusion parameter value.
[0067] Specifically, N is an integer greater than 1. This embodiment does not impose any specific limitation on the value of N, and it can be set according to actual needs.
[0068] In some embodiments, the portion of the 3D model to be printed includes an inner wall, an outer wall, a filling area, etc. The preset extrusion parameter values include, but are not limited to, extrusion speed, extrusion temperature, layer height, and the like.
[0069] Step 202: Control the nozzle assembly to print N preset lines on the printing platform according to N preset extrusion parameter values, wherein one preset extrusion parameter value corresponds to one preset line.
[0070] In some embodiments, each preset extrusion parameter value corresponds to a part of the 3D model to be printed. For ease of understanding, the following uses the example of the 3D model to be printed including part 1, part 2, and part 3; the preset extrusion parameter values including a first preset extrusion parameter value, a second preset extrusion parameter value, and a third preset extrusion parameter value; and the preset lines including a first preset line, a second preset line, and a third preset line to specifically explain how to control the nozzle assembly to print the preset lines on the printing platform in this embodiment:
[0071] The first preset extrusion parameter value corresponds to part 1, the second preset extrusion parameter value corresponds to part 2, and the third preset extrusion parameter value corresponds to part 3. The 3D printing device controls the nozzle assembly to print the first preset line according to the first preset extrusion parameter value, controls the nozzle assembly to print the second preset line according to the second preset extrusion parameter value, and controls the nozzle assembly to print the third preset line according to the third preset extrusion parameter value.
[0072] It can be understood that the first preset line, the second preset line and the third preset line can be connected end to end, that is, the first preset line, the second preset line and the third preset line are a printing line as a whole; the first preset line, the second preset line and the third preset line can also be unconnected to each other, that is, the first preset line, the second preset line and the third preset line are independent printing lines.
[0073] Please refer to Figure 3, which is a schematic diagram of the structure of the print line A provided in this embodiment. The first preset line, the second preset line, and the third preset line are connected end to end. The 3D printing device prints a continuous print line A on the printing platform according to the first preset extrusion parameter value, the second preset extrusion parameter value, and the third preset extrusion parameter value. The print line A can be divided into three parts, each corresponding to a preset extrusion parameter value.
[0074] Step 203: Obtain N actual line widths of N preset lines.
[0075] The method of obtaining the actual line width in this embodiment is the same as the method of obtaining the actual line width in the previous embodiment, and to avoid repetition, it will not be repeated here.
[0076] Step 204: Compare the N actual line widths with the preset printing line width, and determine an adjustment value based on the comparison result.
[0077] In some embodiments, the adjustment value can be determined by comparing the N actual line widths with the preset printing line width in the following manner: calculating the average value of the N actual line widths; comparing the average value with the preset printing line width, and determining the adjustment value based on the comparison result.
[0078] Specifically, assuming that the value of N is 5, the average value P of the five actual line widths is calculated, and the average value P is compared with the preset printing line width. If the average value P is greater than the preset printing line width, it means that the distance between the printing platform and the nozzle assembly is too close, and the printing platform needs to be adjusted downward by a certain distance to increase the relative distance between the printing platform and the nozzle assembly; if the average value P is less than the preset printing line width, it means that the distance between the printing platform and the nozzle assembly is too far, and the printing platform needs to be adjusted upward by a certain distance to reduce the relative distance between the printing platform and the nozzle assembly.
[0079] In some embodiments, the median of N actual line widths may be calculated, the median may be compared with the preset printing line width, and the adjustment value may be determined based on the comparison result.
[0080] It is understandable that after obtaining N actual line widths, this embodiment does not limit the manner in which the N actual line widths are calculated. It is only necessary to ensure that the result of the calculation can reflect the overall line width of the preset line.
[0081] Step 205: After adjusting the relative distance between the printing platform and the nozzle assembly according to the adjustment value, the nozzle assembly is controlled to print the 3D model to be printed in the main printing area.
[0082] Compared with the related art, the embodiments of the present application have at least the following advantages: by setting different preset extrusion parameter values for different parts of the 3D model to be printed, and controlling the nozzle assembly to print preset lines on the printing platform according to each preset extrusion parameter value, and finally comparing the average line width of each preset line with the preset printing line width, and adjusting the relative distance between the printing platform and the nozzle assembly according to the comparison result, the distance between the nozzle assembly and the printing platform can reach an appropriate value, thereby ensuring that the printed line formed after the nozzle assembly sprays the printing material on the printing platform meets the preset printing line width requirement, avoiding the occurrence of "the relative distance between the printing platform and the nozzle assembly is large or small, resulting in a smaller or larger line width of the printed line formed after the nozzle assembly sprays the printing material on the printing platform", thereby improving the printing accuracy of the 3D printing device and thus improving the user experience.
[0083] Please refer to Figure 4, which is a flow chart of the 3D printing method provided in an embodiment of the present application. This embodiment is a further improvement on the previous embodiment, with the main improvement being that: in this embodiment, each part of the 3D model to be printed corresponds to at least two preset extrusion parameter values, and the optimal extrusion parameter value is selected from the preset extrusion parameter values corresponding to each part, thereby further improving the printing accuracy of the 3D printing device and ensuring print quality.
[0084] The specific process of this embodiment is shown in FIG4 , and includes the following steps:
[0085] Step 301: Obtain N preset extrusion parameter values of the nozzle assembly according to preset slicing parameters and printing material parameters. The 3D model to be printed includes M different parts, and each part corresponds to at least two preset extrusion parameter values.
[0086] Specifically, M is an integer greater than 1.
[0087] In some embodiments, each part of the 3D model to be printed corresponds to the same number of preset extrusion parameter values. For example, assuming that the value of M is 6, the 3D model to be printed includes 6 different parts, and each part corresponds to 3 preset extrusion parameter values.
[0088] In some embodiments, each part of the 3D model to be printed corresponds to a different number of preset extrusion parameter values. For example, assuming that the value of M is 4, that is, the 3D model to be printed includes 4 different parts (part A, part B, part C, and part D), part A corresponds to 2 preset extrusion parameter values, part B corresponds to 3 preset extrusion parameter values, part C corresponds to 4 preset extrusion parameter values, and part D corresponds to 2 preset extrusion parameter values.
[0089] Step 302: Control the nozzle assembly to print N preset lines on the printing platform according to N preset extrusion parameter values, where one preset extrusion parameter value corresponds to one preset line.
[0090] Step 303: Selecting the optimal preset line for each part from the preset lines corresponding to the M parts, and using the preset extrusion parameter value corresponding to the optimal preset line for each part as the final extrusion parameter value for printing the 3D model to be printed.
[0091] In some embodiments, the optimal preset line for each part can be selected from the preset lines corresponding to M parts in the following manner: the line width standard deviation of the preset line corresponding to each part is calculated, and the preset line with the smallest line width standard deviation for each part is used as the optimal preset line for that part.
[0092] Specifically, the line width standard deviation is calculated by: obtaining the line width values of the preset line at multiple different positions; calculating the average line width of the preset line based on the multiple line width values; and calculating the line width standard deviation based on the average line width and the multiple line width values.
[0093] To facilitate understanding, the following is a specific example of how to select the optimal preset line for each part:
[0094] Assume that the value of M is 3, that is, the 3D model to be printed includes 3 different parts (part A, part B, and part C). Taking part A as an example, assume that part A corresponds to 3 preset lines (preset line 1, preset line 2, and preset line 3). Measure the line width values at different positions of preset line 1. For example, take three measurement points at the front, middle, and back of preset line 1, measure the line width values at these three points, and assume they are L1, L2, and L3. Calculate the average value of L1, L2, and L3. Then calculate the line width standard deviation of preset line 1 according to the following formula Among them, σ is the standard deviation of the line width of the preset line 1, L i is the line width value at the i-th point, is the average line width of preset line 1, and n is the number of measurement points.
[0095] It can be understood that the method for calculating the line width standard deviation of preset line 2 and preset line 3 is the same as that of preset line 1. In order to avoid repetition, it will not be repeated here.
[0096] In some embodiments, the line widths of preset line one, preset line two, and preset line three are determined by laser scanning. Preset line one, preset line two, and preset line three are parallel in pairs. After laser scanning the three preset lines, the line width values of the three preset lines at the same position can be obtained at the same time.
[0097] After calculating the line width standard deviations corresponding to preset line one, preset line two, and preset line three, the sizes of the three line width standard deviations are compared, and the preset line with the smallest line width standard deviation is taken as the optimal preset line.
[0098] It can be understood that the way in which parts B and parts C obtain the optimal preset line is the same as the way in which part A obtains the optimal preset line. In order to avoid repetition, it will not be repeated here.
[0099] Please refer to Figure 5, which shows the effect of a 3D printer printing on the print platform. As can be seen from Figure 5, the printed lines for the preset extrusion parameter values of 0.004 to 0.096 are straight. The printed lines for the preset extrusion parameter values of 0.004 to 0.036 have discontinuities at the front end and accumulation of printing material at the back end. The printed lines for the preset extrusion parameter values of 0.04 to 0.056 are relatively uniform. The printed lines for the preset extrusion parameter values of 0.06 to 0.096 have discontinuities at the back end and accumulation of printing material at the front end.
[0100] Specifically, a print line with a preset extrusion parameter value of 0.004 to 0.036 has a smaller extrusion parameter at the front end, resulting in a discontinuity at the front end, and a larger extrusion parameter at the back end, resulting in a buildup of printed material at the back end. By increasing the print parameter at the front end and decreasing the print parameter at the back end, a print line with a preset extrusion parameter value of 0.04 to 0.056 can be obtained. The final extrusion parameter is 0.04 to 0.056.
[0101] Please refer to Figure 6, which shows another rendering of a 3D printer on a print platform. As can be seen from Figure 6, the printed lines with preset extrusion parameters of 0.02 to 0.08 are all broken line groups. The print quality of a 3D printer can be determined by measuring the spacing between adjacent printed lines, the printing of the line inflection points, and the printing of the line's starting and ending positions.
[0102] Specifically, before the 3D printing device controls the nozzle assembly to print the fold line, it first controls the nozzle assembly to accelerate to a preset printing speed at a rated acceleration, and then controls the nozzle assembly to print the fold line on the printing platform at the preset printing speed. It is understood that the number of print lines is the same as the number of preset extrusion parameters. That is, the number of print lines controlled by the 3D printing device is determined by the number of preset extrusion parameters to be detected.
[0103] In some embodiments, the 3D printing device controls the nozzle assembly to accelerate at an acceleration of 5000 square millimeters per second, stops accelerating after accelerating to 12000 millimeters per second, and controls the nozzle assembly to print the broken line with an angle of 45 degrees as shown in Figure 3 on the printing platform at a speed of 12000 millimeters per second.
[0104] After all the fold lines were printed, the 3D printing device captured the renderings shown in Figure 6 using its camera. The human eye was then used to observe whether there were gaps or protrusions at the bends of each fold line, specifically, the uniformity of each fold line at the corners. Specifically, fold lines with preset extrusion parameters of 0.02 to 0.036 had protrusions at the bends; lines with preset extrusion parameters of 0.04 to 0.052 had no protrusions or gaps at the bends; and lines with preset extrusion parameters of 0.056 to 0.08 had gaps at the bends. The final extrusion parameters were therefore 0.04 to 0.052.
[0105] In some embodiments, the effect image captured by the camera can be input into a preset uniformity recognition model, and the output result of the uniformity recognition model can be used to detect whether there is a gap or bulge at the bend of each fold line.
[0106] Specifically, historical image data of printed fold lines is collected and used to train a primitive model. This primitive model is then used as the uniformity recognition model. After all fold lines are printed, the 3D printing device captures the resulting image, as shown in Figure 6. This image is then fed into the uniformity recognition model, which automatically detects gaps or protrusions at the bends of each fold line.
[0107] Step 304: Obtain N actual line widths of N preset lines.
[0108] Step 305: Compare the N actual line widths with the preset printing line width, and determine an adjustment value according to the comparison result.
[0109] Step 306: After adjusting the relative distance between the printing platform and the nozzle assembly according to the adjustment value, the nozzle assembly is controlled according to the final extrusion parameter value to print the 3D model to be printed in the main printing area.
[0110] Steps 304 to 306 of this embodiment are similar to steps 203 to 205 of the aforementioned embodiment, and are not described again here to avoid repetition.
[0111] Compared with the related art, the embodiments of the present application have at least the following advantages: by setting different preset extrusion parameter values for different parts of the 3D model to be printed, and controlling the nozzle assembly to print preset lines on the printing platform according to each preset extrusion parameter value, and finally comparing the average line width of each preset line with the preset printing line width, and adjusting the relative distance between the printing platform and the nozzle assembly according to the comparison result, the distance between the nozzle assembly and the printing platform can reach an appropriate value, thereby ensuring that the printed line formed after the nozzle assembly sprays the printing material on the printing platform meets the preset printing line width requirement, avoiding the occurrence of "the relative distance between the printing platform and the nozzle assembly is large or small, resulting in a smaller or larger line width of the printed line formed after the nozzle assembly sprays the printing material on the printing platform", thereby improving the printing accuracy of the 3D printing device and thus improving the user experience. In addition, by setting at least two preset extrusion parameter values for each part of the 3D model to be printed, the optimal extrusion parameter value can be selected from the preset extrusion parameter values corresponding to each part, so that the 3D printing device controls the nozzle assembly to print the 3D model to be printed according to the optimal extrusion parameter value. This enables the 3D printing device to be suitable for different application scenarios, avoiding the situation where "the 3D printing device prints 3D models of various application scenarios using the extrusion parameter values set for the first time, resulting in poor printing quality or even printing failure", ensuring the printing quality of the 3D printing device in different scenarios and further improving the user experience.
[0112] Please refer to Figure 7, which is a schematic diagram of the 3D printing device scanning the printing platform provided in an embodiment of the present application. This embodiment is a further improvement on the previous embodiment, with the main improvement being that, in this embodiment, before controlling the nozzle assembly to print at least one preset line on the printing platform, the printing platform is also leveled using laser scanning. In this way, the 3D printing device can automatically level the printing platform with a single scan, which is highly efficient and easy to operate. In addition, the levelness of the printing platform is ensured, thereby further improving the printing accuracy of the 3D printing device.
[0113] Specifically, the 3D printing device also includes a laser light source for emitting line lasers. As shown in FIG7 , the 3D printing device controls the laser light source to scan the printing platform back and forth line by line in a strip manner, collects point cloud data for each line, and performs point cloud stitching to generate a 3D model of the entire printing platform.
[0114] Since the printing platform may have slight deformation during the scanning process, resulting in errors in the collected point cloud data, this embodiment performs plane fitting on the spliced point cloud and determines the normal vector of the fitted plane to determine the horizontal offset of the printing platform and thus the correction amount of the printing platform.
[0115] For ease of understanding, the following specific examples are provided with reference to FIG8 to illustrate how to determine the correction amount of the printing platform in this embodiment, and how to level the printing platform after determining the correction amount of the printing platform:
[0116] Please refer to FIG8 , which is a schematic diagram of comparing normal vectors of a standard horizontal plane and a fitting plane provided by this embodiment.
[0117] (1) Assume that the normal vector of the fitting plane is The normal vector of the standard horizontal plane is The normal vector Projected onto the standard horizontal plane, we get the vector Calculating vectors and The angle θ between them.
[0118] (2) Calculate the vector using the following formula and The angle θ between them: in,
[0119] (3) The horizontal offset of the printing platform is calculated by the following formula: horizontal offset of the printing platform = sinθ × density of point cloud data, where θ is a vector and The angle between them, the density of point cloud data is the number of point cloud data per square meter.
[0120] (4) After determining the horizontal offset of the printing platform, the correction amount can be obtained. After the correction amount is determined, it can be applied to the point cloud data to correct errors in the scanning process. Specifically, the correction amount can be added to the coordinate values of each point in the point cloud data to make these points in the correct position relative to the printing platform. The above process can be performed during post-processing after the point cloud data is acquired, or it can be applied immediately during scanning.
[0121] In some embodiments, after the print platform is leveled, it is also possible to verify whether the print platform has been successfully calibrated. For example, multiple laser scans can be performed on the automatically leveled print platform. If the point cloud data obtained from each scan is very similar, the print platform has been successfully calibrated. If there are significant differences in the point cloud data obtained from multiple scans, it is necessary to obtain the correction amount again to further level the print platform and ensure the printing accuracy of the 3D printing device.
[0122] Please refer to Figure 9, which illustrates an application scenario for printing platform deformation compensation provided in an embodiment of this application. This embodiment further improves upon the previous embodiment, primarily by performing printing platform deformation compensation before controlling the nozzle assembly to print at least one predetermined line on the printing platform. This ensures the flatness of the printing platform, thereby improving the print quality of the 3D printing device.
[0123] For ease of understanding, the following specifically describes how this embodiment performs deformation compensation on the printing platform:
[0124] (1) Assume that the printing platform is a rectangular printing platform with dimensions of 100 mm × 80 mm and a thickness of 2 mm. Use the line laser generator of the 3D printing device to scan the printing platform and obtain point cloud data of the printing platform surface.
[0125] (2) Use point cloud processing software (such as CloudCompare or MeshLab) to process the point cloud data of the printing platform surface and extract the printing platform surface information. Specifically, use the point cloud processing software to filter, smooth, and perform surface extraction operations on the point cloud data of the printing platform surface to obtain a smooth point cloud model of the printing platform surface.
[0126] (3) Determine the sampling interval to calculate the printing compensation value. As shown in FIG7 , 5 mm is selected as the sampling interval, that is, the point cloud data of the printing platform surface is sampled every 5 mm.
[0127] (4) Using point cloud processing software or programming language (such as Python or MATLAB), sampling is performed on the surface point cloud model of the printing platform obtained above at a sampling interval of 5 mm, and a total of 20 sampling point sets can be obtained.
[0128] (5) Using programming languages such as Python or MATLAB, surface fitting is performed on each of the 20 sampling point sets to obtain 20 fitted sub-surfaces. The actual curvature of each sub-surface is then calculated using a surface fitting algorithm.
[0129] (6) Compare the actual curvature of the sub-surface with the theoretical curvature of the original printing platform, and calculate the compensation value of each sub-surface using the following formula:
[0130] Compensation value = compensation coefficient × deviation; deviation = theoretical curvature - actual curvature.
[0131] Specifically, the compensation factor is a constant that depends on factors such as the printing process, the geometry and size of the printing platform, the printer's operating mode, and the required printing accuracy. In general, the compensation factor ranges from 0.1 to 0.5.
[0132] In some embodiments, the compensation coefficient can be determined in the following ways: 1. Select a printing platform, use the same 3D printing equipment and printing parameters to perform multiple prints on the printing platform, and record the deviation of each print. 2. Calculate the corresponding compensation value for the deviation of each print, which can be calculated according to the above formula. 3. Fit the calculated compensation value and the actual deviation data, which can be processed using methods such as curve fitting or regression analysis. 4. Select a suitable compensation coefficient based on the fitting results so that the calculated compensation value and the actual deviation data have the best fitting effect. It should be noted that the selection of the compensation coefficient is a relatively empirical process and needs to be adjusted according to the specific situation. In addition, after determining the compensation coefficient, multiple tests are needed to verify its effectiveness and make adjustments.
[0133] (7) The compensation value calculated above is used in point cloud processing software to update the point cloud model of the printing platform surface, thereby realizing printing compensation for deformation of the printing platform.
[0134] Please refer to Figure 10, which is a flow chart of the 3D printing method provided in an embodiment of the present application. This embodiment is a further improvement on the previous embodiment, with the main improvement being that, in this embodiment, before controlling the nozzle assembly to print the 3D model to be printed in the main printing area, a first-layer print detection is also performed. In this way, the 3D printing device can automatically detect the print quality, allowing users to promptly understand print quality issues, further improving the user experience.
[0135] The specific process of this embodiment is shown in FIG10 , and includes the following steps:
[0136] Step 401: Control the nozzle assembly to print at least one preset line on the printing platform.
[0137] Step 402: Obtain the actual line width of the preset line.
[0138] Step 403: Compare the actual line width with the preset printing line width of the 3D model to be printed, and determine an adjustment value based on the comparison result. The adjustment value is used to adjust the relative distance between the printing platform and the nozzle assembly.
[0139] Steps 401 to 403 of this embodiment are similar to steps 101 to 103 of the aforementioned embodiment, and are not described again here to avoid repetition.
[0140] Step 404: After adjusting the relative distance between the printing platform and the nozzle assembly according to the adjustment value, control the photographing device to photograph an initial image of the current printing platform at a preset angle and a preset distance from the printing platform.
[0141] In some embodiments, the 3D printing device includes a motor connected to the camera device for controlling changes in the angle and position of the camera device.
[0142] In some embodiments, the number of initial images is not specifically limited, and multiple initial images can be taken at the same angle and the same distance from the printing platform.
[0143] In some embodiments, the number of preset angles and preset positions is not specifically limited, that is, multiple initial images can be taken at different angles and / or different distances from the printing platform.
[0144] Step 405: Obtain first-layer information from a file for instructing a 3D printing operation, wherein the first-layer information at least includes a two-dimensional plan view of the first layer of the 3D model to be printed.
[0145] In some embodiments, the file used to command 3D printing is a gcode file. To print a 3D model from a computer using a 3D printer, the model (commonly available in .stl and .obj formats) must first be input into 3D slicing software (such as Cura) for planar slicing, which then generates a gcode file. The gcode file is then sent to the 3D printer for reading, allowing the nozzle assembly of the 3D printer to fill each layer along a planned path, stacking the layers one by one to form the final 3D model.
[0146] In some embodiments, the first-layer information also includes point cloud data of the first layer, etc., and the first-layer information in the gcode file can be read using programming languages such as Python.
[0147] Step 406: Based on the first layer information, control the nozzle assembly to print the first layer of the 3D model to be printed in the main printing area.
[0148] In some embodiments, after receiving the first layer information, the 3D printing device performs first layer printing, that is, controls the nozzle assembly to print the first layer of the 3D model to be printed in the formal printing area.
[0149] Step 407: Control the camera to capture a final image of the current printing platform at a preset angle and distance from the printing platform.
[0150] In some embodiments, the number of final images is the same as the number of initial images. For example, in the aforementioned step 404, the camera captures three initial images at the first preset angle and the first preset distance from the printing platform. Then, after the first layer of printing is completed, the camera captures three final images at the first preset angle and the first preset distance from the printing platform. The camera captures one initial image at the first preset angle and the first preset distance from the printing platform, and one initial image at the second preset angle and the second preset distance from the printing platform. Then, after the first layer of printing is completed, the camera captures one final image at the first preset angle and the first preset distance from the printing platform, and one final image at the second preset angle and the second preset distance from the printing platform.
[0151] Step 408: Determine the printing quality of the 3D printing device based on the initial image and the final image.
[0152] In some embodiments, a difference image is generated based on the initial image and the final image, and then the difference image is subjected to binarization and denoising processing. The processed image is compared with the planar two-dimensional image in the first layer information to determine the printing quality of the 3D printing device.
[0153] For ease of understanding, the process of determining the print quality of the 3D printing device in this embodiment is described in detail below:
[0154] (1) Use Python or other programming languages to read the first-layer information in the gcode file, where the first-layer information at least includes a two-dimensional plan view of the first layer.
[0155] (2) Before the first layer is printed, the camera is controlled to maintain a preset distance from the printing platform and a preset angle between the camera and the printing platform, and then an initial image of the printing platform is captured.
[0156] (3) The 3D printing device receives the read first layer information and performs first layer printing.
[0157] (4) After the first layer of printing is completed, the camera is controlled to capture the final image of the printing platform at the same position as the initial image.
[0158] (5) Use programming languages such as Python to obtain the difference image between the initial image and the final image.
[0159] (6) Use OpenCV and other libraries to perform binary denoising on the difference image to obtain the processed image.
[0160] (7) Use programming languages such as Python to compare the processed image with the first layer information in the gcode file to detect the printing quality of the 3D printing equipment.
[0161] (8) Inform users of the printing quality of the 3D printing equipment by email, text message or other means.
[0162] Compared with the related art, the embodiments of the present application have at least the following advantages: by controlling the nozzle assembly to print a preset line on the printing platform, so as to know the actual line width of the print line currently printed by the 3D printing device, and then comparing the actual line width with the preset print line width of the 3D model to be printed, and adjusting the relative distance between the printing platform and the nozzle assembly according to the comparison result, the distance between the nozzle assembly and the printing platform can reach an appropriate value, thereby ensuring that the print line formed after the nozzle assembly sprays the printing material on the printing platform meets the preset print line width requirement, avoiding the occurrence of "the relative distance between the printing platform and the nozzle assembly is large or small, resulting in a smaller or larger line width of the print line formed after the nozzle assembly sprays the printing material on the printing platform", thereby improving the printing accuracy of the 3D printing device and thus improving the user experience; in addition, by automatically performing the first layer printing detection, the printing quality of the 3D printing device can be automatically informed to the user, avoiding the user from manually checking the printing quality of the 3D printing device, further improving the user experience.
[0163] Please refer to Figure 11, which is a diagram illustrating the working interaction of the 3D printing device provided in an embodiment of the present application. This embodiment is a further improvement on the previous embodiment, with the main improvement being that in this embodiment, anomaly detection is performed on the first-layer detection workflow of the 3D printing device to ensure the normal operation of the 3D printing device and improve the printing quality of the 3D printing device.
[0164] Specifically, the interactive diagram shown in Figure 11 illustrates the workflow for first-layer inspection on a 3D printing device. This process uses computer vision, deep learning, point cloud, and other methods to acquire and compare data, detecting defects on the heated bed surface and issues with the printhead extrusion process. The results are then evaluated and presented with prompts. It's understood that the purpose of this interactive process is to perform a pre-print self-inspection of the environment and equipment to ensure print quality and success rate, and to issue prompt alerts to the user if any anomalies occur.
[0165] In some embodiments, the deep learning model is used to detect abnormalities in the processing steps of the 3D printing device. For example, the process of detecting abnormalities in the printing platform leveling, printing platform printing compensation, and nozzle assembly flow detection in the aforementioned embodiments can be detected. Specifically, the abnormal process detection method of the 3D printing device based on the deep learning model can be divided into the following steps:
[0166] (1) Data collection: Collect data for each processing step, including normal and abnormal data. This data can be in the form of images, videos, point clouds, etc.
[0167] (2) Data preprocessing: Preprocess the collected data, such as cropping, scaling, and enhancing the image, and filtering and sampling the point cloud, to facilitate subsequent deep learning model training and testing.
[0168] (3) Model training: Using the collected data, a deep learning model is trained to detect abnormalities in each processing step. Commonly used models include convolutional neural networks, recurrent neural networks, and autoencoders.
[0169] (4) Model testing: Use the trained deep learning model to test new data to determine whether the current processing step is abnormal. Some indicators such as accuracy, recall rate, F1-score, etc. can be used to evaluate the performance of the model.
[0170] (5) Integration into the system: Integrate the trained deep learning model into the actual system, detect each processing step, and give corresponding prompts or take corresponding measures if there is any abnormality.
[0171] It is worth mentioning that data collection and preprocessing must fully consider the actual situation and cover as many possible abnormal situations as possible to improve the robustness and reliability of the model. At the same time, model training and testing must be fully verified and tuned to achieve good detection results.
[0172] Please refer to Figure 12, which is a schematic diagram of a line height detection scenario for a 3D printing device provided in an embodiment of this application. This embodiment specifically illustrates the functionality of a 3D printing device, explaining how to use the 3D printing device provided in this embodiment to measure the line height of an object under test. This method automatically detects the line height of an object under test, improving the user experience.
[0173] As shown in Figure 12, the 3D printing device includes a printing platform 1, a line laser generator 2, and a camera 3. The object to be measured is placed on printing platform 1. The basic formula for line height detection is: Line Height of Object to be Measured = Projected Offset Distance / tan (angle between the laser and the horizontal plane). Projected offset distance refers to the offset distance in the image captured by camera 3 relative to the un-irradiated position after the line laser is irradiated on the object surface. Figure 13 shows an image captured by camera 3. Specifically, the white line shown in Figure 13 is the laser light emitted by laser light source 2. The object to be measured is the printed line, and the direction of the laser light extends perpendicular to the direction of the printed line. tan (angle between the laser and the horizontal plane) refers to the tangent of the angle between the line laser and the horizontal plane.
[0174] Please refer to Figure 14, which shows an image of a triangular object captured by camera 3. The white line in Figure 14 represents the laser light emitted by laser light source 2. As can be seen from Figure 14, the triangular object has a certain height, which causes the laser light irradiated on the laser object to be measured to be offset.
[0175] To facilitate understanding, the following specifically describes how to perform line height detection on the object to be measured in this embodiment:
[0176] Assuming that the distance between the object to be measured and the line laser generator 2 is L, the angle between the line laser emitted by the line laser generator 2 and the horizontal plane is α, and the projection offset distance of the line laser on the surface of the object to be measured is d, the calculation formula for the line height H of the object to be measured is:
[0177] H = d / tan(α);
[0178] The projection offset distance d of the line laser on the surface of the object to be measured is calculated as follows: the projection distance of the line laser on the horizontal plane is D1 = L × cos(α); the projection offset distance of the line laser on the physical surface in the similar triangle is D2 = D1 × d / L; it is known that d = D2 × L / D1, and substituting D1 = L × cos(α) yields d = D2 / cos(α).
[0179] For example, when the distance L between the object to be measured and the line laser generator 2 is 50 cm and the angle α between the line laser and the horizontal plane is 45 degrees, the calculated projection offset distance d is 2 mm, and thus the calculated line height H of the object to be measured is 2 mm.
[0180] Please refer to Figure 15, which is a schematic diagram of the hardware structure of an electronic device 1000 provided in an embodiment of the present application. As shown in Figure 15, electronic device 1000 may include a processor 1001 and a memory 1002. Memory 1002 is used to store one or more computer programs 1003. One or more computer programs 1003 are configured to be executed by processor 1001. The one or more computer programs 1003 include instructions, which can be used to implement the above-mentioned method in electronic device 1000.
[0181] It is understood that the structure shown in this embodiment does not constitute a specific limitation on the electronic device 1000. In other embodiments, the electronic device 1000 may include more or fewer components than shown, or combine or separate some components, or arrange the components differently.
[0182] The processor 1001 may include one or more processing units. For example, the processor 1001 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0183] Processor 1001 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 1001 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 1001. If processor 1001 needs to use the same instruction or data again, it can directly access it from this memory. This avoids duplicate accesses, reduces the waiting time of processor 1001, and thus improves system efficiency.
[0184] In some embodiments, the processor 1001 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface.
[0185] In some embodiments, memory 1002 may include high-speed random access memory and may also include non-volatile memory, such as a hard disk, memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage device.
[0186] This embodiment further provides a computer-readable storage medium, in which computer instructions are stored. When the instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method in the above-mentioned embodiment.
[0187] Among them, the electronic device and computer storage medium provided in this embodiment are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0188] In practical applications, the above functions can be distributed to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0189] In the several embodiments provided in this application, the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are schematic. For example, the division of the modules or units is a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0190] The units described as separate components may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0191] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0192] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially 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, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0193] The above description is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any changes or replacements within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A 3D printing method, characterized in that: Applied to a 3D printing device, the 3D printing device includes a nozzle assembly and a printing platform, the nozzle assembly is used to spray printing material onto the printing platform, and the method includes: Control the nozzle assembly to print at least one preset line on the printing platform; Obtaining the actual line width of the preset line; Comparing the actual line width with the preset printing line width of the 3D model to be printed, and determining an adjustment value according to the comparison result, wherein the adjustment value is used to adjust the relative distance between the printing platform and the nozzle assembly; After adjusting the relative distance between the printing platform and the nozzle assembly according to the adjustment value, the nozzle assembly is controlled to print the 3D model to be printed on the printing platform.
2. The 3D printing method according to claim 1, characterized in that: Before controlling the nozzle assembly to print at least one preset line on the printing platform, the method further includes: The preset slicing parameters and printing material parameters of the 3D model to be printed are received, and the preset printing line width is acquired according to the preset slicing parameters and the printing material parameters.
3. The 3D printing method according to claim 2, characterized in that: Before controlling the nozzle assembly to print at least one preset line on the printing platform, the method further includes: Acquire N preset extrusion parameter values of the nozzle assembly according to the preset slicing parameters and the printing material parameters, wherein different parts of the 3D model to be printed correspond to at least one preset extrusion parameter value, and N is a constant greater than 1; The step of controlling the nozzle assembly to print at least one preset line on the printing platform comprises: Controlling the nozzle assembly to print N preset lines on the printing platform according to the N preset extrusion parameter values, wherein one preset extrusion parameter value corresponds to one preset line; The obtaining of the actual line width of the preset line comprises: obtaining N actual line widths of N preset lines; The comparing the actual line width with the preset print line width and determining the adjustment value according to the comparison result includes: The N actual line widths are compared with the preset printing line width, and an adjustment value is determined according to the comparison result.
4. The 3D printing method according to claim 3, characterized in that: The comparing the N actual line widths with the preset print line width and determining the adjustment value according to the comparison result includes: Calculating an average value of the N actual line widths; The average value is compared with the preset printing line width, and the adjustment value is determined according to the comparison result.
5. The 3D printing method according to any one of claims 1 to 4, characterized in that: The comparing the actual line width with the preset print line width and determining the adjustment value according to the comparison result includes: In the case where the actual line width is greater than the preset printing line width, determining the adjustment value to be an increase in the relative distance between the printing platform and the nozzle assembly; In a case where the actual line width is smaller than the preset printing line width, the adjustment value is determined to reduce the relative distance between the printing platform and the nozzle assembly.
6. The 3D printing method according to claim 3, characterized in that: The 3D model to be printed includes M different parts, wherein M is an integer greater than 1; each part of the 3D model to be printed corresponds to at least two of the preset extrusion parameter values; In the step of controlling the nozzle assembly to print N preset extrusion parameter values on the printing platform After the line, it also includes: An optimal preset line for each part is selected from the preset lines corresponding to the M parts, and a preset extrusion parameter value corresponding to the optimal preset line for each part is used as a final extrusion parameter value for printing the 3D model to be printed.
7. The 3D printing method according to claim 6, characterized in that: The step of selecting the optimal preset line for each part from the preset lines corresponding to the M parts comprises: The line width standard deviation of multiple preset lines corresponding to each part is calculated, and the preset line with the smallest line width standard deviation for each part is taken as the optimal preset line for the part.
8. The 3D printing method according to claim 7, characterized in that: The line width standard deviation of the preset line is calculated in the following way: Obtaining line width values of the preset line at multiple different positions; Calculating an average line width of the preset line according to the plurality of line width values; The line width standard deviation is calculated according to the line width average value and a plurality of the line width values.
9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the 3D printing method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, enable the electronic device to execute the 3D printing method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Line width compensation method and system for 3D printing of buildings
CN110281345A
Building 3D printing circulating feeding control method and system
CN110281346A
Method and device for maintaining constant printing line width while 3D printing speed is changed
CN111251614A
Intelligent control method and system of printer
CN116061440A
3D printing method, electronic equipment and computer readable storage medium
CN116714252A
Cited By
Chip sealing box dam preparation method, device, equipment and medium
CN119458915A
