Optoelectronic sensor control system and control method
By using the charging module and signal transmission module in the photoelectric sensor detection system, and utilizing battery power and dual PD receiver tubes to detect target objects, the problem of traditional photoelectric sensors being unable to be tested in mobile or power-free scenarios is solved, enabling normal operation and high-precision detection in these scenarios.
Patent Information
- Application Number
- CN202410601229.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2044-05-15
AI Technical Summary
Traditional photoelectric sensors require an external power source, making them unsuitable for testing in mobile or unpowered environments, thus limiting their application scenarios.
A photoelectric sensor detection system was designed, including a charging module, a signal transmission module, and an indicator module. The charging module converts the external grid voltage into the working voltage for power supply, and the system is powered by a battery in mobile scenarios. The system receives light signals through dual PD receiver tubes for detection, and the presence of the target object is determined in conjunction with the main control module.
It enables photoelectric sensors to operate normally in mobile and power-free scenarios, improves detection accuracy, and displays battery power intuitively through LEDs, meeting the needs of long-term outdoor use.
Smart Images

Figure CN118642196B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of sensors, and particularly relates to a photoelectric sensor control system and a control method. BACKGROUND
[0002] As a detection device, a photoelectric sensor can be used to detect whether an object exists in a detection area. The photoelectric sensor is provided with a transmitting end and a receiving end. The transmitting end irradiates light to the detection area, and the receiving end receives the light that has passed through the detection area or the light that has been reflected by the detection area, generates a detection signal corresponding to the received light, and compares the amplified signal obtained after amplification processing of the detection signal with a threshold value to reflect whether an object exists in the detection area.
[0003] Traditional photoelectric sensors are connected to power supply in the form of connectors and wires. Such photoelectric sensors need to be fixed to a specified position for use, and must be externally connected to a power supply during use. Therefore, the photoelectric sensors cannot be tested in a mobile detection scene or in a test scene without a power supply, which limits the application scenarios of the photoelectric sensors. SUMMARY
[0004] The application provides a photoelectric sensor control system and a control method, which can solve the problem that traditional photoelectric sensors cannot be tested in a mobile detection scene or in a test scene without a power supply, and broaden the application scenarios of the photoelectric sensors.
[0005] To solve the above technical problem, in a first aspect, the application provides a photoelectric sensor detection system, which comprises a charging module, a signal transmission module, a main control module and an indication module.
[0006] The charging module is used to identify the type of an external charging wire, convert the grid voltage connected through the external charging wire into a working voltage, and supply power to a storage battery and the main control module.
[0007] The indication module comprises a plurality of light-emitting diodes for indicating the charging capacity of the storage battery. The main control module is used to detect the current charging capacity of the storage battery, and drive the light-emitting diode corresponding to the current charging capacity to emit light.
[0008] The signal transmission module is used to emit a light signal, receive the light signal through a double-PD receiving tube, convert the light signal into an electric signal, amplify the electric signal, and transmit the amplified electric signal to the main control module, so that the main control module compares the amplified electric signal with a preset threshold value to determine whether a target object exists.
[0009] In a second aspect, the application further provides a photoelectric sensor control method, which comprises the following steps:
[0010] Identify the external charging type, convert the power grid voltage connected by the external charging line into a working voltage for power supply;
[0011] The control signal transmission module emits a light signal with a fixed period and duty cycle, the double-PD receiving tube receives the laser signal, converts the received two-way light signal into a voltage signal, and transmits the voltage signal to the main control module after filtering and differential amplification;
[0012] The differential amplified voltage signal is compared with the preset threshold to determine whether there is a target detection object, and the light emitting state of the output indicating diode is adjusted according to the result of whether there is a target detection object.
[0013] The photoelectric sensor control system and control method provided by the application have the following beneficial effects:
[0014] The application sets a charging module to convert the external power grid voltage into a working voltage to supply power to the battery and the main control module, which does not depend on external power supply, and the system is powered by the battery in a mobile scenario, so that the photoelectric sensor can be used in outdoor scenarios and mobile detection scenarios, effectively expanding the application scenarios of the photoelectric sensor; The double-PD receiving tube receives the light signal, which can avoid errors caused by the surface color of the target object within a certain distance, eliminate the sensing distance difference caused by different colors of the target object, and has high detection accuracy; During the charging process, the current charging capacity of the battery is detected in real time, and the light emitting diode corresponding to the current charging capacity is driven to emit light, so that the user can more intuitively know the current charging capacity of the battery and charge in time, avoiding loss caused by insufficient battery capacity when used outdoors, thereby meeting the demand for long-term continuous use in outdoor scenarios. BRIEF DESCRIPTION OF DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiment or prior art description. Obviously, the drawings in the following description are only a part of the embodiments of the application, and not all embodiments. For those skilled in the art, other drawings obtained according to these drawings without creative labor belong to the protection scope of the application.
[0016] Figure 1 is a structural schematic diagram of the photoelectric sensor detection system provided by the embodiment of the application;
[0017] Figure 2 is a structural schematic diagram of the charging module in the photoelectric sensor detection system provided by the embodiment of the application;
[0018] Figure 3Figure 1 is a structural schematic diagram of a signal transmission module in a photoelectric sensor detection system according to an embodiment of the present application;
[0019] Figure 4 Figure 2 is a structural schematic diagram of an indication module in a photoelectric sensor detection system according to an embodiment of the present application;
[0020] Figure 5 Figure 3 is a structural schematic diagram of an output protection module in a photoelectric sensor detection system according to an embodiment of the present application;
[0021] Figure 6 Figure 4 is a structural schematic diagram of a photoelectric sensor detection system according to an embodiment of the present application;
[0022] Figure 7 Figure 5 is a structural schematic diagram of a filter in a photoelectric sensor detection system according to an embodiment of the present application;
[0023] Figure 8 Figure 6 is a circuit diagram of a recognition unit in a photoelectric sensor detection system according to an embodiment of the present application;
[0024] Figure 9 Figure 7 is a circuit diagram of a power supply unit in a photoelectric sensor detection system according to an embodiment of the present application;
[0025] Figure 10 Figure 8 is a circuit diagram of a main control module in a photoelectric sensor detection system according to an embodiment of the present application;
[0026] Figure 11 Figure 9 is a circuit diagram of a transmitting unit in a photoelectric sensor detection system according to an embodiment of the present application;
[0027] Figure 12 Figure 10 is a circuit diagram of a receiving unit and an operational amplifier unit in a photoelectric sensor detection system according to an embodiment of the present application;
[0028] Figure 13 Figure 11 is a circuit diagram of a light-emitting indication unit and an output indication unit in a photoelectric sensor detection system according to an embodiment of the present application;
[0029] Figure 14 Figure 12 is a circuit diagram of a buzzer indication unit in a photoelectric sensor detection system according to an embodiment of the present application;
[0030] Figure 15 Figure 13 is a circuit diagram of an output protection module in a photoelectric sensor detection system according to an embodiment of the present application;
[0031] Figure 16 Figure 14 is a specific embodiment of a photoelectric sensor detection system according to an embodiment of the present application;
[0032] Figure 17 Figure 15 is Figure 16The structure schematic diagram of the emission end in the specific embodiment;
[0033] Figure 18 is Figure 16 The structure schematic diagram of the adjusting member in the specific embodiment;
[0034] Figure 19 is the flow chart of the photoelectric sensor control method provided by the embodiment of the application;
[0035] Explanation of reference signs:
[0036] 10 - housing; 11 - emission end; 12 - emission lens; 13 - receiving lens; 14 - receiving end; 15 - lens support; 16 - adjusting member; 17 - light filter; 18 - wire. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical scheme and advantages of the present application more clear, the present application is further described in detail below in combination with the drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.
[0038] In order to make the description of the present disclosure more detailed and complete, the following describes the embodiments of the present application and specific embodiments; but this is not the only form of implementation or use of the specific embodiments of the present application. The embodiments include the features of the specific embodiments and the method steps and their order used to construct and operate these specific embodiments. However, other specific embodiments can also be used to achieve the same or equivalent functions and step sequences. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of the present application.
[0039] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.
[0040] In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; the text "and / or" only describes the relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent: A alone, A and B exist at the same time, and B alone, in addition, in the description of the embodiments of the present application, "multiple" means two or more than two, and other quantifiers similar thereto should be understood, the preferred embodiments described herein are only used to illustrate and explain the present application, and do not limit the present application, and in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other.
[0041] Please refer to Figures 1-19 The present application provides a photoelectric sensor control system and control method, which can solve the problem that the traditional photoelectric sensor cannot be tested in a mobile and power-free test scene, and broaden the application scene of the photoelectric sensor; please refer to Figure 1 The structure diagram of the photoelectric sensor detection system provided by the present application is shown in the figure, which includes a charging module, a signal transmission module, a main control module and an indication module.
[0042] In the present application, the type of external charging line is identified by the charging module, the grid voltage is accessed by the external charging line, the grid voltage is converted to working voltage by the main control module to further supply power to the battery and the main control module, and then the main control module further supplies power to the signal transmission module and the indication module. Of course, the charging module can also supply power to the signal transmission module, the main control module and the indication module at the same time, and the above methods are all feasible, and the present application does not make further limitation.
[0043] Because the traditional photoelectric sensor needs to be connected to an external power supply when used, it is fixed at a specified position and cannot be used in a mobile detection scene, therefore, the present application provides a battery in the charging module, which converts the grid voltage to working voltage according to different external charging lines to supply power to the battery and other modules in the control system. When it is inconvenient to access the grid voltage in a mobile detection scene, the battery further supplies power to other devices in the photoelectric sensor, so that the detection of the target object can also be realized in a mobile test scene.
[0044] Further, in order to more intuitively know the charging state of the battery, the present application also provides an indication module capable of displaying the current charging state of the battery, which includes a plurality of light emitting diodes for indicating the charging capacity of the battery. The current charging capacity of the battery is detected by the main control module to drive the light emitting diode corresponding to the current charging capacity to emit light.
[0045] As an optional implementation, please refer toFigure 2 The charging module provided by the photoelectric sensor detection system provided by the embodiment of the application has the structure shown in the schematic diagram, the charging module provided by the application includes an identification unit, a power supply unit, and the above-mentioned battery; wherein the identification unit includes a first identification resistor R65 and a second identification resistor R66 connected with an external charging line, the type of the external charging line is further identified according to the pull-down voltage generated by the first identification resistor R65 and the second identification resistor R66, the grid voltage accessed is converted into working voltage to supply power to the power supply unit, at the same time, the battery and the power supply unit satisfy the power supply relationship of bidirectional connection, when the external charging line is connected, the power supply unit supplies power to the battery, when the external input voltage cannot be provided stably, the battery further supplies power to the power supply unit, and the power supply unit further supplies power to other modules in the system, of course, a battery with larger capacity can be selected when the cost is allowed, so as to satisfy the longer time mobile scene application of the photoelectric sensor.
[0046] Specifically, please refer to Figure 8 The circuit diagram of the identification unit provided by the photoelectric sensor detection system provided by the embodiment of the application, the identification unit includes an identification chip U10, the first identification resistor R65 can be observed to access the CC1 pin of the identification chip U10, the second identification resistor R66 accesses the CC2 pin of the identification chip U10, the other end of the first identification resistor R65 and the second identification resistor R66 is grounded, and the type c charging line is taken as an example when the type c charging line accesses the identification chip U10, the CC1 pin and the CC2 pin are pulled low, the application further determines the type of the accessed charging line by identifying the different pull-down voltages generated by the first identification resistor R65 and the second identification resistor R66; of course, other types of charging lines except type c can also be implemented, and the external charging line that can access the identification unit to supply power is feasible, and those skilled in the art should know.
[0047] For example, the values of the first identification resistor R65 and the second identification resistor R66 can be set as suspended, 0.8k-1.2k, 5.1k, the values of the first identification resistor R65 and the second identification resistor R66 can be the same or different, and can be selected according to the actual circuit demand, and the application does not limit this.
[0048] Further, the application identifies the type of the external charging line through the identification unit, sets the power supply unit connected with the identification unit, converts the grid voltage accessed into working voltage to supply power to the battery and the master control module.
[0049] Please refer to Figure 9As can be observed from the circuit diagram of the power supply unit in the photoelectric sensor detection system provided by the embodiment of the present application, the power supply unit comprises a battery management chip U11, wherein the ISET pin is connected to the ground through a resistor R67, the VIN pin of the battery management chip U11 is connected to the VIN lead of the identification unit for accessing the input voltage VIN, the VIN pin is further connected to a capacitor C30, one end of the capacitor C38 is connected to the ground, and the other end of the capacitor C38 is connected to the lead of the input voltage VIN, the BAT pin of the battery management chip U11 is used to connect the storage battery to charge the storage battery, and the current-limiting resistor R75 and the sampling resistor R76 are connected in sequence between the storage battery and the BAT pin, as can be observed, one end of the sampling resistor R76 is connected to the ground, and the other end of the sampling resistor R76 is connected to the current-limiting resistor R75 and then connected between the storage battery and the BAT pin of the battery management chip U11.
[0050] Figure 9 The V-check in the battery management chip U11 is used to detect the voltage of the storage battery, and by sampling the sampling resistor R75, the voltage change data of the storage battery can be obtained, so that the host control module can generate the current charging capacity of the storage battery according to the voltage change data, and further drive the corresponding light-emitting diode to emit light, so that the user can know the charging state of the storage battery in time; for example, the voltage range of the storage battery is allowed to be between 3.3V-16V.
[0051] Further, the BAT pin of the battery management chip U11 is further connected to a capacitor C37, and the SW pin of the battery management chip U11 is connected to an inductor L1, the inductor L1 is connected between the capacitor C37 and the BAT pin, and the other end of the capacitor C37 is connected to the ground.
[0052] Please continue to refer to Figure 9 As can be observed, the NTC pin of the battery management chip U11 is further connected to a thermistor R70, a first voltage dividing resistor R71 is connected in parallel across the thermistor R70, one end of the thermistor R70 and the first voltage dividing resistor R71 is connected to the ground, and the other end of the thermistor R70 and the first voltage dividing resistor R71 is connected to a second voltage dividing resistor R72. Since the thermistor R70 has the characteristic of negative temperature coefficient thermistor, the higher the temperature, the smaller the resistance value.
[0053] When the temperature rises, the resistance value of the thermistor R70 will decrease, thereby changing the voltage across the NTC pin of the battery management chip U11, and after the battery management chip U11 detects that the voltage change reaches a certain preset threshold, the power supply to the storage battery and other modules in the system will be stopped, and the state will be restored after power-up again.
[0054] The application can control the temperature change of the battery and the battery management chip U11 through the thermistor R70. Of course, other heat-generating devices can also be monitored by setting other thermistors. The above setting methods are feasible, and the application does not make further limitations.
[0055] Further, the GND pin of the battery management chip U11 is grounded, the STAT pin of the battery management chip U11 is connected with a resistor R73, the ESBST pin of the battery management chip U11 is connected with a resistor R74, the other end of the resistor R74 is grounded, the 5VOUT pin of the battery management chip U11 is used to provide a working voltage V5P0 to the main control module or other modules in the system, and the 5VOUT pin of the battery management chip U11 is also connected with a capacitor C38, and the other end of the capacitor C38 is grounded.
[0056] It should be noted that, in order to achieve better shielding effect, the ground of the VIN pin, the BAT pin and the SW pin in the battery management chip U11 can be used as external ground, and the ground of the remaining other pins can be used as internal ground, and the magnetic beads are used for isolation to avoid generating noise in the test process. Of course, the above provided method is only used as a preferred embodiment for description, and does not limit the application.
[0057] Please refer to Figure 6 The overall structure schematic diagram of the photoelectric sensor detection system provided by the application embodiment, when the photoelectric sensor is limited by the application scene, or needs to be used in a mobile scene, there is no way to access the grid voltage through the external charging line. Since the battery has stored enough power, the battery can further supply power to the power supply unit to convert the power provided by the battery into a working voltage, and the power supply unit continues to supply power to other modules in the system, such as the main control module, so that the photoelectric sensor can complete the detection of the target object in the mobile scene without external power supply.
[0058] Please refer to Figure 4 The structure schematic diagram of the indication module in the photoelectric sensor detection system provided by the application embodiment, in the application embodiment, the indication module includes a light-emitting indication unit, a buzzer indication unit and an output indication unit; wherein the light-emitting indication unit includes a plurality of light-emitting diodes for indicating the charging capacity of the battery.
[0059] As an optional embodiment, the indication module includes a light-emitting indication unit, the light-emitting indication unit includes a plurality of light-emitting diodes for indicating the current charging capacity of the battery, and the plurality of light-emitting diodes at least include a first light-emitting diode, a second light-emitting diode, a third light-emitting diode and a fourth light-emitting diode.
[0060] When the current charging capacity of the battery is the first capacity interval, the master control module drives the first, second, third and fourth light-emitting diodes to flash in turn; when the current charging capacity of the battery is the second capacity interval, the master control module drives the first light-emitting diode to emit light continuously and drives the second light-emitting diode to flash; when the current charging capacity of the battery is the third capacity interval, the master control module drives the second light-emitting diode to emit light continuously and drives the third light-emitting diode to flash; when the current charging capacity of the battery is the fourth capacity interval, the master control module drives the third light-emitting diode to emit light continuously and drives the fourth light-emitting diode to flash; when the battery is fully charged, the master control module drives the first, second, third and fourth light-emitting diodes to emit light continuously for n seconds and then all turn off.
[0061] Taking the first, second, third and fourth light-emitting diodes as an example, the application corresponds to the above-mentioned four light-emitting diodes and sets four capacity intervals corresponding to four gears, including the first, second, third and fourth capacity intervals.
[0062] Exemplarily, the first capacity interval can be set to 0-25%, the second capacity interval to 25%-50%, the third capacity interval to 50%-75%, and the fourth capacity interval to 75%-100%, and each capacity interval is provided with a corresponding light-emitting diode. When the capacity of the battery reaches the corresponding capacity interval, the corresponding light-emitting diode is driven by the master control module to emit light. The current charging capacity of the battery can be compared with the capacity after the battery is fully charged to form a ratio of the current charging capacity to the total capacity of the battery. The ratio is further compared with the above-mentioned four capacity intervals.
[0063] Specifically, the present application monitors the current charging capacity of the battery in real time through V-check. When the battery is in a charging state, but the ratio of the current charging capacity to the total capacity of the battery does not exceed 25% in the first capacity interval, i.e., the current charging capacity of the battery is in the first capacity interval, the master control module controls the above-mentioned four light-emitting diodes to flash in a slow flashing manner. When the battery is fully charged by more than 25% but less than 50% in the second capacity interval, i.e., the current charging capacity of the battery is in the second capacity interval, the master control module drives the first light-emitting diode to continuously emit light and drives the second light-emitting diode to flash. When the battery is fully charged by more than 50% but less than 75% in the third capacity interval, i.e., the current charging capacity of the battery is in the third capacity interval, the master control module drives the second light-emitting diode to continuously emit light and drives the third light-emitting diode to flash. When the battery is fully charged by more than 75% but not fully charged, i.e., the current charging capacity of the battery is in the fourth capacity interval, the master control module drives the third light-emitting diode to continuously emit light and drives the fourth light-emitting diode to flash. When the battery is fully charged, the above-mentioned first, second, third and fourth light-emitting diodes are all extinguished after being driven by the master control module to continuously emit light for n seconds.
[0064] Of course, the current charging capacity of the battery can also be more accurately divided into ranges, and a larger number of light-emitting diodes can be provided, subject to cost constraints. The present application does not further limit the specific ranges of the above-mentioned battery charging capacity.
[0065] As an optional implementation, the current charging capacity of the battery can also be directly reflected through the current voltage of V-check. For example, the current voltage of V-check is divided into four ranges. When the current voltage of V-check reaches the corresponding range, the master control module drives the corresponding light-emitting diode to emit light or flash. In a specific embodiment provided by the present application, the current voltage of V-check needs to satisfy 0-5V, so 0-5V needs to be divided into four corresponding range intervals, which are 0-1.25V, 1.25V-2.5V, 2.5V-3.75V and 3.75V-5V. When the master control module detects that V-check satisfies a range interval, the corresponding light-emitting diode is driven to emit light or flash. The light emission and flashing process of each light-emitting diode is described above with reference to the first, second, third and fourth capacity intervals, and the present application does not make too much repetition.
[0066] It needs to be explained that the application preferably displays by the above ratio and the comparison of the electricity interval, avoids the difference of the current voltage of V-check caused by the selection of each device in the test system and the different values, and also needs to be re-divided according to the different current voltage of V-check, and the ratio comparison mode is more applicable than the value interval comparison mode.
[0067] For example, please refer to Figure 13 The circuit diagram of the light-emitting indication unit and the output indication unit in the photoelectric sensor detection system provided by the embodiment of the application, the light-emitting indication unit provided by the application includes a first light-emitting diode D12, a second light-emitting diode D16, a third light-emitting diode D15 and a fourth light-emitting diode D17, wherein the first light-emitting diode D12 and the second light-emitting diode D16 are connected in parallel, one end of the first light-emitting diode D12 and the second light-emitting diode D16 is commonly connected and then connected to the 28th pin LED1 of the main control chip U5 through the resistor R78, the third light-emitting diode D15 and the fourth light-emitting diode D17 are connected in parallel, one end of the third light-emitting diode D15 and the fourth light-emitting diode D17 is commonly connected and then connected to the 27th pin LED2 of the main control chip U5 through the resistor R77, and the other end of the first light-emitting diode D12, the second light-emitting diode D16, the third light-emitting diode D15 and the fourth light-emitting diode D17 is commonly connected and then connected to the 26th pin LED_COM of the main control chip U5, so that the main control chip U5 drives the corresponding light-emitting diode to emit light according to the detected V-check voltage.
[0068] In the embodiment of the application, after the battery is set to meet the use demand of the photoelectric sensor in the mobile scene, the signal transmission module further emits the light signal, the double-PD receiving tube receives the light signal, and the light signal is converted into an electric signal and transmitted to the main control module after amplification, so that the main control module compares the amplified electric signal with the preset threshold value to determine whether there is a target object.
[0069] As an optional implementation, please refer to Figure 3 The structure diagram of the signal transmission module in the photoelectric sensor detection system provided by the embodiment of the application, the signal transmission module provided by the application includes a transmitting unit, a receiving unit and an operational amplification unit; wherein the main control module is used for sending a modulated signal to the transmitting unit, so that the transmitting unit emits a light signal according to the modulated signal, the receiving unit includes the above-mentioned double-PD receiving tube, the light signal is received by the double-PD receiving tube, and the two received light signals are converted into voltage signals, the operational amplification unit includes a first operational amplification circuit and a second operational amplification circuit, so as to filter and differentially amplify the voltage signals, and the differentially amplified voltage signals are transmitted to the main control module.
[0070] Please refer to Figure 11 , the circuit diagram of the transmitting unit in the photoelectric sensor detection system provided by the embodiment of the present application, the transmitting unit provided by the present application includes a transistor Q2 and a light-emitting diode D14, it can be observed that the base of the transistor Q2 is connected to the modulated signal PWM signal sent by the master module through the resistor R61, the emitter of the transistor Q2 is connected with the resistor R60, the resistor R29 is connected between the emitter and the base of the transistor Q2, one end of the resistor R29 is connected between the resistor R61 and the base of the transistor Q2, the other end of the resistor R29 is connected with the resistor R60 and then grounded, the collector of the transistor Q2 is connected with the cathode of the light-emitting diode D14, the anode of the light-emitting diode D14 is connected with the working voltage V5P0 through the resistor R6, the capacitor C25 is connected between the anode of the light-emitting diode D14 and the resistor R6, the capacitor C24 is connected in parallel across the capacitor C25, and the other end of the capacitor C25 and the capacitor C24 is connected and then grounded.
[0071] In the embodiment of the present application, the master module controls the light-emitting diode D14 to emit a light signal with a fixed frequency and duty cycle through the PWM modulated signal, the light signal can be red light, infrared light, laser and VCSEL (Vertical-Cavity Surface-Emitting Laser, vertical-cavity surface-emitting laser), and the specific setting form of the light signal is not limited by the present application.
[0072] Further, the resistor R61 is a current-limiting resistor for limiting the current at the base of the transistor Q2, the resistor R29 is a voltage dividing resistor for controlling the voltage at the base of the transistor Q2, the PWM modulated signal is used to control the conduction of the transistor Q2, when the PWM signal is high, the CE of the transistor Q2 is turned on, the transistor Q2 belongs to the amplification region, when the PWM signal is low, the CE of the transistor Q2 is cut off, at this time the transistor Q2 belongs to the cut-off region, the resistor R60 and the resistor R6 constitute a current-limiting effect on the light-emitting diode D14, by adjusting the two resistors R60 and R6, the peak current of the light-emitting diode D14 is adjusted, by adjusting the peak current of the light-emitting diode D14, the light-emitting diode D14 can emit a light signal with greater intensity according to the demand, so that the receiving unit receives a larger light signal, further increasing the induction distance formed between the transmitting unit and the receiving unit, the capacitor C25 and the capacitor C24 are energy storage capacitors, which can provide temporary power for the switching action of the light-emitting diode D14 when the power supply is abnormal.
[0073] As an optional implementation, the receiving unit is used for receiving the light signal emitted by the light emitting diode D14, converting the light signal into an electric signal, and transmitting the electric signal to the main control module after two-stage amplification processing of the electric signal by the operational amplification unit.
[0074] Please refer to Figure 12 The circuit diagram of the receiving unit and the operational amplification unit in the photoelectric sensor detection system provided by the embodiment of the present application includes a double-PD receiving tube U7. The first cathode and the second cathode of the double-PD receiving tube U7 are connected in common and then connected to a working voltage V5P0 through a resistor R63. A capacitor C14 is further connected between the resistor R63 and the double-PD receiving tube U7, and the other end of the capacitor C14 is grounded. A resistor R11 is connected to the first anode of the double-PD receiving tube U7, and a resistor R62 is connected to the second anode of the double-PD receiving tube U7. The other ends of the resistor R11 and the resistor R62 are grounded.
[0075] Further, the operational amplification unit provided by the present application includes a first operational amplification circuit and a second operational amplification circuit. The first operational amplification circuit includes an operational amplifier U8A. The reverse input end of the operational amplifier U8A is connected to the first anode end of the double-PD receiving tube U7 through a resistor R9 and a capacitor C6. The same-phase input end of the operational amplifier U8A is connected to the second anode end of the double-PD receiving tube U7 through a capacitor C34. A resistor R13 is connected between the output end of the amplifier U8A and the reverse input end of the amplifier U8A.
[0076] It can be observed that the VCC end of the operational amplifier U8A is connected in sequence to a resistor R4, a resistor R32, and a resistor 22. The other end of the resistor 22 is grounded. The other end of the resistor R4 is connected to a working voltage V5P0. A resistor R64 is further arranged between the VCC end and the same-phase input end of the operational amplifier U8A. One end of the resistor R64 is connected between the same-phase input end of the operational amplifier U8A and the capacitor C34. The other end of the resistor R64 is connected between the resistor R4 and the resistor R32. The resistor R64 and the capacitor C39 are connected in parallel. The capacitor C35 is connected to the resistor R64 and the capacitor C39 in common. The other end of the capacitor C35 is grounded. Further observation shows that the resistor R64 and the capacitor C39 are further connected to a resistor R79, which is connected to the ninth pin AIN of the main control chip U5 through the resistor R79.
[0077] Further, the second operational amplifier circuit includes an operational amplifier U9B, a resistor R7 and a capacitor C15 connected between the inverting input terminal of the operational amplifier U9B and the output terminal of the operational amplifier U8A, the non-inverting input terminal of the operational amplifier U8A is connected with the capacitor C15, the capacitor C15 is connected in parallel across the resistor R22, and the capacitor C15 is grounded after being connected with the resistor R22.
[0078] The output terminal of the operational amplifier U9B transmits the differential amplified voltage signal to the 31st pin Receiver of the main control chip U5 through the resistor R8, and the capacitor C7 is further arranged between the 31st pin Receiver and the resistor R8, and the other end of the capacitor C7 is grounded; the resistor R1 is connected between the output terminal of the operational amplifier U9B and the inverting input terminal of the operational amplifier U9B, and the capacitor C26 is connected in parallel across the resistor R1, and the above transmitting unit, receiving unit and operational amplifying unit jointly form a signal transmission module.
[0079] In the embodiment of the present application, the resistor R63 is a current limiting resistor, the capacitor C14 filters the ripple noise in the input voltage V5P0, and the double PD receiving tube U7 is an integrated double PD photodiode device, which has the characteristic that its resistance changes with the intensity of light, so that the change of the reflection intensity caused by the color of the object can be avoided, and the difference in sensing distance caused by the color of the object is further reduced. And the present application replaces the traditional single PD receiving tube with the double PD receiving tube U7, and cooperates with the subsequent differential amplification circuit, which can effectively avoid the error caused by the color of the object within a certain distance, and limit the error of black and white objects within a certain distance within 1:1, and eliminate the sensing distance difference caused by the different colors of the target object.
[0080] Further, the resistor R11 and the resistor R62 are sampling resistors arranged in the double PD receiving tube U7. Since the double PD receiving tube U7 is an integrated double receiving tube photodiode device, the resistance of the double PD receiving tube U7 changes with the intensity of light, and the voltage across the two resistors R11 and R62 also changes with the change of the resistance, and the optical signal is further converted into an electrical signal.
[0081] The above capacitor C6 and capacitor C34 are coupling capacitors, which are used to remove the direct current component of the sampling resistors R11 and R62, retain the alternating current component, filter out low frequency and pass high frequency, and provide alternating current signals for the operational amplifying unit in the subsequent stage.
[0082] In the embodiment of the present application, the above-mentioned resistance R4, resistance R32 and resistance R22 constitute a voltage dividing resistance, respectively providing a direct current to the same direction input terminals of the first operational amplifier circuit and the second operational amplifier circuit, the capacitor C15 and the capacitor C35 are filter capacitors, the resistance R64 is a current limiting resistance, which can adjust the offset current of the first operational amplifier circuit; the capacitor C39 is a high frequency filter capacitor, and the resistance R79 can control the direct current of the operational amplifier U8A when encountering high frequency interference, and the direct current is adjusted to suppress noise interference.
[0083] Further, the resistance R13 and the resistance R9 are the amplification feedback resistances of the operational amplifier U8A, the capacitor C5 is a direct current isolation capacitor, which can isolate the signal of the operational amplifier U8A from the direct current, the resistance R1 and the resistance R7 form the multiple adjustment resistances of the second operational amplifier circuit, the capacitor C7 is a filter capacitor, the resistance R21 and the resistance R26 are the direct current voltage dividing resistors of the operational amplifier U9B, and the capacitor C26 is a filter capacitor; the resistance R8 and the capacitor C7 form an RC low pass filter to filter out the noise of the operational amplifier, and the Receiver signal is generated after filtering and transmitted to the main control chip U5, which judges whether the signal is the required signal, compares the signal with the preset threshold value if it is the required signal, judges whether there is a target object between the transmitting unit and the receiving unit, and outputs various logic control signals to other modules according to the judgment result.
[0084] As an optional implementation, please refer to Figure 10 The circuit diagram of the main control module in the photoelectric sensor detection system provided by the embodiment of the present application is shown in the figure, when the main control module judges that there is a target object, the buzzer in the buzzer indication unit is further driven to sound and the output indication diode in the output indication unit is driven to emit light.
[0085] Please refer to Figure 14 The circuit diagram of the buzzer indication unit in the photoelectric sensor detection system provided by the embodiment of the present application is shown in the figure, the buzzer indication unit includes a buzzer LS1 and a triode Q4, it can be observed that the two ends of the buzzer LS1 are connected in parallel with the resistance R40, one end of the buzzer LS1 and the resistance R40 is connected to the working voltage V5P0, the other end of the buzzer LS1 and the resistance R40 is connected to the collector of the triode Q4, the emitter of the triode Q4 is grounded, the base of the triode Q4 is connected with the resistance R80, one end of the resistance R80 is grounded, the other end of the resistance R80 is connected with the base of the triode Q4, and then connected with the 13th pin BUZZER_PWM of the main control chip U5 through the resistance R42, when the main control module judges that there is a target object in the detection area, the BUZZER_PWM signal is outputted by the main control chip U5 to control the response of the LS1 buzzer.
[0086] Specifically, when the BUZZER_PWM signal output by the main control chip U5 is at a high level, the transistor Q4 is turned on, so that the buzzer LS1 loop is turned on to control the buzzer LS1 to respond. The resistor R42 is a current limiting resistor, and the resistor R80 is a voltage dividing resistor. The voltage across the transistor Q4 can be controlled by the resistor R42 and the resistor R80. The resistor R40 is a current limiting resistor, and the sound level of the buzzer LS1 can be adjusted by adjusting the resistance value of R40, and the buzzer LS1 is protected. The resistance value of the resistor R40 is not limited in the present application.
[0087] Please continue to refer to Figure 13 The output indicating unit includes an output indicating diode D13, the cathode of the output indicating diode D13 is grounded, and the anode of the output indicating diode D13 is connected to the resistor R43 and then to the 25th pin LED_OUT of the main control chip U5. The resistor R43 functions as a current limiting resistor. When the main control module determines that there is a target object in the detection area, the LED_OUT control signal is output to the output indicating unit to control the conduction of the output indicating diode D13, so that the detection result of whether there is a target object can be more intuitively known.
[0088] When the main control unit detects a fault in the system, the BUZZER_PWM signal is also output to control the buzzer LS1 to respond, so that the sound prompt is realized, so that the staff can quickly eliminate the fault.
[0089] As an optional implementation, please refer to Figure 5 The output protection module in the photoelectric sensor detection system provided in the embodiment of the present application, and the photoelectric sensor control system provided by the present application further includes an output protection module, which includes an output unit for connecting a load, and a short circuit protection unit capable of protecting the system circuit.
[0090] In the embodiment of the present application, when the main control module determines that there is a target object, the output signal is sent to the output unit to make the output control transistor in the output unit conduct to provide a load current to the load.
[0091] Please refer to Figure 15 The circuit diagram of the output protection module in the photoelectric sensor detection system provided in the embodiment of the present application, the output unit includes an output control transistor Q5, the base of the output control transistor Q5 is connected with a resistor R31, one end of the resistor R31 is grounded, the other end of the resistor R31 is connected with the base of the output control transistor Q5, and then connected with the 8th pin signal of the main control chip U5 through the resistor R30, the collector of the output control transistor Q5 is connected with a load, the emitter of the output control transistor Q5 is connected with a resistor R37, the other end of the resistor R37 is grounded,Figure 15 J2 is an interface, which can be used to connect a load.
[0092] Further, the short-circuit protection unit includes a short-circuit protection transistor Q6, a resistor R33 connected between the base of the short-circuit protection transistor Q6 and the emitter of the output control transistor Q5, a resistor R34 connected between the base of the short-circuit protection transistor Q6 and the emitter of the short-circuit protection transistor Q6, one end of the resistor R34 being grounded after being connected with the emitter of the short-circuit protection transistor Q6, a working voltage V5P0 connected to the collector of the short-circuit protection transistor Q6 through a resistor R36, and the collector of the short-circuit protection transistor Q6 being directly connected to the 10th pin NPN_Short of the main control chip U5.
[0093] When the main control module determines that there is a target object, a signal control signal is output to the output unit to further control the output control transistor Q5 to be turned on. When the signal control signal is at a high level, the voltage across J2 is at a low level. When the signal control signal is at a low level, the voltage across J2 is at a high level. Thus, the power supply state of the load can be adjusted according to requirements.
[0094] The resistor R30 is a current-limiting resistor, and the resistor R31 is a voltage-dividing resistor, which can be used to control the voltage across the base and the emitter of the output control transistor Q5. The resistor R37 is an output current-limiting resistor, and the value of the resistor R37 can be changed to control the maximum output load current.
[0095] The output unit is directly controlled by the short-circuit protection transistor Q6. When the user-side load is reduced, the output load current is changed. According to the output load current and Ohm's law, the voltage across the resistor R37 can be obtained. The resistor R33 is a current-limiting resistor, and the resistor R34 is a voltage-dividing resistor. The voltage across the resistor R37 can control the conduction of Q6 after being divided by the resistors R33 and R34.
[0096] Specifically, when the output load current exceeds the maximum load current, the short-circuit protection transistor Q6 is controlled to be turned on. At this time, NPN_Short outputs a low level. When the output load current is lower than the maximum load current, the short-circuit protection transistor Q6 is controlled to be turned off. At this time, NPN_Short outputs a high level. The NPN_Short is transmitted to the main control module by the output unit. The main control module controls the signal according to the NPN_Short signal, so that the main control module further controls the turn-off of the signal. The output signal is in a rectangular pulse form. A pulse is output every certain period of time. When the load current is lower than the preset load current, the main control module stops the pulse output and restores the normal output of the output protection module.
[0097] In the embodiment of the present application, the output protection module includes an output unit controlled by the signal signal, and a short circuit protection unit outputting the NPN_Short signal. Since the output control transistor Q5 needs to output a signal to the outside, the withstand voltage of the output control transistor Q5 must be high, and in principle, the higher the better. In the case where the withstand voltage is not enough, a transient voltage suppression diode TVS or electrostatic discharge ESD tube can be connected in parallel to the OUT pin to ground, which protects the output unit. In addition, the output control transistor Q5 needs to be designed according to the actual requirements of the photoelectric sensor, such as the maximum power, maximum current, parasitic current, turn-on speed, temperature drift, DC amplification parameters, and the like. Those skilled in the art should know.
[0098] Further, taking the turn-on voltage between the emitter and the base of the short circuit protection transistor Q6 as 0.7V for example, according to Ohm's law, the voltage across the resistor R37 needs to reach 0.7V to trigger the short circuit protection transistor Q6 to short circuit and conduct, further sending the NPN_Short short circuit protection signal to the main control module. Therefore, the power of the short circuit protection transistor Q6 should be as large as possible to avoid short circuit caused by improper operation of the customer, which further damages the output control transistor Q5 and the resistor R37. As for the rest of the above-mentioned electrical devices which are not explained in detail, their specific selection can be adjusted according to actual needs, and the present application does not make further limitations.
[0099] As an optional implementation, please refer to Figure 7 The structure diagram of the optical filter in the photoelectric sensor detection system provided by the embodiment of the present application is shown in FIG. 6. In order to achieve a longer detection distance, the present application further provides a transmitting lens, an optical filter and a receiving lens between the transmitting unit and the receiving unit.
[0100] Please continue to refer to Figure 7 The transmitting lens is provided herein to adjust the emission angle of the light signal emitted by the transmitting unit, so that the light signal enters the receiving lens as parallel light as much as possible. Then, the optical filter is arranged between the transmitting lens and the receiving lens to filter out the unwanted stray light in the light signal, so as to avoid affecting the detection accuracy of the photoelectric sensor. The receiving lens is used to focus the light signal filtered by the optical filter to the double-PD receiving tube, so that the double-PD receiving tube converts the light signal into a voltage signal.
[0101] It should be noted that the photoelectric sensor control system provided by the present application Figure 7 The transmitting lens and the receiving lens provided by the present application are both in the form of convex lenses, and the transmitting unit and the receiving unit are in the form of a direct type photoelectric sensor. However, in fact, the photoelectric sensor control system provided by the present application can also be applied to a diffuse reflection photoelectric sensor.
[0102] Please refer to Figure 16A specific embodiment of the photoelectric sensor detection system provided by the present application,
[0103] Figure 16 The diffuse reflection photoelectric sensor shown includes a transmitting end 11, a receiving end 14, and a housing 10 for accommodating the transmitting end 11 and the receiving end 14; the present application is provided with a transmitting lens 12 and a receiving lens 13 at positions corresponding to the transmitting end 11 and the receiving end 14 in the housing 10, and a light filtering piece 17 is arranged at positions corresponding to the transmitting lens 12 and the receiving lens 13 on the outer wall of the housing 10; the present application sets the light filtering piece 17 for filtering the reflected light signal, so as to filter out the unwanted stray light in the light signal, so that the anti-interference performance of the photoelectric sensor is further improved.
[0104] Please refer to Figure 17 , for Figure 16 The structure diagram of the transmitting end 11 in the specific embodiment, the present application is provided with an adjusting piece 16 for adjusting the relative distance between the receiving lens 13 and the transmitting lens 12 on the side of the housing 10 close to the receiving end 14, the adjusting piece 16 is connected with the receiving lens 13 after penetrating through the housing 10, and the receiving lens 13 is moved along the position away from or close to the transmitting lens 12 by adjusting the adjusting piece 16, so as to adjust the light receiving energy of the receiving end 14, and change the sensing distance of the diffuse reflection photoelectric sensor.
[0105] As an optional implementation, please refer to Figure 18 , for Figure 16 The structure diagram of the adjusting piece 16 in the specific embodiment, the adjusting piece 16 can be provided in the form of an adjusting bolt, the adjusting piece 16 and the lens holder 15 are connected through threads, the adjusting bolt is provided with threads that can realize threaded connection but not locking, and it can be observed that the lens holder 15 is relatively clamped on the receiving end 14, so that the lens holder 15 is moved along the position close to or away from the transmitting lens 12 during the process of rotating the adjusting bolt, further driving the receiving lens 13 clamped on the lens holder 15 to move, so as to change the sensing distance.
[0106] Of course, the adjusting piece 16 and the lens holder 15 can also be connected through a telescopic rod, the relative distance between the transmitting lens 12 and the receiving lens 13 is changed by pulling the adjusting piece 16, and the threaded connection or telescopic connection is feasible, as long as any setting form that can realize the change of the relative distance between the transmitting lens 12 and the receiving lens 13 is allowed, and the present application does not make further limitation.
[0107] Therefore, the photoelectric sensor control system provided by the application can be applied to not only the shot photoelectric sensor but also the diffuse reflection photoelectric sensor, and the setting position of the optical filter needs to be adjusted according to the actual position of the receiving unit, which will not be described in detail herein.
[0108] Based on the photoelectric sensor control system, the application further provides a photoelectric sensor control method, which will be described below. Figure 19 The flowchart of the photoelectric sensor control method provided by the embodiment of the application includes the following steps.
[0109] S1: identifying the external charging type, converting the grid voltage connected by the external charging line into a working voltage for power supply;
[0110] S2: controlling the signal transmission module to emit a light signal with a fixed period and a duty cycle, receiving the laser signal by a double-PD receiving tube, converting the received two-way light signal into a voltage signal, and transmitting the voltage signal to the main control module after filtering and differential amplification;
[0111] S3: comparing the differential amplified voltage signal with a preset threshold value to determine whether there is a target detection object, and adjusting the light emitting state of the output indicating diode according to the result of whether there is a target detection object.
[0112] For other details of the implementation of each step in the control method, please refer to the description of the photoelectric sensor control system provided in the above application embodiments, which will not be described herein.
[0113] In the several embodiments provided by the application, it should be understood that the disclosed device, apparatus and method can be implemented in other ways. For example, the device embodiments described above are only schematic. The division of the units is only a logical function division. There can be another division manner for the actual implementation, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between the units can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or in other forms.
[0114] In addition, each functional unit in the embodiments of the application can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware, or in the form of a software functional unit.
[0115] The photoelectric sensor control system and control method provided by the application set a charging module to convert an external power grid voltage into a working voltage to supply power to a storage battery and a master control module, and do not rely on an external power source, and in a mobile scenario, the storage battery supplies power to the system, so that the photoelectric sensor can be used in an outdoor scenario and a mobile detection scenario, effectively expanding the applicable scenario of the photoelectric sensor; a double-PD receiving tube is set to receive a light signal, which can avoid errors caused by the surface color of a target object within a certain distance, eliminate the sensing distance difference caused by different colors of the target object, and has high detection accuracy; in the charging process, the current charging capacity of the storage battery is detected in real time, and a light-emitting diode corresponding to the current charging capacity is driven to emit light, so that the user can more intuitively know the current charging capacity of the storage battery and charge in time, avoid losses caused by insufficient storage battery capacity when used outdoors, and meet the demand for long-term continuous use in an outdoor scenario.
[0116] The above merely describes preferred embodiments of the application and is not intended to limit the application, and any modifications, equivalent replacements, and improvements made within the spirit and principle of the application shall be included in the protection scope of the application.
Claims
1. A photoelectric sensor control system, characterized in that, It includes a charging module, a signal transmission module, a main control module, and an indicator module; The charging module is used to identify the type of external charging cable and convert the grid voltage accessed through the external charging cable into the working voltage to supply power to the battery and the main control module. The indicator module includes a plurality of light-emitting diodes (LEDs) for indicating the charging capacity of the battery. The main control module is used to detect the current charging capacity of the battery and drive the LEDs corresponding to the current charging capacity to light up. The signal transmission module is used to transmit optical signals, receive optical signals through dual PD receiver tubes, convert the optical signals into electrical signals, amplify them, and transmit them to the main control module, so that the main control module compares the amplified electrical signals with a preset threshold to determine whether a target object exists. The charging module includes an identification unit and a power supply unit. The identification unit includes an identification chip, a first identification resistor and a second identification resistor connected to the external charging cable. The first identification resistor is connected to the CC1 pin of the identification chip, and the second identification resistor is connected to the CC2 pin of the identification chip. The other ends of the first identification resistor and the second identification resistor are both grounded. The identification unit is used to identify the type of the external charging cable based on the pull-down voltage generated by the first identification resistor and the second identification resistor. A sampling resistor is provided between the power supply unit and the battery. The voltage value of the sampling resistor is obtained in real time so that the main control module can generate the current charging level of the battery.
2. The photoelectric sensor control system as described in claim 1, characterized in that, The power supply unit is used to convert the grid voltage accessed through the external charging cable into a working voltage to supply power to the battery and the main control module. The battery is used to supply power to the power supply unit when there is no external charging cable connected to the mains voltage, so that the power supply unit can convert the power provided by the battery into the working voltage to supply power to the main control module.
3. The photoelectric sensor control system as described in claim 2, characterized in that, The power supply unit includes a battery management chip and a thermistor. The battery management chip is used to detect the voltage across the thermistor and shut off the power supply to the charging module when the voltage across the thermistor exceeds a preset threshold.
4. The photoelectric sensor control system as described in claim 1, characterized in that, The signal transmission module includes a transmitting unit, a receiving unit, and an operational amplifier unit; The main control module is used to send a modulation signal to the transmitting unit, so that the transmitting unit transmits an optical signal according to the modulation signal; The receiving unit includes the dual PD receiving tube, and the receiving unit is used to receive the optical signal through the dual PD receiving tube and convert the received two optical signals into voltage signals. The operational amplifier unit includes a first operational amplifier circuit and a second operational amplifier circuit to filter and differentially amplify the voltage signal, and transmit the differentially amplified voltage signal to the main control module.
5. The photoelectric sensor control system as described in claim 4, characterized in that, A transmitting lens, a filter, and a receiving lens are also provided between the transmitting unit and the receiving unit; The transmitting lens is used to adjust the emission angle of the light signal emitted by the transmitting unit so that the light signal enters the receiving lens as parallel light. The receiving lens is used to focus the light signal onto the dual PD receiving tube so that the dual PD receiving tube converts the light signal into a voltage signal. The filter is disposed between the transmitting lens and the receiving lens to filter out stray light in the optical signal.
6. The photoelectric sensor control system as described in claim 1, characterized in that, The indicator module includes a light-emitting indicator unit, which includes a plurality of light-emitting diodes for indicating the current charging level of the battery. The plurality of light-emitting diodes includes at least a first light-emitting diode, a second light-emitting diode, a third light-emitting diode, and a fourth light-emitting diode. When the current charging capacity of the battery is in the first charging range, the main control module drives the first, second, third, and fourth LEDs to flash sequentially; when the current charging capacity of the battery is in the second charging range, the main control module drives the first LED to continuously light up and drives the second LED to flash; when the current charging capacity of the battery is in the third charging range, the main control module drives the second LED to continuously light up and drives the third LED to flash; when the current charging capacity of the battery is in the fourth charging range, the main control module drives the third LED to continuously light up and drives the fourth LED to flash; when the battery is fully charged, the main control module drives the first, second, third, and fourth LEDs to continuously light up for n seconds and then all turn off.
7. The photoelectric sensor control system as described in claim 1, characterized in that, The indicator module also includes a buzzer indicator unit and an output indicator unit; When the main control unit detects the presence of a target object, it drives the buzzer in the buzzer indicator unit to provide an audible alert and drives the output indicator diode in the output indicator unit to light up. as well as, When the main control unit detects a fault in the system, it drives the buzzer in the buzzer indicator unit to provide an audible alert.
8. The photoelectric sensor control system as described in claim 1, characterized in that, The control system further includes an output protection module, which includes an output unit for connecting a load. When the main control module determines that a target object exists, it sends an output signal to the output unit to turn on the output control transistor in the output unit so as to provide load current to the load.
9. The photoelectric sensor control system as described in claim 8, characterized in that, The output protection module also includes a short-circuit protection unit; When the load current provided by the output control transistor exceeds the preset load current, the short-circuit protection transistor is turned on. The collector of the short-circuit protection transistor is connected to the main control module and sends a short-circuit protection signal to the main control module, so that the main control module controls the output signal to turn off according to the short-circuit protection signal until the load current is lower than the preset load current.
10. A photoelectric sensor control method, applied to the photoelectric sensor control system as described in any one of claims 1-9, characterized in that, The method includes the following steps: Identify the type of external charging and convert the mains voltage connected to the external charging cable into the working voltage for power supply; The control signal transmission module emits optical signals with a fixed period and duty cycle, receives the laser signals through dual PD receiver tubes, converts the two received optical signals into voltage signals, and transmits the voltage signals to the main control module after filtering, differential amplification, and transmission. The differentially amplified voltage signal is compared with a preset threshold to determine whether a target object is detected, and the luminous state of the output indicator diode is adjusted according to the result of whether a target object is detected.
Citation Information
Patent Citations
Interface identification circuit, interface identification method and intelligent terminal
CN113922465A
Photoelectric sensor detection circuit and detection equipment
CN117991395A