The technical field relates to a calibration method, and more particularly to a calibration method for compensating home position of a three-dimensional printer.
In operations of a three-dimensional printer (hereinafter referred to as “3D printer”), an auto-home operation for each axis of the 3D printer is first performed so that the each axis is ready at its home position (original position) before the 3D starts to operate. After the home-position operation, the home positon is used to be a relative reference position for the corresponding operation axis. For example, the coordinate of the home position is the reference coordinate for commands in a G-code file. In other words, each axis of the 3D printer moves to positions specified according to the G-code commands after the home position is determined. Therefore, the accuracy of the home position of any one axis would affect the fineness of the printed products.
Since the 3D printer may be easily affected by unpredictable vibration, oscillation, or interference of external force or mechanical structure itself, the three-axis home positions cannot be accurately determined. For example, the Z-axis fails to arrive its actual home position due to vibration, oscillation, or interference of external force or mechanical structure itself after the home-position operation, and therefore to affect the fineness of the printed products even if the X-axis and the Y-axis completely arrive their actual home positions. More seriously for the home-position operation, the slight situation would make the printed product rough and the serious situation would need to re-print the product if all three-axis home positions are not accurately determined, thereby consuming time and labor.
In order to solve the problem above, however, a Schmitt trigger circuit or a comparison circuit is additionally installed at an input side of a home position detection circuit to improve accuracy of the home-position operation. However, other problems of increasing circuit costs, complicating designs of control circuits, and occupying larger space for installation are derived due to the installation of the Schmitt trigger circuit or the comparison circuit.
The present disclosure is directed to a calibration method for compensating a home position of a three-dimensional printer so as to solve problems of increasing circuit costs, complicating designs of control circuits, and occupying larger space for installation.
In one embodiment, the three-dimensional printer provides a sensing switch to sense a movement position of a movable mechanism driven by a motor, and the sensing switch provides a control voltage corresponding to the movement position to a microcontroller. The calibration method includes steps of: moving the movable mechanism in a home direction; determining whether the microcontroller receiving a logic level signal which is transited corresponding to the control voltage; and moving the movable mechanism in a compensation distance corresponding to a step compensation amount in the home direction when the microcontroller receives the logic level signal which is transited.
Accordingly, the calibration method is disclosed to decreasing circuit costs, simplify designs of control circuits, reducing occupied installation space, and accurately calibrate the home position.
In another embodiment, the three-dimensional printer provides a sensing switch to sense a movement position of a movable mechanism driven by a motor, and the sensing switch provides a control voltage corresponding to the movement position to a microcontroller. The calibration method includes steps of: moving the movable mechanism in a home direction; determining whether the microcontroller receiving a first logic level signal which is transited corresponding to the control voltage; moving the movable mechanism in a direction opposite to the home direction when the microcontroller receives the first logic level signal which is transited; determining whether the microcontroller receiving a second logic level signal which is transited corresponding to the control voltage, wherein a logic level of the second logic level signal is opposite to a logical level of the first logic level signal; and moving the movable mechanism in a compensation distance corresponding to a step compensation amount in the home direction when the microcontroller receives the second logic level signal which is transited.
Accordingly, the calibration method is disclosed to decreasing circuit costs, simplify designs of control circuits, reducing occupied installation space, and accurately calibrate the home position.
It is to be understood that both the foregoing general description and the following detailed description are exemplary, and are intended to provide further explanation of the present disclosure as claimed. Other advantages and features of the present disclosure will be apparent from the following description, drawings and claims.
The present disclosure can be more fully understood by reading the following detailed description of the embodiment, with reference made to the accompanying drawings as follows:
Reference will now be made to the drawing figures to describe the present disclosure in detail. It will be understood that the drawing figures and exemplified embodiments of present disclosure are not limited to the details thereof.
Please refer to
The above-mentioned proximity switch (also referred to as “non-contact travel switch”) may be classified into following types. The first one is an eddy current proximity switch (also referred to as “inductive proximity switch”). When a conductive object moves closer to the eddy current proximity switch, an internal eddy current is produced in the conductive object due to a generated electromagnetic field. The internal eddy current reacts to the eddy current proximity switch so as to change internal circuit parameters of the eddy current proximity switch, and therefore the eddy current proximity switch can sense or recognize wither the conductive object moves closer to itself or not to provide turned-on and turned-off controls of the eddy current proximity switch. The second one is a Hall effect proximity switch (also referred to as “magnetic sensitive switch”). When a magnetic object moves closer to the Hall effect proximity switch, the Hall effect proximity switch changes its internal circuit state due to a Hall effect produced by a Hall sensor installed in the Hall effect proximity switch, and therefore to sense or recognize wither the magnetic object moves closer to itself or not to provide turned-on and turned-off controls of the Hall effect proximity switch. The third one is an inductive proximity switch. An oscillator, composed of inductance coils, capacitors, and transistors, of the inductive proximity switch produces an alternating magnetic field. When a metal object moves closer to the alternating magnetic field, an internal eddy current is produced in the metal object to make the oscillator stop oscillating, thereby providing turned-on and turned-off controls of the inductive proximity switch.
In summary, a suitable contactless switch can be selected and used depending on different types of the objects to be sensed to accurately sense the movement position of the object to be sensed. For example, if the object to be sensed is a conductive object, the eddy current proximity switch is appropriately used; if the object to be sensed is a magnetic object, the Hall effect proximity switch is appropriately used; and if the object to be sensed is a metal object, the inductive proximity switch is appropriately used.
In one embodiment, the contact switch may be a micro switch, a limit switch, a pressure switch, or a piezo switch. The contact switch is used to output an electrical parameter, such as a voltage parameter, current parameter, or resistance parameter by converting the received force, and therefore to detect the movement distance of the object to be sensed.
Regardless of the contactless switch or the contact switch, the outputted electrical parameters can be provided to detect the movement distance or the movement distance change rate of the object to be sensed. Take the voltage parameter for example, each sensing switch can sense the distance which the object moves and the position which the object moves to according to a positive correlation relationship between the voltage values outputted therefrom and the distance which the object moves or a positive correlation relationship between the voltage variation and the distance change rate of the object.
Moreover, each sensing switch can sense the distance which the object moves and the position which the object moves to according to a negative correlation relationship between the voltage values outputted therefrom and the distance which the object moves or a negative correlation relationship between the voltage variation and the distance change rate of the object. In addition, the current parameter or the resistance parameter may be used instead of the voltage parameter by the conversion between electrical parameters to achieve the movement distance detection of the object to be sensed.
In this embodiment, the photo interrupter switch is exemplified as the sensing switch for further demonstration. Please refer to
Please refer to
Further, when the Z-axis movable mechanism Za continuously moves to the home position in the home direction and the barrier plate Zb interrupts the optical path between the light-emitting element 91A and the light-receiving element 91B, the voltage value of the control voltage Vm would be varied depending on the amount of a light-blocking region. For example, it is assumed that a power voltage (also referred to as “bias voltage”) is supplied to the home position detection circuit 90, and the maximum value of the power voltage VDD is 3.3 volts. When the barrier plate Zb completely blocks (interrupts) the light between the light-emitting element 91A and the light-receiving element 91B, the voltage value of the control voltage Vm outputted from the home position detection circuit 90 is 3.3 volts, namely the maximum value of the power voltage VDD.
Please refer to
When the inverting unit 93 receives the control voltage Vm, the inverting unit 93 inverts the control voltage Vm into the inverting control voltage Vn. As mentioned in
Please refer to
Please refer to
Furthermore, when the Z-axis movable mechanism Za moves from top to bottom in the distance of L1 and L2, the control voltage Vm gradually increases to reach the high-level input voltage VH so that the microcontroller receives the logic high-level voltage, namely the logic one level. On the contrary, when the Z-axis movable mechanism Za moves from bottom to top in the distance of L3 and L2, the control voltage Vm gradually decreases to reach the low-level input voltage VL so that the microcontroller receives the logic low-level voltage, namely the logic zero level.
An example is exemplified for further description in Table 1 and Table 2 below. The optical axis length Lop is 1.2 mm and total steps of the motor is 1152 steps corresponding to the optical axis length Lop. The maximum value of the power voltage VDD is 3.3 volts, and other calculated values L1-L3 and P1-P3 are listed in Table 1. Similarly, the optical axis length Lop is 1.2 mm and total steps of the motor is 1152 steps corresponding to the optical axis length Lop. The maximum value of the power voltage VDD is 5.0 volts, and other calculated values L1-L3 and P1-P3 are listed in Table 2.
In order to clearly explain the present disclosure, different embodiments will be described as follows. Please refer to
As shown in
As shown in
The above-mentioned descriptions of the
Please refer to
The steps of the first embodiment are described as follows. First, the movable mechanism moves in a home direction (S11). The movable mechanism may be one of an X-axis movable mechanism, a Y-axis movable mechanism, and a Z-axis movable mechanism of the 3D printer. In other words, the calibration compensation method is applicable to one of the X-axis movable mechanism, the Y-axis movable mechanism, and the Z-axis movable mechanism of the 3D printer. In this embodiment, the Z-axis movable mechanism is, not limited to, exemplified for further demonstration of the calibration compensation. Moreover, the calibration compensation method may be also applicable to a co-axis movable mechanism, such as an X&Y-axis movable mechanism, an X&Z axis movable mechanism, or a Y&Z axis movable mechanism. In this embodiment, the -axis movable mechanism is, not limited to, exemplified for further demonstration of the calibration compensation. Moreover, the calibration compensation method may be also applicable to a co-axis movable mechanism, such as an X&Y-axes movable mechanism, an X&Z-axes movable mechanism, or a Y&Z-axes movable mechanism. In this embodiment, the Z-axis movable mechanism Za is exemplified for further demonstration of the calibration compensation method.
Afterward, it is to determine whether the microcontroller receives a logic level signal which is transited (S12). As mentioned above, the microcontroller receives the power voltage, outputted from the contactless switch, corresponding to the moving position, and the voltage value of the power voltage is related to the light-blocking region of the contactless switch. More specifically, when the barrier plate of the movable mechanism does not block the light of the contactless switch or the light-blocking region of the contactless switch is not insufficient, the power voltage fails to make the logic level signal received by the microcontroller be transited. In this embodiment, the logic level signal is a logic high-level signal, namely the logic level signal cannot be transited from a logic low-level signal to the logic high-level signal (rising-edge trigger transition). The logic high-level signal is corresponding to 0.7 times of the maximum value of the power voltage, namely the logic high-level signal is corresponding to 2.31 volts when the maximum value of the power voltage is 3.3 volts. Therefore, the step (S11) is performed after the step (S12), namely the movable mechanism driven by the motor continuously moves in the home direction.
Until the light-blocking region of the contactless switch gradually increases to make the logic level signal received by the microcontroller be transited, namely the logic level signal is transited from the logic low-level signal to the logic high-level signal (rising-edge trigger transition), and the determination in the step (S12) is “YES”. At this time, home position detection circuit 90 determines that the Z-axis movable mechanism Za has arrived the home position. In fact, the Z-axis movable mechanism Za has not arrived the home position due to vibration, oscillation, or interference of external force or pressure. For example, although the Z-axis movable mechanism Za has not arrived the home position, the home position detection circuit 90 determines that the Z-axis movable mechanism Za has arrived the home position due to vibration, oscillation, or interference of external force or pressure. In fact, the Z-axis movable mechanism Za would restore its actual position when the external force or pressure is not considered or excluded, that is, the Z-axis movable mechanism Za has not arrived the home position. If the “wrong” home position where the Z-axis movable mechanism Za finally arrives does not be corrected or compensated, the “wrong” home position will become a reference position for the next printing operations of the corresponding movable mechanism, and therefore the position error of the corresponding movable mechanism would be generated. In other words, when the determination in the step (S12) is “YES”, the position, shown by a hollow circle symbol in
In the step (S13), the motor drives the movable mechanism to further move in a compensation distance corresponding to a step compensation amount in the home direction. The compensation distance is provided for the movable mechanism to compensate for a position error generated by vibration, oscillation, or interference so that the movable mechanism closely arrives and even arrives the actual Home position, thereby accurately calibrating the home position.
As mentioned above, the voltage parameter is used for explanation of the contactless switch. Each sensing switch can sense the distance which the object moves and the position which the object moves to according to a positive correlation relationship between the voltage values outputted (or after converted) therefrom and the distance which the object moves or a positive correlation relationship between the voltage variation and the position change rate of the object. That is, the voltage variation of the control voltage Vm is corresponding to a position change rate of moving the movable mechanism. More specifically, the step compensation amount Sc in the step (S13) is:
where Sc is the step compensation amount, ΔV is the voltage variation of the control voltage, Vx is the maximum value of the control voltage, and Pm is the number of total steps of the motor corresponding to complete movement of the movable mechanism in the optical axis length Lop.
Correspondingly, when the sensing switch is the photo interrupter switch 91, the step compensation amount Sc in the step (S13) is:
where Sc is the step compensation amount, VH is 0.7 times of the maximum value of the power voltage, VL is 0.3 times of the maximum value of the power voltage, VDD is the maximum value of the power voltage, and Pm is 1152 steps of the motor corresponding to 1.2 mm of the optical axis length Lop.
Taking the data listed in the Table 1 as an example, the maximum value of the power voltage VDD is 3.3 volts, the 0.7 times of the maximum value of the power voltage VH is 2.31 volts, the 0.3 times of the maximum value of the power voltage VDD is 0.99 volts, and the Pm is 1152 steps, and therefore the step compensation amount Sc is calculated to 460 steps. In other words, the compensation distance corresponding to the step compensation amount Sc (460 steps) is 0.4792 mm since the complete movement (1.2 mm) of the movable mechanism in the optical axis length Lop corresponds to 1152 steps of the motor. Accordingly, the movable mechanism further moves 0.4792 mm in the home direction Dh so as to closely arrive and even arrives the actual home position, shown by a solid circle symbol in
Please refer to
In the step (S23), the movable mechanism further moves in a compensation distance corresponding to a correction coefficient value of the step compensation amount in the home direction, and the correction coefficient value is a positive number less than 1. In other words, the compensation distance in the second embodiment is less than the compensation distance in the first embodiment. In this embodiment, the correction coefficient value is introduced to fine tune the step compensation amount so as to provide more accurate calibration compensation than that in the first embodiment, and therefore a step compensation amount Sc′ in the step (S23) is:
where Sc′ is the step compensation amount, VH is 0.7 times of the maximum value of the power voltage, VL is 0.3 times of the maximum value of the power voltage, VDD is the maximum value of the power voltage, Pm is 1152 steps of the motor corresponding to 1.2 mm of the optical axis length Lop, and Cm is the correction coefficient value which is a positive number less than 1. In this embodiment, the correction coefficient value Cm may be, for example but not limited to, 0.8. In particular, the correction coefficient value could be adaptably modified according to the actual operations of the 3D printer. For example, the correction coefficient value could be adaptably modified according to the degree of vibration, oscillation, or interference, that is, when the degree of vibration, oscillation, or interference is larger, the correction coefficient value Cm may be increased to compensate much insufficient distance; on the contrary, when the degree of vibration, oscillation, or interference is smaller, the correction coefficient value Cm may be decreased to compensate little insufficient distance.
Similarly, taking the data listed in the Table 1 as an example, the maximum value of the power voltage VDD is 3.3 volts, the 0.7 times of the maximum value of the power voltage VH is 2.31 volts, the 0.3 times of the maximum value of the power voltage VDD is 0.99 volts, the Pm is 1152 steps, and the correction coefficient value Cm is 0.8, and therefore the step compensation amount Sc′ is calculated to 368 steps. In other words, the compensation distance corresponding to the step compensation amount Sc (368 steps) is 0.3834 mm since the complete movement (1.2 mm) of the movable mechanism in the optical axis length Lop corresponds to 1152 steps of the motor. Accordingly, the movable mechanism further moves 0.3834 mm in the home direction Dh so as to closely arrive and even arrives the actual home position, thereby accurately calibrating the home position.
Please refer to
Afterward, it is to determine whether the microcontroller receives a first logic level signal which is transited (S32). As mentioned above, the microcontroller receives the power voltage, outputted from the contactless switch, corresponding to the moving position, and the voltage value of the power voltage is related to the light-blocking region of the contactless switch. More specifically, when the barrier plate of the movable mechanism does not block the light of the contactless switch or the light-blocking region of the contactless switch is not insufficient, the power voltage fails to make the first logic level signal received by the microcontroller be transited. In this embodiment, the first logic level signal is a logic high-level signal, namely the first logic level signal cannot be transited from a logic low-level signal to the logic high-level signal (rising-edge trigger transition). The logic high-level signal is corresponding to 0.7 times of the maximum value of the power voltage, namely the logic high-level signal is corresponding to 2.31 volts when the maximum value of the power voltage is 3.3 volts. Therefore, the step (S31) is performed after the step (S32), namely the movable mechanism driven by the motor continuously moves in the home direction.
Until the light-blocking region of the contactless switch gradually increases to make the first logic level signal received by the microcontroller be transited, namely the first logic level signal is transited from the logic low-level signal to the logic high-level signal (rising-edge trigger transition), and the determination in the step (S32) is “YES”. At this condition, the home position detection circuit 90 determines that the Z-axis movable mechanism Za has arrived the home position. As mentioned above, the movable mechanism fails to arrive its actual home position due to vibration, oscillation, or interference of external force or pressure during the operations of the 3D printer. In other words, when the determination in the step (S32) is “YES”, the position, shown by a (left) hollow circle symbol in
When it is to determine that the microcontroller receives the first logic level signal which is transited, the motor drives the movable mechanism to move in a direction opposite to the home direction (S33), namely the movable mechanism moves in a direction away from the home direction. Afterward, it is to determine whether the microcontroller receives a second logic level signal which is transited (S34). In this embodiment, the second logic level signal is a logic low-level signal, namely the second logic level signal cannot be transited from a logic high-level signal to the logic low-level signal (falling-edge trigger transition). The logic low-level signal is corresponding to 0.3 times of the maximum value of the power voltage, namely the logic low-level signal is corresponding to 0.99 volts when the maximum value of the power voltage is 3.3 volts. Therefore, the step (S33) is performed after the step (S34), namely the movable mechanism driven by the motor continuously moves in the direction opposite to the home direction.
Until the light-blocking region of the contactless switch gradually decreases to make the second logic level signal received by the microcontroller be transited, namely the second logic level signal is transited from the logic high-level signal to the logic low-level signal (falling-edge trigger transition). At this condition, the Z-axis movable mechanism Za moves to the position shown by a (right) hollow circle symbol in
As mentioned above, the voltage parameter is used for explanation of the contactless switch. Each sensing switch can sense the distance which the object moves and the position which the object moves to according to a positive correlation relationship between the voltage values outputted (or after converted) therefrom and the distance which the object moves or a positive correlation relationship between the voltage variation and the position change rate of the object. That is, the voltage variation of the control voltage Vm is corresponding to a position change rate of moving the movable mechanism. More specifically, the step compensation amount Sc in the step (S35) is:
where Sc is the step compensation amount, ΔV is the voltage variation of the control voltage, Vx is the maximum value of the control voltage, and Pm is the number of total steps of the motor corresponding to complete movement of the movable mechanism in the optical axis length Lop.
Correspondingly, when the sensing switch is the photo interrupter switch 91, the step compensation amount Sc in the step (S35) is:
where Sc is the step compensation amount, VH is 0.7 times of the maximum value of the power voltage, VL is 0.3 times of the maximum value of the power voltage, VDD is the maximum value of the power voltage, and Pm is 1152 steps of the motor corresponding to 1.2 mm of the optical axis length Lop.
Taking the data listed in the Table 1 as an example, the maximum value of the power voltage VDD is 3.3 volts, the 0.7 times of the maximum value of the power voltage VH is 2.31 volts, the 0.3 times of the maximum value of the power voltage VDD is 0.99 volts, and the Pm is 1152 steps, and therefore the step compensation amount Sc is calculated to 460 steps. In other words, the compensation distance corresponding to the step compensation amount Sc (460 steps) is 0.4792 mm since the complete movement (1.2 mm) of the movable mechanism in the optical axis length Lop corresponds to 1152 steps of the motor. Accordingly, the movable mechanism moves 0.4792 mm in the home direction Dh from the position where the logic level signal is transited from the logic high-level signal to the logic low-level signal (falling-edge trigger transition) so as to closely arrive and even arrives the actual home position, thereby accurately calibrating the home position.
Please refer to
In other words, the two determination mechanisms are used in steps (S44) and (S44′) to determine that the movable mechanism has arrived the position where the logic level signal is transited from the logic high-level signal to the logic low-level signal (falling-edge trigger transition), and the determination in the step (S44) is “YES” or the determination in the step (S44′) is “YES”, thereby making the position where the logic level signal is transited from the logic high-level signal to the logic low-level signal be an accurate reference positon to significantly reduce influence of vibration, oscillation, or interference of external force or pressure.
Please refer to
In conclusion, the present disclosure has following features and advantages:
1. It is to reduce circuit costs, simplify designs of control circuits, reduce occupied installation space to minimize the size of the 3D printer, and accurately calibrate the home position since no Schmitt trigger circuit or comparison circuit is additionally installed.
2. The compensation distance is provided to compensate the error produced from vibration, oscillation, or interference of external force or mechanical structure itself so that the movable mechanism closely arrives and even arrives the actual home position, thereby accurately calibrating the home position.
3. The correction coefficient value is introduced to fine tune the step compensation amount so as to provide more accurate calibration compensation according to the actual operations of the 3D printer.
4. Two determination mechanisms are used to determine that the movable mechanism has arrived the position where the logic level signal is transited from the logic high-level signal to the logic low-level signal (falling-edge trigger transition), thereby making the position where the logic level signal is transited from the logic high-level signal to the logic low-level signal be an accurate reference positon to significantly reduce influence of vibration, oscillation, or interference of external force or pressure.
5. The suitable contactless switch may be selected and used depending on different types of the objects to be sensed to accurately sense the movement position of the object to be sensed.
Although the present disclosure has been described with reference to the preferred embodiment thereof, it will be understood that the present disclosure is not limited to the details thereof. Various substitutions and modifications have been suggested in the foregoing description, and others will occur to those of ordinary skill in the art. Therefore, all such substitutions and modifications are intended to be embraced within the scope of the present disclosure as defined in the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
201710763764.X | Aug 2017 | CN | national |