CN110441826B - Teaching method of sensor and invisible light sensor - Google Patents
Teaching method of sensor and invisible light sensor Download PDFInfo
- Publication number
- CN110441826B CN110441826B CN201910695524.XA CN201910695524A CN110441826B CN 110441826 B CN110441826 B CN 110441826B CN 201910695524 A CN201910695524 A CN 201910695524A CN 110441826 B CN110441826 B CN 110441826B
- Authority
- CN
- China
- Prior art keywords
- visible light
- teaching
- sensor
- controller
- light sensor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000001514 detection method Methods 0.000 claims abstract description 141
- 238000012800 visualization Methods 0.000 claims description 25
- 230000002159 abnormal effect Effects 0.000 claims description 21
- 238000006073 displacement reaction Methods 0.000 claims description 8
- 239000000835 fiber Substances 0.000 claims description 3
- 230000000007 visual effect Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 11
- 230000006378 damage Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000009434 installation Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 208000027418 Wounds and injury Diseases 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 208000014674 injury Diseases 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 239000012491 analyte Substances 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000004397 blinking Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01V—GEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
- G01V7/00—Measuring gravitational fields or waves; Gravimetric prospecting or detecting
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01V—GEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
- G01V8/00—Prospecting or detecting by optical means
- G01V8/10—Detecting, e.g. by using light barriers
Landscapes
- Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Life Sciences & Earth Sciences (AREA)
- General Physics & Mathematics (AREA)
- Geophysics (AREA)
- Geophysics And Detection Of Objects (AREA)
Abstract
The embodiment of the application provides a teaching method of a sensor and a non-visible light sensor, wherein the method comprises the following steps: carrying out visual indication on the target detection position by adopting visible light; receiving a detection signal, and calculating the received signal strength of the detection signal; calculating a current threshold value according to the received signal strength of the detection signal; and if the current threshold is greater than or equal to a preset threshold, or the received signal strength of the detection signal is greater than or equal to a preset received signal strength, determining that the state of the non-visible light sensor is a normal state.
Description
Technical Field
The present application relates to the field of sensor technology.
Background
In the use of the sensor, for a large-sized object to be detected, the object to be detected only needs to be placed in a section where the object can be normally detected. As shown in fig. 1, the photosensor 10 emits infrared light 11, the infrared light 11 is invisible, the infrared light 11 forms a spot 12 on the background plate, the spot 12 is also invisible, and the object 13 can be placed right under the photosensor 10 so as to be detected by the photosensor 10.
In the field of actual production operation, the volume of the detected object is smaller and smaller, and the requirement on the setting precision of the sensor is higher and higher, so that the detection position and the state of the sensor can be accurately known when the object is set on the field, and the working state that the detected object can be normally detected is taken as a typical working state, so that the detected object can be normally detected under the working state.
It should be noted that the above background description is only for the convenience of clear and complete description of the technical solutions of the present application and for the understanding of those skilled in the art. Such solutions are not considered to be known to the person skilled in the art merely because they have been set forth in the background section of the present application.
Disclosure of Invention
The inventor finds that since the detection range of many sensors, such as an infrared light sensor, an ultrasonic sensor, etc., cannot be directly observed visually, it is impossible to determine whether the detection direction of the sensor is at the target object position during field operation, and thus the sensor cannot be set correctly, which may result in failure of detection or false detection. In this case, in actual installation, debugging, maintenance, and the like on site, since it is impossible to confirm whether or not the object to be measured is accurately detected, a great deal of trouble is caused, and a large number of debugging man-hours are consumed.
Fig. 2 and 3 are schematic views of detection scenes of two non-visible light sensors, as shown in fig. 2 and 3, in both of which infrared light sensors are employed, which detect the presence or absence of an object by emitting infrared light. Here, the infrared light sensor 20 of fig. 2 has a large spot 21, and can be normally detected when the target object 22 is at position B, and cannot be normally detected when the target object 22 is at position a or position C. Further, the infrared light sensor 30 of fig. 3 has a small spot 31 which can be normally detected when the target object 32 is at position B; when the object specimen 32 is at the position a or the position C, it cannot be normally detected.
However, since infrared light is invisible, it is difficult to determine whether or not the target object 22, 32 is at the target detection position B, for example, due to mounting deviation of the sensor, there is a possibility that the position center of the spot 21, 31 is not at the target detection position B, and thus the target object 22, 32 cannot be accurately detected.
In order to solve the above-mentioned problems or other similar problems, embodiments of the present application provide a teaching method of a sensor and a non-visible light sensor.
According to a first aspect of embodiments of the present application, there is provided a non-visible light sensor, wherein the non-visible light sensor comprises:
a controller;
the signal transmitting loop is connected with the controller and emits non-visible light according to the control of the controller, and the non-visible light is used for detecting whether the detected object exists or not;
a signal detection circuit, which is connected with the controller, receives a detection signal according to the control of the controller, calculates the received signal strength of the detection signal, and calculates the current threshold according to the received signal strength;
the teaching visualization circuit is connected with the controller and emits visible light according to the control of the controller, and the visible light is used for visually indicating the target detection position;
the controller controls the signal detection circuit to receive the detection signal after controlling the teaching visualization circuit to emit the visible light and controlling the signal emission circuit to emit the invisible light, calculates the received signal intensity of the detection signal, calculates the current threshold according to the received signal intensity, and determines that the state of the invisible light sensor is a normal state when the current threshold is greater than or equal to a preset threshold or the received signal intensity of the detection signal is greater than or equal to the preset received signal intensity; and when the current threshold is smaller than the preset threshold or the received signal intensity of the detection signal is smaller than the preset received signal intensity, determining that the state of the invisible light sensor is an abnormal state.
In at least one embodiment, the non-visible light sensor further comprises:
and the teaching button is connected with the controller and transmits a teaching instruction signal from a user to the controller, and the controller starts a teaching instruction function of the non-visible light sensor according to the teaching instruction signal.
In at least one embodiment, the non-visible light sensor further comprises:
and a display circuit connected to the controller and displaying a teaching instruction state under the control of the controller.
In at least one embodiment, the detection signals are one.
In at least one embodiment, the detection signals are two.
In at least one embodiment of the present invention,
when the state of the non-visible light sensor is a normal state, the controller controls the teaching visualization loop to be closed after delaying the work for a period of time;
and when the state of the non-visible light sensor is an abnormal state, the controller controls the teaching visualization loop to carry out alarm indication.
In at least one embodiment, the non-visible light sensor is an infrared light sensor, an ultrasonic sensor, a photoelectric sensor, a fiber optic sensor, a laser displacement sensor, or a TOF displacement sensor.
According to a second aspect of embodiments of the present application, there is provided a method for teaching a sensor, the method including:
carrying out visual indication on the target detection position by adopting visible light;
receiving a detection signal, and calculating the received signal strength of the detection signal;
calculating a current threshold value according to the received signal strength of the detection signal;
if the current threshold is greater than or equal to a preset threshold, or the received signal strength of the detection signal is greater than or equal to a preset received signal strength, determining that the state of the non-visible light sensor is a normal state; and if the current threshold is smaller than the preset threshold or the received signal strength of the detection signal is smaller than the preset received signal strength, determining that the state of the invisible light sensor is an abnormal state.
In at least one embodiment, the detection signals are one.
In at least one embodiment, the detection signals are two.
In at least one embodiment, when the state of the non-visible light sensor is a normal state, the method further comprises:
and judging whether the visible light works for a preset period of time, and if so, closing the visible light.
In at least one embodiment, when the state of the non-visible light sensor is an abnormal state, the method further comprises:
and enabling the visible light to carry out alarm indication.
One of the beneficial effects of the embodiment of the application lies in: when a teaching operation is performed using a non-visible light sensor, whether or not a detection signal is irradiated to a target detection position is determined by visible light, and the state of the non-visible light sensor during teaching and detection is confirmed, and whether or not a detected object is correctly set at an expected target detection position is confirmed.
Specific embodiments of the present application are disclosed in detail with reference to the following description and drawings, indicating the manner in which the principles of the application may be employed. It should be understood that the embodiments of the present application are not so limited in scope. The embodiments of the application include many variations, modifications and equivalents within the spirit and scope of the appended claims.
Features that are described and/or illustrated with respect to one embodiment may be used in the same way or in a similar way in one or more other embodiments, in combination with or instead of the features of the other embodiments.
It should be emphasized that the term "comprises/comprising" when used herein, is taken to specify the presence of stated features, integers, steps or components but does not preclude the presence or addition of one or more other features, integers, steps or components.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the application, are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a schematic diagram of a detection scenario of a sensor;
FIG. 2 is another schematic illustration of a detection scenario of a sensor;
FIG. 3 is yet another schematic illustration of a detection scenario of a sensor;
FIG. 4 is a schematic view of a non-visible light sensor of an embodiment of the first aspect of the present application;
FIG. 5 is a schematic diagram of a teaching scenario of an embodiment of the first aspect of the present application;
FIG. 6 is a schematic illustration of a teaching instruction flow;
FIG. 7 is a schematic diagram of the electrical configuration of the ultrasonic sensor;
FIG. 8 is a schematic diagram of the electrical configuration of a photosensor or laser sensor;
FIG. 9 is a schematic diagram of a teaching instruction method of an embodiment of the second aspect of the present application.
Detailed Description
The foregoing and other features of the present application will become apparent from the following description, taken in conjunction with the accompanying drawings. In the description and drawings, particular embodiments of the application are disclosed in detail as being indicative of some of the embodiments in which the principles of the application may be employed, it being understood that the application is not limited to the described embodiments, but, on the contrary, is intended to cover all modifications, variations, and equivalents falling within the scope of the appended claims.
In the embodiments of the present application, the singular forms "a", "an", and the like include the plural forms and are to be construed broadly as "a" or "an" and not limited to the meaning of "a" or "an"; furthermore, the term "comprising" should be understood to include both the singular and the plural, unless the context clearly dictates otherwise. Further, the term "according to" should be understood as "at least partially according to … …," and the term "based on" should be understood as "based at least partially on … …," unless the context clearly dictates otherwise.
The embodiments of the present application will be described below with reference to the drawings.
Embodiments of the first aspect
Embodiments of the first aspect of the present application provide a non-visible light sensor, such as an infrared light sensor, an ultrasonic sensor, a photoelectric sensor, a fiber optic sensor, a laser displacement sensor, a Time of Flight (TOF) displacement sensor, and the like.
Fig. 4 is a schematic diagram of a non-visible light sensor 400 according to an embodiment of the first aspect of the present application, and as shown in fig. 4, the non-visible light sensor 400 includes: a controller 401, a signal transmission circuit 402, a signal detection circuit 403, and a teaching visualization circuit 404. The signal transmitting circuit 402 is connected to the controller 401, and is configured to emit non-visible light according to control of the controller 401, wherein the non-visible light is used for detecting whether the object is detected. The signal detection circuit 403 is connected to the controller 401, and is configured to receive the detection signal according to the control of the controller 401, calculate the received signal strength of the detection signal, and calculate the current threshold according to the received signal strength. The teaching visualization circuit 404 is connected to the controller 401, and is configured to emit visible light for visually indicating the target detection position according to control of the controller 401.
In the embodiment of the present application, a teaching visualization circuit 404 is added to visually indicate the target detection position, as described above, the controller 401 may control the teaching visualization circuit 404 to emit visible light and control the signal emission circuit 402 to emit invisible light, and in addition, the controller 401 may also control the signal detection circuit 403 to receive a detection signal and calculate the received signal strength of the detection signal, calculate the current threshold according to the received signal strength, and when the current threshold is greater than or equal to a preset threshold, or the received signal strength of the detection signal is greater than or equal to a preset received signal strength, determine that the state of the invisible light sensor is a normal state, that is, a state in which a detected object can be normally detected; and when the current threshold is smaller than the preset threshold or the received signal intensity of the detection signal is smaller than the preset received signal intensity, determining that the state of the invisible light sensor is an abnormal state, namely the detected object cannot be normally detected.
According to the embodiment of the application, the visible light is adopted to visually indicate the position of the detection area in the teaching process of the non-visible light sensor, so that whether the detection signal irradiates on the detected object is judged through the visible light, the states of the non-visible light sensor during teaching and detection are confirmed, and whether the detected object is correctly placed at an expected target detection position is confirmed.
In the embodiment of the present application, the signal transmitting circuit 402 may include a signal control circuit and a detection signal transmitting circuit, the signal control circuit receives the control signal from the controller 401 and controls the detection signal transmitting circuit to transmit the invisible light according to the control signal. The present application is not limited to the configuration and implementation of the signal transmission loop 402.
In the embodiment of the present application, the signal detection circuit 403 may include a signal processing circuit and a sensing circuit, the signal processing circuit receives the control signal from the controller 401, and controls the sensing circuit to receive the detection signal and provide the detection signal to the controller 401. The present application is not limited to the configuration and implementation of the signal detection circuit 403.
In the embodiment of the present application, the teaching demonstration loop 404 may include a teaching instruction control loop and a teaching instruction light-emitting loop, the teaching instruction control loop receives a control signal from the controller 401 and controls the teaching instruction light-emitting loop to emit the visible light. The present application is not limited to the configuration or implementation of the teaching visualization circuit 404.
In this embodiment, when the state of the invisible light sensor is a normal state, the controller 401 may further control the teaching visualization circuit 404 to be turned off after delaying the operation for a certain period of time. For example, a clock circuit (for example, but not limited to, a timer) 405 may be provided in the invisible light sensor 400, and the timer may be started when the state of the invisible light sensor 400 is a normal state, and after a predetermined time has elapsed, the teaching visualization circuit 404 may be controlled to turn off the visible light. Therefore, the damage of visible light to human eyes due to light pollution and the interference to other equipment can be avoided, and the consumption of electric power can be saved.
In the embodiment of the present application, when the state of the invisible light sensor is an abnormal state, the controller 401 may further control the teaching visualization circuit 404 to perform an alarm instruction. For example, the teaching visualization circuit 404 is controlled to emit light in a blinking manner to give an alarm instruction, thereby facilitating confirmation of whether the teaching state and the operation state are in a normal detection state.
In one or more embodiments, as shown in fig. 4, the non-visible light sensor 400 may further include a teaching button 406, which is also connected to the controller 401, and which may transmit a teaching instruction signal from the user to the controller 401, so that the controller 401 may turn on a teaching instruction function of the visible light sensor according to the teaching instruction signal. For example, when the user presses the teaching button 406, the teaching button 406 transmits this instruction to the controller 401 by an electric signal, and the controller 401 turns on the teaching instruction function based on this instruction, and teaching starts.
In one or more embodiments, as shown in fig. 4, the non-visible light sensor 400 may further include a display circuit 407, which is also connected to the controller 401, for displaying the teaching instruction state according to the control of the controller 401. For example, at the start of teaching, for example, after the teaching button 406 is pressed, the display circuit 407 turns on a teaching instruction LED according to the control of the controller 401, displays the contents being taught on the display screen, or displays the parameters of the current operating state on the display screen, and after teaching is finished, for example, after the teaching visualization circuit 404 is turned off with a delay, the display circuit 407 turns off the teaching instruction LED according to the control of the controller 401, displays the contents of teaching completion on the display screen, or displays the parameters of the current operating state on the display screen. The display circuit 407 may also display other states, which is not limited in this application.
In the embodiment of the present application, the teaching button 406 and the teaching indication LED may be combined, that is, after the teaching button 406 is pressed, the display circuit 407 lights the teaching button 406 as the display of the teaching indication state according to the control of the controller 401, and similarly, after the teaching visualization circuit 404 is turned off with a delay, the display circuit 407 turns off the teaching button 406 according to the control of the controller 401.
In one or more embodiments, as shown in fig. 4, the non-visible light sensor 400 may further include an input/output circuit 408, which is connected to the controller 401, receives an external input to the controller 401, or performs a corresponding output according to the control of the controller 401, and this embodiment does not limit the configuration and implementation manner of the input/output circuit 408, and may be, for example, a button, a touch panel, or the like.
In one or more embodiments, as shown in fig. 4, the non-visible light sensor 400 may further include a register loop 409, which is connected to the controller 401 and may store various data for the controller 401 to access. The present embodiment does not limit the configuration and implementation of the register loop 409, and may be various types of registers.
Fig. 5 is a schematic diagram of a teaching scene of an embodiment of the present application, as shown in fig. 5, a teaching button 501 and a teaching instruction LED 502 are provided on a non-visible light sensor 500, teaching starts when the teaching button 501 is pressed, the teaching instruction LED 502 is turned on, the non-visible light sensor 500 emits a visible light 503, the visible light 503 is used for indicating a detection position, and a light spot P is formed on a background plate; the invisible light sensor 500 also emits invisible light 504, the invisible light 504 has a detection region 505, and the invisible light 504 is used for judging the sensor state, i.e., a normal state (a state in which the object to be detected can be normally detected) or an abnormal state (a state in which the object to be detected cannot be normally detected) during teaching; in the detection, the non-visible light 504 is used to detect the presence or absence of the analyte O. As shown in fig. 5, when the object O is located in the detection area 505, it can be detected normally. Thus, the detection position is indicated by the visible light 503 when teaching the invisible light sensor 500, and the sensors can be appropriately arranged so that the object O is located in the detection region 505 where normal detection is possible.
In the embodiment of the application, the non-visible light sensor can perform 1-point teaching or 2-point teaching, in the 1-point teaching process, only 1 detection signal is obtained, the received signal strength of the detection signal can be calculated through receiving the detection signal, and the threshold value is calculated based on the received signal strength; in the 2-point teaching process, 2 detection signals are received, the received signal strengths of the two detection signals can be respectively calculated, the threshold value is calculated based on the received signal strengths of the two detection signals, and when the threshold value is greater than or equal to the preset threshold value or the received signal strength of the detection signal (for 1-point teaching, namely the received signal strength of the 1 detection signal; for 2-point teaching, namely the preset proportion of the received signal strengths of the two detection signals) is greater than or equal to the preset received signal strength, the state of the non-visible light sensor is determined to be a normal state. As for the contents of the 1-point teaching and the 2-point teaching, the related art can be referred to, and the following description is briefly made.
The 1-point teaching is as follows: the controller reads the received signal strength of the signal detection circuit in this state when the target object is at a predetermined detected position, calculates the threshold range at that time based on the received signal strength, and sets the current threshold accordingly, for example, a current threshold is set in a range of ± 10% to ± 90% of the received signal strength in accordance with a specific ratio and calculation. When the sensor works normally, the actual detection received signal intensity of the sensor is compared with the current threshold value, if the actual detection received signal intensity is larger than or equal to the current threshold value, the object is judged to be detected, otherwise, the object is judged not to be detected.
The 2-point teaching is as follows: teaching is carried out under two conditions of 'existence of a detected object' and 'no detected object', a teaching button is pressed under the condition that a target detected object is at a preset detection position (under the condition that the detected object exists), and the controller reads the received signal intensity of a signal detection circuit under the state to serve as first point teaching of 2-point teaching; when the target object is not at the detected position (when there is no object), the teaching button is pressed again, the controller reads the received signal strength of the signal detection circuit in this state as the second point teaching of the 2-point teaching, the controller calculates the difference between the received signal strength under the first point teaching condition and the received signal strength under the second point teaching condition, and calculates the current threshold value based on a predetermined ratio of the difference. For example, the average value of the 2-point received signal strength is taken as the current threshold. When the sensor works normally, the actual detection received signal intensity of the sensor is compared with the current threshold value, if the actual detection received signal intensity is larger than or equal to the current threshold value, the object is judged to be detected, otherwise, the object is judged not to be detected. The sequence of the first point teaching and the second point teaching can be interchanged.
FIG. 6 is a schematic diagram of a teaching visualization workflow, as shown in FIG. 6, with sensors (601) set prior to the start of teaching; then, the controller controls the signal transmitting circuit to operate, transmitting the detection signal (602), and controls the signal detecting circuit to operate, receiving the detection signal (603).
After teaching is started, for example, after a teaching button is pressed, if the teaching is 1 point teaching, the controller controls the teaching visualization circuit to emit visible light (604). Optionally, the controller may also control the display circuit to operate, illuminating the teaching indicator LED (605). Then, the controller controls the signal detection loop to work, receives the detection signal and calculates the intensity of the received signal (606); if the signal is the 2-point teaching, the controller controls the signal detection loop to work again, receives the 2 nd detection signal and calculates the strength of the received signal (607). Optionally, the controller may control the display circuit to operate (608), for example, to display the calculated or set result on the display circuit, so as to facilitate the product to interact with the user, and to facilitate the viewing of the specific setting steps and parameter sizes, in this example, such as: and displaying a 1-point teaching state when the 1-point teaching is performed, displaying the teaching states of the first point and the second point respectively when the 2-point teaching is performed, displaying the received signal strength and the current threshold value, and the like. In addition, when the sensor is in a normal state, the normal state is displayed, and when the sensor is in an abnormal state, the alarm state and the error code are displayed, so that the working state and the internal parameters of the sensor can be visually seen conveniently; if no abnormity exists, the teaching indication LED is turned off in a delayed mode after the normal display is carried out for a period of time, and the end of the teaching operation of the user is confirmed.
Then, the controller calculates the current threshold value according to the received signal strength (one signal strength in 1-point teaching or two signal strengths in 2-point teaching) (609); then, the controller makes a signal judgment (610), if the current threshold is greater than or equal to a preset threshold, or the received signal strength (for 1-point teaching, the received signal strength of one detection signal; for 2-point teaching, a predetermined ratio, such as an average value, of the received signal strengths of two detection signals) is greater than or equal to the preset received signal strength, that is, the judgment is yes, the controller judges that the state of the sensor is a normal state, controls the teaching visualization loop to work, and turns off the visible light with a delay (611), otherwise, the controller judges that the state of the sensor is an abnormal state, controls the teaching visualization loop to work, and performs a warning instruction (612).
If the teaching needs to be repeated, for example, if the signal is judged to be negative, that is, the sensor is in an abnormal state, the above process can be repeated, and details are not repeated here; if the teaching is not required to be repeated, for example, the signal is judged to be yes, namely, the sensor is in a normal state, the teaching is finished, and the sensor can start to work.
In the embodiment of the present application, as described above, the non-visible light sensor may be any sensor that detects the presence or absence of an object to be detected by non-visible light, and the operation of the non-visible light sensor of the embodiment of the present application will be described below by taking an ultrasonic sensor, a photoelectric sensor, and a laser sensor as examples.
Fig. 7 is an electrical configuration diagram of an ultrasonic sensor, as shown in fig. 7, including: a controller 701 (in the embodiment of fig. 7, the controller 701 is an MPU as an example, but the present invention is not limited thereto), a visible light emitting element 702 as a teaching instruction light emitting circuit, a teaching instruction control circuit 703, an ultrasonic wave emitting circuit 704 as a detection signal emitting circuit, a signal control circuit 705, an ultrasonic wave detector 706 as a sensing circuit, a signal processing circuit 707, a display circuit 708, and a teaching button 709, as described above, the ultrasonic wave sensor may further include an input/output circuit, a clock circuit, a register circuit, and the like, which are optional, and are not shown in fig. 7.
In the embodiment of fig. 7, a visible light emitting element 702 and an ultrasonic wave emitting circuit 704 are respectively arranged at the emitting part of the sensor, the light emitted by the visible light emitting element 702 is used for teaching the sensor, the ultrasonic wave emitted by the ultrasonic wave emitting circuit 704 is used for normally detecting the object to be detected by the sensor, during teaching operation, the controller 701 controls the teaching instruction control circuit 703 to operate, the visible light emitting element 702 emits visible light, the visible light indicates the current central position sensed by the sensor, and whether the ultrasonic wave is accurately irradiated on the object to be detected is judged by the visible light, so that the state of the sensor during teaching is confirmed.
After the teaching is finished, if the sensor is set correctly (in a normal state), the teaching visualization loop is closed after delaying the working for a period of time, and the visible light emitting element 702 stops emitting light; the ultrasonic wave transmitting loop 704 is continuously operated and returns to the invisible operating state, the transmitted ultrasonic wave is received by the ultrasonic detector 706 after being reflected by the detected object, and the sensor works normally. From this, on the one hand, can clearly and definitely know the concrete position that detects during the teaching, whether the object of being convenient for confirm fast that the thing is detected by correct setting at the target detection position of expectation, easy to assemble with set up the sensor, on the other hand has closed visible light when operating condition, has avoided visible light to the light pollution injury of human eye and to the interference of other equipment, has also practiced thrift the electric energy.
In addition, after the teaching is completed, if the sensor is set incorrectly (abnormal state), the controller 701 can drive the teaching indication control circuit 703 to control the light emitting element 702 to flash for alarm, or the controller 701 can control the display circuit 708 to control the teaching indication LED lamp to flash or display screen for prompt, so that the installation and operation personnel can know the abnormal working state of the sensor immediately, and the sensor can be set in the correct working state quickly and accurately through the visual teaching again.
Fig. 8 is an electrical configuration diagram of a photoelectric sensor or a laser sensor, which includes, as shown in fig. 8: a controller 801 (in the embodiment of fig. 8, the controller 801 is an MPU as an example, but the present invention is not limited thereto), a visible light emitting element 802 as a teaching instruction light emitting circuit, a teaching instruction control circuit 803, an infrared light emitting circuit 804 as a detection signal emitting circuit, a signal control circuit 805, a photosensitive element 806 as a sensing circuit, a signal processing circuit 807, a display circuit 808, and a teaching button 809, as described above, the sensor may further include an input/output circuit, a clock circuit, a register circuit, and the like, which are not shown in fig. 8.
In the embodiment of fig. 8, a visible light emitting element 802 and an infrared light emitting element 804 are provided in the emitting part of the sensor, respectively, the light emitted from the visible light emitting element 802 is used for teaching the sensor, the infrared light is used for normal detection of the object to be detected, during teaching operation, the controller 801 controls the teaching instruction control circuit 803 to operate, the visible light emitting element 802 emits visible light, the optical center position of the current sensing detection is indicated by the visible light, and whether or not the light spot is irradiated on the object to be detected is determined by the visible light, thereby confirming the detection state of the sensor during teaching.
After the teaching is finished, if the sensor is set correctly (in a normal state), the teaching visualization loop is closed after delaying the working for a period of time, and the visible light emitting element 802 stops emitting light; the infrared light emitting circuit 804 continues to operate and returns to a non-visible operating state, and the emitted infrared light is reflected by the object to be detected and received by the photosensitive element 806, so that the sensor operates normally. From this, on the one hand, can clearly and definitely know the concrete position that detects during the teaching, whether the object of being convenient for confirm fast that the thing is examined is set up in the target detection position of expectation, easy to assemble with set up the sensor, on the other hand has closed visible light when operating condition, has avoided visible light to the light pollution injury of human eye and to the interference of other equipment, has also saved the electric energy.
In addition, after the teaching is completed, if the sensor is set incorrectly (abnormal state), the controller 801 can drive the teaching indication control circuit 803 to control the light-emitting element 802 to flash for alarm, or the controller 801 can control the display circuit 808 to control the flashing of the teaching indication LED lamp or the prompting of the display screen, so that the installation and operating personnel can know the abnormal working state of the sensor immediately, and can quickly and accurately set the sensor in the correct working state through the visual teaching again.
In the embodiment of fig. 8, the light emitting element (infrared light emitting element) 804 and the photosensitive element 806 may be integrated, and the sensor thus configured may be used as a reflective sensor, but the present application is not limited thereto, and the light emitting element (infrared light emitting element) 804 and the photosensitive element 806 may also be separated, and the sensor thus configured may be used as a correlation sensor.
According to the embodiment of the present application, when the teaching operation is performed using the non-visible light sensor, the state of the non-visible light sensor during teaching and detection is confirmed by determining whether or not the detection signal is irradiated to the target detection position using the visible light, and whether or not the detected object is correctly set at the expected target detection position is confirmed.
Embodiments of the second aspect
Embodiments of the second aspect of the present application provide a method for teaching a sensor, where the method is applied to a non-visible light sensor, such as an infrared light sensor, an ultrasonic sensor, a photoelectric sensor, an optical fiber sensor, a laser displacement sensor, a TOF displacement sensor, and the like, and regarding the configuration and implementation of the non-visible light sensor, the description has been made in the embodiments of the first aspect, and the contents of the non-visible light sensor are incorporated herein, and are not repeated herein. Fig. 9 is a schematic diagram of a method for teaching a sensor according to an embodiment of the second aspect of the present application, as shown in fig. 9, the method comprising:
operation 901: carrying out visual indication on the target detection position by adopting visible light;
operation 902: receiving a detection signal, and calculating the received signal strength of the detection signal;
operation 903: calculating a current threshold value according to the received signal strength of the detection signal;
operation 904: and if the current threshold is greater than or equal to a preset threshold, or the received signal strength of the detection signal is greater than or equal to a preset received signal strength, determining that the state of the invisible light sensor is a normal state, namely the state that the detected object can be normally detected.
In this embodiment of the application, if the current threshold is smaller than the preset threshold, or the received signal strength of the detection signal is smaller than the preset received signal strength, it is determined that the state of the non-visible light sensor is an abnormal state, that is, the detected object cannot be normally detected.
In one or more embodiments, when the state of the invisible light sensor is determined to be a normal state, the visible light may be turned off after delaying the operation for a certain period of time, for example, a timer may be provided in the invisible light sensor, the timer may be started when the state of the invisible light sensor is a normal state, and the visible light may be controlled to be turned off after a predetermined time elapses. Therefore, the non-visible light sensor is restored to the working state of the non-visible light, so that the light pollution damage of the visible light to human eyes and the interference to other equipment can be avoided, and the power consumption can be saved.
In one or more embodiments, when the state of the invisible light sensor is determined to be an abnormal state, the visible light may be used to perform an alarm indication, for example, the visible light may be controlled to flash to perform an alarm indication of the abnormal state; or the teaching instruction LED lamp can be controlled to flash or the display screen can be controlled to give corresponding prompts.
In the embodiment of the present application, the teaching state may be indicated, for example, after the teaching is started, the teaching instruction LED is turned on or the teaching state is displayed, and after the teaching is finished, the teaching instruction LED is turned off or the teaching state is turned off.
The method is suitable for 1-point teaching and 2-point teaching, only 1 detection signal is obtained in the 1-point teaching process, the received signal strength of the detection signal can be calculated through receiving the detection signal, and the threshold value is calculated based on the received signal strength; in the 2-point teaching process, the number of the detection signals is 2, the received signal strengths of the two detection signals can be calculated by receiving the two detection signals, the threshold value is calculated based on the received signal strengths of the two detection signals, and when the threshold value is greater than or equal to the preset threshold value or the received signal strength of the detection signal (for the 1-point teaching, the received signal strength of the one detection signal; for the 2-point teaching, the predetermined ratio of the received signal strengths of the two detection signals) is greater than or equal to the preset received signal strength, the state of the invisible light sensor is determined to be a normal state. For the content of the 1-point teaching and the 2-point teaching, reference may be made to related technologies, which have also been described in the embodiments of the first aspect, and details are not described here.
According to the teaching instruction method of the embodiment of the present application, when the teaching operation is performed using the non-visible light sensor, whether or not the detection signal is irradiated to the target detection position is determined by the visible light, and thereby the state of the non-visible light sensor at the time of teaching and the time of detection is confirmed, and whether or not the detected object is correctly set at the expected target detection position is confirmed.
The present application has been described in conjunction with specific embodiments, but it should be understood by those skilled in the art that these descriptions are intended to be illustrative, and not limiting. Various modifications and adaptations of the present application may occur to those skilled in the art based on the spirit and principles of the application and are within the scope of the application.
Claims (7)
1. A non-visible light sensor, comprising:
a controller;
the signal transmitting loop is connected with the controller and emits non-visible light according to the control of the controller, and the non-visible light is used for detecting whether the detected object exists or not;
a signal detection circuit, which is connected with the controller, receives a detection signal according to the control of the controller, calculates the received signal strength of the detection signal, and calculates the current threshold according to the received signal strength;
the teaching visualization circuit is connected with the controller and emits visible light according to the control of the controller, and the visible light is used for visually indicating the target detection position;
in the teaching process, the controller controls the teaching visualization circuit to emit the visible light and controls the signal emission circuit to emit the invisible light, then controls the signal detection circuit to receive the detection signal, calculates the received signal intensity of the detection signal, calculates the current threshold according to the received signal intensity, and determines that the state of the invisible light sensor is a normal state when the current threshold is greater than or equal to a preset threshold or the received signal intensity of the detection signal is greater than or equal to a preset received signal intensity; when the current threshold is smaller than the preset threshold or the received signal strength of the detection signal is smaller than the preset received signal strength, determining that the state of the non-visible light sensor is an abnormal state,
wherein,
when the state of the non-visible light sensor is a normal state, the controller controls the teaching visualization loop to be closed after delaying the work for a period of time;
and when the state of the non-visible light sensor is an abnormal state, the controller controls the teaching visualization loop to carry out alarm indication.
2. The non-visible light sensor of claim 1, wherein the non-visible light sensor further comprises:
and the teaching button is connected with the controller and transmits a teaching instruction signal from a user to the controller, and the controller starts a teaching instruction function of the non-visible light sensor according to the teaching instruction signal.
3. The non-visible light sensor of claim 1, wherein the non-visible light sensor further comprises:
and a display circuit connected to the controller and displaying a teaching instruction state under the control of the controller.
4. The non-visible light sensor of claim 1, wherein the detection signal is one or two.
5. The non-visible light sensor of any one of claims 1-4, wherein the non-visible light sensor is an infrared light sensor, an ultrasonic sensor, a photoelectric sensor, a fiber optic sensor, a laser displacement sensor, a time of flight (TOF) displacement sensor.
6. A method for teaching a sensor to be applied to a non-visible light sensor, the method comprising:
in the teaching process, visible light is adopted to visually indicate the target detection position;
receiving a detection signal, and calculating the received signal strength of the detection signal;
calculating a current threshold value according to the received signal strength of the detection signal;
if the current threshold is greater than or equal to a preset threshold, or the received signal strength of the detection signal is greater than or equal to a preset received signal strength, determining that the state of the non-visible light sensor is a normal state; if the current threshold is smaller than the preset threshold or the received signal strength of the detection signal is smaller than the preset received signal strength, determining that the state of the invisible light sensor is an abnormal state;
wherein,
when the state of the non-visible light sensor is a normal state, the method further comprises: judging whether the visible light works for a preset period of time, and if so, closing the visible light;
when the state of the non-visible light sensor is an abnormal state, the method further comprises: and enabling the visible light to carry out alarm indication.
7. The method of claim 6, wherein the detection signal is one or two.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910695524.XA CN110441826B (en) | 2019-07-30 | 2019-07-30 | Teaching method of sensor and invisible light sensor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910695524.XA CN110441826B (en) | 2019-07-30 | 2019-07-30 | Teaching method of sensor and invisible light sensor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110441826A CN110441826A (en) | 2019-11-12 |
CN110441826B true CN110441826B (en) | 2022-03-15 |
Family
ID=68432328
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910695524.XA Active CN110441826B (en) | 2019-07-30 | 2019-07-30 | Teaching method of sensor and invisible light sensor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110441826B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111543861B (en) * | 2020-05-07 | 2021-07-06 | 珠海格力电器股份有限公司 | Method and device for determining fault of color screen cooking equipment and color screen cooking equipment |
CN112757261B (en) * | 2021-01-11 | 2022-05-10 | 珠海格力电器股份有限公司 | Robot dragging teaching device, robot and robot dragging teaching method |
CN113608275A (en) * | 2021-07-20 | 2021-11-05 | 深圳市华星光电半导体显示技术有限公司 | Correcting jig and correcting method for trolley and double inductors |
CN116087968B (en) * | 2023-01-20 | 2024-04-30 | 松下神视电子(苏州)有限公司 | Sensor for detecting a position of a body |
CN116243328B (en) * | 2023-01-20 | 2024-06-25 | 松下神视电子(苏州)有限公司 | Sensor for detecting a position of a body |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006112910A (en) * | 2004-10-14 | 2006-04-27 | Optex Co Ltd | Infrared sensing device and its installation method |
KR20130021248A (en) * | 2011-08-22 | 2013-03-05 | 김용길 | Positon detecting system using infrared remocon |
CN103353621B (en) * | 2013-06-14 | 2015-08-26 | 广东欧珀移动通信有限公司 | A kind of method that mobile terminal proximity transducer is calibrated and this mobile terminal |
JP6795136B2 (en) * | 2014-05-08 | 2020-12-02 | オプテックス株式会社 | Active object detection sensor |
CN106289361B (en) * | 2015-05-19 | 2019-10-22 | 科沃斯机器人股份有限公司 | The detection method of sensor reliability and its certainly mobile processing unit and system |
CN108008405A (en) * | 2018-01-15 | 2018-05-08 | 上海兰宝传感科技股份有限公司 | A kind of dual wavelength light electric transducer range-measurement system and method |
-
2019
- 2019-07-30 CN CN201910695524.XA patent/CN110441826B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110441826A (en) | 2019-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110441826B (en) | Teaching method of sensor and invisible light sensor | |
US9503184B2 (en) | Method for aligning a sensor device | |
CN102783123B (en) | Portable electric appts | |
CN109345760A (en) | A kind of system and method for detecting fire hazard | |
JPH01141387A (en) | Controller and remote controller for apparatus allowed to be switched on and off with access and departure of user while being driven by battery | |
KR20110023765A (en) | Gas detector with visual compliance verification | |
US9671522B2 (en) | Multi-optical axis photoelectric sensor system | |
KR101298082B1 (en) | Standby power cut-off device and control method thereof | |
US20170212004A1 (en) | Sensor information collecting apparatus | |
US20130269429A1 (en) | Gas meter apparatus | |
JP2002227525A (en) | Automatic door sensor | |
US9673919B2 (en) | Systems, methods, and devices for evaluating signal quality and range | |
TWI557693B (en) | Control system and sensor unit | |
JP2006042978A (en) | Visual acuity tester | |
JP6274179B2 (en) | Air conditioner | |
CN205091531U (en) | Projector with projection picture automatic adjustment function | |
JP6015046B2 (en) | Projection apparatus and projection system | |
JP4321890B2 (en) | Color detection device | |
KR20170000530A (en) | Alarm and display device based on fire sensing signal received wirelessly | |
KR20110085242A (en) | A stick using ultrasonic sensors for blind person | |
CN105894761B (en) | Projection beam detector with imaging device | |
JP2007265072A (en) | Pointing device and battery residual power display method of this device | |
JP2007028388A (en) | Photoelectric switch | |
US9923419B2 (en) | Electric power transmitter, electric power transmission method and semiconductor device | |
CN206411826U (en) | Anti- part neglected loading detection means |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |