CN-122017806-A - Electric eye calibration method, controller and electric eye
Abstract
The invention discloses an electric eye calibration method, a controller and an electric eye, and relates to the technical field of intelligent bathroom, wherein the electric eye calibration method comprises a first calibration method, wherein the first calibration method comprises the steps of driving an infrared emission tube to output an infrared emission signal outwards according to preset current filling information; the method comprises the steps of acquiring an infrared receiving signal acquired by an infrared receiving tube in a reference period, converting the infrared receiving signal into an initial sensing signal according to preset magnification information, preprocessing the initial sensing signal to generate a reference sensing signal, comparing the reference sensing signal with a preset reference threshold value to judge whether the reference sensing signal is larger than the reference threshold value, adjusting the current filling information and the magnification information when judging that the reference sensing signal is larger than the reference threshold value, re-executing the first calibration method according to the adjusted current filling information and the magnification information, and adjusting the sensing threshold value information according to the reference sensing signal when judging that the reference sensing signal is larger than the reference threshold value, and storing the adjusted current filling information, the adjusted magnification information and the adjusted sensing threshold value information. By adopting the invention, the dust attached to the infrared receiving tube can be subjected to parameter compensation through calibration, so as to correct the influence of the dust on the detection of the electric eye.
Inventors
- HUANG SHIRONG
- FENG FENG
- LI WEIXIN
- DENG WENCHAO
Assignees
- 佛山市法恩洁具有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251230
Claims (11)
- 1. The electric eye calibration method is characterized by comprising a first calibration method, wherein the first calibration method comprises the following steps: Driving an infrared emission tube to output an infrared emission signal outwards according to preset current filling information; Acquiring an infrared receiving signal acquired by an infrared receiving tube in a reference period; Converting the infrared receiving signal into an initial sensing signal according to preset magnification information; preprocessing the initial induction signal to generate a reference induction signal; Comparing the reference induction signal with a preset reference threshold value to judge whether the reference induction signal is larger than the reference threshold value, If not, adjusting the current filling information and the magnification information, re-executing the first calibration method according to the adjusted current filling information and the magnification information, And if so, adjusting the sensing threshold information according to the reference sensing signal, and storing the adjusted current filling information, the magnification information and the sensing threshold information.
- 2. The method of electric eye calibration according to claim 1, wherein the step of preprocessing the initial induction signal to generate a reference induction signal comprises: Deleting the largest initial induction signal and the smallest initial induction signal in the initial induction signals; the average value of the remaining initial sensing signals is used as a reference sensing signal.
- 3. The method of claim 1, wherein the step of adjusting the current filling information and the magnification information comprises: judging whether the current sinking information is smaller than a preset current sinking threshold value or not, and judging whether the magnification information is smaller than a preset reference magnification threshold value or not; when the current sinking information is smaller than a current sinking threshold value, the current sinking information is increased; When the current sinking information is not smaller than a current sinking threshold value and the magnification information is smaller than a reference magnification threshold value, the magnification information is increased and the current sinking information is adjusted to a preset value; and generating abnormal information when the current sinking information is not smaller than a current sinking threshold and the magnification information is not smaller than a reference magnification threshold.
- 4. The electric eye calibration method according to claim 1, further comprising a non-first calibration method, the non-first calibration method comprising: Driving an infrared emission tube to output an infrared emission signal outwards according to preset current filling information; Acquiring an infrared receiving signal acquired by an infrared receiving tube in a reference period; Converting the infrared receiving signal into an initial sensing signal according to the amplification factor information stored during the first calibration; preprocessing the initial induction signal to generate a reference induction signal; Comparing the reference induction signal with a preset reference threshold value to judge whether the reference induction signal is larger than the reference threshold value, If not, adjusting the current filling information, re-executing the non-first calibration method according to the adjusted current filling information, And if so, adjusting the sensing threshold information according to the reference sensing signal, and storing the adjusted current filling information and the sensing threshold information.
- 5. The method of electric eye calibration according to claim 4, wherein the step of adjusting the current sinking information comprises: judging whether the current sinking information is smaller than a preset current sinking threshold value or not; If yes, increasing the current filling information; if not, generating abnormal information.
- 6. The electric eye calibration method according to claim 4, wherein the first calibration method further comprises: when the reference induction signal is larger than the reference threshold value, generating and storing a first calibration mark; before the first calibration method and the non-first calibration method are executed, a calibration method is selected according to the first calibration mark, wherein, When the first calibration mark is not read, executing the first calibration method, And when the first calibration mark is read, executing the non-first calibration method.
- 7. An electric eye calibration method according to claim 1 or 4, wherein at least 6 sets of infrared received signals are acquired during the reference period.
- 8. The electric eye calibration method according to claim 3 or 5, wherein the current sinking information is quantitatively increased when the current sinking information is increased.
- 9. The electric eye calibration method according to claim 3, wherein the magnification information is increased by a multiple when the magnification information is increased.
- 10. A controller comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the electric eye calibration method according to any one of claims 1 to 9.
- 11. An electric eye, characterized by comprising the controller, an infrared transmitting tube and an infrared receiving tube according to claim 10, wherein the controller is respectively connected with the infrared transmitting tube and the infrared receiving tube.
Description
Electric eye calibration method, controller and electric eye Technical Field The invention relates to the technical field of intelligent bathroom, in particular to an electric eye calibration method, a controller and an electric eye. Background At present, the technical scheme of the size of a product to be washed in public places on the market is that infrared light is emitted through an emitting tube of an infrared sensor, the infrared light is reflected to a receiving tube of the infrared sensor through an obstacle, then the received infrared signal is amplified through an amplifier to identify whether the obstacle exists in front, and if the obstacle leaves, the electromagnetic valve driving circuit of the infrared sensor is used for controlling the switch of an electromagnetic valve, so that the function of washing water after the obstacle leaves is realized. The induction size punching hole consists of PCBA, rubber pad, outer shell and glue. The production process of the electric eye comprises welding wires, assembling rubber mats, assembling a shell, filling rubber, air-drying, and adjusting and detecting the distance after the rubber mats are glued. Due to the difference of storage environments and the relation between accumulation of stock and the time of delivering work orders, dust accumulation of receiving pipes on a PCBA board is easy to cause, and finally the problem of shortening the distance of an electric eye after assembly is caused, so that a series of losses are caused in the process due to reworking and returning. Disclosure of Invention The invention aims to solve the technical problem of providing an electric eye calibration method, a controller and an electric eye, which can effectively correct the influence of dust on electric eye detection through parameter compensation. In order to solve the technical problems, the invention provides an electric eye calibration method, which comprises a first calibration method, wherein the first calibration method comprises the steps of driving an infrared transmitting tube to output infrared transmitting signals outwards according to preset current filling information, obtaining infrared receiving signals collected by the infrared receiving tube in a reference period, converting the infrared receiving signals into initial sensing signals according to preset magnification information, preprocessing the initial sensing signals to generate reference sensing signals, comparing the reference sensing signals with preset reference threshold values to judge whether the reference sensing signals are larger than the reference threshold values, adjusting the current filling information and the magnification information when judging that the reference sensing signals are not larger than the reference threshold values, re-executing the first calibration method according to the adjusted current filling information and the magnification information when judging that the reference sensing signals are larger than the reference threshold values, and adjusting sensing threshold value information according to the reference sensing signals and storing the adjusted current filling information, the adjusted magnification information and the sensing threshold value information when judging that the reference sensing threshold value information is not larger than the adjusted current filling information and the magnification information. As an improvement of the scheme, the step of preprocessing the initial induction signals to generate reference induction signals comprises the steps of deleting the largest initial induction signal and the smallest initial induction signal in the initial induction signals, and taking the average value of the rest initial induction signals as the reference induction signals. As an improvement of the scheme, the step of adjusting the current sinking information and the magnification information comprises the steps of judging whether the current sinking information is smaller than a preset current sinking threshold value and judging whether the magnification information is smaller than a preset reference magnification threshold value, increasing the current sinking information when the current sinking information is smaller than the current sinking threshold value, increasing the magnification information and adjusting the current sinking information to a preset value when the current sinking information is not smaller than the current sinking threshold value and the magnification information is smaller than the reference magnification threshold value, and generating abnormal information when the current sinking information is not smaller than the current sinking threshold value and the magnification information is not smaller than the reference magnification threshold value. The electric eye calibration method further comprises a non-first calibration method, wherein the non-first calibration method comprises the steps of driving an infra