Fault detection method in 3D printing, 3D printer and equipment
By detecting the difference between the usage and usage of consumables in 3D printing equipment, using ultrasonic sensors and main control systems to prevent printing failures, the problem of failure in the prior art cannot be sensed in real time, and the efficiency and user experience of 3D printing are improved.
Patent Information
- Application Number
- CN202210609395.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-31
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2042-05-31
AI Technical Summary
Existing 3D printing equipment cannot sense faults in real time, resulting in waste of consumables and time loss when printing fails.
By obtaining the difference between the volume of the consumables used for printing and the volume of the consumables to be used, an ultrasonic sensor is used to detect the liquid level and the main control system calculates the amount of consumables, and outputs control signals to prevent printing failure.
Real-time perception of 3D printing status is achieved, consumable waste and time loss are avoided, and printing efficiency and user experience are improved.
Smart Images

Figure CN115122642B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of 3D printing, and in particular to a fault detection method in 3D printing, a 3D printer and equipment. Background Art
[0002] Usually, 3D printing equipment can also be called three-dimensional printing equipment (3Dimension Printer, 3DP). It is a cumulative manufacturing technology, that is, a device of rapid prototyping technology. It is based on a digital model file and uses special wax materials, powdered metals or plastics and other adhesive materials to print multiple layers of adhesive materials in sequence to create three-dimensional objects.
[0003] However, the 3D printing process in the prior art is often time-consuming and the user cannot monitor the whole process. At this time, if a printing failure occurs and the 3D printer itself cannot sense it, it will continue to print, which may result in a waste of time and consumables. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a fault detection method in 3D printing to solve the problem of 3D printing fault perception.
[0005] A method for fault detection in 3D printing includes:
[0006] Get the volume of consumables used in the current printing and the volume of consumables that should be used in the current printing;
[0007] Determining the difference between the volume of the consumables used for the current printing and the volume of the consumables that should be used for the current printing;
[0008] If the difference exceeds a preset range, a first control signal is output.
[0009] Wherein, obtaining the volume of consumables used in the current printing includes:
[0010] Acquire a liquid level detection signal, and determine the remaining consumable volume according to the liquid level detection signal; determine the volume of the used consumable according to the difference between the total volume and the remaining consumable volume;
[0011] Wherein, the total volume is obtained by a nominal value or a flow meter.
[0012] The 3D printer includes a printing platform and a material box, wherein the printing platform is used to extend into the material box and carry the printing model, and the material box is used to hold printing consumables. Before obtaining the liquid level detection signal, the 3D printer also includes:
[0013] If the current printing layer has been printed, it is detected whether the printing platform rises to a preset height, and the preset height is higher than the height of the consumable liquid level;
[0014] If it is detected that the printing platform rises to the preset height, prepare to obtain a liquid level detection signal.
[0015] The 3D printer further comprises a main control system, an ultrasonic sensor connected to the main control system, a front-end circuit connected to the ultrasonic sensor, and an analog / digital converter connected to the front-end circuit, and obtaining the liquid level detection signal comprises:
[0016] The main control system generates a first signal and sends it to the ultrasonic sensor;
[0017] The ultrasonic sensor sends an ultrasonic signal to the surface of the consumables in the material box and receives an ultrasonic echo signal;
[0018] The ultrasonic sensor sends the ultrasonic echo signal to the front circuit, and the front circuit filters and amplifies the ultrasonic echo signal;
[0019] Sending the ultrasonic echo signal processed by the front-end circuit to the analog / digital converter for analog / digital conversion to obtain a rectangular wave pulse electrical signal, and sending the rectangular wave pulse electrical signal to the timer of the main control system;
[0020] The timer of the main control system calculates the time T for sending the first signal to the main control system and receiving the ultrasonic echo signal;
[0021] The main control system calculates the ultrasonic transmission distance according to the ultrasonic transmission speed V and the time T for receiving the ultrasonic echo signal to determine the liquid level of the remaining consumables.
[0022] The ultrasonic sensor includes: an ultrasonic drive circuit, an ultrasonic transmitter connected to the ultrasonic drive circuit, and an ultrasonic receiver, wherein the ultrasonic drive circuit is used to drive the ultrasonic transmitter to transmit an ultrasonic signal to the surface of the consumables in the material box according to the first signal, and the ultrasonic receiver is used to receive the ultrasonic echo signal returned from the surface of the consumables;
[0023] The preamplifier circuit includes a secondary amplifier circuit and a DC bias circuit for filtering and amplifying ultrasonic echo signals;
[0024] The analog / digital converter comprises a comparison circuit and a power bias circuit. The comparison circuit is used for performing analog / digital conversion on the ultrasonic echo signal after filtering and secondary amplification.
[0025] The ultrasonic drive circuit includes a voltage conversion unit for converting the voltage of the power supply of the main control system and a drive unit for driving the ultrasonic transmitter, wherein:
[0026] The voltage conversion unit includes a first resistor, a second resistor, a third resistor, and a bipolar diode; one end of the first resistor is connected to the main control system, the other end is connected to the second resistor, and the other end of the second resistor is grounded; the base of the bipolar diode is connected to the connection point of the first resistor and the second resistor, the collector is connected to one end of the third resistor, and the emitter is grounded; the other end of the third resistor is connected to the power supply;
[0027] The driving unit includes a first NOT gate, a first driving path, and a second driving path, wherein the first driving path includes a second NOT gate, a third NOT gate, a fourth NOT gate connected in parallel with the third NOT gate, a second capacitor, and a first capacitor for decoupling and power supply filtering; the first NOT gate input end is connected to the collector of the bipolar diode, and the output end is connected to the second NOT gate input end; the second NOT gate output end is connected to the parallel point of the third NOT gate and the fourth NOT gate input ends, the second NOT gate is connected to the power supply end and is also connected to one end of the first capacitor, and the other end of the first capacitor is grounded; the parallel point of the third NOT gate and the fourth NOT gate output ends is connected to one end of the second capacitor, and the other end of the second capacitor is connected to an input end of the ultrasonic transmitter;
[0028] The second driving path includes a fifth NOT gate, a sixth NOT gate connected in parallel with the fifth NOT gate, and a third capacitor; the output end of the first NOT gate is connected to the parallel point of the fifth NOT gate and the sixth NOT gate input ends, the connection point of the fifth NOT gate and the sixth NOT gate output ends is connected to one end of the third capacitor, and the other end of the third capacitor is connected to the other input end of the ultrasonic transmitter.
[0029] Wherein, the DC bias circuit comprises a sliding resistor and a fourth resistor connected in series, the series connection point of the sliding resistor and the fourth resistor is connected to an output end of the ultrasonic receiver, the other end of the sliding resistor is connected to a power supply, and the other end of the fourth resistor is grounded;
[0030] The first-stage amplifier circuit in the two-stage amplifier circuit includes a first-stage amplifier, a fourth capacitor for decoupling and power supply filtering, a fifth resistor, a sixth resistor, and a first feedback network; the first input end of the first-stage amplifier is connected to one end of the fifth resistor, and the other end of the fifth resistor is connected to an output end of the ultrasonic receiver; the second input end of the first-stage amplifier is connected to one end of the sixth resistor, and the other end of the sixth resistor is connected to the other output end of the ultrasonic receiver; one end of the fourth capacitor is connected to one end of the first-stage amplifier connected to the power supply, and the other end is connected to the power supply end of the first-stage amplifier; the first feedback network includes a seventh resistor and a fifth capacitor connected in parallel, one end of which is connected in parallel to the second input end of the first-stage amplifier, and the other end is connected to the output end of the first-stage amplifier;
[0031] The second-stage amplifier circuit in the secondary amplifier circuit includes a second-stage amplifier, a sixth capacitor, a seventh capacitor, an eighth resistor, a ninth resistor, and a second feedback network; the first input end of the first-stage amplifier is connected to one end of the eighth resistor, the other end of the eighth resistor is connected to the sixth capacitor, and the other end of the sixth capacitor is grounded; the second input end of the second-stage amplifier is connected to one end of the ninth resistor, the other end of the ninth resistor is connected to one end of the seventh capacitor, and the other end of the seventh capacitor is connected to the output end of the first-stage amplifier; the second feedback network includes a tenth resistor and an eighth capacitor connected in parallel, one end of which is connected in parallel to the second input end of the second-stage amplifier, and the other end is connected to the output end of the second-stage amplifier.
[0032] Wherein, the comparison circuit includes a comparator, a ninth capacitor, and a power bias circuit for biasing a power supply voltage.
[0033] The first input end of the comparator is connected to the output end of the second-stage amplifier, the second input end is connected to the power bias circuit, the output end is connected to the main control system, the power supply end of the comparator is connected to one end of the ninth capacitor, and the other end of the ninth capacitor is grounded;
[0034] The power bias circuit includes an adjustment potentiometer, an eleventh resistor, and a tenth capacitor connected in series, the other end of the adjustment potentiometer is connected to the power supply, the sliding end of the adjustment potentiometer is connected to one end of the tenth capacitor and the second input end of the comparator, and the other end of the tenth capacitor is grounded.
[0035] The step of obtaining the volume of consumables to be used for current printing includes:
[0036] Obtain the currently printed layer, and the area and thickness of the key layer in the currently printed layer; determine the volume of the key layer according to the area and thickness of the key layer, and the volume of all the key layers is the volume of the consumables that should be used for the current printing; or,
[0037] Obtain the maximum value of the single layer area in the current printing model, as well as the layer thickness and the number of layers currently printed; determine the volume of the consumables to be used for the current printing according to the layer thickness, the number of layers currently printed and the maximum value of the area; or,
[0038] The average area of a partial layer in the current printing model, as well as the layer thickness and the current number of printed layers are obtained; and the volume of consumables to be used for the current printing is determined based on the layer thickness, the current number of printed layers and the average area of the partial layer, wherein the partial layer includes a continuous layer of the current printing model or an interval sampled layer.
[0039] Wherein, each layer of the currently printed layer is the key layer; or, the layer of the currently printed layer whose area reaches the set condition is the key layer;
[0040] The obtaining of the currently printed layer includes: obtaining current printing data stored in the system, and obtaining the currently printed layer from the current printing data.
[0041] Wherein, the determining of the difference between the volume of the consumables used for the current printing and the volume of the consumables that should be used for the current printing; if the difference exceeds a preset range, outputting a first control signal comprises:
[0042] Calculate the difference between the volume of the consumables used for the current printing and the volume of the consumables that should be used for the current printing; if the volume of the consumables used for the current printing is less than the volume of the consumables that should be used for the current printing, and the difference exceeds a preset range, output an alarm signal and / or a stop printing control signal.
[0043] After obtaining the volume of the consumables used for the current printing and the volume of the consumables that should be used for the current printing, the method further includes:
[0044] Get the density of the consumables used for current printing;
[0045] The mass of the consumables used for the current printing is calculated based on the density of the consumables and the volume of the consumables used for the current printing, and the mass of the consumables to be used for the current printing is calculated based on the density of the consumables and the volume of the consumables to be used for the current printing;
[0046] If it is determined that the difference between the quality of the consumables used for the current printing and the quality of the consumables that should be used for the current printing exceeds a preset difference, an alarm signal and / or a stop printing control signal is output.
[0047] The method further includes: if it is detected that the current printing layer is completed, measuring the total mass of the material box containing the printing consumables, and obtaining the initial mass of the material box containing the printing consumables before printing;
[0048] The mass of the consumables currently used for printing is obtained by subtracting the total mass from the initial mass;
[0049] If it is determined that the difference between the quality of the consumables used for the current printing and the quality of the consumables that should be used for the current printing exceeds a preset difference, an alarm signal and / or a stop printing control signal is output.
[0050] The method further includes: sending the alarm signal to a mobile terminal which is communicatively connected to the main control system of the 3D printer.
[0051] Wherein, the alarm signal includes a serious alarm signal and a non-serious alarm signal, and after determining that the difference between the quality of the consumables used for the current printing and the quality of the consumables to be used for the current printing exceeds a preset difference, the method further includes:
[0052] Determine whether the preset difference is less than a specified value;
[0053] If the preset difference is less than the specified value, the non-serious alarm signal is output, and the non-serious alarm signal is preset to warn that a gap may exist in the printed model and / or a fault may occur in the printed model;
[0054] If the preset difference is not less than the specified value, the serious alarm signal and / or the stop printing control signal is output, and the serious alarm signal is preset to warn that the printed model may not be printed and / or the printed model falls off.
[0055] In one embodiment of the present invention, a 3D printer is provided, comprising:
[0056] A processor and a memory, wherein the memory stores computer executable codes, and the processor is used to execute the computer executable codes to implement any of the above methods.
[0057] The 3D printer further comprises: a material box for accommodating printing consumables, an ultrasonic sensor connected to the main control system, a front-end circuit connected to the ultrasonic receiver, and an analog / digital converter connected to the front-end circuit. The main control system further comprises an oscillator and a timer.
[0058] The oscillator of the main control system is used to generate a first signal and send it to the ultrasonic sensor;
[0059] The ultrasonic sensor is used to send an ultrasonic signal to the surface of the consumables in the material box and receive an ultrasonic echo signal, and send the ultrasonic echo signal to the front circuit;
[0060] The front-end circuit is used to filter and amplify the ultrasonic echo signal, and send the ultrasonic echo signal processed by the front-end circuit to the analog / digital converter;
[0061] The analog / digital converter is used to perform analog / digital conversion on the ultrasonic echo signal to obtain a converted rectangular wave pulse electrical signal, and send the rectangular wave pulse electrical signal to the timer of the main control system;
[0062] The timer of the main control system is used to calculate the time T for sending the first signal to the main control system and receiving the ultrasonic echo signal;
[0063] The processor of the main control system is also used to calculate the ultrasonic transmission distance according to the ultrasonic transmission speed V and the time T of receiving the ultrasonic echo signal to determine the liquid level of the remaining consumables.
[0064] In one embodiment of the present invention, there is also provided a consumables usage control device, comprising a processor and a memory, wherein the memory stores a computer executable code, and the processor is used to execute the computer executable code to implement the above-described method.
[0065] In an embodiment of the present invention, by obtaining the amount of consumables used for the current printing and the amount of consumables that should be used for the current printing, and judging the difference between the amount of consumables used for the current printing and the amount of consumables that should be used, it is possible to determine whether printing has failed based on the difference value, and the printing status can be simply and reliably sensed, and the user can be notified when a printing failure is sensed. That is, the user can be quickly informed based on timely detection of faults occurring during printing, so that the user can react quickly, thus avoiding empty printing or wasting consumables. In particular, for models that take too long to print, the efficiency of successful printing is effectively improved, and the user's printing experience is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0067] Figure 1 A schematic diagram of a process flow of a method for fault detection in 3D printing according to an embodiment of the present invention is shown;
[0068] Figure 2 A schematic diagram showing a 3D printing process according to an embodiment of the present invention is shown;
[0069] Figure 3 A schematic diagram showing a 3D printing process according to another embodiment of the present invention;
[0070] Figure 4 A schematic diagram of an ultrasonic emission driving circuit according to an embodiment of the present invention is shown;
[0071] Figure 5 A schematic diagram of an ultrasonic receiving circuit according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0072] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.
[0073] To solve the above technical problems, an embodiment of the present invention provides a method for fault detection in 3D printing. In an embodiment of the method for fault detection in 3D printing of the present invention, the method is applied to a light-curing 3D printer. A light-curing 3D printer usually uses photosensitive resin as consumables for curing printing. Figure 1 FIG. 1 is a flow chart of a method for fault detection in 3D printing according to an embodiment of the present invention. Figure 1 , the fault detection method in 3D printing includes steps S102 to S106.
[0074] Step S102, obtaining the volume of consumables used in the current printing and the volume of consumables that should be used in the current printing.
[0075] Step S104, determining the difference between the volume of the consumables used in the current printing and the volume of the consumables that should be used in the current printing.
[0076] Step S106: if the difference exceeds a preset range, output a first control signal.
[0077] In one embodiment of the present invention, the 3D printer is started before obtaining the volume of consumables used in the current printing and the volume of consumables that should be used in the current printing, and the model to be printed is determined through the graphical user interface of the 3D printer or remote data and command transmission, and then the 3D printing is triggered to start.
[0078] In step S102, in obtaining the volume of consumables used in the current printing and the volume of consumables to be used in the current printing, the current printing refers to the process from the triggering of the 3D printer to the current moment. Of course, this is not the only case. For continuous printing, it can also be calculated from the start printing time of the first model of the continuous printing to the current moment.
[0079] The volume of the consumables used in the current printing can be calculated in the following way: obtain a liquid level detection signal, which is used to indicate the liquid level of the remaining resin in the material box used to hold the resin consumables (for the specific detection process of the remaining resin liquid level, please refer to the embodiment below), and the volume of the remaining resin can be calculated by the cross-sectional area and liquid level of the material box. Because the cross-sectional area of the material box is fixed, when the height of the resin liquid level is known, the remaining volume of the resin can be calculated as: V a =h a s a , Va represents the remaining volume of resin, h a Indicates the current resin liquid level, s a In some other embodiments, since the cross-sectional areas of the material box at different heights are different, the corresponding remaining volume of the resin can be obtained by measuring different liquid level heights. After the liquid level information is obtained in the above manner, the corresponding remaining volume of the resin can be obtained.
[0080] Then, the volume of the used consumables is obtained by subtracting the volume of the remaining consumables from the total volume of the resin consumables. The total volume can be obtained through a nominal value or a flow meter; specifically, in one case, a specific volume of resin is poured into the material box, and the user then inputs the specific value of the specific volume into the 3D printer through the touch screen, and then the specific volume is the total volume; a more common case is that a whole bottle (for example, 500ml) of resin is poured into the material box, and the 500ml resin volume is input into the 3D printer at the same time. In some embodiments, the user can obtain the total volume through the scale value in the material box and then input it into the 3D printer.
[0081] Another possible situation is that when the 3D printer has an automatic feeding mechanism, a flow meter is usually provided in the feeding channel. Then the volume of the resin added from the material bottle to the material box can be calculated by the flow meter, and the volume can be sent to the 3D printer through a circuit connection or a wireless connection, and then combined with the above user input data, the total volume can be obtained after processing.
[0082] In one embodiment of the present invention, a sensor may be used to collect a liquid level signal (ie, a liquid level detection signal) of the resin consumable. The sensor may be any one of an ultrasonic sensor, a photoelectric sensor, a float sensor, and the like.
[0083] The ultrasonic sensor can be a small high-precision ultrasonic sensor. By driving two small high-precision ultrasonic probes, the transmitting probe emits ultrasonic waves, which return to the ultrasonic receiving probe after passing through the resin liquid surface. The resin liquid level height can be obtained by reading and processing the changing ultrasonic signal.
[0084] When using a photoelectric sensor, the photoelectric sensor can be installed above the resin. Using the principle of optical refraction and reflection, the light emitted by the light-emitting diode is directly reflected back to the receiver through the lens. The receiver receives the light signal and converts it into an electrical signal that can be processed by the system. The height of the resin liquid level is fed back according to the change of the signal.
[0085] When a float sensor is used, a liquid level detection device can be formed by using a float and a scale. When the liquid level drops, the height of the float decreases accordingly. By reading the scale changes of the scale, the height changes of the resin liquid level can be fed back.
[0086] In one embodiment of the present invention, the 3D printer includes a printing platform and a material box. The printing platform is used to extend into the material box and carry the printing model. The material box is used to contain printing consumables. Before obtaining the liquid level detection signal, it is determined whether the currently printed layer has been completed. If the currently printed layer has been completed, it can be detected whether the printing platform has risen to a preset height. The preset height is higher than the height of the consumable liquid level. If it is detected that the printing platform has risen to the preset height, prepare to obtain the liquid level detection signal.
[0087] In this embodiment, the preset height can be a height equal to the highest position of the material box, or a height higher than the highest position of the material box, or it can be obtained by subtracting a preset value from the liquid level height obtained after the last printing layer was printed. The preset value can be converted into a liquid volume based on the volume of the consumables to be used for the current printing, that is, the volume value of the consumables to be used for the previous printing is multiplied by a coefficient, which represents the volume change coefficient of the resin of this material when it is converted between solid and liquid states, and then the preset value is calculated based on the bottom area of the material box.
[0088] This embodiment can effectively ensure that the printing platform is completely separated from the printing consumables in the material box by detecting whether the printing platform rises to a preset height, thereby effectively ensuring the accuracy of liquid level detection.
[0089] See also Figure 2 In an embodiment of the present invention, the 3D printer further includes a main control system, an ultrasonic sensor connected to the main control system, a front circuit connected to the ultrasonic sensor, and an analog / digital converter connected to the front circuit. The ultrasonic sensor is located at the top of the material box. The process of obtaining the liquid level detection signal is as follows:
[0090] The main control system generates a first signal and sends it to the ultrasonic sensor. The ultrasonic sensor sends an ultrasonic signal to the surface of the consumables in the material box and receives an ultrasonic echo signal, that is, the ultrasonic sensor collects the liquid level height of the resin material in the material box. Then the ultrasonic sensor can send the ultrasonic echo signal to the front circuit, and the ultrasonic echo signal can be filtered, amplified, etc. by the front circuit. The ultrasonic echo signal processed by the front circuit can also be sent to the ADC (Analog-to-Digital Converter) circuit to convert it into a rectangular wave pulse electrical signal, and then the electrical signal is processed by the main control system of the 3D printer, and the liquid level of the remaining resin calculated according to the processing result and the volume of the remaining consumables are calculated in combination with the cross-sectional area of the material box. Of course, the main control system is also used to calculate the volume of the consumables used for the current printing, the volume of the consumables that should be used for the current printing, and compare and analyze the two, and can also warn of the failure of printing, and control the printing to stop printing. The ultrasonic sensor used in this embodiment can adopt a 40KHz high-precision ultrasonic sensor. The first signal of this embodiment can be a square wave signal generated by the oscillator in the main control system.
[0091] See also Figure 3 ,The following takes the ultrasonic sensor detecting the liquid level of the remaining resin in the material box as an example to specifically introduce the residual resin level detection process.
[0092] The ultrasonic sensor includes an ultrasonic drive circuit, an ultrasonic transmitter and an ultrasonic receiver. For example, the oscillator of the main control system generates a 40KHz square wave signal A_CLK to drive the ultrasonic transmitter (i.e., the transmitting sensor) through the ultrasonic drive circuit. The ultrasonic transmitter transmits the ultrasonic wave to the resin liquid surface in the material box and then returns it. The ultrasonic receiver (i.e., the receiving sensor) receives the echo of the ultrasonic wave, that is, the ultrasonic receiver receives the ultrasonic echo signal. The ultrasonic sensor can be located at the top of the material box.
[0093] The preamplifier circuit includes a secondary amplifier circuit for filtering and amplifying the ultrasonic echo signal, and the analog / digital converter includes a comparison circuit, which is used to perform analog / digital conversion on the ultrasonic echo signal after filtering and secondary amplification. The timer of the main control system can be defined as a 40KHz crystal frequency timer with a measurement accuracy of 25 microseconds. The ultrasonic echo signal received by the ultrasonic receiver can be amplified by a secondary amplifier circuit (such as a secondary frequency selective amplifier) and sent to the analog / digital converter. The echo signal is shaped by the analog / digital converter and sent to the timer of the main control system to trigger the timer for timing. The timing value captured by the timer is the time T when the square wave signal sent by the main control system reaches the target (i.e., the resin liquid level) and then returns to the main control system. Combined with the speed V of the ultrasonic pulse, the ultrasonic signal transmission distance S can be calculated as S=V*T / 2. Then, the liquid level of the remaining resin can be calculated by subtracting the ultrasonic signal transmission distance S from the height of the material box.
[0094] For ultrasonic sensors to transmit and receive ultrasonic waves, the following Figure 4 and Figure 5 The circuit diagram is used as an example to introduce it.
[0095] Figure 4 The circuit diagram of the ultrasonic drive circuit is shown. Since the power supply of the main control system is 3.3V, the logic level between the output of the main control system and the driver will not match. Therefore, the embodiment of the present invention sets a voltage conversion unit to convert the power supply of the main control system. The voltage conversion unit includes a first resistor R1, a second resistor R2, a third resistor R3, and a bipolar diode Q2. One end of the first resistor R1 is connected to the main control system. In some embodiments, one end of the first resistor R1 can be connected to the oscillator of the main control system, and the other end is connected to the second resistor R2, and the other end of the second resistor R2 is grounded. The base of the bipolar diode Q2 is connected to the connection point of the first resistor R1 and the second resistor R2, the collector is connected to one end of the third resistor R3, and the emitter is grounded. The other end of the third resistor R3 is connected to the power supply.
[0096] For example, during the operation of the voltage conversion unit, the oscillator of the main control system generates a first signal, wherein the first signal may be a square wave signal, a sinusoidal signal, etc. For ease of description, each embodiment is described with the first signal being a square wave signal. When the square wave signal A_CLK is at a high level, the voltage obtained by dividing the voltage by the first resistor R1 and the second resistor R2 is approximately 1.6v. At this time, the base voltage of the bipolar diode Q2 is approximately 1.6v, and the bipolar diode Q2 is turned on. When the bipolar diode Q2 is turned on, the emitter is grounded, and the voltage of the collector is grounded. When the square wave signal is at a low level, the base voltage of the bipolar diode Q2 is 0, the bipolar diode Q2 is cut off, and the collector voltage is 5v, so that voltage conversion can be achieved through the bipolar diode Q2.
[0097] In the method of the embodiment of the present invention, a driving unit is also provided to drive the ultrasonic transmitter TX1, and the driving unit includes a first NOT gate U1-D, a first driving path, and a second driving path. In this embodiment, after the bipolar diode Q2 is turned on, the collector voltage is 0, so the input of the first NOT gate U1-D is 0, and after the bipolar diode Q2 is turned off, the collector voltage is 5v, and the output voltage of the first NOT gate U1-D is just opposite to the input of the first NOT gate U1-D.
[0098] This embodiment uses two gate drivers to ensure that sufficient driving current is provided. The first driving path includes a second NOT gate U1-A, a third NOT gate U1-C, a fourth NOT gate U1-B connected in parallel with the third NOT gate U1-C, a second capacitor C2, and a first capacitor C1 for decoupling and power supply filtering. The first NOT gate U1-D input terminal 9 is connected to the collector of the bipolar diode Q2, and the output terminal 10 is connected to the second NOT gate U1-A input terminal. The second NOT gate U1-A output terminal 6 is connected to the parallel point of the third NOT gate U1-C input terminal 5 and the fourth NOT gate U1-B input terminal 3, the second NOT gate U1-A is connected to the power supply terminal and is also connected to one end of the first capacitor C1, and the other end of the first capacitor C1 is grounded. The parallel point of the third NOT gate U1-C output terminal 4 and the fourth NOT gate U1-B output terminal 2 is connected to one end of the second capacitor C2, and the other end of the second capacitor C2 is connected to the ultrasonic transmitter TX1 input terminal 1.
[0099] During the operation of the first driving path, the second NOT gate U1-A reverses the output of the first NOT gate U1-D again, and the first capacitor C1 can achieve decoupling and power supply filtering, and then the output of the second NOT gate U1-A is reversed again through the third NOT gate U1-C and the fourth NOT gate U1-B connected in parallel, thereby achieving three-level reversal. Since the bipolar diode Q2 has also reversed the level once before, the input level of the square wave signal A_CLK produced by the oscillator is the same as the level after passing through the first driving path. This embodiment sets the third NOT gate U1-C and the fourth NOT gate U1-B in parallel to effectively improve the load capacity of the ultrasonic drive circuit. This embodiment also blocks the DC path to the ultrasonic transmitter TX1 by setting the second capacitor C2, so that the sine wave signal passes and is emitted.
[0100] The second driving path of the embodiment of the present invention includes a fifth NOT gate U1-E, a sixth NOT gate U1-F connected in parallel with the fifth NOT gate U1-E, and a third capacitor C3. The output terminal 10 of the first NOT gate U1-D is connected to the parallel point of the input terminal 11 of the fifth NOT gate U1-E and the input terminal 14 of the sixth NOT gate U1-F, the connection point of the output terminal 12 of the fifth NOT gate U1-E and the output terminal 15 of the sixth NOT gate U1-F is connected to one end of the third capacitor C3, and the other end of the third capacitor C3 is connected to the other input terminal 2 of the ultrasonic transmitter TX1.
[0101] During the operation of the second driving path, the fifth NOT gate U1-E and the sixth NOT gate U1-F in parallel reverse the output level of the first NOT gate U1-D again, so that after two level reversals, since the bipolar diode Q2 has also reversed the level once before, the input level of the square wave signal A_CLK produced by the oscillator is opposite to the level after passing through the first driving path. The fifth NOT gate U1-E and the sixth NOT gate U1-F in parallel in this embodiment can effectively improve the load capacity of the ultrasonic drive circuit. This embodiment also blocks the DC path to the ultrasonic transmitter TX1 by setting a third capacitor C3, so that the above-mentioned alternating signal passes and is emitted.
[0102] The input level of the square wave signal A_CLK generated by the oscillator is the same as the level after passing through the first driving path, and the input level of the square wave signal A_CLK generated by the oscillator is opposite to the level after passing through the first driving path. Therefore, the embodiment of the present invention can input two opposite high and low levels to the ultrasonic transmitter TX1 by setting the first driving path and the second driving path.
[0103] Figure 5 The schematic diagram of the ultrasonic receiver, the preamplifier circuit and the analog / digital converter is shown. Since the sine wave electrical signal after the ultrasonic receiver conversion is very weak, it can be amplified by the secondary amplifier circuit in the preamplifier circuit. Moreover, the sine wave signal cannot be directly received by the main control system, so an analog / digital converter is also required to perform waveform conversion. The circuit can use a comparator with hysteresis characteristics to perform waveform conversion on the sine wave signal after frequency selection amplification, realize A / D conversion, and output rectangular wave pulses to meet the requirements of the input main control system processing. The signal processing can be performed by a single chip microcomputer in the main control system of this embodiment. This circuit has a strong anti-interference ability during the waveform conversion process, which can effectively prevent noise from invading the input signal.
[0104] The front circuit of the embodiment of the present invention may also include a DC bias circuit, which includes a sliding resistor R-1 and a fourth resistor R4 connected in series, the series connection point of the sliding resistor R-1 and the fourth resistor R4 is connected to the output terminal 1 of the ultrasonic receiver RX1, the other end of the sliding resistor R-1 is connected to the power supply, and the other end of the fourth resistor R4 is grounded. For example, the power supply reference voltage of the DC bias circuit is 5v, the sliding resistor R-1 is an adjustable resistor, and by adjusting the resistance value of the sliding resistor R-1, the voltage of the output terminal 1 of the ultrasonic receiver RX1 can be 2.5v.
[0105] In one embodiment of the present invention, the first-stage amplifier circuit in the two-stage amplifier circuit includes a first-stage amplifier U3-A, a fourth capacitor C4 for decoupling and power supply filtering, a fifth resistor R5, a sixth resistor R6, and a first feedback network. The positive input end of the first-stage amplifier U3-A is connected to one end of the fifth resistor R5, and the other end of the fifth resistor R5 is connected to the output end 1 of the ultrasonic receiver RX1. The negative input end of the first-stage amplifier U3-A is connected to one end of the sixth resistor R6, and the other end of the sixth resistor R6 is connected to the output end 2 of the ultrasonic receiver RX1. One end of the fourth capacitor C4 is connected to one end of the first-stage amplifier U3-A connected to the power supply, and the other end is connected to the power supply end of the first-stage amplifier U3-A. The first feedback network includes a seventh resistor R7 and a fifth capacitor C5 connected in parallel, one end of which is connected in parallel to the negative input end of the first-stage amplifier U3-A, and the other end is connected to the output end of the first-stage amplifier U3-A.
[0106] Since the voltage at the output terminal 1 of the ultrasonic receiver RX1 is 2.5v, the input voltage at the positive input terminal of the first stage amplifier U3-A is 2.5v, and the 2.5v voltage is amplified by the first stage amplifier U3-A. The seventh resistor R7 and the fifth capacitor C5 connected in parallel form a first feedback network for feeding back voltage to the first stage amplifier U3-A. The fourth capacitor C4 is used for decoupling and power supply filtering.
[0107] The second-stage amplifier circuit in the two-stage amplifier circuit of this embodiment includes a second-stage amplifier U3-B, a sixth capacitor C6, a seventh capacitor C7, an eighth resistor R8, a ninth resistor R9, and a second feedback network. The positive input terminal of the first-stage amplifier U3-A is connected to one end of the eighth resistor R8, the other end of the eighth resistor R8 is connected to the sixth capacitor C6, the other end of the sixth capacitor C6 is grounded, the negative input terminal of the second-stage amplifier U3-B is connected to one end of the ninth resistor R9, the other end of the ninth resistor R9 is connected to one end of the seventh capacitor C7, and the other end of the seventh capacitor C7 is connected to the output terminal 1 of the first-stage amplifier U3-A. The second feedback network includes the tenth resistor R10 and the eighth capacitor C8 connected in parallel, one end of which is connected in parallel to the negative input terminal of the second-stage amplifier U3-B, and the other end is connected to the output terminal of the second-stage amplifier U3-B.
[0108] The seventh capacitor C7 of this embodiment is used to filter the output of the first-stage amplifier U3-A to remove DC noise, and then the second-stage amplifier U3-B amplifies the filtered signal. The positive input terminal of the second-stage amplifier U3-B is connected to the output terminal 1 of the first-stage amplifier U3-A through the eighth resistor R8. Since the voltage of the output terminal 1 of the ultrasonic receiver RX1 is 2.5v, the positive input terminal voltage of the second-stage amplifier U3-B is 2.5v. The tenth resistor R10 and the eighth capacitor C8 connected in parallel form a second feedback network for feeding back voltage to the second-stage amplifier U3-B.
[0109] In one embodiment of the present invention, the comparison circuit includes a comparator U5, a ninth capacitor C9, and a power bias circuit for biasing a power supply voltage.
[0110] The positive input end of the comparator U5 is connected to the output end of the second-stage amplifier U3-B, the negative input end is connected to the power bias circuit, the output end is connected to the main control system, the power supply end of the comparator U5 is connected to one end of the ninth capacitor C9, the other end of the ninth capacitor C9 is grounded, and the ninth capacitor C9 is used for decoupling and power supply filtering. The power bias circuit includes an adjustment potentiometer Rx2, an eleventh resistor R11, and a tenth capacitor C10 connected in series, the other end of the adjustment potentiometer Rx2 is connected to the power supply, the adjustment end of the adjustment potentiometer Rx2 is connected to one end of the tenth capacitor C10 and the negative input end of the comparator U5, and the other end of the tenth capacitor C10 is grounded.
[0111] The voltage input to the positive input terminal of the comparator U5 can be compared with the bias voltage of the power bias circuit connected to the negative input terminal. By adjusting the resistance value of the potentiometer Rx2, a suitable comparison reference voltage can be selected to make the measurement more accurate and stable. By using the voltage division of the adjustment potentiometer Rx2 and the eleventh resistor R11 in the power bias circuit as the comparison reference, the voltage signal at the output terminal of the comparator U5 can be increased by 2.5v again, and the output terminal of the comparator U5 outputs high and low level signals, so that the sine wave signal after frequency selection amplification can be A / D converted and a rectangular wave pulse can be output to the main control system.
[0112] As for the volume of consumables that should be used for the current printing, it can be calculated through the internal data of the 3D printer. Because when the 3D printer prints the model, there is data that can be read about which layer it has printed. In addition, the thickness of each layer printed also has data (for example, the layer thickness set when the model is sliced, and the layer thickness is read by the 3D printer along with the slice file), and the area of each layer can also be calculated (the area here can refer to the area of the two-dimensional image of an actual slice, or it can also refer to the area of the slice layer with the largest area in the entire model, that is, the area of the largest slice layer is used as the standard for calculation to reduce the amount of calculation; and for the calculation of the specific area, the area can be calculated by judging how many pixels are covered by the two-dimensional image). With the layer thickness and area, the volume of the layer can naturally be calculated, so as to obtain the amount of consumables that should be consumed for each layer. The amount that should be consumed for each layer is the amount of consumables that should be used for the current printing, that is, the volume.
[0113] Specifically, the formula V n =h n s n Calculate the volume of consumables used in any layer, where V n Indicates the volume of consumables used to print the nth layer, h n Indicates the thickness of the nth layer, sn Represents the area of the nth layer. The resin consumed by printing to the nth layer (i.e. the volume of consumables that should be used for the current printing) is V t =V1+V2+···+V n , print layer thickness h n You can make initial settings, the area of the nth layer is s n It can be calculated by the slicing software of a 3D printer or other host computer.
[0114] In the embodiment of the present invention, due to the ever-changing shape of the model, the pattern of each layer sliced out is even more diverse. In order to improve the calculation speed, it is not necessary to calculate the volume to be consumed for each layer, because the area of the pattern of some layers may be very small, or even negligible. In this embodiment, the layer whose area reaches the preset condition in the currently printed layer can be selected as the key layer, so as to determine the volume of the key layer according to the area and thickness of the key layer. Therefore, when calculating the volume to be consumed, the area of each layer is first judged. If the area is less than the preset value, the contribution of the layer (which can be called a small micro layer, and the layer outside the small micro layer can be called a key layer, that is, the layer with an area greater than the preset value) to the volume of the consumables to be used for the current printing is ignored, that is, only the contribution of the key layer to the volume of the consumables to be used for the current printing is calculated. Of course, in another embodiment, for the case where the 3D printing accuracy requirements are relatively high, each layer of the current printing layer can also be regarded as a key layer. At this time, it is necessary to calculate the volume to be consumed according to the area and thickness of each layer.
[0115] In other cases, in order to further reduce the amount of calculation, it is also possible to: take the layer with the largest area in the entire model as the standard layer (or the layer with the largest area in the current printing layer as the standard layer), and then roughly get the volume of consumables that should be used for the current printing based on the layer thickness and the number of layers. Although there are errors, they are completely acceptable; or, it is also possible to take the average area of some layers in the entire model (for example, the first 200 layers, or sampling at intervals of one layer, or sampling at intervals of multiple layers, etc.) as the standard layer area, and then roughly get the volume of consumables that should be used for the current printing based on the layer thickness, the current number of printed layers and the standard layer area.
[0116] Referring to step S106 above, when the difference between the volume of consumables used for the current printing and the volume of consumables that should be used for the current printing is judged to be beyond the preset range, a first control signal is output. The difference here refers to the difference between the actual consumption of consumables and the amount that should be consumed. Normally, if printing fails, the actual consumption should be less than the amount that should be consumed. Therefore, the difference is obtained by subtracting the actual consumption from the amount that should be consumed, and it is determined whether the difference exceeds the preset range, such as 50ml or 100ml. If exceeded, a first control signal is output, and the first control signal can be an alarm signal, or a stop printing control signal, or both.
[0117] In the embodiment of the present invention, it can be understood that the volume of the resin may change after curing, that is, the volume of the same resin before and after curing is different. In order to more accurately calculate whether there is a fault in the printing process, more accurate calculation of the volume is a feasible solution. That is to say, when calculating the volume difference in each of the above schemes, the calculation of the volume of the consumables to be used is obviously to calculate the volume of the resin after curing, while the volume of the consumables used is measured in the liquid state; therefore, when calculating the difference, the volume of the consumables to be used is converted into the volume in the liquid state, that is, multiplying the original calculated value by a coefficient, which represents the volume change coefficient of the resin of this material when it is converted between solid and liquid states. In this way, the volume difference result obtained will be more accurate.
[0118] After obtaining the volume of consumables used for the current printing and the volume of consumables that should be used for the current printing, the embodiment of the present invention can further calculate the mass of the consumables used for the current printing and the mass of the consumables that should be used for the current printing, thereby determining whether the printing has failed by comparing the difference between the two masses.
[0119] Specifically, first, the density of the consumables used for current printing is obtained. For example, the density of the consumables is ρ.
[0120] Then, the mass of the consumables used for the current printing is calculated based on the density of the consumables and the volume of the consumables used for the current printing, and the mass of the consumables to be used for the current printing is calculated based on the density of the consumables and the volume of the consumables to be used for the current printing. t =ρV t The mass of the consumables that should be used for the current printing is ρ multiplied by the volume of the consumables that should be used for the current printing.
[0121] Furthermore, it is determined that the difference between the quality of the consumables used for the current printing and the quality of the consumables that should be used for the current printing exceeds a preset difference. If the calculated difference exceeds the preset difference, an alarm signal can be output, a stop printing control signal can be output, or an alarm signal and a printing control signal can be output at the same time.
[0122] Since the volume of printing consumables (such as resin) may change after curing, the volume of the same printing consumables (such as resin) before and after curing may be different. For printing models with higher precision requirements, by calculating the mass of the consumables used in the current printing and the mass of the consumables that should be used in the current printing, and comparing the difference between the two masses to determine whether the printing has failed, it can effectively avoid the situation where the volume of the printing consumables may change after curing, making the comparison result more accurate.
[0123] In another embodiment of the present invention, if it is detected that the current printing layer is completed, the total mass of the material box containing the printing consumables can be directly measured, and the initial mass of the material box containing the printing consumables before printing can be obtained. The initial mass can be measured for the mass of the material box containing the printing consumables before printing the model.
[0124] Thus, the mass of the consumables used for the current printing is obtained by subtracting the total mass from the initial mass. If it is determined that the difference between the mass of the consumables used for the current printing and the mass of the consumables to be used for the current printing exceeds a preset difference, an alarm signal and / or a stop printing control signal is output.
[0125] This embodiment can also weigh the material box containing the printing consumables by arranging a gravity sensor under the material box, which is not specifically limited in this embodiment of the present invention.
[0126] The alarm signal of the embodiment of the present invention may be a sound alarm signal, a text alarm signal, a preset number alarm signal, etc. The stop printing control signal may directly control the 3D printer to stop printing, so as to stop wasting printing consumables in time and avoid more serious printing errors.
[0127] Continue to see Figure 2 In an optional embodiment, after the main control system outputs an alarm signal and / or a stop printing control signal, the alarm signal can also be sent to a client wirelessly connected to the main control system of the 3D printer. When the user learns of the printing alarm signal remotely through the client, the stop printing instruction can be triggered through the client, so that the client feeds back the received user-triggered stop printing instruction to the main control system of the 3D printer.
[0128] In another optional embodiment, after outputting the alarm signal and / or the stop printing control signal, the alarm signal can also be sent to a mobile terminal that is in communication with the main control system of the 3D printer, so that the user can timely learn about the current printing status through the mobile terminal. The mobile terminal here can be a mobile phone, a tablet computer, a smart watch, etc. For example, the main control system sends a text alarm signal to the user's mobile phone in the form of a text message, and at least one phone number can be pre-set in the main control system. When a printing failure occurs, the text alarm signal can be sent to the mobile phone corresponding to the pre-set phone number in the form of a text message, and the user can timely learn about the printing situation.
[0129] By adopting the embodiment of the present invention, even if the user is not currently near the printer, for example, the user needs to go out for something temporarily, if the model is halfway printed at this time, the user can still leave the site without worry. When problems occur during the printing process, the user can also remotely obtain information about the printing failure, so as to take corresponding actions to reduce losses.
[0130] In one embodiment of the present invention, the alarm signal may include a serious alarm signal and a non-serious alarm signal. After determining that the difference between the quality of the consumables used in the current printing and the quality of the consumables that should be used in the current printing exceeds a preset difference, the severity of the failure may be further determined by analyzing the size of the difference. Normally, if the difference between the quality of the consumables used in the current printing and the quality of the consumables that should be used in the current printing is small, it may indicate that the printing failure is not very serious. If the difference between the quality of the consumables used in the current printing and the quality of the consumables that should be used in the current printing is large, it may indicate that the printing failure is more serious. Differentiating the failure by different types of alarm signals may allow users to more intuitively understand the possible causes of the printing failure, which is helpful for troubleshooting 3D printer problems.
[0131] Specifically, after determining that the difference between the quality of the consumables used for the current printing and the quality of the consumables that should be used for the current printing exceeds the preset difference, determine whether the preset difference is less than a specified value. If the preset difference is less than the specified value, output a non-serious alarm signal, which is pre-set to warn of at least one less serious failure reason, such as a possible gap in the printed model or a possible fault in the printed model. If it is determined that the preset difference is not less than the specified value, output a serious alarm signal or a stop printing control signal, which is pre-set to warn of at least one more serious failure reason, such as a possible failure to print the printed model or a fall-off of the printed model.
[0132] The serious alarm signal and non-serious alarm signal in the embodiment of the present invention can be different sound signals, different text signals, or different numbers. Of course, the serious alarm signal can also be a combination of a text signal and a sound signal, and the non-serious alarm signal can be only a text signal. The embodiment of the present invention does not limit the type of alarm signal.
[0133] Therefore, by adopting the embodiment of the present invention, a further detailed analysis is performed on the difference between the quality of the consumables used for the current printing and the quality of the consumables that should be used for the current printing, so as to set the issued alarm signals accordingly, thereby providing users with content guidance on fault detection, helping users analyze the causes of printing faults, narrowing the scope of users' fault analysis, and improving users' experience in using 3D printers.
[0134] In an embodiment of a 3D printer of the present invention, it can be an LCD light-curing printer, a DLP light-curing printer, or a laser-curing printer. Regardless of the type of printer, it generally includes a circuit board, on which a processor and a memory are provided, the memory stores a computer executable code, and the processor is used to execute the computer executable code to implement the method described in any of the above technical solutions.
[0135] The 3D printer further includes: a material box for accommodating printing consumables, an ultrasonic sensor connected to the main control system, a front-end circuit connected to the ultrasonic receiver, and an analog / digital converter connected to the front-end circuit. The main control system further includes an oscillator and a timer.
[0136] The oscillator of the main control system is used to generate a square wave signal and send it to the ultrasonic sensor;
[0137] The ultrasonic sensor is used to send an ultrasonic signal to the surface of the consumables in the material box and receive an ultrasonic echo signal, and send the ultrasonic echo signal to the front circuit;
[0138] The front-end circuit is used to filter and amplify the ultrasonic echo signal, and send the ultrasonic echo signal processed by the front-end circuit to the analog / digital converter;
[0139] The analog / digital converter is used to perform analog / digital conversion on the ultrasonic echo signal to obtain a converted rectangular wave pulse electrical signal, and send the rectangular wave pulse electrical signal to the timer of the main control system;
[0140] The timer of the main control system is used to calculate the time T for sending a square wave signal to the main control system and receiving an ultrasonic echo signal;
[0141] The processor of the main control system is used to calculate the ultrasonic transmission distance S=V*T / 2 according to the ultrasonic transmission speed V, and calculate the liquid level of the remaining consumables by subtracting the ultrasonic transmission distance from the material box height.
[0142] In an embodiment of a consumables usage control device of the present invention, it can be a device for automatic feeding in a photocuring printer, which itself can include a circuit module, and the circuit module includes a processor and a memory, the memory stores a computer executable code, and the processor is used to execute the computer executable code to implement the method described in any of the above technical solutions.
[0143] The present invention provides 1. a method for detecting faults in 3D printing, applied to a 3D printer, comprising:
[0144] Get the volume of consumables used in the current printing and the volume of consumables that should be used in the current printing;
[0145] Determining the difference between the volume of the consumables used for the current printing and the volume of the consumables that should be used for the current printing;
[0146] If the difference exceeds a preset range, a first control signal is output.
[0147] 2. According to the method described in 1, obtaining the volume of the consumables currently used for printing comprises:
[0148] Acquire a liquid level detection signal, and determine the remaining consumable volume according to the liquid level detection signal; determine the volume of the used consumable according to the difference between the total volume and the remaining consumable volume;
[0149] Wherein, the total volume is obtained by a nominal value or a flow meter.
[0150] 3. According to the method described in 2, the 3D printer includes a printing platform and a material box, the printing platform is used to extend into the material box and carry the printing model, and the material box is used to hold printing consumables. Before obtaining the liquid level detection signal, it also includes:
[0151] If the current printing layer has been printed, it is detected whether the printing platform rises to a preset height, and the preset height is higher than the height of the consumable liquid level;
[0152] If it is detected that the printing platform rises to the preset height, prepare to obtain a liquid level detection signal.
[0153] 4. According to the method described in 3, the 3D printer further includes a main control system, an ultrasonic sensor connected to the main control system, a front-end circuit connected to the ultrasonic sensor, and an analog / digital converter connected to the front-end circuit, and obtaining the liquid level detection signal includes:
[0154] The main control system generates a first signal and sends it to the ultrasonic sensor;
[0155] The ultrasonic sensor sends an ultrasonic signal to the surface of the consumables in the material box and receives an ultrasonic echo signal;
[0156] The ultrasonic sensor sends the ultrasonic echo signal to the front circuit, and the front circuit filters and amplifies the ultrasonic echo signal;
[0157] Sending the ultrasonic echo signal processed by the front-end circuit to the analog / digital converter for analog / digital conversion to obtain a rectangular wave pulse electrical signal, and sending the rectangular wave pulse electrical signal to the timer of the main control system;
[0158] The timer of the main control system calculates the time T for sending the first signal to the main control system and receiving the ultrasonic echo signal;
[0159] The main control system calculates the ultrasonic transmission distance according to the ultrasonic transmission speed V and the time T for receiving the ultrasonic echo signal to determine the liquid level of the remaining consumables.
[0160] 5. According to the method described in 4, the ultrasonic sensor comprises: an ultrasonic driving circuit, an ultrasonic transmitter connected to the ultrasonic driving circuit, and an ultrasonic receiver, wherein the ultrasonic driving circuit is used to drive the ultrasonic transmitter to transmit an ultrasonic signal to the surface of the consumables in the material box according to the first signal, and the ultrasonic receiver is used to receive the ultrasonic echo signal returned from the surface of the consumables;
[0161] The preamplifier circuit includes a secondary amplifier circuit and a DC bias circuit for filtering and amplifying ultrasonic echo signals;
[0162] The analog / digital converter comprises a comparison circuit and a power bias circuit. The comparison circuit is used for performing analog / digital conversion on the ultrasonic echo signal after filtering and secondary amplification.
[0163] 6. According to the method described in 5, the ultrasonic driving circuit includes a voltage conversion unit for converting the voltage of the power supply of the main control system and a driving unit for driving the ultrasonic transmitter, wherein:
[0164] The voltage conversion unit includes a first resistor, a second resistor, a third resistor, and a bipolar diode; one end of the first resistor is connected to the main control system, the other end is connected to the second resistor, and the other end of the second resistor is grounded; the base of the bipolar diode is connected to the connection point of the first resistor and the second resistor, the collector is connected to one end of the third resistor, and the emitter is grounded; the other end of the third resistor is connected to the power supply;
[0165] The driving unit includes a first NOT gate, a first driving path, and a second driving path, wherein the first driving path includes a second NOT gate, a third NOT gate, a fourth NOT gate connected in parallel with the third NOT gate, a second capacitor, and a first capacitor for decoupling and power supply filtering; the first NOT gate input end is connected to the collector of the bipolar diode, and the output end is connected to the second NOT gate input end; the second NOT gate output end is connected to the parallel point of the third NOT gate and the fourth NOT gate input ends, the second NOT gate is connected to the power supply end and is also connected to one end of the first capacitor, and the other end of the first capacitor is grounded; the parallel point of the third NOT gate and the fourth NOT gate output ends is connected to one end of the second capacitor, and the other end of the second capacitor is connected to an input end of the ultrasonic transmitter;
[0166] The second driving path includes a fifth NOT gate, a sixth NOT gate connected in parallel with the fifth NOT gate, and a third capacitor; the output end of the first NOT gate is connected to the parallel point of the fifth NOT gate and the sixth NOT gate input ends, the connection point of the fifth NOT gate and the sixth NOT gate output ends is connected to one end of the third capacitor, and the other end of the third capacitor is connected to the other input end of the ultrasonic transmitter.
[0167] 7. The method according to 5, wherein the DC bias circuit comprises a sliding resistor and a fourth resistor connected in series, the series connection point of the sliding resistor and the fourth resistor is connected to an output end of the ultrasonic receiver, the other end of the sliding resistor is connected to a power supply, and the other end of the fourth resistor is grounded;
[0168] The first-stage amplifier circuit in the two-stage amplifier circuit includes a first-stage amplifier, a fourth capacitor for decoupling and power supply filtering, a fifth resistor, a sixth resistor, and a first feedback network; the first input end of the first-stage amplifier is connected to one end of the fifth resistor, and the other end of the fifth resistor is connected to an output end of the ultrasonic receiver; the second input end of the first-stage amplifier is connected to one end of the sixth resistor, and the other end of the sixth resistor is connected to the other output end of the ultrasonic receiver; one end of the fourth capacitor is connected to one end of the first-stage amplifier connected to the power supply, and the other end is connected to the power supply end of the first-stage amplifier; the first feedback network includes a seventh resistor and a fifth capacitor connected in parallel, one end of which is connected in parallel to the second input end of the first-stage amplifier, and the other end is connected to the output end of the first-stage amplifier;
[0169] The second-stage amplifier circuit in the secondary amplifier circuit includes a second-stage amplifier, a sixth capacitor, a seventh capacitor, an eighth resistor, a ninth resistor, and a second feedback network; the first input end of the first-stage amplifier is connected to one end of the eighth resistor, the other end of the eighth resistor is connected to the sixth capacitor, and the other end of the sixth capacitor is grounded; the second input end of the second-stage amplifier is connected to one end of the ninth resistor, the other end of the ninth resistor is connected to one end of the seventh capacitor, and the other end of the seventh capacitor is connected to the output end of the first-stage amplifier; the second feedback network includes a tenth resistor and an eighth capacitor connected in parallel, one end of which is connected in parallel to the second input end of the second-stage amplifier, and the other end is connected to the output end of the second-stage amplifier.
[0170] 8. The method according to 7, wherein the comparison circuit comprises a comparator, a ninth capacitor, and a power bias circuit for biasing a power supply voltage.
[0171] The first input end of the comparator is connected to the output end of the second-stage amplifier, the second input end is connected to the power bias circuit, the output end is connected to the main control system, the power supply end of the comparator is connected to one end of the ninth capacitor, and the other end of the ninth capacitor is grounded;
[0172] The power bias circuit includes an adjustment potentiometer, an eleventh resistor, and a tenth capacitor connected in series, the other end of the adjustment potentiometer is connected to the power supply, the sliding end of the adjustment potentiometer is connected to one end of the tenth capacitor and the second input end of the comparator, and the other end of the tenth capacitor is grounded.
[0173] 9. According to the method described in 1, obtaining the volume of consumables to be used for current printing includes:
[0174] Obtain the currently printed layer, and the area and thickness of the key layer in the currently printed layer; determine the volume of the key layer according to the area and thickness of the key layer, and the volume of all the key layers is the volume of the consumables that should be used for the current printing; or,
[0175] Obtain the maximum value of the single layer area in the current printing model, as well as the layer thickness and the number of layers currently printed; determine the volume of the consumables to be used for the current printing according to the layer thickness, the number of layers currently printed and the maximum value of the area; or,
[0176] The average area of a partial layer in the current printing model, as well as the layer thickness and the current number of printed layers are obtained; and the volume of consumables to be used for the current printing is determined based on the layer thickness, the current number of printed layers and the average area of the partial layer, wherein the partial layer includes a continuous layer of the current printing model or an interval sampled layer.
[0177] 10. According to the method described in 9, each layer of the currently printed layer is the key layer; or, the layer of the currently printed layer whose area reaches the set condition is the key layer;
[0178] The obtaining of the currently printed layer includes: obtaining current printing data stored in the system, and obtaining the currently printed layer from the current printing data.
[0179] 11. According to the method of 1, the step of determining the difference between the volume of the consumables used for the current printing and the volume of the consumables that should be used for the current printing; if the difference exceeds a preset range, outputting a first control signal comprises:
[0180] Calculate the difference between the volume of the consumables used for the current printing and the volume of the consumables that should be used for the current printing; if the volume of the consumables used for the current printing is less than the volume of the consumables that should be used for the current printing, and the difference exceeds a preset range, output an alarm signal and / or a stop printing control signal.
[0181] 12. The method according to 1, after obtaining the volume of consumables used in the current printing and the volume of consumables to be used in the current printing, further comprises:
[0182] Get the density of the consumables used for current printing;
[0183] The mass of the consumables used for the current printing is calculated based on the density of the consumables and the volume of the consumables used for the current printing, and the mass of the consumables to be used for the current printing is calculated based on the density of the consumables and the volume of the consumables to be used for the current printing;
[0184] If it is determined that the difference between the quality of the consumables used for the current printing and the quality of the consumables that should be used for the current printing exceeds a preset difference, an alarm signal and / or a stop printing control signal is output.
[0185] 13. The method according to item 1, further comprising:
[0186] If it is detected that the current printing layer is completed, the total mass of the material box containing the printing consumables is measured to obtain the initial mass of the material box containing the printing consumables before printing;
[0187] The mass of the consumables currently used for printing is obtained by subtracting the total mass from the initial mass;
[0188] If it is determined that the difference between the quality of the consumables used for the current printing and the quality of the consumables that should be used for the current printing exceeds a preset difference, an alarm signal and / or a stop printing control signal is output.
[0189] 14. The method according to 12 or 13, further comprising:
[0190] The alarm signal is sent to a mobile terminal that is communicatively connected to the main control system of the 3D printer.
[0191] 15. The method according to 12 or 13, wherein the alarm signal includes a serious alarm signal and a non-serious alarm signal, and after determining that the difference between the quality of the consumables used for the current printing and the quality of the consumables to be used for the current printing exceeds a preset difference, the method further comprises:
[0192] Determine whether the preset difference is less than a specified value;
[0193] If the preset difference is less than the specified value, the non-serious alarm signal is output, and the non-serious alarm signal is preset to warn that a gap may exist in the printed model and / or a fault may occur in the printed model;
[0194] If the preset difference is not less than the specified value, the serious alarm signal and / or the stop printing control signal is output, and the serious alarm signal is preset to warn that the printed model may not be printed and / or the printed model falls off.
[0195] 16. A 3D printer, comprising:
[0196] A processor and a memory, wherein the memory stores computer executable codes, and the processor is used to execute the computer executable codes to implement any of the methods described in 1-15 above.
[0197] 17. The 3D printer according to 16, further comprising: a material box for accommodating printing consumables, an ultrasonic sensor connected to the main control system, a front-end circuit connected to the ultrasonic receiver, and an analog / digital converter connected to the front-end circuit, and the main control system further comprises an oscillator and a timer;
[0198] The oscillator of the main control system is used to generate a first signal and send it to the ultrasonic sensor;
[0199] The ultrasonic sensor is used to send an ultrasonic signal to the surface of the consumables in the material box and receive an ultrasonic echo signal, and send the ultrasonic echo signal to the front circuit;
[0200] The front-end circuit is used to filter and amplify the ultrasonic echo signal, and send the ultrasonic echo signal processed by the front-end circuit to the analog / digital converter;
[0201] The analog / digital converter is used to perform analog / digital conversion on the ultrasonic echo signal to obtain a converted rectangular wave pulse electrical signal, and send the rectangular wave pulse electrical signal to the timer of the main control system;
[0202] The timer of the main control system is used to calculate the time T for sending the first signal to the main control system and receiving the ultrasonic echo signal;
[0203] The processor of the main control system is also used to calculate the ultrasonic transmission distance according to the ultrasonic transmission speed V and the time T of receiving the ultrasonic echo signal to determine the liquid level of the remaining consumables.
[0204] 18. A consumables usage control device, comprising a processor and a memory, wherein the memory stores computer executable codes, and the processor is used to execute the computer executable codes to implement any of the methods described in 1-15 above.
[0205] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that within the spirit and principles of the present invention, the technical solutions described in the above embodiments can still be modified, or some or all of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate from the protection scope of the present invention.
Claims
1. A method for fault detection in 3D printing, characterized in that: Applied to a 3D printer, the 3D printer comprises an ultrasonic sensor; the ultrasonic sensor comprises an ultrasonic drive circuit and an ultrasonic transmitter connected to the ultrasonic drive circuit; the ultrasonic drive circuit comprises a drive unit, the drive unit comprises a first drive path and a second drive path; the drive unit inputs two drive signals with opposite high and low levels to the ultrasonic transmitter through the first drive path and the second drive path to drive the ultrasonic transmitter to transmit an ultrasonic signal; The ultrasonic drive circuit also includes a voltage conversion unit for converting the voltage of the power supply of the main control system, wherein: The voltage conversion unit includes a first resistor, a second resistor, a third resistor, and a bipolar diode; one end of the first resistor is connected to the main control system, the other end is connected to the second resistor, and the other end of the second resistor is grounded; the base of the bipolar diode is connected to the connection point of the first resistor and the second resistor, the collector is connected to one end of the third resistor, and the emitter is grounded; the other end of the third resistor is connected to the power supply; The driving unit further includes a first NOT gate, and the first driving path includes a second NOT gate, a third NOT gate, a fourth NOT gate connected in parallel with the third NOT gate, a second capacitor, and a first capacitor for decoupling and power supply filtering; the first NOT gate input end is connected to the collector of the bipolar diode, and the output end is connected to the second NOT gate input end; the second NOT gate output end is connected to the parallel point of the third NOT gate and the fourth NOT gate input ends, the second NOT gate is connected to the power supply end and is also connected to one end of the first capacitor, and the other end of the first capacitor is grounded; the parallel point of the third NOT gate and the fourth NOT gate output ends is connected to one end of the second capacitor, and the other end of the second capacitor is connected to an input end of the ultrasonic transmitter; The second driving path includes a fifth NOT gate, a sixth NOT gate connected in parallel with the fifth NOT gate, and a third capacitor; the output end of the first NOT gate is connected to the parallel point of the fifth NOT gate and the sixth NOT gate input ends, the connection point of the fifth NOT gate and the sixth NOT gate output ends is connected to one end of the third capacitor, and the other end of the third capacitor is connected to the other input end of the ultrasonic transmitter; The method comprises: Using an ultrasonic sensor to measure the liquid level of the current remaining consumables, and calculating the volume of the consumables used for the current printing according to the liquid level, and obtaining the volume of the consumables that should be used for the current printing; Determining the difference between the volume of the consumables used for the current printing and the volume of the consumables that should be used for the current printing; If the difference exceeds a preset range, a first control signal is output.
2. The method according to claim 1, characterized in that: The method of measuring the liquid level of the current remaining consumables by using an ultrasonic sensor and calculating the volume of the consumables used for the current printing according to the liquid level includes: Acquire a liquid level detection signal, determine the liquid level of the current remaining consumables according to the liquid level detection signal, and calculate the remaining consumable volume according to the liquid level; determine the volume of the used consumables according to the difference between the total volume and the remaining consumable volume; Wherein, the total volume is obtained by a nominal value or a flow meter.
3. The method according to claim 2, characterized in that The 3D printer includes a printing platform and a material box, wherein the printing platform is used to extend into the material box and carry the printing model, and the material box is used to contain printing consumables. Before obtaining the liquid level detection signal, the 3D printer also includes: If the current printing layer has been printed, it is detected whether the printing platform rises to a preset height, and the preset height is higher than the height of the consumable liquid level; If it is detected that the printing platform rises to the preset height, prepare to obtain a liquid level detection signal.
4. The method according to claim 3, characterized in that The 3D printer further includes a main control system connected to the ultrasonic sensor, a front circuit connected to the ultrasonic sensor, and an analog / digital converter connected to the front circuit, and obtaining a liquid level detection signal, and determining the liquid level of the current remaining consumables according to the liquid level detection signal includes: The main control system generates a first signal and sends it to the ultrasonic sensor; The ultrasonic sensor sends an ultrasonic signal to the surface of the consumables in the material box and receives an ultrasonic echo signal; The ultrasonic sensor sends the ultrasonic echo signal to the front circuit, and the front circuit filters and amplifies the ultrasonic echo signal; Sending the ultrasonic echo signal processed by the front-end circuit to the analog / digital converter for analog / digital conversion to obtain a rectangular wave pulse electrical signal, and sending the rectangular wave pulse electrical signal to the timer of the main control system; The timer of the main control system calculates the time T for sending the first signal to the main control system and receiving the ultrasonic echo signal; The main control system calculates the ultrasonic transmission distance according to the ultrasonic transmission speed V and the time T for receiving the ultrasonic echo signal to determine the liquid level of the remaining consumables.
5. The method according to claim 4, characterized in that The ultrasonic sensor includes an ultrasonic receiver, the ultrasonic driving circuit is used to drive the ultrasonic transmitter to transmit an ultrasonic signal to the surface of the consumables in the material box according to the first signal, and the ultrasonic receiver is used to receive the ultrasonic echo signal returned from the surface of the consumables; The preamplifier circuit includes a secondary amplifier circuit and a DC bias circuit for filtering and amplifying the ultrasonic echo signal; The analog / digital converter comprises a comparison circuit and a power bias circuit. The comparison circuit is used for performing analog / digital conversion on the ultrasonic echo signal after filtering and secondary amplification.
6. The method according to claim 5, characterized in that The DC bias circuit comprises a sliding resistor and a fourth resistor connected in series, the series connection point of the sliding resistor and the fourth resistor is connected to an output end of the ultrasonic receiver, the other end of the sliding resistor is connected to a power supply, and the other end of the fourth resistor is grounded; The first-stage amplifier circuit in the two-stage amplifier circuit includes a first-stage amplifier, a fourth capacitor for decoupling and power supply filtering, a fifth resistor, a sixth resistor, and a first feedback network; the first input end of the first-stage amplifier is connected to one end of the fifth resistor, and the other end of the fifth resistor is connected to an output end of the ultrasonic receiver; the second input end of the first-stage amplifier is connected to one end of the sixth resistor, and the other end of the sixth resistor is connected to the other output end of the ultrasonic receiver; one end of the fourth capacitor is connected to one end of the first-stage amplifier connected to the power supply, and the other end is connected to the power supply end of the first-stage amplifier; the first feedback network includes a seventh resistor and a fifth capacitor connected in parallel, one end of which is connected in parallel to the second input end of the first-stage amplifier, and the other end is connected to the output end of the first-stage amplifier; The second-stage amplifier circuit in the secondary amplifier circuit includes a second-stage amplifier, a sixth capacitor, a seventh capacitor, an eighth resistor, a ninth resistor, and a second feedback network; the first input end of the first-stage amplifier is connected to one end of the eighth resistor, the other end of the eighth resistor is connected to the sixth capacitor, and the other end of the sixth capacitor is grounded; the second input end of the second-stage amplifier is connected to one end of the ninth resistor, the other end of the ninth resistor is connected to one end of the seventh capacitor, and the other end of the seventh capacitor is connected to the output end of the first-stage amplifier; the second feedback network includes a tenth resistor and an eighth capacitor connected in parallel, one end of the parallel connection is connected to the second input end of the second-stage amplifier, and the other end is connected to the output end of the second-stage amplifier.
7. The method according to claim 6, characterized in that The comparison circuit includes a comparator, a ninth capacitor, and a power bias circuit for biasing a power supply voltage. The first input end of the comparator is connected to the output end of the second-stage amplifier, the second input end is connected to the power bias circuit, the output end is connected to the main control system, the power supply end of the comparator is connected to one end of the ninth capacitor, and the other end of the ninth capacitor is grounded; The power bias circuit includes an adjustment potentiometer, an eleventh resistor, and a tenth capacitor connected in series, the other end of the adjustment potentiometer is connected to the power supply, the sliding end of the adjustment potentiometer is connected to one end of the tenth capacitor and the second input end of the comparator, and the other end of the tenth capacitor is grounded.
8. The method according to claim 1, characterized in that The method of obtaining the volume of consumables to be used for the current printing includes: Obtain the currently printed layer, and the area and thickness of the key layer in the currently printed layer; determine the volume of the key layer according to the area and thickness of the key layer, and the volume of all the key layers is the volume of the consumables that should be used for the current printing; or, Obtain the maximum value of the single layer area in the current printing model, as well as the layer thickness and the number of layers currently printed; determine the volume of the consumables to be used for the current printing according to the layer thickness, the number of layers currently printed and the maximum value of the area; or, The average area of a partial layer in the current printing model, as well as the layer thickness and the current number of printed layers are obtained; and the volume of consumables to be used for the current printing is determined based on the layer thickness, the current number of printed layers and the average area of the partial layer, wherein the partial layer includes a continuous layer of the current printing model or an interval sampled layer.
9. The method according to claim 8, characterized in that Each layer of the currently printed layer is the key layer; or, the layer of the currently printed layer whose area reaches the set condition is the key layer; The obtaining of the currently printed layer comprises: obtaining current printing data stored in the system, and obtaining the currently printed layer from the current printing data.
10. The method according to claim 1, characterized in that Determining the difference between the volume of the consumables used for the current printing and the volume of the consumables that should be used for the current printing; If the difference exceeds a preset range, outputting a first control signal includes: Calculating the difference between the volume of the consumables used for the current printing and the volume of the consumables that should be used for the current printing; If the volume of the consumables used for the current printing is less than the volume of the consumables that should be used for the current printing, and the difference exceeds a preset range, an alarm signal and / or a stop printing control signal is output.
11. The method according to claim 1, characterized in that: After obtaining the volume of consumables used in the current printing and the volume of consumables that should be used in the current printing, it also includes: Get the density of the consumables used for current printing; The mass of the consumables used for the current printing is calculated based on the density of the consumables and the volume of the consumables used for the current printing, and the mass of the consumables to be used for the current printing is calculated based on the density of the consumables and the volume of the consumables to be used for the current printing; If it is determined that the difference between the quality of the consumables used for the current printing and the quality of the consumables that should be used for the current printing exceeds a preset difference, an alarm signal and / or a stop printing control signal is output.
12. The method according to claim 1, characterized in that Also includes: If it is detected that the current printing layer is completed, the total mass of the material box containing the printing consumables is measured to obtain the initial mass of the material box containing the printing consumables before printing; The mass of the consumables currently used for printing is obtained by subtracting the total mass from the initial mass; If it is determined that the difference between the quality of the consumables used for the current printing and the quality of the consumables that should be used for the current printing exceeds a preset difference, an alarm signal and / or a stop printing control signal is output.
13. The method according to claim 11 or 12, characterized in that: Also includes: The alarm signal is sent to a mobile terminal that is communicatively connected to the main control system of the 3D printer.
14. The method according to claim 11 or 12, characterized in that: The alarm signal includes a serious alarm signal and a non-serious alarm signal. After determining that the difference between the quality of the consumables used for the current printing and the quality of the consumables to be used for the current printing exceeds a preset difference, the method further includes: Determine whether the preset difference is less than a specified value; If the preset difference is less than the specified value, the non-serious alarm signal is output, and the non-serious alarm signal is preset to warn that a gap may exist in the printed model and / or a fault may occur in the printed model; If the preset difference is not less than the specified value, the serious alarm signal and / or the stop printing control signal is output, and the serious alarm signal is preset to warn that the printed model may not be printed and / or the printed model falls off.
15. A 3D printer, characterized in that: include: A processor and a memory, wherein the memory stores computer executable codes, and the processor is used to execute the computer executable codes to implement the method of any one of claims 1 to 14.
16. The 3D printer according to claim 15, characterized in that: The 3D printer further includes: a material box for accommodating printing consumables, an ultrasonic sensor connected to the main control system, a front-end circuit connected to the ultrasonic receiver, and an analog / digital converter connected to the front-end circuit. The main control system further includes an oscillator and a timer. The oscillator of the main control system is used to generate a first signal and send it to the ultrasonic sensor; The ultrasonic sensor is used to send an ultrasonic signal to the surface of the consumables in the material box and receive an ultrasonic echo signal, and send the ultrasonic echo signal to the front circuit; The front-end circuit is used to filter and amplify the ultrasonic echo signal, and send the ultrasonic echo signal processed by the front-end circuit to the analog / digital converter; The analog / digital converter is used to perform analog / digital conversion on the ultrasonic echo signal to obtain a converted rectangular wave pulse electrical signal, and send the rectangular wave pulse electrical signal to the timer of the main control system; The timer of the main control system is used to calculate the time T for sending the first signal to the main control system and receiving the ultrasonic echo signal; The processor of the main control system is also used to calculate the ultrasonic transmission distance according to the ultrasonic transmission speed V and the time T of receiving the ultrasonic echo signal to determine the liquid level of the remaining consumables.
17. A consumables usage control device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores computer executable codes, and the processor is used to execute the computer executable codes to implement the method according to any one of claims 1 to 14.
