Photoelectric sensor and control method thereof

The method and sensor design adjust light projection parameters to extend detection range without increasing power or size, addressing the high-cost and space issues of high-power sensors.

CN119085723APending Publication Date: 2024-12-06OMRON SHANGHAI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411197784.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

Existing photoelectric sensors require high-power output to achieve longer detection distances, which increases cost and space requirements due to heat dissipation needs.

Method used

A method and sensor design that adjusts light projection parameters, including voltage and period, to maintain consistent power consumption while varying detection distances, using multiple parameter groups with different voltages to extend detection range without increasing power or size.

Benefits of technology

Enables longer detection distances without increasing power consumption or space, reducing costs and eliminating the need for additional heat dissipation, while maintaining flexible detection capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119085723A_ABST
    Figure CN119085723A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a photoelectric sensor and a control method thereof. The method comprises the following steps: acquiring light receiving quantity; according to the collected light receiving quantity, whether or not a parameter set for light projection of a light projection part is adjusted is determined, the light projection part performs light projection according to one of a plurality of preset parameter sets, the power consumption of the light projection part corresponding to the parameter sets is the same, and light projection voltages in the parameter sets are different from one another. According to the embodiment of the invention, under the condition that the power of the photoelectric sensor is not improved, the requirement of a user for a farther detection distance is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of photoelectric sensors, and in particular to a photoelectric sensor and a control method thereof. Background Art

[0002] A photoelectric sensor is a sensor that uses photoelectric elements to perform detection functions. It achieves its function by converting changes in light intensity into changes in electrical signals.

[0003] In existing photoelectric sensors, the detection range of photoelectric sensors is often related to the light projection power. In order to meet customers' needs for longer detection distances, photoelectric sensors with high-power output capabilities are needed. However, high-power photoelectric sensors are more expensive and require more space because they need to meet better heat dissipation requirements.

[0004] It should be noted that the above introduction to the technical background is only for the convenience of providing a clear and complete description of the technical solutions of the present application and for the convenience of understanding by those skilled in the art. It cannot be considered that the above technical solutions are well known to those skilled in the art simply because they are described in the background technology section of the present application. Summary of the invention

[0005] In order to solve at least one of the above problems or other similar problems, an embodiment of the present application provides a photoelectric sensor and a control method thereof.

[0006] According to an embodiment of the first aspect of the present application, a method for controlling a photoelectric sensor is provided, the method comprising:

[0007] Collecting the amount of light received; and

[0008] Based on the collected amount of received light, determine whether to adjust the parameter group of the light projecting unit for projection, wherein the light projecting unit projects light according to one of a plurality of preset parameter groups, the power consumption of the light projecting units corresponding to the plurality of parameter groups is the same, and the projection voltages in the plurality of parameter groups are different from each other.

[0009] In one or more embodiments,

[0010] When the collected amount of received light is greater than a predetermined threshold, the parameter group for the light projection unit to project light is not adjusted. When the collected amount of received light is less than the predetermined threshold, the parameter group for the light projection unit to project light is adjusted, and the projection voltage in the adjusted parameter group is greater than the projection voltage in the parameter group before adjustment.

[0011] In one or more embodiments,

[0012] Any parameter group includes at least two parameters: light projection voltage and light projection period. In different parameter groups, the larger the light projection voltage is, the larger the light projection period is.

[0013] In one or more embodiments,

[0014] Any of the parameter groups also includes the number of times of judgment,

[0015] The detection result of the photoelectric sensor is outputted according to the number of times of determination in the parameter group in which the light projection unit projects light.

[0016] In one or more embodiments,

[0017] In different parameter groups, the larger the light-casting voltage is, the longer the light-casting period is and the smaller the number of judgment times is.

[0018] In one or more embodiments,

[0019] In different parameter groups, when the light-emitting voltage and light-emitting period are the same, the number of judgments is different.

[0020] In one or more embodiments,

[0021] The plurality of parameter groups are divided into the first to the Nth levels, wherein N is the number of parameter groups, and the light projection voltage gradually increases from the first to the Nth level.

[0022] When the amount of light received by the light receiving unit is less than a predetermined threshold, the parameter group of the light projecting unit is adjusted to the next larger level until the Nth level is reached.

[0023] According to an embodiment of the second aspect of the present application, a photoelectric sensor is provided, the photoelectric sensor comprising:

[0024] A light receiving part that collects the amount of light received;

[0025] A light projecting unit, which projects light according to one of a plurality of preset parameter groups, wherein the power consumption of the light projecting units corresponding to the plurality of parameter groups is the same, and the light projecting voltages in the plurality of parameter groups are different from each other;

[0026] A control unit determines whether to adjust a parameter group for the light projection of the light projection unit according to the amount of light received by the light receiving unit.

[0027] One of the beneficial effects of the embodiments of the present application is that it meets the user's demand for a longer detection distance without increasing the power of the photoelectric sensor, can reduce the price, and does not need to occupy a larger space.

[0028] With reference to the following description and accompanying drawings, the specific embodiments of the present application are disclosed in detail, indicating the way in which the principles of the present application can be adopted. It should be understood that the embodiments of the present application are not limited in scope. Within the scope of the spirit and clauses of the appended claims, the embodiments of the present application include many changes, modifications and equivalents.

[0029] Features described and / or illustrated with respect to one embodiment may be used in the same or similar manner in one or more other embodiments, combined with features in other embodiments, or substituted for features in other embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The elements and features described in one figure or one implementation of the present application embodiment may be combined with the elements and features shown in one or more other figures or implementations. In addition, in the accompanying drawings, similar reference numerals represent corresponding parts in several figures and can be used to indicate corresponding parts used in more than one implementation.

[0031] The included drawings are used to provide a further understanding of the embodiments of the present application, which constitute a part of the specification, are used to illustrate the implementation methods of the present application, and together with the text description, explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0032] Figure 1 is a schematic diagram of a control method of a photoelectric sensor according to an embodiment of the present application;

[0033] Figure 2 is a schematic diagram of an optical signal related to a photoelectric detection according to an embodiment of the present application;

[0034] Figure 3 is a flow chart of a control method of a photoelectric sensor according to an embodiment of the present application;

[0035] Figure 4 FIG. 4 is a schematic diagram of the structure of the photoelectric sensor according to an embodiment of the present application. DETAILED DESCRIPTION

[0036] With reference to the accompanying drawings, the foregoing and other features of the embodiments of the present application will become apparent through the following description. In the following description and drawings, specific implementations of the embodiments of the present application are specifically disclosed, which show some implementations in which the principles of the embodiments of the present application can be adopted. It should be understood that the embodiments of the present application are not limited to the described implementations. On the contrary, the embodiments of the present application include all modifications, variations and equivalents that fall within the scope of the attached claims.

[0037] In the embodiments of the present application, the term "and / or" includes any one and all combinations of one or more of the associated listed terms. The terms "include", "comprises", "has", etc. refer to the existence of the stated features, elements, components or components, but do not exclude the existence or addition of one or more other features, elements, components or components.

[0038] In the embodiments of the present application, the singular forms "a", "the", etc. may include plural forms and should be broadly understood as "a kind" or "a type" rather than being limited to the meaning of "one"; in addition, the term "said" should be understood to include both singular and plural forms, unless the context clearly indicates otherwise. In addition, the term "according to" should be understood as "at least in part according to...", and the term "based on" should be understood as "at least in part based on...", unless the context clearly indicates otherwise.

[0039] Various implementations of the embodiments of the present application are described below in conjunction with the accompanying drawings. These implementations are only exemplary and are not intended to limit the embodiments of the present application.

[0040] Embodiment of the first aspect.

[0041] The embodiment of the first aspect of the present application provides a control method of a photoelectric sensor, Figure 1 It is a schematic diagram of a control method of a photoelectric sensor according to an embodiment of the present application.

[0042] like Figure 1 As shown, the control method includes:

[0043] Step 102, collecting the amount of light received;

[0044] Step 104, determining whether to adjust the parameter group of the light projecting unit based on the collected amount of received light, wherein the light projecting unit projects light based on one of a plurality of preset parameter groups, the power consumption of the light projecting units corresponding to the plurality of parameter groups is the same, and the projection voltages in the plurality of parameter groups are different from each other.

[0045] According to the embodiment of the present application, the light projection unit can adjust the parameter group for light projection in multiple parameter groups with the same corresponding power consumption according to the light receiving situation. Since the light projection voltages in different parameter groups are different, different detection distances can be achieved without increasing the power consumption of the photoelectric sensor, which can meet the user's demand for a longer detection distance, so there is no need to consider additional heat dissipation, no need to occupy a larger space, and the price can be reduced.

[0046] In a photoelectric sensor, the light projection parameters mainly include the light projection voltage, the light projection pulse width, and the light projection period. In existing photoelectric sensors, in order to meet the needs of some customers for "longer detection distance", the current practice is to increase the light projection voltage, which leads to an increase in the power consumption of the photoelectric sensor. In an embodiment of the present application, by setting a group of light projection parameters with different light projection voltages but the same corresponding power consumption, for example, when the light projection voltages are different, other parameters in the light projection parameters can be set to ensure that the power consumption corresponding to different light projection parameter groups is the same. For example, the light projection period and / or the light projection pulse width can be set, and the present application does not impose any restrictions on this. The light projection unit adjusts the parameter group for light projection according to the amount of light received, so that different detection distances can be achieved without increasing the power consumption of the photoelectric sensor.

[0047] For example, in one or more embodiments, any parameter group includes at least two parameters: a light projection voltage and a light projection period. In different parameter groups, the larger the light projection voltage, the larger the light projection period.

[0048] Thus, when the light projection voltage is adjusted according to the amount of received light, the power consumption of the entire photoelectric sensor can be kept constant by adjusting the light projection period.

[0049] Compared with the existing solution of increasing the maximum detection distance by increasing the power consumption of the photoelectric sensor, the embodiment of the present application only needs to adjust the parameter group of the photoelectric sensor for projection to meet the user's demand for a longer detection distance without increasing the power consumption of the photoelectric sensor, without considering the investment in better heat dissipation performance and other aspects in order to achieve high power consumption, which can reduce the overall cost and the occupied space.

[0050] In the embodiment of the present application, the photoelectric sensor may be various types of photoelectric sensors, for example, a position sensitive sensor (PSD), etc. In addition, the photoelectric sensor may be used for various purposes, for example, it may be used for detecting objects, measuring distances, etc.

[0051] In the embodiment of the present application, the photoelectric sensor may include a light-collecting component (also referred to as a light-collecting part, a light-collecting circuit, a light-receiving part, a light-receiving circuit, etc.) and a light-projecting component (also referred to as a light-projecting part, a light-projecting circuit, etc.). The light-collecting component collects and receives light and converts the light signal into an electrical signal, and the light-projecting component converts the electrical signal into an optical signal and emits light to the outside. The photoelectric sensor may also include a control component (also referred to as a control part, a control circuit, etc.), which may realize ADC / DAC conversion function, logic operation function, light-projecting control function, I / O control function, etc., for example, it may be realized by a microprocessor and related circuits, etc. With regard to the photoelectric sensor, reference may also be made to the relevant technologies, which will not be described one by one in this embodiment.

[0052] In one or more embodiments, in step 102, when the collected amount of received light is greater than a predetermined threshold, the parameter group for the light projection unit to perform light projection is not adjusted; when the collected amount of received light is less than the predetermined threshold, the parameter group for the light projection unit to perform light projection is adjusted, and the light projection voltage in the adjusted parameter group is greater than the light projection voltage in the parameter group before adjustment.

[0053] As a result, a suitable parameter group can be selected for light projection according to the collected amount of received light, and superior performance can be achieved in a variety of application scenarios, thereby being able to flexibly meet user needs.

[0054] For example, after power-on initialization or during operation, the parameters of the photoelectric sensor correspond to one of the multiple parameter groups. When the collected light receiving amount is greater than a predetermined threshold, it indicates that the detected object (also referred to as a detection object, a detection object, etc.) is within the detection range of the current parameters of the photoelectric sensor. In this case, there is no need to adjust the parameters of the photoelectric sensor. When the collected light receiving amount is less than a predetermined threshold, it indicates that the detected object is not within the detection range of the current parameters of the photoelectric sensor. In this case, the parameters of the photoelectric sensor are adjusted, for example, a parameter group with a higher light projection voltage than the light projection voltage in the current parameters is selected for detection. In this way, the needs of different detection ranges can be met, and user needs can be flexibly met.

[0055] In the embodiments of the present application, there is no specific restriction on the specific size of the predetermined threshold value, and it can be set according to empirical values ​​or actual conditions, as long as it can be determined whether the photoelectric sensor can detect the object to be detected based on the predetermined threshold value. In addition, all parameter groups can correspond to the same predetermined threshold value, or different parameter groups can correspond to different predetermined threshold values. The present application does not impose any restrictions on this.

[0056] In one or more embodiments, any parameter group may further include a number of judgments, and the method of the embodiment of the present application further includes: outputting the detection result of the photoelectric sensor according to the number of judgments in the parameter group in which the light projection unit projects light. Thus, outputting the detection result according to the set number of judgments can ensure the accuracy of the detection result.

[0057] In the embodiments of the present application, there is no restriction on the setting of the number of judgments in the parameter group. For example, in one or more embodiments, in different parameter groups, the larger the light-casting voltage, the larger the light-casting cycle, and the smaller the number of judgments. Thus, when the light-casting cycle becomes longer, by reducing the number of judgments, the response time can be ensured to remain unchanged, and the detection speed of the photoelectric sensor can be ensured, but the present application is not limited to this. For example, the number of judgments in different parameter groups can also be the same, so that even if the light-casting cycle becomes longer, the anti-interference ability can be ensured.

[0058] However, the present application is not limited thereto. For example, in one or more embodiments, in different parameter groups, when the light projection voltage and the light projection period are the same, the number of judgments is different. That is to say, for multiple parameter groups with the same light projection voltage and light projection period, the number of judgments is set to different values, thereby being able to meet the needs of users in different aspects. For example, for occasions with high requirements for anti-interference ability, a parameter group with a higher number of judgments can be selected for light projection, and for occasions with high requirements for detection speed, a parameter group with a smaller number of judgments can be selected to ensure response time. In addition, for two parameter groups with different light projection voltages and / or light projection periods, the number of judgments can be set to the same or different values, and the present application does not impose any restrictions on this.

[0059] In one or more embodiments, the plurality of parameter groups may be divided into the first to the Nth levels, wherein N is the number of parameter groups, and N is a natural number greater than 1. From the first to the Nth level, the light projection voltage gradually increases. When the collected light receiving amount is less than a predetermined threshold, the parameter group of the light projection unit is adjusted to the next larger level until the Nth level is reached. Thus, even if the distance between the detected object and the photoelectric sensor is far or varies greatly, the light projection unit can project light through appropriate light projection parameters to effectively detect the detected object.

[0060] Next, Figure 2 and Figure 3 Take the method of the embodiment of the present application as an example to illustrate.

[0061] Figure 2 It is a schematic diagram of an optical signal related to a photoelectric detection according to an embodiment of the present application.

[0062] like Figure 2 As shown, the light projection parameters may include light projection voltage, light projection pulse width, and light projection period. The light projection unit emits a pulse signal according to the light projection period. The height of the pulse signal indicates the size of the light projection voltage, and the pulse width indicates the duration of signal emission. In the embodiment of the present application, when the pulse width remains unchanged, the light projection voltage and emission period in different parameter groups are different. The higher the light projection voltage, the longer the emission period, thereby ensuring that the corresponding power consumption of all parameter groups is the same.

[0063] like Figure 2 As shown, in one photoelectric detection process, the light projection unit emits M pulse signals. The embodiment of the present application does not limit the specific value of M, which can be set according to actual needs.

[0064] like Figure 2As shown, the light receiving part detects the received light signal, receives the return light signal of the light signal emitted by the light projecting part and converts it into an electrical signal. When the amount of light received by the received light signal is greater than a predetermined threshold value, it is determined that a valid light signal is received, and the value of the judgment number is increased by 1 until the count value of the judgment number reaches the judgment number M set in the parameter group. In this case, it is determined that the detected object is detected and the detection result is output. For example, the output ON indicates that the detected object is detected, and OFF indicates that the detected object is not detected.

[0065] Figure 2 It shows that the number of judgment times is the same as the number of light projections of the light projection unit, that is, both are M. However, in actual detection, the number of light projections may be greater than or equal to the number of judgment times. For example, one or some pulse signals may be interfered with and cannot be detected by the light receiving unit.

[0066] Figure 3 FIG. 1 is a flow chart of a control method of a photoelectric sensor according to an embodiment of the present application. Figure 3 As shown, the control method of the photoelectric sensor may include:

[0067] Step 31: The photoelectric sensor is powered on to receive light.

[0068] In this step 31, it can be regarded as an initialization step of the photoelectric sensor. In this step, the first parameter group can be set as the parameter group that the light projection unit will project light, but the present application is not limited to this. For example, a group of parameter groups in the parameter group can also be randomly used as the parameter group that the light projection unit will project light.

[0069] Step 32: Determine whether the amount of received light is greater than a threshold value. If the amount of received light is greater than or equal to the threshold value, it means that the current parameter group can cover the distance of the current detected object, and then proceed to step 36. If the amount of received light is less than the threshold value, it means that the current detected object is not within the maximum detection distance corresponding to the current parameter group. In this case, proceed to step 33.

[0070] This step 32 may correspond to Figure 1 Step 102 in the flowchart and part of the operation in step 104 are to compare the amount of received light with a predetermined threshold.

[0071] In the embodiment of the present application, the control method of the photoelectric sensor may further include a preset step: presetting N parameter groups. In the N parameter groups, the light-casting voltage gradually increases, the light-casting cycle gradually increases, and the number of judgments gradually decreases:

[0072] [Light emission voltage 1, light emission cycle 1, judgment number 1]

[0073] [Light emission voltage 2, light emission cycle 2, judgment number 2]

[0074] …

[0075] [Light emission voltage N, light emission cycle N, number of judgment times N]

[0076] It is worth noting that the above parameter groups are only for illustrative purposes. In the embodiments of the present application, there is no restriction on the specific value of N, which can be set according to performance requirements. In addition, the light projection voltage, light projection period, and number of judgment times can also be other relationships. For example, it can also include at least two parameter groups with the same light projection voltage and light projection period but different numbers of judgment times. The present application does not impose any restrictions on this, as long as the power consumption corresponding to all parameter groups is the same.

[0077] In the embodiment of the present application, there is no restriction on the execution stage of the preset step. For example, the preset step can be executed before step 31, but the present application is not limited to this. For example, the preset step can also be before step 32 or included in step 32, and the present application does not impose any restriction on this.

[0078] Step 33: confirm the parameter group currently used by the projection unit, for example, determine the gear position of the current parameter group.

[0079] Step 34: Determine whether the current gear position of the photoelectric sensor is the highest gear position, i.e., N gear. If it is determined to be yes, it means that the current detected object is too far away or cannot be detected due to other reasons, and go to step 36; if it is determined to be no, go to step 35.

[0080] Step 35: Set the projection parameters of the projection unit to the next level. For example, if the current level is the 1st level, set it to the 2nd level. If the current level is the nth level, set it to the n+1th level. Then proceed to step 32.

[0081] In step 35, the above gear adjustment method is only for illustrative purposes, and the present application does not limit this. For example, the gear of the light projection unit can also be directly set to the last two gears of the current gear or the highest gear. For example, if the current gear is the 1st gear, it is set to the 3rd gear. If the current gear is the nth gear, it is set to the n+2th gear, and so on until the Nth gear. In addition, other gear adjustment methods can also be used, which are not listed one by one here.

[0082] Step 36: When the current parameter group can detect the current detected object, or when the current detected object is too far away or cannot be detected due to other reasons, the current parameter group is not adjusted, and the parameter adjustment process of the photoelectric sensor ends.

[0083] It is worth noting that Figure 1 and Figure 3The embodiments of the present application are only schematically described, but the present application is not limited thereto. For example, the execution order of each step can be appropriately adjusted, and other steps can be added or some steps can be reduced. Those skilled in the art can make appropriate modifications based on the above content, and are not limited to Figure 1 and 3 Records of.

[0084] According to the above embodiment, the light projection unit can adjust the parameter group for light projection in multiple parameter groups with the same corresponding power consumption according to the light receiving situation. Since the light projection voltages in different parameter groups are different, different detection distances can be achieved without increasing the power consumption of the photoelectric sensor, which can meet the user's demand for a longer detection distance, so there is no need to consider additional heat dissipation, no need to occupy a larger space, and the price can be reduced.

[0085] Embodiments of the second aspect

[0086] The embodiment of the second aspect of the present application provides a photoelectric sensor, and the contents that are the same as those of the embodiment of the first aspect are not repeated here.

[0087] Figure 4 FIG. 4 is a schematic diagram of the structure of the photoelectric sensor according to an embodiment of the present application.

[0088] like Figure 4 As shown, the photoelectric sensor 40 includes: a light receiving circuit 41, a light projecting circuit 42 and a control unit 43. The light receiving circuit 41 and the light projecting circuit 42 correspond to the light receiving unit and the light projecting unit in the embodiment of the first aspect, respectively.

[0089] In an embodiment of the present application, the light receiving circuit 41 collects the amount of light received; the light projecting circuit 42 projects light according to one of a plurality of preset parameter groups, the power consumption of the light projecting circuits 42 corresponding to the plurality of parameter groups is the same, and the light projecting voltages in the plurality of parameter groups are different from each other; the control unit 43 determines whether to adjust the parameter group for the light projecting circuit 42 to project light based on the amount of light received collected by the light receiving circuit 41.

[0090] In the embodiments of the present application, Figure 4 As shown, the control unit 43 can realize multiple functions, including ADC and DAC functions, wherein the ADC converts the light receiving signal of the light receiving circuit to determine the amount of light received, and the DAC converts the set light projection parameters into signals to control the light projection of the light projection circuit.

[0091] like Figure 4As shown, the control unit 43 may also include a light projection control unit and a data operation logic judgment unit, wherein the light projection control unit adjusts the light projection voltage and the light projection cycle according to the current light receiving amount to ensure that the light projection power consumption is consistent, that is, the selected parameter group. The data operation logic judgment unit determines whether the light projection control is adjusted according to whether the current light receiving amount meets the preset standard, and sets the adjustment parameters.

[0092] In addition, the data operation logic judgment unit can also adjust the output judgment number according to the light projection parameter group, and determine the detection result according to the light receiving amount and threshold. After the cumulative number of times reaches the output judgment number, the output judgment result is ON or OFF. Figure 4 As shown, the data operation logic judgment unit can control the output by controlling the I / O.

[0093] It is worth noting that Figure 4 This is only an illustration of the structure of the photoelectric sensor, and the present application is not limited to this. For example, the light control unit and the data calculation logic judgment unit can be implemented by a processor as a hardware module, and the present application does not impose any restrictions on this.

[0094] According to the above embodiment, the light projection unit can adjust the parameter group for light projection in multiple parameter groups with the same corresponding power consumption according to the light receiving situation. Since the light projection voltages in different parameter groups are different, different detection distances can be achieved without increasing the power consumption of the photoelectric sensor, which can meet the user's demand for a longer detection distance, so there is no need to consider additional heat dissipation, no need to occupy a larger space, and the price can be reduced.

[0095] An embodiment of the present invention also provides a computer-readable program, wherein when the program is executed in a control device, the program enables the control device to execute the control method described in the embodiment of the present application.

[0096] An embodiment of the present invention further provides a storage medium storing a computer-readable program, wherein the computer-readable program enables a control device to execute the control method described in the embodiment of the present application.

[0097] The above devices and methods of the embodiments of the present invention can be implemented by hardware, or by hardware combined with software. The present invention relates to such a computer-readable program, which, when executed by a logic component, enables the logic component to implement the above devices or components, or enables the logic component to implement the above methods or steps.

[0098] The embodiments of the present invention also relate to a storage medium for storing the above program, such as a hard disk, a magnetic disk, an optical disk, a DVD, a flash memory, etc.

[0099] The method / device described in conjunction with the embodiments of the present application may be directly embodied as hardware, a software module executed by a processor, or a combination of the two. For example, one or more of the functional block diagrams shown in the figure and / or one or more combinations of the functional block diagrams may correspond to various software modules of the computer program flow or to various hardware modules. These software modules may correspond to the various steps shown in the figure, respectively. These hardware modules may be implemented by solidifying these software modules, for example, using a field programmable gate array (FPGA).

[0100] The software module may be located in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium; or the storage medium may be an integral part of the processor. The processor and the storage medium may be located in an ASIC. The software module may be stored in a memory of a mobile terminal or in a memory card that can be inserted into the mobile terminal. For example, if a device (such as a mobile terminal) uses a large-capacity MEGA-SIM card or a large-capacity flash memory device, the software module may be stored in the MEGA-SIM card or the large-capacity flash memory device.

[0101] The embodiments of the present application are described above in conjunction with specific implementation methods, but it should be clear to those skilled in the art that these descriptions are exemplary and are not intended to limit the scope of protection of the embodiments of the present application. Those skilled in the art can make various modifications and variations to the embodiments of the present application based on the spirit and principles of the embodiments of the present application, and these modifications and variations are also within the scope of the embodiments of the present application.

[0102] The preferred embodiments of the present application are described above with reference to the accompanying drawings. Many features and advantages of these embodiments are clear from this detailed description, and therefore the appended claims are intended to cover all such features and advantages of these embodiments that fall within their true spirit and scope. In addition, since many modifications and changes are easily conceivable to those skilled in the art, it is not intended to limit the embodiments of the present application to the precise structures and operations illustrated and described, but all suitable modifications and equivalents that fall within its scope may be covered.

Claims

1. A control method for a photoelectric sensor, characterized in that: The method comprises: Collecting the amount of light received; and Based on the collected amount of received light, determine whether to adjust the parameter group of the light projecting unit for projection, wherein the light projecting unit projects light according to one of a plurality of preset parameter groups, the power consumption of the light projecting units corresponding to the plurality of parameter groups is the same, and the projection voltages in the plurality of parameter groups are different from each other.

2. The method according to claim 1, characterized in that When the collected amount of received light is greater than a predetermined threshold, the parameter group for the light projection unit to project light is not adjusted. When the collected amount of received light is less than the predetermined threshold, the parameter group for the light projection unit to project light is adjusted, and the projection voltage in the adjusted parameter group is greater than the projection voltage in the parameter group before adjustment.

3. The method according to claim 2, characterized in that Any parameter group includes at least two parameters: light projection voltage and light projection period. In different parameter groups, the larger the light projection voltage is, the larger the light projection period is.

4. The method according to any one of claims 1 to 3, characterized in that Any of the parameter groups also includes the number of times of judgment, The detection result of the photoelectric sensor is outputted according to the number of times of determination in the parameter group in which the light projection unit projects light.

5. The method according to claim 4, characterized in that In different parameter groups, the larger the light-casting voltage is, the longer the light-casting period is and the smaller the number of judgment times is.

6. The method according to claim 4, characterized in that In different parameter groups, when the light-emitting voltage and light-emitting period are the same, the number of judgments is different.

7. The method according to claim 5 or 6, characterized in that: The plurality of parameter groups are divided into the first to the Nth levels, wherein N is the number of parameter groups, and the light projection voltage gradually increases from the first to the Nth level. When the collected light receiving amount is less than a predetermined threshold, the parameter group of the light projection unit is adjusted to the next larger level until the Nth level is reached.

8. A photoelectric sensor, characterized in that: The photoelectric sensor comprises: A light receiving part that collects the amount of light received; A light projecting unit, which projects light according to one of a plurality of preset parameter groups, wherein the power consumption of the light projecting units corresponding to the plurality of parameter groups is the same, and the light projecting voltages in the plurality of parameter groups are different from each other; A control unit determines whether to adjust a parameter group for the light projection of the light projection unit according to the amount of light received by the light receiving unit.