CN116714252A - 3D printing method, electronic equipment and computer readable storage medium - Google Patents

3D printing method, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN116714252A
CN116714252A CN202310613972.7A CN202310613972A CN116714252A CN 116714252 A CN116714252 A CN 116714252A CN 202310613972 A CN202310613972 A CN 202310613972A CN 116714252 A CN116714252 A CN 116714252A
Authority
CN
China
Prior art keywords
printing
preset
line
line width
platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310613972.7A
Other languages
Chinese (zh)
Inventor
陈春
朱业拓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Chuangxiang 3D Technology Co Ltd
Original Assignee
Shenzhen Chuangxiang 3D Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Chuangxiang 3D Technology Co Ltd filed Critical Shenzhen Chuangxiang 3D Technology Co Ltd
Priority to CN202310613972.7A priority Critical patent/CN116714252A/en
Publication of CN116714252A publication Critical patent/CN116714252A/en
Pending legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C64/00Additive manufacturing, i.e. manufacturing of three-dimensional [3D] objects by additive deposition, additive agglomeration or additive layering, e.g. by 3D printing, stereolithography or selective laser sintering
    • B29C64/30Auxiliary operations or equipment
    • B29C64/386Data acquisition or data processing for additive manufacturing
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C64/00Additive manufacturing, i.e. manufacturing of three-dimensional [3D] objects by additive deposition, additive agglomeration or additive layering, e.g. by 3D printing, stereolithography or selective laser sintering
    • B29C64/30Auxiliary operations or equipment
    • B29C64/386Data acquisition or data processing for additive manufacturing
    • B29C64/393Data acquisition or data processing for additive manufacturing for controlling or regulating additive manufacturing processes
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B33ADDITIVE MANUFACTURING TECHNOLOGY
    • B33YADDITIVE MANUFACTURING, i.e. MANUFACTURING OF THREE-DIMENSIONAL [3-D] OBJECTS BY ADDITIVE DEPOSITION, ADDITIVE AGGLOMERATION OR ADDITIVE LAYERING, e.g. BY 3-D PRINTING, STEREOLITHOGRAPHY OR SELECTIVE LASER SINTERING
    • B33Y50/00Data acquisition or data processing for additive manufacturing
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B33ADDITIVE MANUFACTURING TECHNOLOGY
    • B33YADDITIVE MANUFACTURING, i.e. MANUFACTURING OF THREE-DIMENSIONAL [3-D] OBJECTS BY ADDITIVE DEPOSITION, ADDITIVE AGGLOMERATION OR ADDITIVE LAYERING, e.g. BY 3-D PRINTING, STEREOLITHOGRAPHY OR SELECTIVE LASER SINTERING
    • B33Y50/00Data acquisition or data processing for additive manufacturing
    • B33Y50/02Data acquisition or data processing for additive manufacturing for controlling or regulating additive manufacturing processes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P10/00Technologies related to metal processing
    • Y02P10/25Process efficiency

Landscapes

  • Chemical & Material Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Materials Engineering (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • Mechanical Engineering (AREA)
  • Optics & Photonics (AREA)

Abstract

The application provides a 3D printing method, electronic equipment and a computer readable storage medium, which are applied to 3D printing equipment, wherein the 3D printing equipment comprises a spray head assembly and a printing platform, the spray head assembly is used for spraying printing materials onto the printing platform, and the method comprises the following steps: controlling the spray head assembly to print at least one preset line on the printing platform; acquiring the actual line width of the preset line; comparing the actual line width with a preset printing line width of the 3D model to be printed, and determining an adjustment value according to a comparison result, wherein the adjustment value is used for adjusting the relative distance between the printing platform and the spray head assembly; and after the relative distance between the printing platform and the spray head assembly is adjusted according to the adjustment value, controlling the spray head assembly to print the 3D model to be printed. The application can improve the printing precision of the 3D printing equipment, thereby improving the use experience of users.

Description

3D printing method, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of 3D printing technologies, and in particular, to a 3D printing method, an electronic device, and a computer readable storage medium.
Background
With the popularization of concepts such as smart manufacturing engineering and industry 4.0, 3D printing technology is becoming more and more popular. The 3D printing technology was first developed in the middle 90 s of the 20 th century, and is actually the latest rapid prototyping apparatus using techniques such as photocuring and paper lamination. The printing machine has the same basic working principle as that of common printing, the printer is filled with liquid or powder and other printing materials, the printing materials are overlapped layer by layer under the control of a computer after being connected with the computer, and finally, a blueprint on the computer is changed into a real object, and the printing technology is called as a 3D three-dimensional printing technology.
In the related art, the printing precision of the 3D printing device is low, so that the printed 3D model is difficult to meet the requirement of a user, and the use experience of the user is poor.
Disclosure of Invention
In view of the above, the present application provides a 3D printing method, an electronic device, and a computer-readable storage medium, which can improve the printing precision of the 3D printing device, thereby improving the use experience of a user.
A first aspect of the present application provides a 3D printing method applied to a 3D printing apparatus, the 3D printing apparatus including a head assembly for ejecting printing material onto a printing platform, the method comprising: controlling the spray head assembly to print at least one preset line on the printing platform; acquiring the actual line width of the preset line; comparing the actual line width with a preset printing line width of the 3D model to be printed, and determining an adjustment value according to a comparison result, wherein the adjustment value is used for adjusting the relative distance between the printing platform and the spray head assembly; and after the relative distance between the printing platform and the spray head assembly is adjusted according to the adjustment value, controlling the spray head assembly to print the 3D model to be printed on the printing platform.
Compared with the related art, the embodiment of the application has at least the following advantages:
the spray head assembly is controlled to print the preset line on the printing platform so as to know the actual line width of the printing line currently printed by the 3D printing equipment, the actual line width is compared with the preset printing line width of the 3D model to be printed, the relative distance between the printing platform and the spray head assembly is adjusted according to the comparison result, the distance between the spray head assembly and the printing platform can reach a proper value, the fact that the printing line formed after the spray head assembly sprays printing materials on the printing platform meets the preset printing line width requirement can be ensured, the fact that the relative distance between the printing platform and the spray head assembly is larger or smaller, and the fact that the line width of the printing line formed after the spray head assembly sprays the printing materials on the printing platform is smaller or larger is avoided is improved, the printing precision of the 3D printing equipment is improved, and therefore the use experience of a user is improved.
In some possible implementations, before the controlling the showerhead assembly to print at least one preset line on the printing platform, the method further includes: inputting the preset slicing parameters and the printing material parameters of the 3D model to be printed into 3D printing slicing software to obtain the preset printing line width.
By adopting the technical scheme, the accurate preset printing line width can be obtained, and the printing precision of the 3D printing equipment is further improved.
In some possible implementations, before the controlling the showerhead assembly to print at least one preset line on the printing platform, the method further includes: obtaining N preset extrusion parameter values of the spray head assembly according to the preset slicing parameters and the printing material parameters, wherein each preset extrusion parameter value corresponds to different parts in the 3D model to be printed, and N is a constant larger than 1; the method for controlling the spray head 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 comprises the following steps: controlling the spray head 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 the actual line width of the preset line includes: acquiring N actual line widths of N preset lines; the step of comparing the actual line width with the preset printing line width, and determining an adjustment value according to the comparison result comprises the following steps: and comparing the N actual line widths with the preset printing line widths, and determining an adjustment value according to a comparison result.
By adopting the technical scheme, the actual line width of each part of the 3D model to be printed can meet the preset printing line width requirement, and the printing precision of the 3D printing equipment is further improved.
In some possible implementations, the comparing the magnitudes of the N actual line widths and the preset printing line widths, and determining the adjustment value according to the comparison result includes: calculating the average value of N actual line widths; and comparing the average value with the preset printing line width, and determining the adjustment value according to a comparison result.
By adopting the technical scheme, a specific mode of determining the adjustment value can be realized.
In some possible implementations, the 3D model to be printed includes M different locations, where M is an integer greater than 1; each part of the 3D model to be printed at least corresponds to two preset extrusion parameter values; after the controlling the nozzle assembly to print N preset lines on the printing platform according to the N preset extrusion parameter values, the method further comprises: and selecting an optimal preset line of each part from the M preset lines corresponding to the parts, and taking a preset extrusion parameter value corresponding to the optimal preset line of each part as a final extrusion parameter value for printing the 3D model to be printed.
By adopting the technical scheme, the optimal preset line of each part can be obtained, so that the final extrusion parameter value of each part is determined, and the printing quality of the 3D printing equipment is improved.
In some possible implementations, the selecting the optimal preset line of each part from the preset lines corresponding to the M parts includes: and calculating the standard deviation of the line widths of the plurality of preset lines corresponding to each part, and taking the preset line with the minimum standard deviation of the line widths of each part as the optimal preset line of the part.
In some possible implementations, the standard deviation of the line width of the preset line is calculated by the following ways: acquiring line width values of the preset line at a plurality of different positions; calculating a line width average value of the preset line according to a plurality of line width values; and calculating the line width standard deviation according to the line width average value and a plurality of line width values.
The second aspect of the application discloses an electronic device, which comprises a processor and a memory, wherein the memory is used for storing instructions, and the processor is used for calling the instructions in the memory so that the electronic device executes the 3D printing method.
A third aspect of the application discloses a computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the above-described 3D printing method.
It will be appreciated that, in the electronic device of the second aspect provided above, the computer-readable storage medium of the third aspect corresponds to the method of the first aspect, and therefore, the advantages achieved by the method may refer to the advantages in the corresponding method provided above, and will not be described herein.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly describe the drawings in the embodiments, it being understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a 3D printing method according to an embodiment of the present application.
Fig. 2 is a flowchart of a 3D printing method according to an embodiment of the application.
Fig. 3 is a schematic structural diagram of a print line a according to an embodiment of the present application.
Fig. 4 is a flowchart of a 3D printing method according to an embodiment of the present application.
Fig. 5 is an effect diagram of printing on a printing platform by a 3D printing device according to an embodiment of the present application.
Fig. 6 is another effect diagram of printing on a printing platform by a 3D printing device according to an embodiment of the present application.
Fig. 7 is a schematic diagram of a scanning print platform of a 3D printing device according to an embodiment of the present application.
Fig. 8 is a schematic diagram of comparing normal vectors of a standard horizontal plane and a fitting plane according to an embodiment of the present application.
Fig. 9 is an application scenario diagram of print compensation for deformation of a print platform according to an embodiment of the present application.
Fig. 10 is a flowchart of a 3D printing method according to an embodiment of the present application.
Fig. 11 is a working interaction diagram of a 3D printing device according to an embodiment of the present application.
Fig. 12 is a schematic diagram of a line height detection scenario of a 3D printing apparatus according to an embodiment of the present application.
Fig. 13 is an image taken in an online high detection scene by a camera of a 3D printing device according to an embodiment of the present application.
Fig. 14 is another image taken by a camera of a 3D printing device in an online high detection scene according to an embodiment of the present application.
Fig. 15 is a schematic hardware structure of an electronic device according to an embodiment of the application.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will be more clearly understood, a more particular description of the application will be rendered by reference to the appended drawings and appended detailed description. The embodiments of the present application and the features in the embodiments may be combined with each other without collision.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application, and the described embodiments are merely some, rather than all, of the embodiments of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It is further intended that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The term "at least one" in the present application means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and the representation may have three relationships, for example, a and/or B may represent: a alone, a and B together, and B alone, wherein a, B may be singular or plural.
In embodiments of the application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
For ease of understanding, a description of some of the concepts related to the embodiments of the application are given by way of example for reference.
3D printing equipment, also known as three-dimensional printers and stereoscopic printers, is a process device for rapid prototyping, and is usually implemented by printing materials using digital technology. 3D printing devices are often used in the field of mold manufacturing, industrial design, etc. to manufacture models or parts.
Referring to fig. 1, a flowchart of a 3D printing method provided by an embodiment of the present application is applied to a 3D printing apparatus, where the 3D printing apparatus includes a nozzle assembly and a printing platform, and the nozzle assembly is used to spray a printing material onto the printing platform, and includes the following steps:
step 101: the spray head assembly is controlled to print at least one preset line on the printing platform.
In some embodiments, the 3D printing device is in communication connection with the 3D printing slicing software, or 3D printing slicing software is arranged in the 3D printing device, before the control of the spray head assembly to print the preset line, the 3D printing slicing software receives preset slicing parameters and printing material parameters of the 3D model to be printed, which are input by a user, the 3D printing slicing software obtains preset extrusion parameter values according to the preset slicing parameters and the printing material parameters, and the 3D printing device controls the spray head assembly to print at least one preset line on the printing platform according to the preset extrusion parameter values.
Specifically, the preset slicing parameters include, but are not limited to: temperature, layer height, speed, support, draw back, etc. The temperature is a nozzle temperature, and when the 3D printing device has a heating bed, the temperature also includes the temperature of the heating bed; the layer height is the height of each layer of the 3D model to be printed, and the smaller the layer height is, the more layers are required for the whole printing; velocity generally refers to the speed of movement of the printhead, and may also include printing material fill speed, wall speed, etc.; the support is a structure that supports the overhanging feature on the 3D model to be printed; the draw-back includes a draw-back distance and a draw-back speed, which determines the number and speed at which filaments are drawn back into the nozzle to prevent the material from oozing out when not extruded.
Print material parameters include, but are not limited to: the type of material, the amount of demand, etc.
In some embodiments, the printing platform includes a formal printing zone and an informal printing zone, and the 3D printing device controls the showerhead assembly to print N preset lines in the informal printing zone according to N preset extrusion parameters.
In some embodiments, the relative positional relationship between the formal printing area and the informal printing area is not specifically limited, for example, a central area of the printing platform may be used as the formal printing area, a peripheral area surrounding the central area may be used as the informal printing area, and other areas of the printing platform may be used as the formal printing area according to actual requirements, which will not be described in detail herein.
Step 102: and acquiring the actual line width of the preset line.
In some embodiments, the 3D printing apparatus includes a photographing device, and an image of a preset line is photographed by the photographing device, and then an actual line width of the preset line is obtained according to the image of the preset line.
In some embodiments, the actual line width of the predetermined line may also be measured by means of digital calipers and microscopes.
Step 103: and 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 for adjusting the relative distance between the printing platform and the spray head assembly.
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 a user, and the 3D printing slicing software obtains preset printing linewidth according to the preset slicing parameters and the printing material parameters.
In some embodiments, the adjustment value is determined by: under the condition that the actual line width is larger than the preset printing line width, determining an adjustment value to increase the relative distance between the printing platform and the spray head assembly; and under the condition that the actual line width is smaller than the preset printing line width, determining the adjustment value to reduce the relative distance between the printing platform and the spray head assembly.
Specifically, if the actual line width is greater than the preset printing line width, the distance between the printing platform and the nozzle assembly is too short, and the printing platform needs to be adjusted downwards by a certain distance so as 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, the distance between the printing platform and the spray head assembly is too far, and the printing platform needs to be adjusted upwards by a certain distance so as to reduce the relative distance between the printing platform and the spray head assembly.
In some embodiments, the 3D printing device includes a motor connected to the printing platform for controlling the lifting of the printing platform, and 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 smaller than the preset printing line width, the motor controls the printing platform to rise.
In some embodiments, the 3D printing apparatus presets a distance adjustment value, taking the distance adjustment value as an example of 5 mm, when the printing platform needs to rise, the motor controls the printing platform to rise by 5 mm, then the 3D printing apparatus further controls the nozzle assembly to reprint a preset line on the printing platform, compares the line width of the new preset line with the size of the preset printing line width again, so as to determine whether the printing platform needs to be controlled to rise by 5 mm again, until the difference between the actual line width of the preset line finally printed on the printing platform by the nozzle assembly and the preset printing line width meets the printing requirement, stops controlling the printing platform to rise by 5 mm, and prints the 3D model to be printed according to the relative distance between the printing platform and the nozzle assembly at the moment.
Step 104: and after the relative distance between the printing platform and the spray head assembly is adjusted according to the adjustment value, controlling the spray head assembly to print the 3D model to be printed on the printing platform.
The steps of how to print the 3D model to be printed in the formal printing area are described in detail later, and are not repeated here in order to avoid repetition.
Compared with the related art, the embodiment of the application has at least the following advantages: the spray head assembly is controlled to print the preset line on the printing platform so as to know the actual line width of the printing line currently printed by the 3D printing equipment, the actual line width is compared with the preset printing line width of the 3D model to be printed, the relative distance between the printing platform and the spray head assembly is adjusted according to the comparison result, the distance between the spray head assembly and the printing platform can reach a proper value, the fact that the printing line formed after the spray head assembly sprays printing materials on the printing platform meets the preset printing line width requirement can be ensured, the fact that the relative distance between the printing platform and the spray head assembly is larger or smaller, and the fact that the line width of the printing line formed after the spray head assembly sprays the printing materials on the printing platform is smaller or larger is avoided is improved, the printing precision of the 3D printing equipment is improved, and therefore the use experience of a user is improved.
Please refer to fig. 2, which is a flowchart of a 3D printing method according to an embodiment of the present application. This embodiment is a further improvement over the previous embodiments in that: in this embodiment, different preset extrusion parameter values are set for different positions of the 3D model to be printed, the nozzle assembly is controlled to print preset lines on the printing platform according to each preset extrusion parameter value, and finally, the line width average value of each preset line is compared with the preset printing line width to obtain a more accurate adjustment value, so that the printing precision of the 3D printing device is further improved, and the use experience of a user is further improved.
The specific flow of this embodiment is shown in fig. 2, and includes the following steps:
step 201: and acquiring N preset extrusion parameter values of the spray head assembly according to the preset slicing parameters and the printing material parameters, wherein different positions in the 3D model to be printed correspond to at least one preset extrusion parameter value.
Specifically, N is an integer greater than 1, and the value of N is not specifically limited in this embodiment, and may be set according to actual requirements.
In some embodiments, the location where the 3D model is to be printed includes an interior wall, an exterior wall, a fill area, and the like. Preset extrusion parameter values include, but are not limited to, extrusion speed, extrusion temperature, layer height, and the like.
Step 202: and controlling the spray head 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.
In some embodiments, each preset extrusion parameter value corresponds to a location in the 3D model to be printed. For ease of understanding, the 3D model to be printed below includes part 1, part 2, and part 3; the preset extrusion parameter values comprise a first preset extrusion parameter value, a second preset extrusion parameter value and a third preset extrusion parameter value; the preset lines include a first preset line, a second preset line and a third preset line, which are taken as examples, and specifically describe how to control the spray head assembly to print the preset lines on the printing platform in this embodiment:
the first preset extrusion parameter value corresponds to the part 1, the second preset extrusion parameter value corresponds to the part 2, the third preset extrusion parameter value corresponds to the part 3, the 3D printing equipment controls the nozzle assembly to print a first preset line according to the first preset extrusion parameter value, controls the nozzle assembly to print a second preset line according to the second preset extrusion parameter value, and controls the nozzle assembly to print a third preset line according to the third preset extrusion parameter value.
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 integrally seen as one printing line; the first preset line, the second preset line and the third preset line may not be connected to each other, i.e., the first preset line, the second preset line and the third preset line are independent printing lines.
Referring to fig. 3, a schematic structure of a print line a according to the present embodiment is shown. The first preset line, the second preset line and the third preset line are connected end to end, the 3D printing equipment prints a continuous printing 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 printing line A can be divided into three parts, and each part corresponds to one preset extrusion parameter value.
Step 203: n actual line widths of N preset lines are obtained.
The manner of acquiring the actual line width in this embodiment is the same as that of acquiring the actual line width in the foregoing embodiment, and in order to avoid repetition, details are not repeated here.
Step 204: comparing the N actual line widths with the preset printing line width, and determining an adjustment value according to the comparison result.
In some embodiments, the N actual line widths and the preset printed line widths may be compared in size to determine the adjustment value according to the following: calculating the average value of N actual line widths; comparing the average value with the preset printing line width, and determining an adjustment value according to the comparison result.
Specifically, assuming that the value of N is 5, calculating an average value P of 5 actual line widths, comparing the average value P with a preset printing line width, and if the average value P is greater than the preset printing line width, indicating that the distance between the printing platform and the nozzle assembly is too short, and downward adjusting the printing platform by a certain distance to increase the relative distance between the printing platform and the nozzle assembly; if the average value P is smaller than the preset printing line width, the distance between the printing platform and the nozzle assembly is too far, and the printing platform needs to be adjusted upwards by a certain distance to reduce the relative distance between the printing platform and the nozzle assembly.
In some embodiments, the median of the N actual line widths may also be calculated, the median is compared with the size of the preset printed line width, and the adjustment value is determined according to the comparison result.
It can be understood that, after the N actual line widths are obtained, the present embodiment is not limited to the manner of calculating the N actual line widths, and only needs to ensure that the calculated result can reflect the overall line width of the preset line.
Step 205: and after the relative distance between the printing platform and the spray head assembly is adjusted according to the adjustment value, controlling the spray head assembly to print the 3D model to be printed in the formal printing area.
Compared with the related art, the embodiment of the application has at least the following advantages: the method comprises the steps of setting different preset extrusion parameter values at different positions of a 3D model to be printed, controlling the spray head assembly to print preset lines on the printing platform according to each preset extrusion parameter value, finally comparing the line width average value of each preset line with the preset printing line width, and adjusting the relative distance between the printing platform and the spray head assembly according to a comparison result, so that the distance between the spray head assembly and the printing platform can reach a proper value, the fact that the printing line formed after the spray head assembly sprays printing materials on the printing platform meets the preset printing line width requirement can be ensured, the fact that the relative distance between the printing platform and the spray head assembly is larger or smaller, and the fact that the line width of the printing line formed after the spray head assembly sprays the printing materials on the printing platform is smaller or larger is avoided, printing precision of the 3D printing equipment is improved, and use experience of users is improved.
Please refer to fig. 4, which is a flowchart of a 3D printing method according to an embodiment of the present application. This embodiment is a further improvement over the previous embodiments in that: in this embodiment, each part of the 3D model to be printed corresponds to at least two preset extrusion parameter values, and an optimal extrusion parameter value is selected from the preset extrusion parameter values corresponding to each part, so that the printing precision of the 3D printing device can be further improved, and the printing quality is ensured.
The specific flow of this embodiment is shown in fig. 4, and includes the following steps:
step 301: and acquiring N preset extrusion parameter values of the spray head assembly according to the preset slicing parameters and the printing material parameters, wherein the 3D model to be printed comprises M different parts, and each part at least corresponds to two preset extrusion parameter values.
Specifically, M is an integer greater than 1.
In some embodiments, the number of preset extrusion parameter values corresponding to each location of the 3D model to be printed is the same. For example, assume that the value of M is 6, that is, the 3D model to be printed includes 6 different locations, each of which corresponds to 3 preset extrusion parameter values.
In some embodiments, the number of preset extrusion parameter values corresponding to each location of the 3D model to be printed is different. For example, assume that the value of M is 4, that is, the 3D model to be printed includes 4 different portions (portion a, portion B, portion C, and portion D, respectively), where portion a corresponds to 2 preset extrusion parameter values, portion B corresponds to 3 preset extrusion parameter values, portion C corresponds to 4 preset extrusion parameter values, and portion D corresponds to 2 preset extrusion parameter values.
Step 302: and controlling the spray head 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.
Step 303: and selecting an optimal preset line of each part from preset lines corresponding to the M parts, and taking a preset extrusion parameter value corresponding to the optimal preset line of each part as a final extrusion parameter value of the 3D model to be printed.
In some embodiments, the optimal preset line for each site may be selected from among the preset lines corresponding to the M sites according to the following manner: and calculating the standard deviation of the line width of the preset line corresponding to each part, and taking the preset line with the minimum standard deviation of the line width of each part as the optimal preset line of the part.
Specifically, the line width standard deviation is calculated by: acquiring line width values of the preset line at a plurality of different positions; calculating a line width average value of the preset line according to a plurality of line width values; and calculating the line width standard deviation according to the line width average value and a plurality of line width values.
For ease of understanding, the following specifically exemplifies how to select the preset line optimal for each location:
assuming that the value of M is 3, that is, the 3D model to be printed comprises 3 different parts (part A, part B and part C respectively), taking part A as an example, assuming that part A corresponds to 3 preset lines (preset line one, preset line two and preset line three respectively), measuring line width values of different positions of the preset line one, for example, taking three measuring points at the front part, the middle part and the rear part of the preset line one, measuring line width values at the three points, assuming that the line width values are L1, L2 and L3, calculating average values of L1, L2 and L3 Then calculate the standard deviation of line width of the preset line I according to the following formula>Wherein sigma is the standard deviation of line width of a preset line I, L i For the line width value at the i-th point, < ->And n is the number of measurement points, and is the line width average value of the preset line I.
It can be understood that the mode of calculating the standard deviation of the line width of the second preset line and the third preset line is the same as that of the first preset line, and in order to avoid repetition, the description is omitted here.
In some embodiments, the line widths of the first preset line, the second preset line and the third preset line are determined in a laser scanning manner, the first preset line, the second preset line and the third preset line are parallel, and after the laser scans the three preset lines, the line width values of the three preset lines at the same position can be obtained simultaneously.
And comparing the line width standard deviations corresponding to the preset line I, the preset line II and the preset line III, and taking the preset line with the minimum line width standard deviation as the optimal preset line.
It can be understood that the manner in which the portion B and the portion C acquire the optimal preset line is the same as the manner in which the portion a acquires the optimal preset line, and in order to avoid repetition, a detailed description is omitted here.
Please refer to fig. 5, which is a diagram of an effect of printing on the printing platform by the 3D printing device. As can be seen from fig. 5, the print lines with preset extrusion parameter values of 0.004 to 0.096 are all straight lines. A printing line with preset extrusion parameter values of 0.004 to 0.036 has a fault phenomenon at the front end and has a printing material accumulation condition at the rear end; the printing line with preset extrusion parameter values of 0.04 to 0.056 is relatively uniform; the printing line of the printing line with preset extrusion parameter values of 0.06 to 0.096 has a fault phenomenon at the rear end and a printing material accumulation condition at the front end.
Specifically, the extrusion parameters of the front end of the printing line with the preset extrusion parameter value of 0.004 to 0.036 are smaller, so that the front end is in fault phenomenon, the extrusion parameters of the rear end are larger, the situation that the printing materials are accumulated at the rear end is caused, and the printing line with the preset extrusion parameter value of 0.04 to 0.056 can be obtained by increasing the printing parameters of the front end and reducing the printing parameters of the rear end. The final extrusion parameters were 0.04 to 0.056.
Please refer to fig. 6, which is another effect diagram of the 3D printing device printing on the printing platform. As can be seen from fig. 6, the print lines of the preset extrusion parameters 0.02 to 0.08 are all broken line groups. The printing quality of the 3D printing device can be determined by detecting the distance between adjacent printing lines, the printing condition of inflection points of the printing lines and the printing condition of the starting position and the ending position of the printing lines.
Specifically, before the 3D printing device controls the nozzle assembly to print the broken line, the nozzle assembly is controlled to accelerate to a preset printing speed at a rated acceleration, and then the nozzle assembly is controlled to print the broken line on the printing platform at the preset printing speed. It can be understood that the number of the printing lines is the same as the number of the preset extrusion parameters, that is, how many preset extrusion parameters need to be detected, and how many printing lines are printed by the 3D printing device is controlled.
In some embodiments, the 3D printing apparatus controls the showerhead assembly to accelerate at an acceleration of 5000 square millimeters per second, stops accelerating after accelerating to 12000 millimeters per second, and controls the showerhead assembly to print the 45 degree angled fold line shown in fig. 3 on the printing platform at a speed of 12000 millimeters per second.
After printing of all the folding lines is completed, the effect diagram shown in fig. 6 is shot by a shooting device of the 3D printing equipment, and then whether gaps exist at the bending positions of each folding line or not or whether the folding positions are convex or not is observed in a mode of simulating human eyes, namely, the uniformity of each folding line at the folding angle is observed. Specifically, a folding line with preset extrusion parameters of 0.02 to 0.036 is provided with a bulge at the bending position; the folding line with preset extrusion parameters of 0.04 to 0.052 has no bulge at the bending position and no gap; fold lines with preset extrusion parameters of 0.056 to 0.08 have gaps at the bends. The final extrusion parameters were then 0.04 to 0.052.
In some embodiments, the effect map shot by the shooting device may be input into a preset uniformity recognition model, and whether a gap exists at the bending position of each folding line or whether the folding position is convex is detected according to an output result of the uniformity recognition model.
Specifically, historical image data of the printed broken lines are collected, an original model is trained through the historical image data, and the trained original model is used as a uniformity recognition model. After all the folding lines are printed, the effect diagram shown in fig. 6 is shot by a shooting device of the 3D printing equipment, and then the effect diagram is input into a uniformity recognition model, and the uniformity recognition model can automatically detect whether gaps exist at the bending positions of each folding line or whether the folding positions of each folding line are protruded.
Step 304: n actual line widths of N preset lines are obtained.
Step 305: comparing the N actual line widths with the preset printing line width, and determining an adjustment value according to the comparison result.
Step 306: and after the relative distance between the printing platform and the nozzle assembly is adjusted according to the adjustment value, controlling the nozzle assembly to print the 3D model to be printed in the formal printing area according to the final extrusion parameter value.
Steps 304 to 306 of the present embodiment are similar to steps 203 to 205 of the previous embodiment, and are not repeated here.
Compared with the related art, the embodiment of the application has at least the following advantages: the method comprises the steps of setting different preset extrusion parameter values at different positions of a 3D model to be printed, controlling the spray head assembly to print preset lines on the printing platform according to each preset extrusion parameter value, finally comparing the line width average value of each preset line with the preset printing line width, and adjusting the relative distance between the printing platform and the spray head assembly according to a comparison result, so that the distance between the spray head assembly and the printing platform can reach a proper value, the fact that the printing line formed after the spray head assembly sprays printing materials on the printing platform meets the preset printing line width requirement can be ensured, the fact that the relative distance between the printing platform and the spray head assembly is larger or smaller, and the fact that the line width of the printing line formed after the spray head assembly sprays the printing materials on the printing platform is smaller or larger is avoided, printing precision of the 3D printing equipment is improved, and use experience of users is improved. In addition, through setting up to wait to print each position of 3D model and corresponding two at least default extrusion parameter values to can select the optimal extrusion parameter value in the default extrusion parameter value that every position corresponds, so that 3D printing equipment prints to wait to print 3D model according to the optimal extrusion parameter value control shower nozzle subassembly, can make 3D printing equipment be applicable to different application scenes, avoid "3D printing equipment prints the 3D model of each application scene through the extrusion parameter value of first setting, lead to the emergence of the condition of printing quality poor even printing failure", ensured the printing quality of 3D printing equipment under different scenes, further improved user experience.
Fig. 7 is a schematic diagram of a scanning print platform of a 3D printing apparatus according to an embodiment of the present application. This embodiment is a further improvement over the previous embodiments in that: in this embodiment, before the nozzle assembly is controlled to print at least one preset line on the printing platform of the printing platform, the printing platform is further leveled by adopting a laser scanning manner. In this way, the 3D printing equipment can finish automatic leveling of the printing platform through one-time scanning, so that the efficiency is high and the operation is convenient; in addition, the level of the printing platform is ensured, thereby further improving the printing precision of the 3D printing apparatus.
Specifically, the 3D printing device further includes a laser light source for emitting a line laser, as shown in fig. 7, and the 3D printing device controls the laser light source to reciprocally scan the printing platform line by line in a stripe manner, collects point cloud data of each line, and performs point cloud stitching to generate a 3D model of the whole printing platform.
Since there may be a minute deformation of the print platform during the scanning process, there is an error in the collected point cloud data. In the embodiment, plane fitting is performed on the spliced point cloud, and the normal vector of the fitting plane is determined, so that the horizontal amount of the offset of the printing platform is determined, and the correction amount of the printing platform is further determined.
For ease of understanding, the following specifically exemplifies how the correction amount of the printing platform is determined and how the printing platform is leveled after the correction amount of the printing platform is determined according to the present embodiment with reference to fig. 8:
referring to fig. 8, a schematic diagram is provided for comparing normal vectors of a standard horizontal plane and a fitting plane according to the present embodiment.
(1) Assuming that the normal vector of the fitting plane isNormal vector of standard level is +.>Normal vector +.>Projecting onto a standard horizontal plane to obtain a vector +.>Calculate vector +.>And->And an included angle theta between the two.
(2) The vector is calculated by the following formulaAnd->The included angle theta between: />Wherein, the liquid crystal display device comprises a liquid crystal display device,
(3) Calculating the offset level of the printing platform by the following formula: print platform offset level = sin θ x density of point cloud data, where θ is a vectorAnd->The included angle between the two points is the number of the point cloud data per square meter.
(4) After determining the level of the print platen offset, the correction amount can be obtained. After the correction amount is determined, an error in the scanning process can be corrected by applying it to the point cloud data. Specifically, the correction amount may be added to the coordinate value of each point in the point cloud data so that the points are in the correct positions with respect to the printing platform. The process can be performed in a post-processing process after the point cloud data acquisition or applied immediately during scanning.
In some embodiments, after leveling the printing platform, it may also be verified whether the printing platform has been successfully calibrated. For example, the printing platform after automatic leveling is scanned by laser for a plurality of times, and if the point cloud data obtained by each scanning are very close, the printing platform is successfully corrected. If the point cloud data obtained by multiple scanning have significant differences, the correction amount needs to be obtained again to further level the printing platform, so that the printing precision of the 3D printing equipment is ensured.
Referring to fig. 9, an application scenario diagram of print compensation for deformation of a print platform according to an embodiment of the present application is shown. This embodiment is a further improvement over the previous embodiments in that: in this embodiment, before the control nozzle assembly prints at least one preset line on the printing platform of the printing platform, the deformation printing compensation is further performed on the printing platform. By the mode, flatness of the printing platform can be ensured, and printing quality of the 3D printing equipment is improved.
For easy understanding, the following describes how the deformation print compensation is performed on the print platform according to the present embodiment:
(1) Assuming that the printing platform is a rectangular printing platform, the dimensions are 100 mm by 80 mm, and the thickness is 2 mm. And scanning the printing platform by using a line laser generator of the 3D printing equipment to acquire the point cloud data on the surface of the printing platform.
(2) And processing the point cloud data of the surface of the printing platform by using point cloud processing software (such as cloudCompare or MeshLab) to extract the surface information of the printing platform. Specifically, the point cloud processing software is used for filtering, smoothing and surface extraction operations on the point cloud data of the surface of the printing platform so as to obtain a smooth point cloud model of the surface of the printing platform.
(3) The sampling interval is determined to calculate the printing compensation value, and as shown in fig. 7, 5 mm is selected as the sampling interval, i.e., the point cloud data of the printing platform surface is sampled every 5 mm.
(4) And sampling in the obtained printing platform surface point cloud model according to the sampling interval of 5 mm by using point cloud processing software or programming language (such as Python or MATLAB), so as to obtain 20 sampling point sets in total.
(5) And performing surface fitting on the 20 sampling point sets through programming languages such as Python or MATLAB to obtain 20 fitted sub-curved surfaces, and calculating the actual curvature of each sub-curved surface through a surface fitting algorithm.
(6) Comparing the actual curvature of the sub-curved surface with the theoretical curvature of the original printing platform, and calculating the compensation value of each sub-curved surface through the following formula:
compensation value = compensation coefficient x offset; deviation = theoretical curvature-actual curvature.
Specifically, the compensation factor is a constant that is related to factors such as printing, manufacturing process, geometry and size of the printing platform, the mode of operation of the printer, and the required printing accuracy. In general, the compensation coefficient has a value between 0.1 and 0.5.
In some embodiments, the compensation coefficient may be determined by: 1. and selecting one printing platform, printing on the printing platform for a plurality of times by using the same 3D printing equipment and printing parameters, and recording deviation of each printing. 2. The corresponding compensation value is calculated for each printed deviation, and can be calculated according to the above formula. 3. Fitting is performed based on the calculated compensation value and the actual deviation data, and may be performed by using a curve fitting method, a regression analysis method, or the like. 4. And selecting a proper compensation coefficient according to the fitting result so as to ensure that the fitting effect of the calculated compensation value and the actual deviation data is the best. It should be noted that the selection of the compensation factor is a relatively empirical process that needs to be adjusted for the particular situation. Furthermore, after the compensation coefficient is determined, a plurality of experiments are required to verify the effectiveness thereof and to make adjustments.
(7) And updating the calculated compensation value point cloud processing software to enable the point cloud processing software to update the point cloud model on the surface of the printing platform, thereby realizing deformation printing compensation of the printing platform.
Please refer to fig. 10, which is a flowchart of a 3D printing method according to an embodiment of the present application. This embodiment is a further improvement over the previous embodiments in that: in this embodiment, before the 3D model to be printed is printed in the formal printing area by controlling the nozzle assembly, the first layer of printing detection is also performed, and in this way, the 3D printing device can automatically detect the printing quality, so that the user can know the printing quality problem in time, and the use experience of the user is further improved.
The specific flow of this embodiment is shown in fig. 10, and includes the following steps:
step 401: the spray head assembly is controlled to print at least one preset line on the printing platform.
Step 402: and acquiring the actual line width of the preset line.
Step 403: and 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 for adjusting the relative distance between the printing platform and the spray head assembly.
Steps 401 to 403 of the present embodiment are similar to steps 101 to 103 of the foregoing embodiments, and are not repeated here.
Step 404: after the relative distance between the printing platform and the spray head component is adjusted according to the adjustment value, the shooting device is controlled to shoot an initial image of the current printing platform at a preset angle and a preset distance between the shooting device and the printing platform.
In some embodiments, the 3D printing apparatus includes a motor coupled to the camera for controlling changes in camera angle and position.
In some embodiments, the number of initial images is not particularly limited, and a plurality of initial images may be photographed at the same angle and the same distance from the printing platform.
In some embodiments, the number of preset angles and preset positions are not particularly limited, i.e., a plurality of initial images may be taken at different angles and/or different distances from the printing platform, respectively.
Step 405: and acquiring first-layer information in a file for commanding the 3D printing work, wherein the first-layer information at least comprises a planar two-dimensional graph of the first layer of the 3D model to be printed.
In some embodiments, the file for commanding the 3D print job is a gcode file, which is used for commanding the 3D print job, in order to print the three-dimensional model in the computer with the 3D printing device, the model (commonly in. Stl and. Obj formats) is first input into 3D slicing software (e.g. Cura) to perform planar slicing, and the gcode file is generated. And sending the gcode file to 3D printing equipment for reading, filling each layer by a spray head assembly of the 3D printing equipment according to the planned path, and stacking the layers one by one to finally form the 3D model.
In some embodiments, the first layer information further includes first layer point cloud data, and the first layer information in the gcode file may be read through a programming language such as Python.
Step 406: and controlling the nozzle assembly to print the first layer of the 3D model to be printed in the formal printing area according to the first layer information.
In some embodiments, the 3D printing device performs first-layer printing after receiving the first-layer information, that is, controls the nozzle assembly to print the first layer of the 3D model to be printed in the formal printing area.
Step 407: and controlling the shooting device to shoot a final image of the current printing platform at a preset angle and a preset distance between the shooting device and the printing platform.
In some embodiments, the number of final images is the same as the number of initial images, and if the photographing device photographs 3 initial images at the first preset angle and the first preset distance from the printing platform in the aforementioned step 404, the photographing device photographs 3 final images at the first preset angle and the first preset distance from the printing platform after the first-layer printing is completed; the shooting device shoots an initial image at a first preset angle and a first preset distance between the shooting device and the printing platform, shoots an initial image at a second preset angle and a second preset distance between the shooting device and the printing platform, and shoots a final image at the first preset angle and the first preset distance between the shooting device and the printing platform after the first layer printing is finished, and shoots a final image at the second preset angle and the second preset distance between the shooting device and the printing platform.
Step 408: the print quality of the 3D printing device is determined from the initial image and the final image.
In some embodiments, a difference image is generated based on the initial image and the final image, and then binarized and denoised, and the processed image is compared with a planar two-dimensional map in the first-layer information, so as to determine the printing quality of the 3D printing device.
For ease of understanding, the following specifically describes a process of determining the print quality of the 3D printing apparatus according to the present embodiment:
(1) And reading first-layer information in the gcode file by using programming languages such as Python, wherein the first-layer information at least comprises a plane two-dimensional graph of the first layer.
(2) Before first-layer printing, controlling a shooting device to be away from a printing platform by a preset distance, enabling an included angle between the shooting device and the printing platform to be a preset included angle, and shooting an initial image of the printing platform.
(3) The 3D printing device receives the read first layer information and performs first layer printing.
(4) After the first-layer printing is finished, the shooting device is controlled to shoot the final image of the printing platform at the same position as the initial image.
(5) A difference image between the initial image and the final image is acquired using a programming language such as Python.
(6) And performing binarization denoising treatment on the difference image by using an OpenCV and other libraries to obtain a treated image.
(7) And comparing the processed image with first-layer information in the gcode file by using programming languages such as Python and the like so as to detect the printing quality of the 3D printing device.
(8) The user is informed of the print quality of the 3D printing device by mail, text message or other means.
Compared with the related art, the embodiment of the application has at least the following advantages: the method has the advantages that the preset line is printed on the printing platform by controlling the spray head assembly so as to know the actual line width of the printing line currently printed by the 3D printing equipment, the actual line width is compared with the preset printing line width of the 3D model to be printed, the relative distance between the printing platform and the spray head assembly is adjusted according to the comparison result, the distance between the spray head assembly and the printing platform can reach a proper value, the fact that the printing line formed by the spray head assembly after spraying printing materials on the printing platform meets the preset printing line width requirement is avoided, the fact that the relative distance between the printing platform and the spray head assembly is larger or smaller, and the fact that the line width of the printing line formed by the spray head assembly after spraying the printing materials on the printing platform is smaller or larger is caused is avoided, the printing precision of the 3D printing equipment is improved, and therefore the use experience of users is improved; in addition, through automatic first layer detection of printing, can inform the user with 3D printing equipment's print quality voluntarily, avoid the user to inspect 3D printing equipment's print quality by the manual work, further improved user's use experience.
Please refer to fig. 11, which is a working interaction diagram of a 3D printing device according to an embodiment of the present application. This embodiment is a further improvement over the previous embodiments in that: in this embodiment, the abnormal detection is performed on the workflow of the first layer detection of the 3D printing device, so as to ensure the normal operation of the 3D printing device and improve the printing quality of the 3D printing device.
Specifically, the interactive chart shown in fig. 11 refers to a workflow of the 3D printing apparatus at the time of first-layer detection. In the process, the data acquisition and comparison are performed by using methods such as computer vision, deep learning, point cloud and the like so as to detect whether the surface of the hot bed is defective or not and whether the extrusion printing of the spray head is problematic or not, and the detection result is judged and prompted. It can be appreciated that the goal of the interactive flow is to self-check the environment and equipment before printing, ensure print quality and success rate, and send out an alarm to prompt the user in time when an abnormal situation occurs.
In some embodiments, it is also detected whether the processing steps of the 3D printing device are abnormal based on the deep learning model. Such as detecting whether the processes of leveling the printing platform, printing compensation of the printing platform, flow detection of the nozzle assembly, etc. in the previous embodiments are abnormal.
Specifically, the abnormal flow detection method of the 3D printing device based on the deep learning model may be divided into the following steps:
(1) And (3) data collection: data for each process step is collected, including data for normal and abnormal conditions. The data may be in the form of images, video, point clouds, etc.
(2) Data preprocessing: preprocessing the collected data, such as cutting, scaling, enhancing and the like, and filtering, sampling and the like, the point cloud so as to facilitate subsequent deep learning model training and testing.
(3) Model training: using the collected data, a deep learning model is trained for detecting anomalies in each of the processing steps. Common models include convolutional neural networks, cyclic neural networks, self-encoders, and the like.
(4) Model test: and testing new data by using the trained deep learning model, and judging whether the current processing step is abnormal or not. Some metrics such as accuracy, recall, F1-score, etc. may be used to evaluate the performance of the model.
(5) Integrated into the system: and integrating the trained deep learning model into an actual system, detecting each processing step, and giving a corresponding prompt or taking corresponding measures if the processing steps are abnormal.
It should be noted that, the collection and preprocessing of the data needs to fully consider the actual situation and cover various possible abnormal situations as much as possible so as to improve the robustness and reliability of the model. Meanwhile, the training and testing of the model are required to be fully verified and optimized so as to achieve a good detection effect.
Please refer to fig. 12, which is a schematic diagram illustrating a scenario of line height detection of a 3D printing apparatus according to an embodiment of the present application. The present embodiment is a specific description of the functions of the 3D printing apparatus, which describes how the line height of the object to be measured is measured by the 3D printing apparatus provided by the present embodiment. Through the mode, the line height of the object to be detected can be automatically detected, and the use experience of a user is improved.
As shown in fig. 12, the 3D printing apparatus includes a printing platform 1, a line laser generator 2 and a camera 3, and the detected object is placed on the printing platform 1, and the basic formula of line height detection is as follows: line height of object to be measured = projection offset distance/tan (laser-horizontal angle); the projection offset distance is an offset distance generated in the image captured by the camera 3 with respect to the position when not irradiated after the line laser light is irradiated onto the object surface, and is an image captured by the camera 3 as shown in fig. 13. Specifically, the white line shown in fig. 13 is the laser emitted by the laser light source 2, the object to be measured is the printing line, and the extending direction of the laser is perpendicular to the extending direction of the printing line; tan (angle between laser and horizontal plane) is the tangent of the angle between line laser and horizontal plane.
Referring to fig. 14, an image of a triangle object taken by the camera 3 is shown. The white line shown in fig. 14 is the laser light emitted from the laser light source 2, and as can be seen from fig. 14, the laser light irradiated on the laser object is shifted due to the triangular object having a certain height.
For easy understanding, the following describes how the line height detection of the object to be detected is performed in the present embodiment:
assuming that the distance between the object to be measured and the offline laser generator 2 is L, the included 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 of the line height H of the object to be measured is:
H=d/tan(α);
the projection offset distance d of the line laser on the surface of the object to be measured is calculated by the following method: projection distance d1=l×cos (α) of the line laser on the horizontal plane; the projection offset distance d2=d1×d/L of the line laser in the similar triangle on the physical surface; it is known that d=d2×l/D1, brought into d1=l×cos (α), to obtain d=d2/cos (α).
For example, when the distance L between the object to be measured and the offline laser generator 2 is 50 cm and the included angle α between the line laser and the horizontal plane is 45 degrees, the projection offset distance d is calculated to be 2 mm, so that the line height H of the object to be measured is calculated to be 2 mm.
Referring to fig. 15, a hardware structure diagram of an electronic device 1000 according to an embodiment of the application is shown. As shown in fig. 15, the electronic device 1000 may include a processor 1001, a memory 1002. The memory 1002 is used to store one or more computer programs 1003. One or more computer programs 1003 are configured to be executed by the processor 1001. The one or more computer programs 1003 include instructions that can be used to implement the methods described above for execution in the electronic device 1000.
It is to be understood that the configuration illustrated in the present embodiment does not constitute a specific limitation on the electronic apparatus 1000. In other embodiments, electronic device 1000 may include more or fewer components than shown, or may combine certain components, or split certain components, or a different arrangement of components.
The processor 1001 may include one or more processing units, such as: the processor 1001 may include an application processor (application processor, AP), a modem, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The processor 1001 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1001 is a cache memory. The memory may hold instructions or data that the processor 1001 has just used or recycled. If the processor 1001 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 1001 is reduced, thus improving the efficiency of the system.
In some embodiments, the processor 1001 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a SIM interface, and/or a USB interface, among others.
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 Media Card (SMC), a 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.
The present embodiment also provides a computer-readable storage medium having stored therein computer instructions which, when executed on an electronic device, cause the electronic device to perform the above-described related method steps to implement the method in the above-described embodiments.
The electronic device and the computer storage medium provided in this embodiment are used to execute the corresponding methods provided above, so that the beneficial effects that can be achieved by the electronic device and the computer storage medium can refer to the beneficial effects in the corresponding methods provided above, and are not described herein.
In practical applications, the above-mentioned functions may be distributed by different functional modules according to the need, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
In several embodiments provided by the present application, the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are illustrative, and the module or division of the units, for example, is a logic function division, and may be implemented in other manners, such as multiple units or components may be combined or integrated into another apparatus, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and the parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated unit may be stored in a readable storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of specific embodiments of the present application, and the scope of the present application is not limited thereto, but any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application.

Claims (10)

1. A 3D printing method, applied to a 3D printing apparatus, the 3D printing apparatus including a head assembly for ejecting a printing material onto a printing platform, the method comprising:
controlling the spray head assembly to print at least one preset line on the printing platform;
acquiring the actual line width of the preset line;
comparing the actual line width with a preset printing line width of the 3D model to be printed, and determining an adjustment value according to a comparison result, wherein the adjustment value is used for adjusting the relative distance between the printing platform and the spray head assembly;
and after the relative distance between the printing platform and the spray head assembly is adjusted according to the adjustment value, controlling the spray head assembly to print the 3D model to be printed on the printing platform.
2. The 3D printing method of claim 1, further comprising, prior to said controlling the showerhead assembly to print at least one preset line on the printing platform:
And receiving preset slice parameters and printing material parameters of the 3D model to be printed, and acquiring the preset printing line width according to the preset slice parameters and the printing material parameters.
3. The 3D printing method of claim 2, further comprising, prior to said controlling the showerhead assembly to print at least one preset line on the printing platform:
acquiring N preset extrusion parameter values of the spray head assembly according to the preset slicing parameters and the printing material parameters, wherein different positions in the 3D model to be printed correspond to at least one preset extrusion parameter value, and N is a constant larger than 1;
the controlling the spray head assembly to print at least one preset line on the printing platform comprises the following steps:
controlling the spray head 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 the actual line width of the preset line includes: acquiring N actual line widths of N preset lines;
the step of comparing the actual line width with the preset printing line width, and determining an adjustment value according to the comparison result comprises the following steps:
And comparing the N actual line widths with the preset printing line widths, and determining an adjustment value according to a comparison result.
4. A 3D printing method according to claim 3, wherein comparing the magnitudes of the N actual line widths and the preset printing line widths, and determining the adjustment value according to the comparison result, comprises:
calculating the average value of N actual line widths;
and comparing the average value with the preset printing line width, and determining the adjustment value according to a comparison result.
5. The 3D printing method as claimed in any one of claims 1 to 4, wherein the comparing the actual line width and the preset printed line width in size, determining the adjustment value according to the comparison result, comprises:
determining the adjustment value to increase the relative distance between the printing platform and the nozzle assembly under the condition that the actual line width is larger than the preset printing line width;
and under the condition that the actual line width is smaller than the preset printing line width, determining the adjustment value to reduce the relative distance between the printing platform and the spray head assembly.
6. A 3D printing method according to claim 3, wherein the 3D model to be printed comprises M different parts, wherein M is an integer greater than 1; each part of the 3D model to be printed at least corresponds to two preset extrusion parameter values;
After the controlling the nozzle assembly to print N preset lines on the printing platform according to the N preset extrusion parameter values, the method further comprises:
and selecting an optimal preset line of each part from the M preset lines corresponding to the parts, and taking a preset extrusion parameter value corresponding to the optimal preset line of each part as a final extrusion parameter value for printing the 3D model to be printed.
7. The 3D printing method as defined in claim 6, wherein selecting an optimal preset line for each location from among the preset lines corresponding to the M locations comprises:
and calculating the standard deviation of the line widths of the plurality of preset lines corresponding to each part, and taking the preset line with the minimum standard deviation of the line widths of each part as the optimal preset line of the part.
8. The 3D printing method as defined in claim 7, wherein the standard deviation of the line width of the preset line is calculated by:
acquiring line width values of the preset line at a plurality of different positions;
calculating a line width average value of the preset line according to a plurality of line width values;
and calculating the line width standard deviation according to the line width average value and a plurality of line width values.
9. An electronic device comprising a processor and a memory, the memory for storing instructions, the processor for invoking the instructions in the memory to cause the electronic device to perform the 3D printing method of any of claims 1-8.
10. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the 3D printing method of any of claims 1 to 8.
CN202310613972.7A 2023-05-26 2023-05-26 3D printing method, electronic equipment and computer readable storage medium Pending CN116714252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310613972.7A CN116714252A (en) 2023-05-26 2023-05-26 3D printing method, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310613972.7A CN116714252A (en) 2023-05-26 2023-05-26 3D printing method, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116714252A true CN116714252A (en) 2023-09-08

Family

ID=87867036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310613972.7A Pending CN116714252A (en) 2023-05-26 2023-05-26 3D printing method, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116714252A (en)

Similar Documents

Publication Publication Date Title
US11141921B2 (en) Systems and methods of machine vision assisted additive fabrication
CN112677487B (en) Control method and control system for 3D printing and 3D printing equipment
US10972630B2 (en) Method for flattening laser-based image of curved book page
CN112651949B (en) 3D printing monitoring method and device, electronic equipment and storage medium
US20080002866A1 (en) Face authentication system and face authentication method
CN103917376A (en) A printer and a method of printing
WO2014108976A1 (en) Object detecting device
JP2020044833A (en) Method for detecting object border of 3d printer
CN114889138B (en) Printing control method and three-dimensional printer
TWI388797B (en) Three - dimensional model reconstruction method and its system
CN113306308B (en) Design method of portable printing and copying machine based on high-precision visual positioning
CN113103587B (en) Control method and control system for 3D printing and 3D printing equipment
US11143499B2 (en) Three-dimensional information generating device and method capable of self-calibration
CN116714252A (en) 3D printing method, electronic equipment and computer readable storage medium
CN117002009A (en) Processing step detection method of 3D printing equipment, electronic equipment and storage medium
CN116476387A (en) Compensation method based on 3D printing, electronic equipment and computer readable storage medium
CN116619753A (en) Automatic leveling method, electronic equipment and computer readable storage medium
CN108278966A (en) SLA precision calibrations system and scaling method
CN116642720A (en) Detection method based on 3D printing equipment, electronic equipment and storage medium
WO2015061131A1 (en) Vision system
CN107835361B (en) Imaging method and device based on structured light and mobile terminal
KR102033399B1 (en) System and method for displaying printed object display information by 3d printer using augmented reality
CN114161713A (en) Printing head, detection method, storage medium and three-dimensional printer
JP2009192483A (en) Three dimensional shape measuring method and three dimensional shape measuring device
JP2015103017A (en) Information processor, printer, control method of information processor, control method of printer, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination