CN108832700B - Hall switch wake-up and sleep circuit - Google Patents

Hall switch wake-up and sleep circuit Download PDF

Info

Publication number
CN108832700B
CN108832700B CN201810970496.3A CN201810970496A CN108832700B CN 108832700 B CN108832700 B CN 108832700B CN 201810970496 A CN201810970496 A CN 201810970496A CN 108832700 B CN108832700 B CN 108832700B
Authority
CN
China
Prior art keywords
circuit
resistor
hall switch
diode
chip microcomputer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810970496.3A
Other languages
Chinese (zh)
Other versions
CN108832700A (en
Inventor
白俊武
项佰川
熊杰
尹振坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yuanyuan Intelligent Lighting Co ltd
Original Assignee
Shenzhen Yuanyuan Intelligent Lighting Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yuanyuan Intelligent Lighting Co ltd filed Critical Shenzhen Yuanyuan Intelligent Lighting Co ltd
Priority to CN201810970496.3A priority Critical patent/CN108832700B/en
Publication of CN108832700A publication Critical patent/CN108832700A/en
Application granted granted Critical
Publication of CN108832700B publication Critical patent/CN108832700B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
    • H02J7/34Parallel operation in networks using both storage and other DC sources, e.g. providing buffering
    • H02J7/35Parallel operation in networks using both storage and other DC sources, e.g. providing buffering with light sensitive cells
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JELECTRIC POWER NETWORKS; CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or discharging batteries or for supplying loads from batteries
    • H02J7/855Circuit arrangements for charging or discharging batteries or for supplying loads from batteries with circuits adapted for supplying loads from the battery

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

本发明公开了一种霍尔开关的唤醒及休眠电路,霍尔开关的唤醒及休眠电路包括被控电路、霍尔开关、磁性件和单片机。所述霍尔开关的电源输入端与供电电源连接,霍尔开关的信号输出端与单片机的信号输入端连接,单片机的信号输出端与被控电路连接。霍尔开关感应磁性件,并在磁感应强度达到预设磁性强度值时,输出第一电平信号,在磁感应强度低于预设磁性强度值时,输出第二电平信号。单片机在接收到所述霍尔开关输出的第一电平信号时,控制所述被控电路休眠,在接收到所述霍尔开关输出的第二电平信号时,控制所述被控电路工作。本发明能够解决现有太阳能灯具存放或者待机时耗电量较大的问题。

The invention discloses a wake-up and dormancy circuit of a Hall switch. The wake-up and dormancy circuit of the Hall switch comprises a controlled circuit, a Hall switch, a magnetic part and a single-chip microcomputer. The power input end of the Hall switch is connected to the power supply, the signal output end of the Hall switch is connected to the signal input end of the single-chip microcomputer, and the signal output end of the single-chip microcomputer is connected to the controlled circuit. The Hall switch senses the magnetic element, and outputs a first level signal when the magnetic induction reaches a preset magnetic intensity value, and outputs a second level signal when the magnetic induction intensity is lower than the preset magnetic intensity value. The microcontroller controls the controlled circuit to sleep when receiving the first level signal output by the Hall switch, and controls the controlled circuit to work when receiving the second level signal output by the Hall switch. . The invention can solve the problem of large power consumption during storage or standby of the existing solar lamps.

Description

霍尔开关的唤醒及休眠电路Hall switch wake-up and sleep circuit

技术领域technical field

本发明涉及霍尔开关的唤醒及休眠电路技术领域,特别涉及一种霍尔开关的唤醒及休眠电路。The invention relates to the technical field of a wake-up and sleep circuit of a Hall switch, in particular to a wake-up and sleep circuit of a Hall switch.

背景技术Background technique

现有的太阳能灯具在待机时,需要一直保持红外接收模块或者其他接收开启信号的模块工作,使得接收到特定信号后,太阳能灯具开始工作或者关闭。在此过程中,由于相应的接收模块一直处于工作状态,所以太阳能灯具的蓄电池需要一直供给相应的接收模块工作电源,因此,太阳能灯具的蓄电池的电源会一直放电。When the existing solar lamps are in standby, the infrared receiving module or other modules that receive the start signal need to be kept working, so that the solar lamps start to work or turn off after receiving a specific signal. During this process, since the corresponding receiving module is always in working state, the storage battery of the solar lamp needs to supply the working power of the corresponding receiving module all the time, therefore, the power supply of the storage battery of the solar lamp will always be discharged.

发明内容Contents of the invention

本发明的主要目的是提供一种霍尔开关的唤醒及休眠电路,旨在解决现有的太阳能灯具在存放或者待机时耗电量较大的技术问题。The main purpose of the present invention is to provide a wake-up and sleep circuit of a Hall switch, aiming at solving the technical problem of large power consumption of existing solar lamps during storage or standby.

为实现上述目的,本发明提供一种基于霍尔开关的唤醒及休眠电路,所述霍尔开关的唤醒及休眠电路包括被控电路、霍尔开关、磁性件和单片机;In order to achieve the above object, the present invention provides a wake-up and sleep circuit based on a Hall switch, the wake-up and sleep circuit of the Hall switch includes a controlled circuit, a Hall switch, a magnetic component and a single-chip microcomputer;

所述霍尔开关的电源输入端与供电电源连接,所述霍尔开关的信号输出端与所述单片机的信号输入端连接;所述单片机的信号输出端与所述被控电路连接;The power input end of the Hall switch is connected to a power supply, the signal output end of the Hall switch is connected to the signal input end of the single-chip microcomputer; the signal output end of the single-chip microcomputer is connected to the controlled circuit;

所述霍尔开关,用于感应所述磁性件,并在磁感应强度达到预设磁性强度值时,输出第一电平信号,在磁感应强度低于预设磁性强度值时,输出第二电平信号;The Hall switch is used to sense the magnetic member, and output a first level signal when the magnetic induction reaches a preset magnetic intensity value, and output a second level signal when the magnetic induction intensity is lower than a preset magnetic intensity value Signal;

所述单片机,用于在接收到所述霍尔开关输出的第一电平信号时,控制所述被控电路休眠,在接收到所述霍尔开关输出的第二电平信号时,控制所述被控电路工作。The single-chip microcomputer is used to control the controlled circuit to sleep when receiving the first level signal output by the Hall switch, and control the controlled circuit to sleep when receiving the second level signal output by the Hall switch. The controlled circuit works.

优选地,所述被控电路包括采样电路和充电电路,所述充电电路具有输入端、输出端和被控制端,所述充电电路的输入端用于与充电电源连接,所述充电电路的输出端用于与蓄电池连接,所述充放电电路的被控制端与所述单片机连接;所述采样电路的输入端与所述蓄电池连接,所述采样电路的输出端与所述单片机连接;Preferably, the controlled circuit includes a sampling circuit and a charging circuit, the charging circuit has an input terminal, an output terminal and a controlled terminal, the input terminal of the charging circuit is used to connect to a charging power supply, and the output of the charging circuit The terminal is used to connect with the storage battery, the controlled terminal of the charging and discharging circuit is connected to the single-chip microcomputer; the input terminal of the sampling circuit is connected to the storage battery, and the output terminal of the sampling circuit is connected to the single-chip microcomputer;

所述采样电路,用于在工作时,检测所述蓄电池的电压,并输出至所述单片机;The sampling circuit is used to detect the voltage of the storage battery during operation and output it to the single-chip microcomputer;

所述单片机,还用于根据所述采样电路检测的所述蓄电池的电压,输出第一控制信号或者第二控制信号,控制所述充电电路工作或者休眠;The single-chip microcomputer is further configured to output a first control signal or a second control signal according to the voltage of the storage battery detected by the sampling circuit, and control the charging circuit to work or sleep;

所述充电电路,用于在接收到所述第一控制信号时,导通所述充电电源和所述蓄电池之间的通路;在接收到所述第二控制信号时,断开所述充电电源和所述蓄电池之间的通路。The charging circuit is configured to turn on the path between the charging power supply and the storage battery when receiving the first control signal; disconnect the charging power supply when receiving the second control signal and the path between the battery.

优选地,所述被控电路还包括放电电路,所述放电电路具有输入端、输出端和被控制端,所述放电电路的输入端用于与所述蓄电池连接,所述放电电路的输出端用于与用电器连接,所述放电电路的被控制端与所述单片机连接;Preferably, the controlled circuit further includes a discharge circuit, the discharge circuit has an input terminal, an output terminal and a controlled terminal, the input terminal of the discharge circuit is used to connect with the storage battery, and the output terminal of the discharge circuit It is used to connect with electrical appliances, and the controlled end of the discharge circuit is connected to the single-chip microcomputer;

所述单片机,用于根据所述采样电路检测的所述蓄电池的电压,输出第三控制信号或者第四控制信号,控制所述放电电路工作或者休眠;The single-chip microcomputer is configured to output a third control signal or a fourth control signal according to the voltage of the storage battery detected by the sampling circuit, and control the discharge circuit to work or sleep;

所述放电电路,用于在接收到所述第四控制信号时,导通所述蓄电池和所述用电器之间的通路;在接收到所述第三控制信号时,断开所述蓄电池和所述用电器之间的通路。The discharge circuit is configured to, when receiving the fourth control signal, turn on the path between the battery and the electrical appliance; and disconnect the battery and the electrical appliance when receiving the third control signal. The passage between the electrical consumers.

优选地,所述霍尔开关的唤醒及休眠电路还包括上拉电路,所述上拉电路的输入端分别与所述供电电源及所述霍尔开关的电源输入端连接,所述上拉电路的输出端分别与所述单片机的信号输入端及所述霍尔开关的信号输出端连接;Preferably, the wake-up and sleep circuit of the Hall switch further includes a pull-up circuit, the input ends of the pull-up circuit are respectively connected to the power supply and the power input end of the Hall switch, and the pull-up circuit The output end of the single-chip microcomputer is connected with the signal input end of the described Hall switch and the signal output end of the Hall switch respectively;

所述上拉电路,用于在所述单片机工作时,稳定输入单片机的电压。The pull-up circuit is used for stabilizing the voltage input to the single-chip microcomputer when the single-chip microcomputer is working.

优选地,所述上拉电路为第一电阻,所述第一电阻的第一端分别与所述供电电源及所述霍尔开关的电源输入端连接,所述第一电阻的第二端分别与所述单片机的信号输入端及所述霍尔开关的信号输出端连接。Preferably, the pull-up circuit is a first resistor, the first ends of the first resistor are respectively connected to the power supply and the power input ends of the Hall switch, and the second ends of the first resistor are respectively It is connected with the signal input end of the single chip microcomputer and the signal output end of the Hall switch.

优选地,所述充电电路包括第一MOS管、第二电阻、第三电阻、第四电阻、第一二极管、第二二极管、第三二极管、第四二极管、第五二极管、第一电容和第二电容;Preferably, the charging circuit includes a first MOS transistor, a second resistor, a third resistor, a fourth resistor, a first diode, a second diode, a third diode, a fourth diode, a fourth Five diodes, a first capacitor and a second capacitor;

所述第一MOS管的栅极分别与所述第二电阻的第一端及第三电阻的第一端连接,所述第一MOS管的源极分别与所述第二电阻的第二端及所述第一二极管的阳极连接,所述第一MOS管的漏极分别与所述第二二极管的阳极及所述第三二极管的阳极连接;所述第三电阻的第二端为所述充电电路的被控制端;所述第四二极管的阳极分别与所述第二二极管的阴极及所述第三二极管的阴极连接,所述第四二极管、第二二极管和第三二极管的连接节点为所述充电电路的输出端,所述第四二极管的阴极分别与所述第五二极管的阴极、所述第四电阻的第一端、所述第一电容的第一端及所述第二电容的第一端连接,所述第一电容和所述第四电阻的连接节点为所述充电电路的输入端;所述第一二极管的阴极与所述第四电阻的第二端连接;所述第一电容的第二端、所述第二电容的第二端及所述第五二极管的阳极均接地。The gate of the first MOS transistor is respectively connected to the first end of the second resistor and the first end of the third resistor, and the source of the first MOS transistor is respectively connected to the second end of the second resistor connected to the anode of the first diode, the drain of the first MOS transistor is respectively connected to the anode of the second diode and the anode of the third diode; The second end is the controlled end of the charging circuit; the anode of the fourth diode is respectively connected to the cathode of the second diode and the cathode of the third diode, and the fourth and second diodes are respectively connected to the cathode of the third diode. The connection node of the pole diode, the second diode and the third diode is the output end of the charging circuit, and the cathode of the fourth diode is connected with the cathode of the fifth diode and the first diode respectively. The first end of the four resistors, the first end of the first capacitor and the first end of the second capacitor are connected, and the connection node between the first capacitor and the fourth resistor is the input end of the charging circuit ; The cathode of the first diode is connected to the second end of the fourth resistor; the second end of the first capacitor, the second end of the second capacitor and the fifth diode Both anodes are grounded.

优选地,所述放电电路包括第五电阻、第六电阻、第七电阻、第八电阻、第九电阻、第十电阻、第十一电阻、第二MOS管和第三MOS管;Preferably, the discharge circuit includes a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor, a tenth resistor, an eleventh resistor, a second MOS transistor, and a third MOS transistor;

所述第五电阻的第一端为所述放电电路的被控制端,所述第五电阻的第二端分别与所述第二MOS管的栅极、第三MOS管的栅极及所述第六电阻的第一端连接;所述第二MOS管的源极分别与所述第三MOS管的源极、所述第七电阻的第一端、所述第八电阻的第一端、所述第九电阻的第一端和所述第十电阻的第一端连接,所述第二MOS管的漏极、所述第三MOS管的漏极和所述第六电阻的第二端均接地;所述第七电阻的第二端分别与所述第八电阻的第二端、所述第九电阻的第二端、所述第十电阻的第二端及所述第十一电阻的第一端连接,所述第十电阻与所述第十一电阻的连接节点与所述用电器的输出端连接,所述第十一电阻的第二端分别与所述用电器的输入端及所述蓄电池连接。The first end of the fifth resistor is the controlled end of the discharge circuit, and the second end of the fifth resistor is respectively connected to the gate of the second MOS transistor, the gate of the third MOS transistor and the The first end of the sixth resistor is connected; the source of the second MOS transistor is respectively connected to the source of the third MOS transistor, the first end of the seventh resistor, the first end of the eighth resistor, The first end of the ninth resistor is connected to the first end of the tenth resistor, the drain of the second MOS transistor, the drain of the third MOS transistor and the second end of the sixth resistor are all grounded; the second end of the seventh resistor is respectively connected to the second end of the eighth resistor, the second end of the ninth resistor, the second end of the tenth resistor and the eleventh resistor connected to the first end of the tenth resistor and the eleventh resistor to the output end of the electrical appliance, and the second end of the eleventh resistor is respectively connected to the input end of the electrical appliance and the battery connection.

为实现上述目的,本发明还提供一种太阳能电池系统,包括如上所述的霍尔开关的唤醒及休眠电路。In order to achieve the above object, the present invention also provides a solar battery system, including the wake-up and sleep circuit of the Hall switch as described above.

优选地,所述太阳能电池系统还包括:蓄电池和充电电源,所述霍尔开关的唤醒及休眠电路的被控电路具有输入端和输出端,所述被控电路的输入端与所述充电电源连接,所述被控电路的输出端与所述蓄电池连接。Preferably, the solar battery system further includes: a storage battery and a charging power supply, the controlled circuit of the wake-up and sleep circuit of the Hall switch has an input terminal and an output terminal, and the input terminal of the controlled circuit is connected to the charging power supply connected, the output terminal of the controlled circuit is connected with the storage battery.

为实现上述目的,本发明还提供一种太阳能灯具,包括如上所述的太阳能电池系统。To achieve the above object, the present invention also provides a solar lamp, comprising the solar battery system as described above.

本发明提出的一种霍尔开关的唤醒及休眠电路,包括被控电路、霍尔开关、外部磁性件和单片机。通过将所述霍尔开关的电源输入端与供电电源连接,所述霍尔开关的接地端接地,所述霍尔开关的信号输出端与所述单片机的信号输入端连接。所述单片机的信号输出端与所述被控电路连接。霍尔开关在外界磁性器件输入霍尔元件的磁感应强度达到预设磁性强度值时,输出翻转电平至单片机。然后单片机接收霍尔开关输出电平,并控制所述被控电路的导通状态。最后被控电路根据单片机的控制信号,导通或者关闭。在被控电路处于关闭状态时,霍尔开关的唤醒及休眠电路中没有形成通路,所以不需要供电电源输出任何电流,从而霍尔开关的唤醒及休眠电路在休眠时并不消耗任何电流,解决了现有的太阳能灯具在存放或者待机时耗电量较大的技术问题。A Hall switch wake-up and sleep circuit provided by the present invention includes a controlled circuit, a Hall switch, an external magnetic part and a single-chip microcomputer. By connecting the power input terminal of the Hall switch to the power supply, the ground terminal of the Hall switch is grounded, and the signal output terminal of the Hall switch is connected to the signal input terminal of the single-chip microcomputer. The signal output terminal of the single-chip microcomputer is connected with the controlled circuit. When the magnetic induction intensity of the Hall element input by the external magnetic device reaches the preset magnetic intensity value, the Hall switch outputs an inversion level to the microcontroller. Then the single-chip microcomputer receives the output level of the Hall switch, and controls the conduction state of the controlled circuit. Finally, the controlled circuit is turned on or off according to the control signal of the microcontroller. When the controlled circuit is in the off state, there is no path formed in the wake-up and sleep circuit of the Hall switch, so there is no need for the power supply to output any current, so the wake-up and sleep circuit of the Hall switch does not consume any current during sleep, solving the problem The technical problem of large power consumption in storage or standby of existing solar lamps is solved.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to the structures shown in these drawings without creative effort.

图1为本发明的霍尔开关的唤醒及休眠电路的模块示意图;Fig. 1 is the module schematic diagram of the wake-up and dormancy circuit of Hall switch of the present invention;

图2为本发明的霍尔开关的唤醒及休眠电路的电路示意图;Fig. 2 is the circuit schematic diagram of the wake-up and dormancy circuit of Hall switch of the present invention;

图3为本发明的充电电路的电路示意图;Fig. 3 is the circuit diagram of charging circuit of the present invention;

图4为本发明的放电电路的电路示意图。FIG. 4 is a schematic circuit diagram of the discharge circuit of the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

需要说明,本发明实施例中所有方向性指示(诸如上、下、左、右、前、后……)仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。It should be noted that all directional indications (such as up, down, left, right, front, back...) in the embodiments of the present invention are only used to explain the relationship between the components in a certain posture (as shown in the accompanying drawings). Relative positional relationship, movement conditions, etc., if the specific posture changes, the directional indication will also change accordingly.

另外,在本发明中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。In addition, the descriptions involving "first", "second" and so on in the present invention are only for descriptive purposes, and should not be understood as indicating or implying their relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In addition, the technical solutions of the various embodiments can be combined with each other, but it must be based on the realization of those skilled in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist , nor within the scope of protection required by the present invention.

为解决现有的太阳能灯具在存放或者待机时耗电量较大的技术问题,本发明提供一种霍尔开关的唤醒及休眠电路。In order to solve the technical problem of high power consumption of existing solar lamps during storage or standby, the present invention provides a wake-up and sleep circuit of a Hall switch.

在一实施例中,如图1、2所示,霍尔开关的唤醒及休眠电路包括被控电路105、霍尔开关103、磁性件101和单片机104。所述霍尔开关103的电源输入端与供电电源连接,霍尔开关103的信号输出端与单片机104的信号输入端连接;单片机104的信号输出端与被控电路105连接。In one embodiment, as shown in FIGS. 1 and 2 , the Hall switch wake-up and sleep circuit includes a controlled circuit 105 , a Hall switch 103 , a magnetic element 101 and a single-chip microcomputer 104 . The power input end of the Hall switch 103 is connected to the power supply, the signal output end of the Hall switch 103 is connected to the signal input end of the single-chip microcomputer 104 ; the signal output end of the single-chip microcomputer 104 is connected to the controlled circuit 105 .

其中,霍尔开关103感应磁性件101的磁感应强度,并在磁感应强度达到预设磁性强度值时,输出第一电平信号,在磁感应强度低于预设磁性强度值时,输出第二电平信号。此时,磁感应强度的预设磁性强度值是根据霍尔开关103的类型而决定的,在霍尔开关103低于或者高于预设磁性强度值时,霍尔开关103翻转。在本实施例中,若是霍尔开关103感应到磁性件101的磁感应强度等于预设磁性强度值时,输出第一电平信号,可选地,此时第一电平信号为低电平,单片机104在接收到霍尔开关103输出的第一电平信号时,控制被控电路105休眠,此时整个系统中没有耗电设备在运行,从而使得整个霍尔开关的唤醒及休眠电路没有任何通路,从而也不存在损耗电流的情况发生。若是霍尔开关103感应到磁性件101的磁感应强度低于预设磁性强度值时,输出的第二电平信号,单片机104在接收到霍尔开关103输出的第二电平信号时,控制被控电路105工作,此时电路导通。可选地,此时第二电平信号为低电平。值得注意的是,在各种用电器制造完成到安装会经历一段运输过程,因为出厂时用电器会做各种测试,而且各个用电器都会有蓄电池,或者是用于给休眠电路供电或者是给整个用电器供电,在出场测试时,会对这些蓄电池进行充电,然后测试性能。最后出厂然后运输至安装目的的,在这个运输过程中,蓄电池所在的电路会一直给休眠电路供电,从而一直小功率放电,从而使得蓄电池的电量逐渐减少,最后可能使得蓄电池剩余电量不足以支撑休眠电路的工作,从而影响后续安装的准确性和可靠性。特别是蓄电池电量输出完毕后或者是有外界电流作用时,可能会对蓄电池或者是整个用电器造成不可逆转的损伤。而在本实施例中的霍尔开关的唤醒及休眠电路解决了上述问题,本实施例中的技术方案可以使得霍尔开关的唤醒及休眠电路无需预置信号接收电路,即在休眠时无需额外设置休眠电源接受外界,唤醒及休眠信号,另外,设置霍尔开关103还可以在磁性件101的作用下断开电路,使得外界电流或者可能流经用电器的电流无法通过感生磁场或者感生电场,去影响霍尔开关的唤醒及休眠电路的休眠状态和唤醒状态,较好的隔绝了外界干扰,更加可靠的实现了零功耗休眠,另外,由于部件简单,实现功能效果好,可广泛应用于各种设备上,具有极大的经济价值。Wherein, the Hall switch 103 senses the magnetic induction intensity of the magnetic member 101, and when the magnetic induction intensity reaches a preset magnetic intensity value, outputs a first level signal, and when the magnetic induction intensity is lower than a preset magnetic intensity value, outputs a second level signal Signal. At this time, the preset magnetic intensity value of the magnetic induction is determined according to the type of the Hall switch 103 , and when the Hall switch 103 is lower than or higher than the preset magnetic intensity value, the Hall switch 103 flips. In this embodiment, if the Hall switch 103 senses that the magnetic induction intensity of the magnetic member 101 is equal to the preset magnetic intensity value, the first level signal is output. Optionally, the first level signal is at a low level at this time, When the single-chip microcomputer 104 receives the first level signal output by the Hall switch 103, it controls the controlled circuit 105 to sleep. At this time, no power-consuming equipment is running in the entire system, so that the wake-up and sleep circuits of the entire Hall switch do not have any power. path, so there is no loss of current. If the Hall switch 103 senses that the magnetic induction intensity of the magnetic member 101 is lower than the preset magnetic intensity value, the output second level signal, when the single chip microcomputer 104 receives the second level signal output by the Hall switch 103, the control is controlled. The control circuit 105 works, and the circuit is turned on at this time. Optionally, the second level signal is at low level at this moment. It is worth noting that there will be a transportation process from the completion of the manufacture of various electrical appliances to the installation, because the electrical appliances will undergo various tests when they leave the factory, and each electrical appliance will have a battery, either for powering the dormant circuit or for powering the battery. The entire electric appliance is powered, and these batteries are charged during the field test, and then the performance is tested. Finally, it leaves the factory and is transported to the purpose of installation. During this transportation process, the circuit where the battery is located will always supply power to the dormant circuit, so that it will be discharged with low power, so that the power of the battery will gradually decrease, and finally the remaining power of the battery may not be enough to support dormancy. The work of the circuit, thus affecting the accuracy and reliability of the subsequent installation. Especially after the battery output is completed or when there is an external current, it may cause irreversible damage to the battery or the entire electrical appliance. However, the wake-up and sleep circuit of the Hall switch in this embodiment solves the above-mentioned problems. The technical solution in this embodiment can make the wake-up and sleep circuit of the Hall switch without a preset signal receiving circuit, that is, no additional signal receiving circuit is required during sleep. The sleep power supply is set to accept external, wake-up and sleep signals. In addition, the Hall switch 103 can also disconnect the circuit under the action of the magnetic part 101, so that the external current or the current that may flow through the electrical appliance cannot pass through the induced magnetic field or the induced current. The electric field affects the wake-up of the Hall switch and the sleep state and wake-up state of the sleep circuit, which better isolates external interference and more reliably realizes zero-power sleep. In addition, due to the simple components and good functional effects, it can be widely used Applied to various equipment, it has great economic value.

可选地,如图3所示,被控电路105包括采样电路和充电电路,充电电路具有输入端、输出端和被控制端,充电电路的输入端用于与充电电源连接,充电电路的输出端用于与蓄电池连接,充电电路的被控制端与单片机104连接;采样电路的输入端与蓄电池连接,采样电路的输出端与单片机104连接。Optionally, as shown in Figure 3, the controlled circuit 105 includes a sampling circuit and a charging circuit, the charging circuit has an input terminal, an output terminal and a controlled terminal, the input terminal of the charging circuit is used to connect with the charging power source, and the output of the charging circuit The terminal is used to connect with the storage battery, the controlled terminal of the charging circuit is connected with the single-chip microcomputer 104; the input terminal of the sampling circuit is connected with the storage battery, and the output terminal of the sampling circuit is connected with the single-chip microcomputer 104.

其中,采样电路在工作时,检测蓄电池的电压,并输出至单片机104。单片机104根据采样电路检测的蓄电池的电压,输出第一控制信号或者第二控制信号,控制充电电路工作或者休眠,此时,将采集到的蓄电池的电压与实时充电电源电压比对,在此实施例中,可选地,充电电源为太阳能板,所以实时充电电源电压为此时太阳能板转化的电压,即光控电压,将光控电压与蓄电池的电压比较,当光控电压大于蓄电池的电压时,单片机104输出第一控制信号,充电电路在接收到第一控制信号后,导通充电电源和蓄电池之间的通路,即太阳能板开始给蓄电池充电。当光控电压低于蓄电池的电压时,单片机104输出第二控制信号,充电电路在接收到第二控制信号后,断开充电电源和蓄电池之间的通路,从而停止给蓄电池充电。在这一实施例中,通过检测蓄电池电压与充电电源比对,可以控制蓄电池的充电状态,以实现自我调节的功能,无需额外的控制电路或者人工控制。用于太阳能系统中,将太阳能板的光控电压与蓄电池电压比对,不光可以实现对蓄电池的智能充电,还可以从依据电压判断出此时外界环境处于白天(有光)还是黑夜(无光),在白天时,太阳能板的光控电压会高于蓄电池电压,给蓄电池充电,从而实现蓄电池的智能充电,方便太阳能系统的循环使用,具备较强的自我调节功能。Wherein, when the sampling circuit is working, it detects the battery voltage and outputs it to the single-chip microcomputer 104 . The single-chip microcomputer 104 outputs the first control signal or the second control signal according to the voltage of the storage battery detected by the sampling circuit to control the charging circuit to work or sleep. At this time, the voltage of the storage battery collected is compared with the real-time charging power supply voltage. In the example, optionally, the charging power source is a solar panel, so the real-time charging power supply voltage is the voltage converted by the solar panel at this time, that is, the photo-control voltage. Compare the photo-control voltage with the voltage of the battery. When the photo-control voltage is greater than the voltage of the battery , the single-chip microcomputer 104 outputs the first control signal, and the charging circuit turns on the path between the charging power supply and the battery after receiving the first control signal, that is, the solar panel starts to charge the battery. When the light control voltage is lower than the voltage of the storage battery, the single chip microcomputer 104 outputs a second control signal, and the charging circuit disconnects the path between the charging power source and the storage battery after receiving the second control signal, thereby stopping charging the storage battery. In this embodiment, by comparing the voltage of the storage battery with the charging power source, the charging state of the storage battery can be controlled to realize the function of self-regulation without additional control circuit or manual control. Used in solar energy systems, comparing the photo-control voltage of the solar panel with the voltage of the battery can not only realize the intelligent charging of the battery, but also judge whether the external environment is daytime (with light) or night (without light) based on the voltage. ), during the daytime, the photocontrol voltage of the solar panel will be higher than the voltage of the battery to charge the battery, so as to realize the intelligent charging of the battery, facilitate the recycling of the solar system, and have a strong self-regulation function.

可选地,如图4所示,被控电路105还包括放电电路,放电电路具有输入端、输出端和被控制端,放电电路的输入端用于与蓄电池连接,放电电路的输出端用于与用电器连接,放电电路的被控制端与单片机104连接。Optionally, as shown in FIG. 4 , the controlled circuit 105 also includes a discharge circuit, the discharge circuit has an input terminal, an output terminal and a controlled terminal, the input terminal of the discharge circuit is used for connecting with the storage battery, and the output terminal of the discharge circuit is used for It is connected with the electric appliance, and the controlled end of the discharge circuit is connected with the single-chip microcomputer 104 .

其中,单片机104根据采样电路检测的蓄电池的电压,输出第三控制信号或者第四控制信号,控制放电电路工作或者休眠。此时,将采集到的蓄电池的电压与实时充电电源电压比对,在此实施例中,充电电源为太阳能板,所以实时充电电源电压为此时太阳能板转化的电压,即光控电压,将光控电压与蓄电池的电压比较,当光控电压大于蓄电池的电压时,单片机104输出第三控制信号,放电电路在接收到第三控制信号后,断开蓄电池和用电器之间的通路,即蓄电池停止放电。当光控电压低于蓄电池的电压时,单片机104输出第四控制信号,放电电路在接收到第四控制信号后,导通蓄电池和用电器之间的通路,即蓄电池开始放电。在这一实施例中,通过检测蓄电池电压与充电电源比对,可以控制蓄电池的放电状态,以实现自我调节的功能,无需额外的控制电路或者人工控制。用于太阳能系统中,将太阳能板的光控电压与蓄电池电压比对,不光可以实现对蓄电池的智能充电和放电,还可以从依据电压判断出此时外界环境处于白天(有光)还是黑夜(无光),在白天时,太阳能板的光控电压会高于蓄电池电压,给蓄电池充电,在晚上时,太阳能板的光控电压会低于蓄电池电压,给蓄电池放电。从而实现蓄电池的智能充放电,方便太阳能系统的循环使用。Wherein, the single-chip microcomputer 104 outputs the third control signal or the fourth control signal according to the voltage of the storage battery detected by the sampling circuit to control the discharge circuit to work or sleep. At this time, compare the collected battery voltage with the real-time charging power supply voltage. In this embodiment, the charging power supply is a solar panel, so the real-time charging power supply voltage is the voltage converted by the solar panel at this time, that is, the light-controlled voltage. The light control voltage is compared with the voltage of the storage battery. When the light control voltage is greater than the voltage of the storage battery, the single chip microcomputer 104 outputs the third control signal, and the discharge circuit disconnects the path between the storage battery and the electrical appliance after receiving the third control signal, that is, The battery stops discharging. When the light control voltage is lower than the voltage of the storage battery, the single chip microcomputer 104 outputs the fourth control signal. After receiving the fourth control signal, the discharge circuit conducts the path between the storage battery and the electrical consumer, that is, the storage battery starts to discharge. In this embodiment, by comparing the voltage of the storage battery with the charging power source, the discharge state of the storage battery can be controlled to realize the function of self-regulation without additional control circuit or manual control. Used in solar energy systems, comparing the photo-control voltage of the solar panel with the voltage of the battery can not only realize the intelligent charging and discharging of the battery, but also judge whether the external environment is daytime (light) or night (night) based on the voltage. No light), during the day, the photocontrol voltage of the solar panel will be higher than the battery voltage to charge the battery, and at night, the photocontrol voltage of the solar panel will be lower than the battery voltage to discharge the battery. In this way, the intelligent charging and discharging of the battery can be realized, and the recycling of the solar energy system can be facilitated.

可选地,霍尔开关的唤醒及休眠电路还包括上拉电路,上拉电路的输入端分别与供电电源及霍尔开关103的电源输入端连接,上拉电路的输出端分别与单片机104的信号输入端及霍尔开关103的信号输出端连接。Optionally, the wake-up and sleep circuit of the Hall switch also includes a pull-up circuit, the input ends of the pull-up circuit are respectively connected to the power supply and the power input end of the Hall switch 103, and the output ends of the pull-up circuit are connected to the single chip microcomputer 104 respectively. The signal input end is connected to the signal output end of the Hall switch 103 .

其中,上拉电路在单片机104工作时,稳定输入单片机104中的电压,即在霍尔开关103断开时,上拉电路为单片机104提供一个高电平,使得单片机104输出控制信号控制相应被控电路105工作。上拉电路稳定输入单片机104的电压,使得给单片机104的电压更为稳定,控制过程更为精确。Wherein, when the single-chip microcomputer 104 is working, the pull-up circuit stably inputs the voltage in the single-chip microcomputer 104, that is, when the Hall switch 103 is disconnected, the pull-up circuit provides a high level for the single-chip microcomputer 104, so that the control signal output by the single-chip microcomputer 104 is controlled by The control circuit 105 works. The pull-up circuit stabilizes the voltage input to the single-chip microcomputer 104, so that the voltage to the single-chip microcomputer 104 is more stable and the control process is more precise.

可选地,上拉电路为第一电阻,第一电阻的第一端分别与供电电源及霍尔开关103的电源输入端连接,第一电阻的第二端分别与单片机104的信号输入端及霍尔开关103的信号输出端连接。Optionally, the pull-up circuit is a first resistor, the first end of the first resistor is respectively connected to the power supply and the power input end of the Hall switch 103, and the second end of the first resistor is respectively connected to the signal input end of the single chip microcomputer 104 and The signal output end of the Hall switch 103 is connected.

可选地,充电电路包括第一MOS管Q1、第二电阻R2、第三电阻R3、第四电阻R4、第一二极管D1、第二二极管D2、第三二极管D3、第四二极管D4、第五二极管D5、第一电容C1和第二电容C2。第一MOS管Q1的栅极分别与第二电阻R2的第一端及第三电阻R3的第一端连接,第一MOS管Q1的源极分别与第二电阻R2的第二端及第一二极管D1的阳极连接,第一MOS管Q1的漏极分别与第二二极管D2的阳极及第三二极管D3的阳极连接;第三电阻R3的第二端为充电电路的被控制端。第四二极管D4的阳极分别与第二二极管D2的阴极及第三二极管D3的阴极连接,第四二极管D4、第二二极管D2和第三二极管D3的连接节点为充电电路的输出端,第四二极管D4的阴极分别与第五二极管D5的阴极、第四电阻R4的第一端、第一电容C1的第一端及第二电容C2的第一端连接,第一电容C1和第四电阻R4的连接节点为充电电路的输入端。第一二极管D1的阴极与第四电阻R4的第二端连接。第一电容C1的第二端、第二电容C2的第二端及第五二极管D5的阳极均接地。Optionally, the charging circuit includes a first MOS transistor Q1, a second resistor R2, a third resistor R3, a fourth resistor R4, a first diode D1, a second diode D2, a third diode D3, a Four diodes D4, fifth diode D5, first capacitor C1 and second capacitor C2. The gate of the first MOS transistor Q1 is respectively connected to the first end of the second resistor R2 and the first end of the third resistor R3, and the source of the first MOS transistor Q1 is respectively connected to the second end of the second resistor R2 and the first end of the first resistor R2. The anode of the diode D1 is connected, the drain of the first MOS transistor Q1 is respectively connected to the anode of the second diode D2 and the anode of the third diode D3; the second end of the third resistor R3 is the charging circuit. Control terminal. The anode of the fourth diode D4 is respectively connected with the cathode of the second diode D2 and the cathode of the third diode D3, the fourth diode D4, the second diode D2 and the third diode D3 The connection node is the output end of the charging circuit, and the cathode of the fourth diode D4 is respectively connected to the cathode of the fifth diode D5, the first end of the fourth resistor R4, the first end of the first capacitor C1 and the second capacitor C2 The connection node between the first capacitor C1 and the fourth resistor R4 is the input terminal of the charging circuit. The cathode of the first diode D1 is connected to the second end of the fourth resistor R4. The second terminal of the first capacitor C1, the second terminal of the second capacitor C2 and the anode of the fifth diode D5 are all grounded.

其中,当太阳能板的光控电压高于蓄电池电压,充电电路的被控制端输入的第一控制信号为高电平,此时,控制信号通过被控制端流经第二电阻R2和第三电阻R3,并流经第一MOS管Q1使得第一MOS管Q1导通,然后流经第二二极管D2和第三二极管D3,并导通第四二极管D4,此时,充电电路的输入端即充电电源与蓄电池连接,并在第一电容C1和第二电容C2的作用下滤去交流信号。从而使得蓄电池获得的电压稳定。当太阳能板的光控电压低于蓄电池电压,充电电路的被控制端输入的第一控制信号为低电平,控制信号通过被控制端流经第二电阻R2和第三电阻R3,使得第一MOS管Q1断开,因此第二二极管D2、第三二极管D3和第四二极管D4均断开,充电电路的输入端即充电电源与蓄电池的通路断开。Wherein, when the photo-control voltage of the solar panel is higher than the battery voltage, the first control signal input by the controlled end of the charging circuit is high level, at this time, the control signal flows through the second resistor R2 and the third resistor through the controlled end R3, and flows through the first MOS transistor Q1 so that the first MOS transistor Q1 is turned on, then flows through the second diode D2 and the third diode D3, and turns on the fourth diode D4, at this time, charging The input terminal of the circuit, that is, the charging power supply is connected to the storage battery, and the AC signal is filtered under the action of the first capacitor C1 and the second capacitor C2. Thus, the voltage obtained by the battery is stabilized. When the photocontrol voltage of the solar panel is lower than the battery voltage, the first control signal input by the controlled end of the charging circuit is low level, and the control signal flows through the second resistor R2 and the third resistor R3 through the controlled end, so that the first The MOS transistor Q1 is disconnected, so the second diode D2, the third diode D3 and the fourth diode D4 are all disconnected, and the input end of the charging circuit, that is, the path between the charging power supply and the battery is disconnected.

优选地,放电电路包括第五电阻R5、第六电阻R6、第七电阻R7、第八电阻R8、第九电阻R9、第十电阻R10、第十一电阻R11、第二MOS管Q2和第三MOS管Q3。Preferably, the discharge circuit includes a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a tenth resistor R10, an eleventh resistor R11, a second MOS transistor Q2 and a third resistor MOS tube Q3.

第五电阻R5的第一端为放电电路的被控制端,第五电阻R5的第二端分别与第二MOS管Q2的栅极、第三MOS管Q3的栅极及第六电阻R6的第一端连接;第二MOS管Q2的源极分别与第三MOS管Q3的源极、第七电阻R7的第一端、第八电阻R8的第一端、第九电阻R9的第一端和第十电阻R10的第一端连接,第二MOS管Q2的漏极、第三MOS管Q3的漏极和第六电阻R6的第二端均接地;第七电阻R7的第二端分别与第八电阻R8的第二端、第九电阻R9的第二端、第十电阻R10的第二端及第十一电阻R11的第一端连接,第十电阻R10与第十一电阻R11的连接节点与用电器的输出端连接,第十一电阻R11的第二端分别与用电器的输入端及蓄电池连接。The first end of the fifth resistor R5 is the controlled end of the discharge circuit, and the second end of the fifth resistor R5 is respectively connected to the gate of the second MOS transistor Q2, the gate of the third MOS transistor Q3, and the first end of the sixth resistor R6. connected at one end; the source of the second MOS transistor Q2 is respectively connected to the source of the third MOS transistor Q3, the first end of the seventh resistor R7, the first end of the eighth resistor R8, the first end of the ninth resistor R9 and The first end of the tenth resistor R10 is connected to the drain of the second MOS transistor Q2, the drain of the third MOS transistor Q3, and the second end of the sixth resistor R6 are all grounded; the second end of the seventh resistor R7 is connected to the second end of the sixth resistor R7 respectively. The second end of the eighth resistor R8, the second end of the ninth resistor R9, the second end of the tenth resistor R10, and the first end of the eleventh resistor R11 are connected, and the connection node between the tenth resistor R10 and the eleventh resistor R11 The second end of the eleventh resistor R11 is connected to the input end of the electrical appliance and the storage battery respectively.

其中,当太阳能板的光控电压低于蓄电池电压,放电电路的被控制端输入的第四控制信号为高电平,第四控制信号经第五电阻R5分别流入第二MOS管Q2和第三MOS管Q3,使得第二MOS管Q2和第三MOS管Q3导通,即蓄电池与负载第六二极管、第七二极管、第八二极管、第九二极管、第十二极管、第十一二极管、第十二二极管、第十三二极管、第十四二极管、第五二极管D5、第十六二极管、第十七二极管形成通路,蓄电池给负载供电。当当太阳能板的光控电压高于蓄电池电压,充电电路的被控制端输入的第三控制信号为低电平,第三控制信号经第五电阻R5分别流入第二MOS管Q2和第三MOS管Q3,使得第二MOS管Q2和第三MOS管Q3断开,即蓄电池与负载之间并未形成通路,从而断开放电电路。达到控制保护蓄电池的目的。Wherein, when the photo-control voltage of the solar panel is lower than the battery voltage, the fourth control signal input by the controlled end of the discharge circuit is high level, and the fourth control signal flows into the second MOS transistor Q2 and the third MOS transistor Q2 through the fifth resistor R5 respectively. The MOS transistor Q3 makes the second MOS transistor Q2 and the third MOS transistor Q3 conduct, that is, the storage battery and the load sixth diode, seventh diode, eighth diode, ninth diode, twelfth diode Pole tube, eleventh diode, twelfth diode, thirteenth diode, fourteenth diode, fifth diode D5, sixteenth diode, seventeenth diode The tube forms a path, and the battery supplies power to the load. When the photocontrol voltage of the solar panel is higher than the battery voltage, the third control signal input by the controlled terminal of the charging circuit is low level, and the third control signal flows into the second MOS transistor Q2 and the third MOS transistor through the fifth resistor R5 respectively. Q3, so that the second MOS transistor Q2 and the third MOS transistor Q3 are disconnected, that is, no path is formed between the storage battery and the load, thereby disconnecting the discharge circuit. To achieve the purpose of controlling and protecting the storage battery.

以下结合图1、2、3、4对本发明的电路原理进行说明:Below in conjunction with Fig. 1,2,3,4 the circuit principle of the present invention is illustrated:

霍尔开关103感应到磁性件101的磁感应强度等于预设磁性强度值时,输出第一电平信号,此时第一电平信号为低电平,单片机104在接收到霍尔开关103输出的第一电平信号时,控制被控电路105休眠,此时整个系统中没有耗电设备在运行,从而使得整个霍尔开关的唤醒及休眠电路没有任何通路,从而也不存在损耗电流的情况发生。若是霍尔开关103感应到磁性件101的磁感应强度低于预设磁性强度值时,输出的第二电平信号,单片机104在接收到霍尔开关103输出的第二电平信号时,控制被控电路105工作,此时电路导通,单片机104开始工作。When the Hall switch 103 senses that the magnetic induction intensity of the magnetic member 101 is equal to the preset magnetic intensity value, it outputs a first level signal. At this time, the first level signal is at a low level. When the first level signal is used, the controlled circuit 105 is controlled to sleep. At this time, no power-consuming equipment is running in the entire system, so that there is no path for the wake-up and sleep circuits of the entire Hall switch, so there is no current loss. . If the Hall switch 103 senses that the magnetic induction intensity of the magnetic member 101 is lower than the preset magnetic intensity value, the output second level signal, when the single chip microcomputer 104 receives the second level signal output by the Hall switch 103, the control is controlled. The control circuit 105 works, and the circuit is turned on at this time, and the single-chip microcomputer 104 starts to work.

当太阳能板的光控电压高于蓄电池电压,充电电路的被控制端输入的第一控制信号为高电平,此时,控制信号通过被控制端流经第二电阻R2和第三电阻R3,并流经第一MOS管Q1使得第一MOS管Q1导通,然后流经第二二极管D2和第三二极管D3,并导通第四二极管D4,此时,充电电路的输入端即充电电源与蓄电池连接,并在第一电容C1和第二电容C2的作用下滤去交流信号。从而使得蓄电池获得的电压稳定。当太阳能板的光控电压低于蓄电池电压,充电电路的被控制端输入的第一控制信号为低电平,控制信号通过被控制端流经第二电阻R2和第三电阻R3,使得第一MOS管Q1断开,因此第二二极管D2、第三二极管D3和第四二极管D4均断开,充电电路的输入端即充电电源与蓄电池的通路断开。When the photocontrol voltage of the solar panel is higher than the battery voltage, the first control signal input by the controlled terminal of the charging circuit is at a high level, at this time, the control signal flows through the controlled terminal through the second resistor R2 and the third resistor R3, And flow through the first MOS transistor Q1 to turn on the first MOS transistor Q1, then flow through the second diode D2 and the third diode D3, and turn on the fourth diode D4, at this time, the charging circuit The input end, that is, the charging power source is connected to the battery, and the AC signal is filtered under the action of the first capacitor C1 and the second capacitor C2. Thus, the voltage obtained by the battery is stabilized. When the photocontrol voltage of the solar panel is lower than the battery voltage, the first control signal input by the controlled end of the charging circuit is low level, and the control signal flows through the second resistor R2 and the third resistor R3 through the controlled end, so that the first The MOS transistor Q1 is disconnected, so the second diode D2, the third diode D3 and the fourth diode D4 are all disconnected, and the input end of the charging circuit, that is, the path between the charging power supply and the battery is disconnected.

当太阳能板的光控电压低于蓄电池电压,放电电路的被控制端输入的第四控制信号为高电平,第四控制信号经第五电阻R5分别流入第二MOS管Q2和第三MOS管Q3,使得第二MOS管Q2和第三MOS管Q3导通,即蓄电池与负载第六二极管、第七二极管、第八二极管、第九二极管、第十二极管、第十一二极管、第十二二极管、第十三四极管、第十四二极管、第五二极管D5、第十六二极管、第十七二极管形成通路,蓄电池给负载供电。当太阳能板的光控电压高于蓄电池电压,充电电路的被控制端输入的第三控制信号为低电平,第三控制信号经第五电阻R5分别流入第二MOS管Q2和第三MOS管Q3,使得第二MOS管Q2和第三MOS管Q3断开,即蓄电池与负载之间并未形成通路,从而断开放电电路。达到控制保护蓄电池的目的。When the photo-control voltage of the solar panel is lower than the battery voltage, the fourth control signal input by the controlled end of the discharge circuit is at a high level, and the fourth control signal flows into the second MOS transistor Q2 and the third MOS transistor through the fifth resistor R5 respectively. Q3, making the second MOS transistor Q2 and the third MOS transistor Q3 conduct, that is, the storage battery and the load sixth diode, seventh diode, eighth diode, ninth diode, tenth diode , the eleventh diode, the twelfth diode, the thirteenth tetrode, the fourteenth diode, the fifth diode D5, the sixteenth diode, and the seventeenth diode path, the battery supplies power to the load. When the photocontrol voltage of the solar panel is higher than the battery voltage, the third control signal input by the controlled terminal of the charging circuit is low level, and the third control signal flows into the second MOS transistor Q2 and the third MOS transistor through the fifth resistor R5 respectively. Q3, so that the second MOS transistor Q2 and the third MOS transistor Q3 are disconnected, that is, no path is formed between the storage battery and the load, thereby disconnecting the discharge circuit. To achieve the purpose of controlling and protecting the storage battery.

以上霍尔开关的唤醒及休眠电路与充电电路及放电电路一起作用,全面的保护了霍尔开关的唤醒及休眠电路运输和投入使用中可能遇到的多种高压低压以及外部电源干扰的情况,可以根据外接光线强弱灵活改变充放电状态,具有较高的自适性和较高的经济价值。解决了太阳能灯具在存放或者待机时耗电量较大的问题。The wake-up and sleep circuit of the Hall switch above works together with the charging circuit and the discharge circuit to fully protect the wake-up and sleep circuit of the Hall switch from various high-voltage and low-voltage and external power interference situations that may be encountered during transportation and putting into use. The charge and discharge state can be flexibly changed according to the intensity of the external light, which has high adaptability and high economic value. Solve the problem of large power consumption of solar lamps and lanterns in storage or standby.

为实现上述目的,本发明还提供一种太阳能电池系统,包括如上的霍尔开关的唤醒及休眠电路。In order to achieve the above object, the present invention also provides a solar battery system, including the wake-up and sleep circuit of the above Hall switch.

该太阳能电池系统包括霍尔开关的唤醒及休眠电路。该太阳能电池系统的工作原理可参照上述实施例,在此不再赘述。理所应当地,由于本实施例的太阳能电池系统采用了上述霍尔开关的唤醒及休眠电路的技术方案,因此太阳能电池系统具有上述霍尔开关的唤醒及休眠电路所有的有益效果。The solar battery system includes a Hall switch wake-up and sleep circuit. The working principle of the solar battery system can be referred to the above-mentioned embodiments, and will not be repeated here. Reasonably, since the solar battery system of this embodiment adopts the technical solution of the wake-up and sleep circuit of the Hall switch, the solar battery system has all the beneficial effects of the wake-up and sleep circuit of the Hall switch.

可选地,太阳能电池系统还包括:蓄电池和充电电源,霍尔开关的唤醒及休眠电路的被控电路105具有输入端和输出端,被控电路的输入端与充电电源连接,被控电路的输出端与蓄电池连接。Optionally, the solar battery system also includes: a storage battery and a charging power supply. The controlled circuit 105 of the wake-up and sleep circuit of the Hall switch has an input terminal and an output terminal, and the input terminal of the controlled circuit is connected to the charging power supply. The output end is connected with the storage battery.

可选地,太阳能电池系统还包括:蓄电池和用电器,霍尔开关的唤醒及休眠电路的被控电路105具有输入端和输出端,被控电路的输入端与用电连接,被控电路的输出端与蓄电池连接。Optionally, the solar battery system also includes: a storage battery and an electrical appliance, the controlled circuit 105 of the wake-up and sleep circuit of the Hall switch has an input terminal and an output terminal, the input terminal of the controlled circuit is connected to the electricity consumption, and the controlled circuit 105 has an input terminal and an output terminal. The output end is connected with the storage battery.

为实现上述目的,本发明还提供一种太阳能灯具,包括如上的太阳能电池系统。To achieve the above object, the present invention also provides a solar lamp, comprising the above solar cell system.

该太阳能灯具包括太阳能电池系统。该太阳能灯具的工作原理可参照上述实施例,在此不再赘述。理所应当地,由于本实施例的太阳能灯具采用了上述太阳能电池系统的技术方案,因此太阳能灯具具有上述太阳能电池系统所有的有益效果。The solar light fixture includes a solar cell system. The working principle of the solar lamp can refer to the above-mentioned embodiments, and will not be repeated here. Naturally, since the solar lamp of this embodiment adopts the technical solution of the above-mentioned solar cell system, the solar lamp has all the beneficial effects of the above-mentioned solar cell system.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是在本发明的发明构思下,利用本发明说明书及附图内容所作的等效结构变换,或直接/间接运用在其他相关的技术领域均包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Under the inventive concept of the present invention, the equivalent structural transformation made by using the description of the present invention and the contents of the accompanying drawings, or directly/indirectly used in other All relevant technical fields are included in the patent protection scope of the present invention.

Claims (5)

1.一种基于霍尔开关的唤醒及休眠电路,其特征在于,所述霍尔开关的唤醒及休眠电路包括被控电路、霍尔开关、磁性件和单片机;所述霍尔开关的电源输入端与供电电源连接,所述霍尔开关的信号输出端与所述单片机的信号输入端连接;所述单片机的信号输出端与所述被控电路连接;所述霍尔开关,用于感应所述磁性件,并在磁感应强度达到预设磁性强度值时,输出第一电平信号,在磁感应强度低于预设磁性强度值时,输出第二电平信号;所述单片机,用于在接收到所述霍尔开关输出的第一电平信号时,控制所述被控电路休眠,在接收到所述霍尔开关输出的第二电平信号时,控制所述被控电路工作;1. A wake-up and dormancy circuit based on a Hall switch, characterized in that, the wake-up and dormancy circuit of the Hall switch includes a controlled circuit, a Hall switch, a magnetic part and a single-chip microcomputer; the power input of the Hall switch The terminal is connected with the power supply, the signal output terminal of the Hall switch is connected with the signal input terminal of the single-chip microcomputer; the signal output terminal of the single-chip microcomputer is connected with the controlled circuit; the Hall switch is used for sensing the The above-mentioned magnetic parts, and when the magnetic induction intensity reaches the preset magnetic intensity value, output the first level signal, and when the magnetic induction intensity is lower than the preset magnetic intensity value, output the second level signal; the single-chip microcomputer is used for receiving When the first level signal output by the Hall switch is received, the controlled circuit is controlled to sleep, and when the second level signal output by the Hall switch is received, the controlled circuit is controlled to work; 所述被控电路包括采样电路和充电电路,所述充电电路具有输入端、输出端和被控制端,所述充电电路的输入端用于与充电电源连接,所述充电电路的输出端用于与蓄电池连接,所述充电电路的被控制端与所述单片机连接;所述采样电路的输入端与所述蓄电池连接,所述采样电路的输出端与所述单片机连接;所述采样电路,用于在工作时,检测所述蓄电池的电压,并输出至所述单片机;所述单片机,还用于根据所述采样电路检测的所述蓄电池的电压,输出第一控制信号或者第二控制信号,控制所述充电电路工作或者休眠;所述充电电路,用于在接收到所述第一控制信号时,导通所述充电电源和所述蓄电池之间的通路;在接收到所述第二控制信号时,断开所述充电电源和所述蓄电池之间的通路;The controlled circuit includes a sampling circuit and a charging circuit, the charging circuit has an input terminal, an output terminal and a controlled terminal, the input terminal of the charging circuit is used for connecting with a charging power source, and the output terminal of the charging circuit is used for connected with the storage battery, the controlled terminal of the charging circuit is connected with the single-chip microcomputer; the input terminal of the sampling circuit is connected with the storage battery, and the output terminal of the sampling circuit is connected with the single-chip microcomputer; the sampling circuit uses When working, detect the voltage of the storage battery and output it to the single-chip microcomputer; the single-chip microcomputer is also used to output the first control signal or the second control signal according to the voltage of the storage battery detected by the sampling circuit, controlling the charging circuit to work or sleep; the charging circuit is configured to turn on the path between the charging power source and the storage battery when receiving the first control signal; signal, disconnect the path between the charging power supply and the storage battery; 所述充电电路包括第一MOS管、第二电阻、第三电阻、第四电阻、第一二极管、第二二极管、第三二极管、第四二极管、第五二极管、第一电容和第二电容;所述第一MOS管的栅极分别与所述第二电阻的第一端及第三电阻的第一端连接,所述第一MOS管的源极分别与所述第二电阻的第二端及所述第一二极管的阳极连接,所述第一MOS管的漏极分别与所述第二二极管的阳极及所述第三二极管的阳极连接;所述第三电阻的第二端为所述充电电路的被控制端;所述第四二极管的阳极分别与所述第二二极管的阴极及所述第三二极管的阴极连接,所述第四二极管、第二二极管和第三二极管的连接节点为所述充电电路的输出端,所述第四二极管的阴极分别与所述第五二极管的阴极、所述第四电阻的第一端、所述第一电容的第一端及所述第二电容的第一端连接,所述第一电容和所述第四电阻的连接节点为所述充电电路的输入端;所述第一二极管的阴极与所述第四电阻的第二端连接;所述第一电容的第二端、所述第二电容的第二端及所述第五二极管的阳极均接地。The charging circuit includes a first MOS transistor, a second resistor, a third resistor, a fourth resistor, a first diode, a second diode, a third diode, a fourth diode, and a fifth diode tube, a first capacitor and a second capacitor; the gate of the first MOS tube is respectively connected to the first end of the second resistor and the first end of the third resistor, and the source of the first MOS tube is respectively It is connected with the second end of the second resistor and the anode of the first diode, and the drain of the first MOS transistor is respectively connected with the anode of the second diode and the third diode The anode of the third resistor is connected to the anode; the second end of the third resistor is the controlled end of the charging circuit; the anode of the fourth diode is respectively connected to the cathode of the second diode and the third diode The cathode of the tube is connected, the connection node of the fourth diode, the second diode and the third diode is the output end of the charging circuit, and the cathode of the fourth diode is connected to the first diode respectively. The cathode of the five diodes, the first end of the fourth resistor, the first end of the first capacitor and the first end of the second capacitor are connected, and the first capacitor and the fourth resistor The connection node is the input end of the charging circuit; the cathode of the first diode is connected to the second end of the fourth resistor; the second end of the first capacitor, the second end of the second capacitor Both the terminal and the anode of the fifth diode are grounded. 2.如权利要求1所述的霍尔开关的唤醒及休眠电路,其特征在于,所述被控电路还包括放电电路,所述放电电路具有输入端、输出端和被控制端,所述放电电路的输入端用于与所述蓄电池连接,所述放电电路的输出端用于与用电器连接,所述放电电路的被控制端与所述单片机连接;所述单片机,用于根据所述采样电路检测的所述蓄电池的电压,输出第三控制信号或者第四控制信号,控制所述放电电路工作或者休眠;所述放电电路,用于在接收到所述第四控制信号时,导通所述蓄电池和所述用电器之间的通路;还用于在接收到所述第三控制信号时,断开所述蓄电池和所述用电器之间的通路。2. The wake-up and dormancy circuit of Hall switch as claimed in claim 1, is characterized in that, described controlled circuit also comprises discharge circuit, and described discharge circuit has input terminal, output terminal and controlled terminal, and described discharge circuit The input end of the circuit is used to connect with the storage battery, the output end of the discharge circuit is used to connect with the electrical appliance, the controlled end of the discharge circuit is connected to the single-chip microcomputer; the single-chip microcomputer is used to The voltage of the battery detected by the circuit outputs a third control signal or a fourth control signal to control the discharge circuit to work or sleep; the discharge circuit is used to turn on the discharge circuit when receiving the fourth control signal. The path between the storage battery and the electrical appliance; and for disconnecting the path between the storage battery and the electrical appliance when the third control signal is received. 3.如权利要求2所述的霍尔开关的唤醒及休眠电路,其特征在于,所述霍尔开关的唤醒及休眠电路还包括上拉电路,所述上拉电路的输入端分别与所述供电电源及所述霍尔开关的电源输入端连接,所述上拉电路的输出端分别与所述单片机的信号输入端及所述霍尔开关的信号输出端连接;所述上拉电路,用于在所述单片机工作时,稳定输入单片机的电压。3. the wake-up and dormancy circuit of Hall switch as claimed in claim 2, is characterized in that, the wake-up of described Hall switch and dormancy circuit also comprises pull-up circuit, and the input terminal of described pull-up circuit is respectively connected with described The power supply is connected to the power input end of the Hall switch, and the output end of the pull-up circuit is connected to the signal input end of the single-chip microcomputer and the signal output end of the Hall switch respectively; When the single-chip microcomputer is working, the voltage input to the single-chip microcomputer is stabilized. 4.如权利要求3所述的霍尔开关的唤醒及休眠电路,其特征在于,所述上拉电路为第一电阻,所述第一电阻的第一端分别与所述供电电源及所述霍尔开关的电源输入端连接,所述第一电阻的第二端分别与所述单片机的信号输入端及所述霍尔开关的信号输出端连接。4. The wake-up and dormancy circuit of the Hall switch as claimed in claim 3, wherein the pull-up circuit is a first resistor, and the first end of the first resistor is respectively connected to the power supply and the The power input end of the Hall switch is connected, and the second end of the first resistor is respectively connected with the signal input end of the single-chip microcomputer and the signal output end of the Hall switch. 5.如权利要求2至4任一项所述的霍尔开关的唤醒及休眠电路,其特征在于,所述放电电路包括第五电阻、第六电阻、第七电阻、第八电阻、第九电阻、第十电阻、第十一电阻、第二MOS管和第三MOS管;所述第五电阻的第一端为所述放电电路的被控制端,所述第五电阻的第二端分别与所述第二MOS管的栅极、第三MOS管的栅极及所述第六电阻的第一端连接;所述第二MOS管的源极分别与所述第三MOS管的源极、所述第七电阻的第一端、所述第八电阻的第一端、所述第九电阻的第一端和所述第十电阻的第一端连接,所述第二MOS管的漏极、所述第三MOS管的漏极和所述第六电阻的第二端均接地;所述第七电阻的第二端分别与所述第八电阻的第二端、所述第九电阻的第二端、所述第十电阻的第二端及所述第十一电阻的第一端连接,所述第十电阻与所述第十一电阻的连接节点与所述用电器的输出端连接,所述第十一电阻的第二端分别与所述用电器的输入端及所述蓄电池连接。5. The wake-up and sleep circuit of the Hall switch according to any one of claims 2 to 4, wherein the discharge circuit comprises a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a ninth resistor resistor, the tenth resistor, the eleventh resistor, the second MOS tube and the third MOS tube; the first end of the fifth resistor is the controlled end of the discharge circuit, and the second end of the fifth resistor is respectively connected to the gate of the second MOS transistor, the gate of the third MOS transistor and the first end of the sixth resistor; the source of the second MOS transistor is connected to the source of the third MOS transistor respectively , the first end of the seventh resistor, the first end of the eighth resistor, the first end of the ninth resistor and the first end of the tenth resistor are connected, and the drain of the second MOS transistor pole, the drain of the third MOS transistor, and the second end of the sixth resistor are all grounded; the second end of the seventh resistor is connected to the second end of the eighth resistor, the ninth resistor The second end of the tenth resistor, the second end of the tenth resistor, and the first end of the eleventh resistor are connected, and the connection node between the tenth resistor and the eleventh resistor is connected to the output end of the electrical appliance connected, the second end of the eleventh resistor is respectively connected to the input end of the electrical appliance and the storage battery.
CN201810970496.3A 2018-08-23 2018-08-23 Hall switch wake-up and sleep circuit Active CN108832700B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810970496.3A CN108832700B (en) 2018-08-23 2018-08-23 Hall switch wake-up and sleep circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810970496.3A CN108832700B (en) 2018-08-23 2018-08-23 Hall switch wake-up and sleep circuit

Publications (2)

Publication Number Publication Date
CN108832700A CN108832700A (en) 2018-11-16
CN108832700B true CN108832700B (en) 2023-08-29

Family

ID=64151398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810970496.3A Active CN108832700B (en) 2018-08-23 2018-08-23 Hall switch wake-up and sleep circuit

Country Status (1)

Country Link
CN (1) CN108832700B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109709616A (en) * 2018-12-28 2019-05-03 东莞美泰电子有限公司 Bluetooth leather sheath keyboard dormant magnet testing device and testing method
CN110768232B (en) * 2019-10-08 2025-07-18 深圳创达云睿智能科技有限公司 Protection circuit and signal acquisition device
CN111048357B (en) * 2019-12-31 2025-10-21 大鲸娱乐设备(上海)有限公司 Fast startup and sleep device based on magnetic switch
CN116413640B (en) * 2021-12-31 2026-01-13 Oppo广东移动通信有限公司 Power supply equipment and cover body detection method
CN114670645A (en) * 2022-05-07 2022-06-28 酷黑科技(北京)有限公司 A battery overdischarge prevention device and vehicle
CN117420870A (en) * 2023-11-10 2024-01-19 深圳市兆威机电股份有限公司 Voltage regulating circuit, method, electronic device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540513A (en) * 2008-03-19 2009-09-23 株式会社三社电机制作所 Power supply device for charging/discharging device and charging/discharging device
CN201766400U (en) * 2010-01-30 2011-03-16 西北师范大学 High-power intelligent switching power supply charger control circuit
CN105322590A (en) * 2014-07-29 2016-02-10 深圳市倍斯特电源有限公司 Mobile power supply possessing desk lamp function
CN107069927A (en) * 2017-06-12 2017-08-18 深圳源创智能照明有限公司 Electric supply installation and illuminator
CN206773659U (en) * 2017-06-05 2017-12-19 安徽师范大学 Hall remote pole mouse
CN208971164U (en) * 2018-08-23 2019-06-11 深圳源创智能照明有限公司 The wake-up and dormant circuit of Hall switch

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6491164B2 (en) * 2016-09-08 2019-03-27 矢崎総業株式会社 Voltage detector

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540513A (en) * 2008-03-19 2009-09-23 株式会社三社电机制作所 Power supply device for charging/discharging device and charging/discharging device
CN201766400U (en) * 2010-01-30 2011-03-16 西北师范大学 High-power intelligent switching power supply charger control circuit
CN105322590A (en) * 2014-07-29 2016-02-10 深圳市倍斯特电源有限公司 Mobile power supply possessing desk lamp function
CN206773659U (en) * 2017-06-05 2017-12-19 安徽师范大学 Hall remote pole mouse
CN107069927A (en) * 2017-06-12 2017-08-18 深圳源创智能照明有限公司 Electric supply installation and illuminator
CN208971164U (en) * 2018-08-23 2019-06-11 深圳源创智能照明有限公司 The wake-up and dormant circuit of Hall switch

Also Published As

Publication number Publication date
CN108832700A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
CN108832700B (en) Hall switch wake-up and sleep circuit
CN105515159B (en) A kind of controller for solar power circuit
CN104167783B (en) Dc source low ripple implementation method and circuit that a kind of battery last is powered
CN203589779U (en) Solar storage battery charging-discharging controller
CN106532801A (en) Charging wake-up circuit for battery management system
CN211335606U (en) Charging detection and wake-up circuit and battery management system
WO2017020782A1 (en) Battery charging and discharging control circuit and battery charging and discharging system
CN217335186U (en) Dual-power automatic switching circuit and dual-power supply circuit
CN111959307A (en) Charging module and electric automobile
CN108092403A (en) Power supply automatic switchover circuit and intelligent electric meter microcontroller chip
WO2021258367A1 (en) Control circuit, battery management system, and electrochemical device
CN206180614U (en) Battery management system's awakening circuit that charges
CN105984400A (en) Vehicular power supply switch device
CN206742952U (en) LED emergency power supplies are met an urgent need switching circuit
CN107846063A (en) A kind of intelligent instrumentation protection system based on farad capacitor
CN208353060U (en) A kind of battery and power supply adaptor supply power with double circuit switching circuit
CN207732504U (en) Power supply automatic switchover circuit and intelligent electric meter microcontroller chip
CN208971164U (en) The wake-up and dormant circuit of Hall switch
CN106505659B (en) The design method of the cell activation control circuit of uninterrupted DC power supply
CN203104091U (en) Low power-consumption standby circuit
CN206673569U (en) The output protection circuit of Switching Power Supply
CN203378106U (en) LED emergency illuminating device
CN204334026U (en) For the charging circuit of solar street lamp controller
CN207896733U (en) The Power transfer system of intelligent door lock
CN203352860U (en) Intelligent identification power supply during power grid blackout or artificial-switching power-off

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210208

Address after: 518000 Wutong street, Baoan District, Shenzhen, Guangdong, China. The 5 floor of 13A building, Taihua Indus Industrial Park

Applicant after: Shenzhen Yuanyuan Intelligent Lighting Co.,Ltd.

Address before: 518000 13A, 6-7F, Taihua Wutong Industrial Park, Baoan District Xixiang street, Shenzhen, Guangdong

Applicant before: SOCREAT ELECTRONICS TECHNOLOGY Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant