The invention discloses a control method for a photosensitive sensor, which includes the following steps: S1: photosensitive sensor collects optical signals; S2: identifying the relationship between the intensity of optical signals and the size of the first threshold A; S3: If the intensity of optical signals is greater than the first threshold A in the S2 step, return to S1; S4: If the intensity of optical signals is less than the first threshold A in the S2 step, the control circuit of the photosensitive sensor is connected with each other. When the threshold of the photosensitive sensor is adjusted to the second threshold B; S5: the relationship between the intensity of the detected optical signal and the size of the second threshold B; S6: If the intensity of the optical signal is less than the second threshold in step S5, the control circuit of the photosensitive sensor is connected; S7: If the intensity of the optical signal is greater than the second threshold in step S5, the control circuit of the photosensitive sensor is disconnected and returns to S1, so on. At the same time, the invention also discloses a mosquito killer, which uses the control method of the photosensitive sensor. It can avoid the influence of light when the equipment is running.
【技术实现步骤摘要】
光敏传感器控制方法及使用其的灭蚊器
本专利技术涉及光敏传感器领域,尤其涉及一种光敏传感器控制方法。
技术介绍
现有的光敏传感器控制方法,首先检测外界光,检测到光强度在设定的阀值以下,光敏传感器将运行。当检测到的光强度处在设定的阀值以上,光敏传感器停止运行或不运行。这种控制方法问题在于,当环境的光强度不稳定,或者使用该光敏传感器本会发光,这些情况会导致光敏传感器工作不稳定,从而导致光敏传感器控制的电器设备工作不稳定。例如设置有光敏传感器的灭蚊器,当光敏传感器检测到外界光处在阀值以下,光敏传感器控制灭蚊器工作,由于灭蚊器工作本身产生光,光敏传感器在灭蚊器工作后,立即检测到外界光在阀值以上,光敏传感器就会控制灭蚊器停止工作。
技术实现思路
本专利技术旨在至少在一定程度上解决相关技术中的技术为之一。为此,本专利技术的一个目的是提供一种光敏传感器的控制方法,工作稳定,抗光干扰能力强。本专利技术的另一个目的在于提供一种使用具有此控制方法光敏传感器的灭蚊器。为达到上述目的,本专利技术一方面实施例提供了一种光敏传感器的控制方法,包括以下步骤:S1:光敏传感器收集光信号;S2:识别光信号的强度和第一阀值A的大小关系;S3:若S2步骤中,光信号强度大于第一阀值A,回到S1,如此循环;S4:若S2步骤中,光信号的强度小于第一阀值A,光敏传感器控制电路连通,同时,光敏传感器的阀值调整到第二阀值B;S5:识别检测到的光信号的强度和第二阀值B的大小关系;S6:若S5步骤中,光信号强度小于第二阀值,光敏传感器控制电路连通;S7:若S5步骤中,光信号强度大于第二阀值,光敏传感器控制电路断开, ...
【技术保护点】
1.一种光敏传感器控制方法,特征在于,包括以下步骤:S1:光敏传感器收集光信号;S2:识别光信号的强度和第一阀值A的大小关系;S3:若S2步骤中,光信号强度大于第一阀值A,回到S1,如此循环;S4:若S2步骤中,光信号的强度小于第一阀值A,光敏传感器控制电路连通,同时,光敏传感器的阀值调整到第二阀值B;S5:识别检测到的光信号的强度和第二阀值B的大小关系;S6:若S5步骤中,光信号强度小于第二阀值,光敏传感器控制电路连通;S7:若S5步骤中,光信号强度大于第二阀值,光敏传感器控制电路断开,回到S1,如此循环;其中,A小于B。
【技术特征摘要】
1.一种光敏传感器控制方法,特征在于,包括以下步骤:S1:光敏传感器收集光信号;S2:识别光信号的强度和第一阀值A的大小关系;S3:若S2步骤中,光信号强度大于第一阀值A,回到S1,如此循环;S4:若S2步骤中,光信号的强度小于第一阀值A,光敏传感器控制电路连通,同时,光敏传感器的阀值调整到第二阀值B;S5:识别检测到的光信号的强度和...
【专利技术属性】
技术研发人员:周足易,郑伏林,
申请(专利权)人:广东顺德禾友电子科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。