The invention provides a method for detecting and preventing rust with a water immersion sensor and a water immersion sensor. The water immersion sensor includes: the first probe of the water immersion sensor is connected with the first IO port in the MCU of the water immersion sensor, and the second probe of the water immersion sensor is connected with the second IO port in the MCU. The output states of the first IO port and the second IO port are complementary in the same period, and the output states include high ones. The output state of the first IO port and the output state of the second IO port alternate between the high-level output and the low-level output during the adjacent period, respectively. During the same period of water entry detection, an electron reflux is formed between the first probe and the second probe. In this example, the loss of electrons of the two probes is compensated by the loss of electricity, so as to prolong the service life of the probes of the water immersion sensor and reduce the probability of corrosion, so as to solve the problem that the stainless steel probes still suffer from long-term rusting in the presence of water.
【技术实现步骤摘要】
水浸传感器及水浸传感器探针防锈方法
本专利技术涉及电子设备领域,尤其涉及一种水浸传感器及水浸传感器探针防锈方法。
技术介绍
水浸传感器是基于液体导电原理,用金属探针来探测是否有水存在。由于水浸传感器经常工作在潮湿的环境中,随着使用时间的增加,往往会导致水浸传感器的金属探针出现锈蚀现象。为了提高水浸传感器的使用寿命,目前多采用不锈钢作为金属探针的材料,虽然延缓了出现锈蚀的时间,但是仍然存在遇水长久出现生锈的问题。
技术实现思路
本专利技术旨在至少在一定程度上解决相关技术中的技术问题之一。为此,本专利技术的第一个目的在于提出一种水浸传感器,通过将水浸传感器的来两个探测接入水浸传感器的微控制单元(MicrocontrollerUnit,简称MCU)中的IO口中,在探测有水时两个探针之间形成电子回流,通过损耗电量的方式来补偿两个探针的电子流失,以实现延长水浸传感器探针的使用寿命,降低锈蚀出现的概率,以解决现有技术中不锈钢材质的金属探针仍然存在遇水长久出现生锈的问题。本专利技术的第二个目的在于提出一种水浸传感器探针防锈方法。为达上述目的,本专利技术第一方面实施例提出了一种水浸传 ...
【技术保护点】
1.一种水浸传感器,其特征在于,包括:所述水浸传感器的第一探针与所述水浸传感器的微控制单元中的第一IO口连接,所述水浸传感器的第二探针与所述微控制单元中的第二IO口连接;其中,所述第一IO口和所述第二IO口在同一周期内的输出状态互补,所述输出状态包括高电平输出和低电平输出,并且在相邻周期间,所述第一IO口的输出状态和所述第二IO口的输出状态分别在所述高电平输出和所述低电平输出之间交替;在同一周期内进行入水探测过程中,所述第一探针和所述第二探针之间导通能够形成电子回流。
【技术特征摘要】
1.一种水浸传感器,其特征在于,包括:所述水浸传感器的第一探针与所述水浸传感器的微控制单元中的第一IO口连接,所述水浸传感器的第二探针与所述微控制单元中的第二IO口连接;其中,所述第一IO口和所述第二IO口在同一周期内的输出状态互补,所述输出状态包括高电平输出和低电平输出,并且在相邻周期间,所述第一IO口的输出状态和所述第二IO口的输出状态分别在所述高电平输出和所述低电平输出之间交替;在同一周期内进行入水探测过程中,所述第一探针和所述第二探针之间导通能够形成电子回流。2.根据权利要求1所述的水浸传感器,其特征在于,还包括:所述第一IO口为所述微控制单元中处于低电平输出状态的闲置IO口;所述第二IO口为所述微控制单元中的中断IO口。3.根据权利要求2所述的水浸传感器,其特征在于,还包括:与所述微控制单元连接的计时器;所述计时器,用于从所述第一探针与所述第二探针导通时开始计时;所述微控制单元,还用于在所述计时器计时到预设的周期后,控制所述第一IO口从当前的输出状态切换到另一输出状态,以及控制所述第二IO口从当前输出状态切换到另一输出状态。4.一种水浸传感器探针防锈方法,其特征在于,用于权利要求1-3中任一项所述的水浸传感器,所述方法包括:当所述水浸传感器在水中检测时,控制同一周期内所述水浸传感器的第一探...
【专利技术属性】
技术研发人员:杨彪,
申请(专利权)人:美的智慧家居科技有限公司,美的集团股份有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。