CN111734967A - A self-locking circuit for mobile lighting equipment and mobile lighting equipment - Google Patents

A self-locking circuit for mobile lighting equipment and mobile lighting equipment Download PDF

Info

Publication number
CN111734967A
CN111734967A CN202010501778.6A CN202010501778A CN111734967A CN 111734967 A CN111734967 A CN 111734967A CN 202010501778 A CN202010501778 A CN 202010501778A CN 111734967 A CN111734967 A CN 111734967A
Authority
CN
China
Prior art keywords
circuit
locking
control unit
self
pin
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.)
Granted
Application number
CN202010501778.6A
Other languages
Chinese (zh)
Other versions
CN111734967B (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.)
Dongguan Aolei Mobile Lighting Equipment Co Ltd
Original Assignee
Dongguan Aolei Mobile Lighting Equipment 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 Dongguan Aolei Mobile Lighting Equipment Co Ltd filed Critical Dongguan Aolei Mobile Lighting Equipment Co Ltd
Priority to CN202010501778.6A priority Critical patent/CN111734967B/en
Publication of CN111734967A publication Critical patent/CN111734967A/en
Application granted granted Critical
Publication of CN111734967B publication Critical patent/CN111734967B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • H05B45/34Voltage stabilisation; Maintaining constant voltage
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21LLIGHTING DEVICES OR SYSTEMS THEREOF, BEING PORTABLE OR SPECIALLY ADAPTED FOR TRANSPORTATION
    • F21L4/00Electric lighting devices with self-contained electric batteries or cells
    • F21L4/005Electric lighting devices with self-contained electric batteries or cells the device being a pocket lamp
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21VFUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
    • F21V15/00Protecting lighting devices from damage
    • F21V15/005Measures against vandalism, stealing or tampering
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21VFUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
    • F21V23/00Arrangement of electric circuit elements in or on lighting devices
    • F21V23/003Arrangement of electric circuit elements in or on lighting devices the elements being electronics drivers or controllers for operating the light source, e.g. for a LED array
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F21LIGHTING
    • F21VFUNCTIONAL FEATURES OR DETAILS OF LIGHTING DEVICES OR SYSTEMS THEREOF; STRUCTURAL COMBINATIONS OF LIGHTING DEVICES WITH OTHER ARTICLES, NOT OTHERWISE PROVIDED FOR
    • F21V23/00Arrangement of electric circuit elements in or on lighting devices
    • F21V23/04Arrangement of electric circuit elements in or on lighting devices the elements being switches
    • F21V23/0442Arrangement of electric circuit elements in or on lighting devices the elements being switches activated by means of a sensor, e.g. motion or photodetectors
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/51Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used
    • H03K17/90Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used by the use, as active elements, of galvano-magnetic devices, e.g. Hall-effect devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Switches That Are Operated By Magnetic Or Electric Fields (AREA)
  • Circuit Arrangements For Discharge Lamps (AREA)

Abstract

The invention provides a self-locking circuit for mobile lighting equipment, which comprises a switch circuit and a drive circuit, wherein the drive circuit is connected with a micro control unit, the micro control unit is connected with the switch circuit, the micro control unit is connected with a magnetic induction self-locking circuit, and the micro control unit is used for detecting a self-locking signal sent by the magnetic induction self-locking circuit and locking the switch circuit. The magnetic induction self-locking circuit sends out a self-locking signal according to the magnetic field characteristic of the external environment: when the lighting equipment is placed in a specific locking environment, the magnetic induction self-locking circuit senses the specific magnetic field change of the external environment and transmits self-locking information to the micro-control unit, the micro-control unit locks the switch circuit, and the locked switch circuit cannot trigger the driving circuit to enable the mobile lighting equipment to emit light, so that the mobile lighting equipment is locked.

Description

一种用于移动照明设备的自锁电路及移动照明设备A self-locking circuit for mobile lighting equipment and mobile lighting equipment

技术领域technical field

本发明属于移动照明设备技术领域,涉及一种用于移动照明设备的自锁电路及移动照明设备。The invention belongs to the technical field of mobile lighting equipment, and relates to a self-locking circuit for mobile lighting equipment and mobile lighting equipment.

背景技术Background technique

移动照明设备(如手电筒)因其具备携带方便,容易操作等特点被广泛应用在日常生活和加工生产中。但是一般的移动照明设备由于其便携性,使用者会将该设备放在口袋或者收纳在其他有杂物的空间里,照明设备容易在该空间内会与杂物接触产生误触,使移动照明设备被点亮,如果使用者不及时发现,会严重耗费设备的电能,尤其功率较大的移动照明设备,长时间点亮可能会因温度过高而引起火灾。Mobile lighting devices (such as flashlights) are widely used in daily life and processing because of their easy portability and easy operation. However, due to the portability of general mobile lighting equipment, users will put the equipment in a pocket or store it in other spaces with sundries. The lighting equipment is prone to contact with sundries in this space and cause false touches, making mobile lighting If the device is lit, if the user does not find it in time, it will seriously consume the power of the device, especially the mobile lighting device with high power, which may cause a fire due to excessive temperature if it is lit for a long time.

为了解决移动照明设备的误触问题,目前常用的方法是通过软件锁定按键来实现,如图1所示,一般的锁定电路是通过某种特定操作按键SW3的方法进行按键解锁(如长按),解锁后手电才会被点亮。但是这种锁键方式使锁键/解锁的电路设计复杂,解锁步骤繁琐,用户在使用产品时,必须详细阅读说明书并对锁键/解锁方法进行学习,同时还要记忆其使用方法。通过长按按键进行解锁,在移动照明设备长时间被硬物挤压时,也能实现解锁,容易出现误解锁的问题。In order to solve the problem of false touches of mobile lighting equipment, the commonly used method is to lock the buttons through software. As shown in Figure 1, the general locking circuit is to unlock the buttons by a certain method of operating the button SW3 (such as long pressing) , the flashlight will be lit only after unlocking. However, this key locking method complicates the locking/unlocking circuit design, and the unlocking steps are cumbersome. When using the product, the user must read the manual in detail and learn the key locking/unlocking method, as well as memorize its use method. By long pressing the button to unlock, even when the mobile lighting device is pressed by a hard object for a long time, it can also be unlocked, which is prone to the problem of false unlocking.

因此,目前的移动照明设备存在锁键和解锁方式复杂繁琐,误解锁率高的问题。Therefore, the current mobile lighting devices have the problems of complicated and cumbersome locking and unlocking methods, and a high false unlocking rate.

发明内容SUMMARY OF THE INVENTION

本实发明的目的在于针对现有技术的不足,提供一种用于移动照明设备的自锁电路及移动照明设备,将移动照明设备放置在特定的环境中就可以实现设备按键的自动锁定,照明设备从该环境中取出即刻完成解锁,锁键和解锁方式简单不需要另外学习,操作简单,且大大降低误解锁的概率。The purpose of the present invention is to provide a self-locking circuit for mobile lighting equipment and mobile lighting equipment in view of the deficiencies of the prior art. The mobile lighting equipment can be automatically locked by placing the mobile lighting equipment in a specific environment. The device can be unlocked immediately when it is taken out of the environment. The locking key and unlocking method are simple and do not require additional learning. The operation is simple, and the probability of false unlocking is greatly reduced.

为了实现上述目的,本发明采用了以下技术方案:In order to achieve the above object, the present invention adopts the following technical solutions:

一种用于移动照明设备的自锁电路,包括开关电路和驱动电路,所述驱动电路连接有微控制单元,所述微控制单元与所述开关电路连接,所述微控制单元连接有磁感自锁电路,所述微控制单元用于检测所述磁感自锁电路发出的自锁信号并锁定所述开关电路。A self-locking circuit for mobile lighting equipment, comprising a switch circuit and a drive circuit, the drive circuit is connected with a micro-control unit, the micro-control unit is connected with the switch circuit, and the micro-control unit is connected with a magnetic induction Self-locking circuit, the micro-control unit is used for detecting the self-locking signal sent by the magnetic induction self-locking circuit and locking the switch circuit.

优选地,所述微控制单元的第七引脚与所述磁感自锁电路连接,所述微控制单元检测所述第七引脚的电压,当所述第七引脚的电压满足锁定条件时,所述微控制单元锁定所述开关电路。Preferably, the seventh pin of the micro-control unit is connected to the magnetic induction self-locking circuit, the micro-control unit detects the voltage of the seventh pin, and when the voltage of the seventh pin satisfies the locking condition , the micro-control unit locks the switch circuit.

进一步的,所述磁感自锁电路包括第一磁感组件和第二磁感组件,所述第一磁感组件和所述第二磁感组并联连接。Further, the magnetic induction self-locking circuit includes a first magnetic induction component and a second magnetic induction component, and the first magnetic induction component and the second magnetic induction group are connected in parallel.

进一步的,所述第一磁感组件包括第一磁传感器和第一电阻,所述第一磁传感器的输出管脚与所述第一电阻第一端相连;所述第二磁感组件包括第二磁传感器和第二电阻,所述第二磁传感器的输出管脚与所述第二电阻第一端相连;所述第一磁传感器的电压输入管脚与所述第二传感器的电压输入管脚连接,且所述第一磁传感器的电压输入管脚与所述第二传感器的电压输入管脚的连接处接有基准电压,所述第一电阻的第二端与所述第二电阻的第二端连接,所述第一电阻和所述第二电阻的连接处接入所述微控制单元的第七引脚。Further, the first magnetic induction component includes a first magnetic sensor and a first resistor, and the output pin of the first magnetic sensor is connected to the first end of the first resistance; the second magnetic induction component includes a first magnetic sensor. Two magnetic sensors and a second resistor, the output pin of the second magnetic sensor is connected to the first end of the second resistor; the voltage input pin of the first magnetic sensor is connected to the voltage input tube of the second sensor pin is connected, and a reference voltage is connected to the connection between the voltage input pin of the first magnetic sensor and the voltage input pin of the second sensor, and the second end of the first resistor is connected to the second end of the second resistor. The second end is connected, and the connection between the first resistor and the second resistor is connected to the seventh pin of the micro-control unit.

进一步的,所述磁感自锁电路还包括第三电阻,所述第三电阻一端连接于所述第一传感器的电压输入管脚和所述第二传感器的电压输入管脚的连接处并与所述基准电压连接,所述第三电阻另一端连接于所述第一电阻与所述第二电阻的连接处并接入所述微控制单元的第七引脚。Further, the magnetic induction self-locking circuit further includes a third resistor, and one end of the third resistor is connected to the connection between the voltage input pin of the first sensor and the voltage input pin of the second sensor, and is connected to the connection of the voltage input pin of the first sensor and the voltage input pin of the second sensor. The reference voltage is connected, and the other end of the third resistor is connected to the connection between the first resistor and the second resistor and is connected to the seventh pin of the micro-control unit.

优选地,所述开关电路包括第一开关键和第二开关键,所述第一开关键与所述微控制单元的第三引脚连接,所述第二开关键与所述微控制单元的第四引脚连接。Preferably, the switch circuit includes a first switch key and a second switch key, the first switch key is connected to the third pin of the micro-control unit, and the second switch key is connected to the third pin of the micro-control unit. The fourth pin is connected.

优选地,所述微控制单元的第六引脚与所述驱动电路连接,所述微控制单元的第三引脚还接有稳压电路。Preferably, the sixth pin of the micro-control unit is connected with the driving circuit, and the third pin of the micro-control unit is also connected with a voltage regulator circuit.

一种移动照明设备,包括灯体、位于所述灯体上的开关按键以及设置在所述灯体内部的电路板,所述开关按键与所述电路板电连接,所述电路板采用上述任一方案所述的自锁电路,所述电路板上连接有磁传感器。A mobile lighting device includes a lamp body, a switch button located on the lamp body, and a circuit board arranged inside the lamp body, the switch button is electrically connected to the circuit board, and the circuit board adopts any of the above In the self-locking circuit described in one solution, a magnetic sensor is connected on the circuit board.

优选地,包括灯体保护套,所述灯体保护套内设有与所述磁传感器位置相对应的磁铁,所述灯体放入所述灯体保护套中,所述磁传感器在所述磁铁的磁场作用下反应,所述电路板对所述开关按键进行锁定。Preferably, it includes a lamp body protective sleeve, the lamp body protective sleeve is provided with a magnet corresponding to the position of the magnetic sensor, the lamp body is put into the lamp body protective sleeve, and the magnetic sensor is placed in the lamp body protective sleeve. Under the action of the magnetic field of the magnet, the circuit board locks the switch button.

进一步的,所述电路板呈圆形设置在所述灯体的横截面上,所述磁传感器包括第一霍尔开关和第二霍尔开关,所述第一霍尔开关与所述第二霍尔开关分别位于所述电路板直径的两端,所述磁铁呈环状设置于所述灯体保护套中,所述磁铁到所述灯体保护套底部的距离与所述电路板到所述灯体出光口的距离相等。Further, the circuit board is arranged in a circular shape on the cross section of the lamp body, the magnetic sensor includes a first Hall switch and a second Hall switch, the first Hall switch is connected to the second Hall switch. Hall switches are respectively located at two ends of the diameter of the circuit board, the magnets are arranged in the lamp body protective sleeve in a ring shape, and the distance from the magnet to the bottom of the lamp body protective sleeve is the same as the distance from the circuit board to the lamp body protective sleeve. The distance between the light outlet of the lamp body is equal.

本发明的有益效果:本发明提供一种用于移动照明设备的自锁电路,与驱动电路连接的微控制单元通过检测磁感自锁电路发出的自锁信号,对开关电路进行锁定。磁感自锁电路根据外界环境的磁场特性而发出自锁信号:当照明设备被放置在特定的锁定环境中,磁感自锁电路感受到外界环境的一定强度的磁场就向微控制单元传输自锁信息,锁定后的开关电路不能触发驱动电路使移动照明设备发光,实现所述移动照明设备的锁定,本发明的自锁电路使设备只需要放置在特定的环境中就可完成锁定,不需要使用者学习复杂繁琐的解锁/锁定步骤。微控制单元的第七引脚与磁感自锁电路连接,磁感自锁电路将电压信号作为锁定信号,当微控制单元检测到第七引脚的电压信号符合锁定条件时,控制锁定开关电路。Beneficial effects of the present invention: The present invention provides a self-locking circuit for mobile lighting equipment. The micro-control unit connected with the driving circuit locks the switch circuit by detecting the self-locking signal sent by the magnetic induction self-locking circuit. The magnetic induction self-locking circuit sends out a self-locking signal according to the magnetic field characteristics of the external environment: when the lighting device is placed in a specific locking environment, the magnetic induction self-locking circuit senses the magnetic field of a certain strength of the external environment and transmits the self-locking signal to the micro-control unit. Lock information, the locked switch circuit cannot trigger the drive circuit to make the mobile lighting device emit light, so as to realize the locking of the mobile lighting device. The self-locking circuit of the present invention only needs to be placed in a specific environment to complete the locking, without Users learn complex and tedious unlocking/locking steps. The seventh pin of the micro-control unit is connected with the magnetic induction self-locking circuit, and the magnetic induction self-locking circuit uses the voltage signal as the locking signal. When the micro-control unit detects that the voltage signal of the seventh pin meets the locking condition, it controls the locking switch circuit .

磁感自锁电路由第一磁感组件和第二磁感组件并联组成,所述第一磁感组件和第二磁感组件共同作用于所述磁感自锁电路,向所述微控制单元输送的自锁信号。只有当两个磁感组件同时有磁铁靠近时,磁感自锁电路才满足自锁条件,防止了误锁键的情况出现。磁感组件包括磁传感器和与磁传感器连接的电阻,用于电路中的限流和分压。磁感自锁电路还包括了第三电阻,第三电阻一端与基准电压连接,另一端接入微控制单元的第七引脚,用于降低静态电流。The magnetic induction self-locking circuit is composed of a first magnetic induction component and a second magnetic induction component in parallel. The self-locking signal delivered. Only when the two magnetic induction components are approached by magnets at the same time, the magnetic induction self-locking circuit can satisfy the self-locking condition, preventing the occurrence of false key locking. The magnetic induction assembly includes a magnetic sensor and a resistor connected to the magnetic sensor for current limiting and voltage division in the circuit. The magnetic induction self-locking circuit also includes a third resistor, one end of the third resistor is connected to the reference voltage, and the other end is connected to the seventh pin of the micro-control unit for reducing the quiescent current.

开关电路包括了第一开关键和第二开关键,当电路处于解锁状态时,只要任意按下第一开关键或者第二开关键其中一个按键,都可以点亮照明设备。第一开关按键和第二开关按键分别与微控制单元连接,当微控制单元检测到自锁信号时,开关电路被锁定,即使按下第一开关按键和/或第二开关按键都不可点亮设备。所述微控制单元还连接有稳压电路,用于提供微控制单元以及磁感应器供电电压以及一个稳定的基准电压。微控制单元的第六引脚与驱动电路连接,微控制单元控制驱动电路执行相应动作,如启动/关闭设备。The switch circuit includes a first switch key and a second switch key. When the circuit is in an unlocked state, as long as any one of the first switch key or the second switch key is pressed, the lighting device can be turned on. The first switch button and the second switch button are respectively connected to the micro-control unit. When the micro-control unit detects the self-locking signal, the switch circuit is locked, and even if the first switch button and/or the second switch button is pressed, it cannot be lit. equipment. The micro-control unit is also connected with a voltage-stabilizing circuit for providing the micro-control unit and the magnetic inductor supply voltage and a stable reference voltage. The sixth pin of the micro-control unit is connected with the driving circuit, and the micro-control unit controls the driving circuit to perform corresponding actions, such as starting/stopping the device.

本发明还提供一种移动设备,灯体内部设有控制灯体执行动作的电路板,开关按钮与电路板连接,电路板上有磁感应器,磁感应器感应到有磁铁靠近,将自锁信号传送到电路板的微控制器上,微控制器锁定开关按键,使用者无论如何按下开关按键都不会启动照明设备。移动照明设备还配套有灯体保护套,灯体保护套内有与所述磁传感器位置相对应的磁铁,移动照明设备放入灯体保护套内,磁铁和磁感应器就会靠近,磁传感器向电路板发送自锁信号,即可实现移动照明设备的按键锁定。磁传感器包括第一霍尔开关和第二霍尔开关,分别设置在电路板上靠近灯体内壁,两个霍尔开关分别位于圆形电路板上过圆心的直径两端,可进一步防止误锁键的情况出现,且磁铁呈环形设置在灯体保护套中,使第一霍尔开关和第二霍尔开关在保护套中旋转任意角度都能在磁铁的磁场作用力下发出自锁信号,在保护套中不会出现误解锁的情况。将灯体放入保护套,则锁键;取出灯体,则解锁,操作简单,保护套对灯体外壳也起了保护作用。The invention also provides a mobile device. The lamp body is provided with a circuit board for controlling the execution of the lamp body, the switch button is connected to the circuit board, and there is a magnetic sensor on the circuit board. The magnetic sensor senses the approach of a magnet and transmits a self-locking signal. To the microcontroller on the circuit board, the microcontroller locks the switch button so that no matter how the user presses the switch button, the lighting device will not be activated. The mobile lighting device is also equipped with a lamp body protection cover, and the lamp body protection cover has a magnet corresponding to the position of the magnetic sensor. When the mobile lighting device is put into the lamp body protection cover, the magnet and the magnetic sensor will approach, and the magnetic sensor will move toward the magnetic sensor. The circuit board sends a self-locking signal to realize the key locking of the mobile lighting device. The magnetic sensor includes a first Hall switch and a second Hall switch, which are respectively arranged on the circuit board and close to the inner wall of the lamp body. The two Hall switches are respectively located on the two ends of the diameter of the circular circuit board passing through the center of the circle, which can further prevent false locks. The situation of the key appears, and the magnet is arranged in the protective cover of the lamp body in a ring shape, so that the first Hall switch and the second Hall switch can be rotated at any angle in the protective cover to issue a self-locking signal under the magnetic field force of the magnet. There is no accidental unlocking in the case. Put the lamp body into the protective cover to lock the key; take out the lamp body to unlock, the operation is simple, and the protective cover also protects the lamp body shell.

附图说明Description of drawings

附图1是背景技术中常用的防误触电路示意图;1 is a schematic diagram of an anti-mistouch circuit commonly used in the background technology;

附图2是本发明中驱动电路和电源、发光二极管的连接电路示意图;Accompanying drawing 2 is the connection circuit schematic diagram of drive circuit and power supply, light-emitting diode in the present invention;

附图3是本发明中微控制单元的电路示意图;Accompanying drawing 3 is the circuit schematic diagram of the micro-control unit in the present invention;

附图4是本发明中磁感自锁电路的电路示意图;Accompanying drawing 4 is the circuit schematic diagram of the magnetic induction self-locking circuit in the present invention;

附图5是本发明的移动照明设备的结构剖视图Fig. 5 is a structural cross-sectional view of the mobile lighting device of the present invention

附图6是附图5中A处的局部放大图。FIG. 6 is a partial enlarged view of A in FIG. 5 .

图中标识:1-灯体;3-灯体保护套;101-电路板;102-磁传感器;103-灯体出光口;301-磁铁;302-灯体保护套底部。Identification in the figure: 1-lamp body; 3-lamp body protective cover; 101-circuit board; 102-magnetic sensor; 103-lamp body light outlet; 301-magnet; 302-lamp body protective cover bottom.

具体实施方式Detailed ways

下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。The following describes in detail the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to explain the present invention and should not be construed as limiting the present invention.

在本发明的描述中,需要理解的是,术语“长度”、“宽度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。In the description of the present invention, it should be understood that the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", The orientations or positional relationships indicated by "horizontal", "top", "bottom", "inside", "outside", etc. are based on the orientations or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present invention and simplifying the description, rather than An indication or implication that the referred device or element must have a particular orientation, be constructed and operate in a particular orientation, is not to be construed as a limitation of the invention.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In addition, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. In the description of the present invention, "plurality" means two or more, unless otherwise expressly and specifically defined.

在本发明实施例中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the embodiments of the present invention, unless otherwise expressly specified and limited, terms such as “installation”, “connection”, “connection”, and “fixation” should be understood in a broad sense. For example, it may be a fixed connection or a It can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of the two elements or the interaction relationship between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.

参阅图1至图4所示,本实施例提供一种用于移动照明设备的自锁电路,包括开关电路和驱动电路,驱动电路连接有微控制单元U4,所述微控制单元U4与所述开关电路连接,所述微控制单元U4连接有磁感自锁电路;所述为控制单元U4用于检测所述磁感自锁电路发出的自锁信号并锁定所述开关电路。Referring to FIGS. 1 to 4 , this embodiment provides a self-locking circuit for a mobile lighting device, including a switch circuit and a drive circuit, the drive circuit is connected with a micro-control unit U4, and the micro-control unit U4 is connected to the The switch circuit is connected, and the micro-control unit U4 is connected with a magnetic induction self-locking circuit; the control unit U4 is used to detect the self-locking signal sent by the magnetic induction self-locking circuit and lock the switch circuit.

如图1所示,本实施例中,所述驱动电路包括驱动器,所述驱动器选用DC-DC LED驱动器。所述驱动电路分别与供电电源和发光二极管连接,用于控制所示发光二极管执行相应动作。As shown in FIG. 1 , in this embodiment, the driving circuit includes a driver, and the driver is a DC-DC LED driver. The driving circuits are respectively connected with the power supply and the light-emitting diodes, and are used for controlling the light-emitting diodes to perform corresponding actions.

如图2所示,本实施例中,所述微控制单元U4选用单片机PIC12F1822。所述微控制单元U4的第八引脚GND脚接地,所述微控制单元U4的第一引脚VDD脚接入基准电压Vref。所述基准电压Vref的电压值可为任何适合微控制单元工作范围的稳定电压。本实施例中,所述Vref是一个由低压降线性稳压器(LDO)输出的一个稳定电压,也是一个微控制器。本实施例中,微控制单元U4接入的基准电压Vref为3V。As shown in FIG. 2 , in this embodiment, the micro-control unit U4 selects a single-chip microcomputer PIC12F1822. The eighth pin GND of the micro-control unit U4 is grounded, and the first pin VDD of the micro-control unit U4 is connected to the reference voltage Vref. The voltage value of the reference voltage Vref can be any stable voltage suitable for the working range of the microcontroller unit. In this embodiment, the Vref is a stable voltage output by a low dropout linear regulator (LDO), which is also a microcontroller. In this embodiment, the reference voltage Vref connected to the micro-control unit U4 is 3V.

本实施例中,所述微控制单元U4第三引脚GP4脚连接第一开关键SW1,所述第一开关键SW1的另一端串联电阻R17后接地;所述微控制单元U4第四引脚GP3脚接第二开关键SW2,所述第二开关键SW2的另一端接地。本实施例中,所述串联电阻R17的电阻值为225欧姆。In this embodiment, the third pin GP4 of the micro-control unit U4 is connected to the first switch key SW1, and the other end of the first switch key SW1 is connected in series with the resistor R17 and then grounded; the fourth pin of the micro-control unit U4 The GP3 pin is connected to the second switch key SW2, and the other end of the second switch key SW2 is grounded. In this embodiment, the resistance value of the series resistor R17 is 225 ohms.

在上述实施例中,所述微控制单元U4用于控制开关电路的锁定和解锁。当所述开关电路处于解锁状态时,第一开关键SW1和/或第二开关键SW2被按下,所述微控制单元U4的第六引脚由低电平变成高电平,所述微控制单元U4的第六引脚与所述驱动电路连接,所述微控制单元U4的第六引脚置高电平从而控制所述驱动电路完成对所述发光二极管相应动作的执行,实现所述发光二极管的点亮或亮度调节。In the above embodiment, the micro-control unit U4 is used to control the locking and unlocking of the switch circuit. When the switch circuit is in the unlocked state, the first switch key SW1 and/or the second switch key SW2 are pressed down, the sixth pin of the micro-control unit U4 changes from low level to high level, the The sixth pin of the micro-control unit U4 is connected to the drive circuit, and the sixth pin of the micro-control unit U4 is set to a high level to control the drive circuit to complete the execution of the corresponding actions of the light-emitting diode, so as to realize the The lighting or brightness adjustment of the light-emitting diodes.

如图2和图3所示,本实施例中,所述微控制单元U4的第七引脚GP0脚(记作LOCK脚)与所述磁感自锁电路连接。所述微控制单元检测LOCK脚的电压,当LOCK脚的电压满足锁定条件时,所述微控制单元锁定所述开关电路。As shown in FIG. 2 and FIG. 3 , in this embodiment, the seventh pin GP0 of the micro-control unit U4 (referred to as the LOCK pin) is connected to the magnetic induction self-locking circuit. The micro-control unit detects the voltage of the LOCK pin, and when the voltage of the LOCK pin satisfies the locking condition, the micro-control unit locks the switch circuit.

如图3和图4所示,所述磁感自锁电路包括第一磁感组件和第二磁感组件,所述第一磁感组件和所述第二磁感组件并联连接。所述第一磁感组件包括第一磁传感器U5和第一电阻R16,所述第一磁传感器U5的输出管脚Vout脚与所述第一电阻第一端相连;所述第二磁感组件包括第二次磁传感器U6和第二电阻R15,所述第二磁传感器U6的输出管脚Vout脚与所述第二电阻第一端相连。所述第一磁传感器U5的电压输入管脚Vin脚与所述第二传感器U6的电压输入管脚Vin脚连接,且所述第一磁传感器U5的电压输入管脚Vin脚与所述第二传感器U6的电压输入管脚Vin脚的连接处接有基准电压Vref,这里的基准电压Vref也一个由LDO输出的稳定电压,作为第一磁传感器和第二磁传感器的供电电压。As shown in FIG. 3 and FIG. 4 , the magnetic induction self-locking circuit includes a first magnetic induction component and a second magnetic induction component, and the first magnetic induction component and the second magnetic induction component are connected in parallel. The first magnetic induction component includes a first magnetic sensor U5 and a first resistor R16, the output pin Vout of the first magnetic sensor U5 is connected to the first end of the first resistance; the second magnetic induction component It includes a second magnetic sensor U6 and a second resistor R15, and the output pin Vout of the second magnetic sensor U6 is connected to the first end of the second resistor. The voltage input pin Vin of the first magnetic sensor U5 is connected to the voltage input pin Vin of the second sensor U6, and the voltage input pin Vin of the first magnetic sensor U5 is connected to the second sensor U6. A reference voltage Vref is connected to the connection of the voltage input pin Vin of the sensor U6, where the reference voltage Vref is also a stable voltage output by the LDO as the power supply voltage of the first magnetic sensor and the second magnetic sensor.

本实施例中,所述第一传感器U5和第二传感器U6均为三端的霍尔元件,包括Vin脚、GND脚和Vout脚,两个元件的Vin脚相连,且连接处接基准电压,两个元件的Vout脚分别串联限流电阻后连接,且连接处接LOCK脚,所述微控制单元U4检测所述LOCK脚的电压,根据LOCK脚电压的数值,判断所述LOCK脚电压是否满足锁定条件,从而锁定/解锁所述开关电路。两个霍尔元件的GND脚相连,且连接处接地(电池负极)。本实施例中,霍尔元件由Vin脚与GND脚供电,当有磁铁靠近元件,元件的Vout脚会跟GND脚通过内部MOS导通连接在一起,磁铁远离该元件,元件的Vout脚会跟GND脚通过内部MOS断开。In this embodiment, the first sensor U5 and the second sensor U6 are both three-terminal Hall elements, including a Vin pin, a GND pin, and a Vout pin. The Vin pins of the two elements are connected, and the connection is connected to a reference voltage. The Vout pins of each element are connected in series with current limiting resistors respectively, and the connection is connected to the LOCK pin. The micro-control unit U4 detects the voltage of the LOCK pin, and judges whether the LOCK pin voltage meets the locking requirement according to the value of the LOCK pin voltage. condition, thereby locking/unlocking the switch circuit. The GND pins of the two Hall elements are connected, and the connection is grounded (the negative electrode of the battery). In this embodiment, the Hall element is powered by the Vin pin and the GND pin. When a magnet is close to the element, the Vout pin of the element will be connected to the GND pin through the internal MOS conduction. If the magnet is far away from the element, the Vout pin of the element will be connected to the GND pin. The GND pin is disconnected through the internal MOS.

如图4所示,所述磁感自锁电路还包括第三电阻R14,第三电阻R14一端连接在所述第一传感器U5的电压输入管Vin脚和第二传感器U6的电压输入脚Vin脚的连接处且接有基准电压Vref,第三电阻R14的另一端接在所述第一电阻R16和第二电阻R15的连接处,且接入LOCK脚。As shown in FIG. 4 , the magnetic induction self-locking circuit further includes a third resistor R14, and one end of the third resistor R14 is connected to the voltage input pin Vin of the first sensor U5 and the voltage input pin Vin of the second sensor U6 The reference voltage Vref is connected to the connection of the first resistor R14, and the other end of the third resistor R14 is connected to the connection of the first resistor R16 and the second resistor R15, and is connected to the LOCK pin.

本实施例中,所述霍尔开关的Vin脚为电压输入管脚接有基准电压Vref,所述霍尔开关的GND脚接地,所述Vout脚为输出管脚,Vout脚串联一个限流电阻后输出电压到LOCK脚。当没有磁铁靠近所述霍尔开关时,所述霍尔开关内部的GND脚和Vout脚断开,所述霍尔开关所在的电路为开路状态,此时LOCK脚的电压等于基准电压Vref;当有磁铁靠近其中一个所述霍尔开关时,所述霍尔开关的Vout脚会跟GND脚通过内部MOS导通连接,此时有磁铁靠近的霍尔开关所在的电路形成回路,LOCK脚的电压等于基准电压Vref在电阻分压后的电压。即当只有所述霍尔开关U5附近有磁铁时,VLOCK=Vref/(R14+R16)*R16;同理,当只有所述霍尔开关U6附近有磁铁时,VLOCK=Vref/(R14+R15)*R15。上述三种情况均不会引起按键锁定。In this embodiment, the Vin pin of the Hall switch is a voltage input pin connected to the reference voltage Vref, the GND pin of the Hall switch is grounded, the Vout pin is an output pin, and a current limiting resistor is connected in series with the Vout pin After the output voltage to the LOCK pin. When there is no magnet close to the Hall switch, the GND pin and the Vout pin inside the Hall switch are disconnected, the circuit where the Hall switch is located is in an open state, and the voltage of the LOCK pin is equal to the reference voltage Vref at this time; when When a magnet is close to one of the Hall switches, the Vout pin of the Hall switch will be connected to the GND pin through the internal MOS. At this time, the circuit of the Hall switch with the magnet close to it forms a loop, and the voltage of the LOCK pin It is equal to the voltage of the reference voltage Vref divided by the resistor. That is, when there is only a magnet near the Hall switch U5, VLOCK=Vref/(R14+R16)*R16; similarly, when there is only a magnet near the Hall switch U6, VLOCK=Vref/(R14+R15 )*R15. None of the above three situations will cause the keys to lock.

当所述霍尔开关U5和所述霍尔开关U6均有磁铁靠近时,此时VLock=Vref/(R14+R15//R16)*(R15//R16),预先根据电路实际的基准电压Verf和电阻R14、R15和R16的阻值,计算出该公式VLock=Vref/(R14+R15//R16)*(R15//R16)下,Vlock的确定值,将Vlock的确定值在浮动范围内的电压值作为锁定条件。本实施例中,可以将Vref/(R14+R15//R16)*(R15//R16)±0.2V作为锁定条件,当微控制单元检测到LOCK脚的电压落入Vref/(R14+R15//R16)*(R15//R16)±0.2V的电压范围内时,则该设备符合锁定条件,所述微控制单元控制锁定所述开关电路。本实施例中采用的电压浮动范围为±0.1V,当然也可以根据电阻的将浮动范围调整为±0.2V或者其他适当的范围,具体的电压范围可以根据分压电阻的精度做具体调整。When both the Hall switch U5 and the Hall switch U6 have magnets close to each other, at this time VLock=Vref/(R14+R15//R16)*(R15//R16), according to the actual reference voltage Verf of the circuit in advance and the resistance values of resistors R14, R15 and R16, calculate the determined value of Vlock under the formula VLock=Vref/(R14+R15//R16)*(R15//R16), set the determined value of Vlock within the floating range voltage value as the locking condition. In this embodiment, Vref/(R14+R15//R16)*(R15//R16)±0.2V can be used as the locking condition. When the microcontroller detects that the voltage of the LOCK pin falls into Vref/(R14+R15/ When the voltage range of /R16)*(R15//R16)±0.2V, the device meets the locking condition, and the micro-control unit controls the locking of the switch circuit. The voltage floating range used in this embodiment is ±0.1V. Of course, the floating range can also be adjusted to ±0.2V or other suitable ranges according to the resistance. The specific voltage range can be specifically adjusted according to the precision of the voltage dividing resistor.

本实施例中,所述第一电阻R16和第二电阻R15的阻值可为任意大于200欧姆的值,考虑到是电池供电移动设备,静态功耗越低越好,因此电阻一般取100K以上,用以降低静态电流。本实施例中,所述第一电阻R16和所述第二电阻R15的阻值均为470千欧。In this embodiment, the resistance values of the first resistor R16 and the second resistor R15 can be any value greater than 200 ohms. Considering that it is a battery-powered mobile device, the lower the static power consumption, the better, so the resistance is generally set to be more than 100K , to reduce quiescent current. In this embodiment, the resistance values of the first resistor R16 and the second resistor R15 are both 470 kΩ.

本实施例中,所述第三电阻R14的阻值可以是任意大于200欧姆的值,以降低静态电流。本实施例中,所述第三电阻R14的阻值为1兆欧。In this embodiment, the resistance value of the third resistor R14 may be any value greater than 200 ohms, so as to reduce the quiescent current. In this embodiment, the resistance value of the third resistor R14 is 1 megohm.

在本实施例中,所述第一磁传感器U5和所述第二磁传感器U6均为霍尔开关,所述霍尔开关的型号选用A3212。本实施例中,所述霍尔开关也可以是其他任意无极性霍尔开关。In this embodiment, the first magnetic sensor U5 and the second magnetic sensor U6 are both Hall switches, and the model of the Hall switches is A3212. In this embodiment, the Hall switch may also be any other non-polar Hall switch.

本实施例中,当Vref为3V时,可以将LOCK脚电压为0.57V作为锁定条件,即所述微控制单元检测到LOCK脚电压为锁定电压0.57V时,锁定所述开关电路。当所述第一磁传感器和所述第二磁传感器附近没有磁铁时,所述LOCK脚的电压为3V,此时所述微控制单元控制移动照明设备处于解锁状态,使用者按下第一按键SW1和/或SW2均可点亮手电;当所述第一磁传感器或第二磁传感器其中一个传感器的附近有磁铁靠近,此时所述磁感自锁电路的输出电压为0.96V,所述微控制单元检测到所述LOCK脚的电压为0.96V,移动照明设备依然处于解锁状态;当第一磁传感器和第二磁传感器的附近同时有磁铁靠近,此时微控制单元检测到所述LOCK脚的电压为0.57V,所述微控制单元锁定所述开关电路,任意按下SW1和/或SW2移动照明设备都不会被点亮。本实施例中,所述微孔制单元还可以在检测到LOCK脚电压处于0.57V±0.1V的电压范围内时锁定所述开关电路。判断是否锁定开关电路的电压范围受第一电阻R16和第二电阻R15电阻精度影响,如分压电阻精度较小时,还可以设定锁定的电压范围为0.57V±0.2V。In this embodiment, when Vref is 3V, the voltage of the LOCK pin can be 0.57V as the locking condition, that is, when the microcontroller detects that the voltage of the LOCK pin is the lock voltage of 0.57V, the switch circuit is locked. When there is no magnet near the first magnetic sensor and the second magnetic sensor, the voltage of the LOCK pin is 3V. At this time, the micro-control unit controls the mobile lighting device to be in an unlocked state, and the user presses the first button SW1 and/or SW2 can both light up the flashlight; when a magnet is close to one of the first magnetic sensor or the second magnetic sensor, the output voltage of the magnetic induction self-locking circuit is 0.96V, and the The micro-control unit detects that the voltage of the LOCK pin is 0.96V, and the mobile lighting device is still in the unlocked state; when there are magnets near the first magnetic sensor and the second magnetic sensor at the same time, the micro-control unit detects the LOCK The voltage of the pin is 0.57V, the micro-control unit locks the switch circuit, and any pressing of SW1 and/or SW2 to move the lighting device will not light up. In this embodiment, the microporous unit can also lock the switch circuit when it is detected that the voltage of the LOCK pin is within a voltage range of 0.57V±0.1V. The voltage range for judging whether to lock the switch circuit is affected by the resistance accuracy of the first resistor R16 and the second resistor R15. For example, when the voltage divider resistance is less accurate, the locked voltage range can also be set to 0.57V±0.2V.

当然,上述的LOCK脚检测到的电压为3V,0.57V,0.96V都只是其中一个实施例,本申请根据基准电压和与元件连接的电阻(第一电阻R16、第二电阻R15和第三电阻R14)阻值不同,锁定条件(锁定电压)也会适当改变。本实施例中,所述基准电压也可以是其他稳定电压,只要在霍尔开关的供电电压范围内即可。Of course, the voltage detected by the above-mentioned LOCK pin is 3V, 0.57V, and 0.96V are only one of the examples. R14) The resistance value is different, and the locking condition (locking voltage) will also change appropriately. In this embodiment, the reference voltage may also be other stable voltages, as long as it is within the power supply voltage range of the Hall switch.

本实施例中,通过设定两个磁传感器U5和U6,使移动照明设备在某个特定的锁定环境中(两个磁传感器U5和U6的位置均设有磁铁),方可锁定按键,将移动照明设备从特定的磁铁环境中拿出,即刻完成解锁,不需要学习解锁动作。而且在按键被锁定时,即使误触其中任意一个按键或两个按键,都不能点亮设备,大大降低了误触率。In this embodiment, by setting the two magnetic sensors U5 and U6, the mobile lighting device can be locked in a specific locking environment (magnets are provided at the positions of the two magnetic sensors U5 and U6). When the mobile lighting device is taken out from a specific magnet environment, the unlocking is completed immediately, and there is no need to learn the unlocking action. Moreover, when the keys are locked, even if any one or two keys are touched by mistake, the device cannot be turned on, which greatly reduces the false touch rate.

如图2所示,本实施例中,所述微控制单元U4的第三引脚还连接有稳压电路,所述稳压电路与所述微控制单元U4的第三引脚之间串联有第四电阻R13。所述稳压电路用于提供微控制单元和磁感应器供电电压以及一个稳定的基准电压。本实施例中,所述第四电阻R13的阻值为470欧姆。在一些实施例中,所述第四电阻R13还可以是其他大于200欧姆的任意值。As shown in FIG. 2 , in this embodiment, a voltage stabilizing circuit is also connected to the third pin of the micro-control unit U4, and a voltage-stabilizing circuit is connected in series with the third pin of the micro-control unit U4. The fourth resistor R13. The voltage-stabilizing circuit is used to provide the power supply voltage of the micro-control unit and the magnetic inductor and a stable reference voltage. In this embodiment, the resistance value of the fourth resistor R13 is 470 ohms. In some embodiments, the fourth resistor R13 may also be any other value greater than 200 ohms.

如图2所示,本实施例中,所述稳压电路包括稳压器U3,所述稳压器U3的第二引脚连接有电容C13和电容C14,所述稳压器U3的第二引脚与所述电容C14的连接处输出有3V电压。所述电容C14的另一端接地,所述电容C13的另一端接地。本实施例中,所述电容C13的大小为1uF,所述电容C14的大小为0.1uF。As shown in FIG. 2 , in this embodiment, the voltage stabilizer circuit includes a voltage stabilizer U3, the second pin of the voltage stabilizer U3 is connected with a capacitor C13 and a capacitor C14, and the second pin of the voltage stabilizer U3 is connected to a capacitor C13 and a capacitor C14. The connection between the pin and the capacitor C14 outputs a voltage of 3V. The other end of the capacitor C14 is grounded, and the other end of the capacitor C13 is grounded. In this embodiment, the size of the capacitor C13 is 1uF, and the size of the capacitor C14 is 0.1uF.

如图2所示,本实施例中,所述稳压器U3的第三引脚接有电容C12,所述U3第三脚与所述电容C12的连接处接电池的正极,所述电容C12的另一端接地,所述电容C12的大小为1uF。本实施例中,所述稳压器U3的第一引脚接地。本实施例中,所述稳压器U3的第三引脚还连接电池正极接入口。本实施例中,所述稳压器U3选用BL8530。在一些实施方式中,所述稳压器U3还可以是其他任意输出范围在MCU以及霍尔开关范围内的低压差线性稳压器(LDO)。具体稳压器的选择取决于供电电池的状况,如果是一节锂电,不宜用超过3V的LDO,如果是两节锂电串联可以是5V以内的LDO。As shown in FIG. 2 , in this embodiment, the third pin of the voltage regulator U3 is connected to a capacitor C12, the connection between the third pin of U3 and the capacitor C12 is connected to the positive electrode of the battery, and the capacitor C12 The other end of the capacitor C12 is grounded, and the size of the capacitor C12 is 1uF. In this embodiment, the first pin of the voltage regulator U3 is grounded. In this embodiment, the third pin of the voltage stabilizer U3 is also connected to the positive electrode access port of the battery. In this embodiment, the voltage regulator U3 selects BL8530. In some embodiments, the voltage regulator U3 may also be any other low dropout linear voltage regulator (LDO) whose output range is within the range of the MCU and the Hall switch. The choice of the specific voltage regulator depends on the condition of the power supply battery. If it is a lithium battery, it is not suitable to use an LDO exceeding 3V. If two lithium batteries are connected in series, it can be an LDO within 5V.

如图4所示,本实施例中,提供一种移动照明设备,包括灯体1、位于灯体上的开关按键(图中未标出)以及设备在所述灯体内部的电路板101,所述开关按键与所述电路板101电连接,所述电路板101用于锁定所述开关按键,并控制所述灯体1执行相应地动作;所述电路板101与采用上述任一方案所述的自锁电路,所述电路板上连接有磁传感器102。As shown in FIG. 4 , in this embodiment, a mobile lighting device is provided, including a lamp body 1, a switch button (not shown in the figure) on the lamp body, and a circuit board 101 inside the lamp body, The switch button is electrically connected to the circuit board 101, and the circuit board 101 is used to lock the switch button and control the lamp body 1 to perform corresponding actions; the circuit board 101 is the same as any of the above solutions. In the self-locking circuit described above, the magnetic sensor 102 is connected on the circuit board.

如图4所示,本实施例中,所述电路板101设置在所述灯体内部的横截面上。在一些实施方式中,所述移动照明设备可为手电筒,所述手电筒常为圆筒状,则所述电路板101在手电筒的横截面上呈圆形。本实施例中,所述磁传感器102包括第一霍尔开关和第二霍尔开关,所述第一霍尔开关和第二霍尔开关分别贴在电路板上靠近灯体内壁。一些实施方式中,两个霍尔开关也可以是附近。本实施方式中,所述第一霍尔开关和所述第二霍尔开关在所述电路板101上沿所述灯体中心轴对称设置,所述第一霍尔开关与所述第二霍尔开关分别位于所述电路板直径的两端,所述第一霍尔开关与所述第二霍尔开关的连线经过圆心且两个元件的夹角为180度,处于两个相对称的位置,两个霍尔开关距离最远,这样的位置设计使两个霍尔开关可以分别感应不同方向带来的磁场变化,在使用过程中,即使有其它设备靠近手电筒,只会使其中一个霍尔开关发生电压变化,而另一个则不受影响,避免了由于使用环境中带有磁铁的设备靠近而发生误锁键的情况。本实施例中,所述开关按键(图中未标出)设置在灯体侧面。本实施例中,所述移动照明设备设置有两个开关按键,分别设置在设备的侧面和底部。在一些实施方式中,两个开关按键还可以设置在设备的其它位置上。As shown in FIG. 4 , in this embodiment, the circuit board 101 is disposed on a cross section inside the lamp body. In some embodiments, the mobile lighting device can be a flashlight, and the flashlight is usually cylindrical, and the circuit board 101 is circular in the cross section of the flashlight. In this embodiment, the magnetic sensor 102 includes a first Hall switch and a second Hall switch, and the first Hall switch and the second Hall switch are respectively attached to the circuit board and close to the inner wall of the lamp body. In some embodiments, the two Hall switches may also be nearby. In this embodiment, the first Hall switch and the second Hall switch are symmetrically arranged on the circuit board 101 along the central axis of the lamp body, and the first Hall switch and the second Hall switch are arranged symmetrically along the central axis of the lamp body. The Hall switches are respectively located at both ends of the diameter of the circuit board, the connection line between the first Hall switch and the second Hall switch passes through the center of the circle, and the angle between the two elements is 180 degrees, which are in two relatively symmetrical positions. Position, the distance between the two Hall switches is the farthest. This position design enables the two Hall switches to sense the magnetic field changes brought by different directions. During use, even if there are other devices close to the flashlight, only one of the Hall switches will be used. One switch experiences a voltage change, while the other is unaffected, avoiding false key locks due to the proximity of devices with magnets in the use environment. In this embodiment, the switch button (not shown in the figure) is arranged on the side of the lamp body. In this embodiment, the mobile lighting device is provided with two switch buttons, which are respectively provided on the side and the bottom of the device. In some embodiments, the two switch buttons can also be arranged on other positions of the device.

本实施例中,所述移动照明设备,还包括灯体保护套3,所述灯体保护套3内设于与所述磁传感器102位置相对应的磁铁301。当所述灯体1被放入所述灯体保护套3中,灯体1内的磁传感器102与所述灯体保护套3内的磁铁301靠近,所述磁传感器102在所述磁铁301的磁场作用下,发出锁定信号,所述电路板101对所述开关按键锁定,此时无论外部接触或按压手电筒任一按键,都不会点亮手电筒。而且本发明提供的移动照明设备,只需要将照明设备放入特制的保护套中就可以完成锁定,从保护套中取出手电筒,即可解锁使用,不需要额外地学习解锁手法和步骤,而且保护套本身也可以对灯体外壳起一定的保护作用。In this embodiment, the mobile lighting device further includes a lamp body protective cover 3 , and the lamp body protective cover 3 is provided with a magnet 301 corresponding to the position of the magnetic sensor 102 . When the lamp body 1 is put into the lamp body protective cover 3 , the magnetic sensor 102 in the lamp body 1 is close to the magnet 301 in the lamp body protective cover 3 , and the magnetic sensor 102 is in the magnet 301 . Under the action of the magnetic field, a lock signal is issued, and the circuit board 101 locks the switch button. At this time, no matter external contact or pressing any button of the flashlight, the flashlight will not be lit. Moreover, the mobile lighting device provided by the present invention can be locked only by putting the lighting device into a special protective cover, and the flashlight can be unlocked and used by taking out the flashlight from the protective cover. The sleeve itself can also protect the lamp body shell to a certain extent.

在本实施例中,所述磁铁301呈环状设置于所述所述灯体保护套3中,由磁铁的厚度取决于磁铁所在的位置,磁铁厚度大,容错能力强,磁铁所在位置可以被设备上相对应的磁感应器感应得到即可。本实施例中,所述磁铁301到所述灯体保护套底部302的距离与所述磁传感器102到所述灯体出光口103的距离相等。将所述灯体的出光口方向朝保护套底部放入,磁铁301的所处高度与所述磁感应器102的高度相同,磁铁301为环状设置,灯体1在保护套3内旋转任意角度都会受到所述磁铁102的磁场作用,开关按键始终被锁定。将所述灯体1从所述灯体保护套3中取出即可解锁,取出后的第一霍尔开关和第二霍尔开关只其中一个有磁铁靠近,都不会引起手电进入锁键状态,实现了灯体只在保护套内为锁定状态,其它情况都是解锁状态,即使附近有其它设备的磁铁靠近也不会引起锁键,降低了出现误锁键情况的概率。In this embodiment, the magnet 301 is arranged in the lamp body protective cover 3 in a ring shape. The thickness of the magnet depends on the position of the magnet. The thickness of the magnet is large and the fault tolerance is strong. The corresponding magnetic sensor on the device can be sensed. In this embodiment, the distance from the magnet 301 to the bottom 302 of the lamp body protective cover is equal to the distance from the magnetic sensor 102 to the light outlet 103 of the lamp body. Put the light outlet of the lamp body toward the bottom of the protective cover. The height of the magnet 301 is the same as the height of the magnetic inductor 102. The magnet 301 is arranged in a ring shape, and the lamp body 1 rotates in the protective cover 3 at any angle. All will be affected by the magnetic field of the magnet 102, and the switch button will always be locked. The lamp body 1 can be unlocked by taking it out of the lamp body protective cover 3, and only one of the first Hall switch and the second Hall switch after taking out has a magnet close to it, which will not cause the flashlight to enter the locked state. , realizes that the lamp body is only in the locked state in the protective cover, and other conditions are unlocked, even if the magnets of other devices are nearby, the key will not be locked, which reduces the probability of mis-locking the key.

在本实施例中,所述磁铁302的充磁为镜像充磁:在环形磁铁的圆弧面充磁,充磁后环形磁铁的内外圆弧面磁性强,上下圆面磁性弱。所述磁铁为永久磁铁。一些实施方式中,磁铁也可以是多块磁铁,可以把磁铁围成一个圆形置于保护套指定的位置附近。In this embodiment, the magnetization of the magnet 302 is mirror magnetization: magnetization is performed on the arc surface of the ring magnet, after magnetization, the inner and outer arc surfaces of the ring magnet are magnetically strong, and the upper and lower circular surfaces are weak. The magnets are permanent magnets. In some embodiments, the magnet can also be a plurality of magnets, and the magnets can be placed in a circle around a designated position of the protective sleeve.

以上所述的实施例,只是本发明的较优选的具体方式之一,本领域的技术员在本发明技术方案范围内进行的通常变化和替换都应包含在本发明的保护范围内。The above-mentioned embodiment is only one of the preferred specific modes of the present invention, and the usual changes and substitutions made by those skilled in the art within the scope of the technical solution of the present invention should be included in the protection scope of the present invention.

Claims (10)

1.一种用于移动照明设备的自锁电路,其特征在于,包括开关电路和驱动电路,所述驱动电路连接有微控制单元,所述微控制单元与所述开关电路连接,所述微控制单元连接有磁感自锁电路,所述微控制单元用于检测所述磁感自锁电路发出的自锁信号并锁定所述开关电路。1. A self-locking circuit for a mobile lighting device, characterized in that it comprises a switch circuit and a drive circuit, the drive circuit is connected with a micro-control unit, the micro-control unit is connected with the switch circuit, and the micro-control unit is connected to the switch circuit. The control unit is connected with a magnetic induction self-locking circuit, and the micro-control unit is used for detecting the self-locking signal sent by the magnetic induction self-locking circuit and locking the switch circuit. 2.根据权利要求1所述用于移动照明设备的自锁电路,其特征在于,所述微控制单元的第七引脚与所述磁感自锁电路连接,所述微控制单元检测所述第七引脚的电压,当所述第七引脚的电压满足锁定条件时,所述微控制单元锁定所述开关电路。2. The self-locking circuit for mobile lighting equipment according to claim 1, wherein the seventh pin of the micro-control unit is connected to the magnetic induction self-locking circuit, and the micro-control unit detects the The voltage of the seventh pin, when the voltage of the seventh pin satisfies the locking condition, the micro-control unit locks the switch circuit. 3.根据权利要求2所述用于移动照明设备的自锁电路,其特征在于,所述磁感自锁电路包括第一磁感组件和第二磁感组件,所述第一磁感组件和所述第二磁感组并联连接。3. The self-locking circuit for mobile lighting equipment according to claim 2, wherein the magnetic induction self-locking circuit comprises a first magnetic induction component and a second magnetic induction component, the first magnetic induction component and The second magnetic induction groups are connected in parallel. 4.根据权利要求3所述用于移动照明设备的自锁电路,其特征在于,所述第一磁感组件包括第一磁传感器和第一电阻,所述第一磁传感器的输出管脚与所述第一电阻第一端相连;所述第二磁感组件包括第二磁传感器和第二电阻 ,所述第二磁传感器的输出管脚与所述第二电阻第一端相连;所述第一磁传感器的电压输入管脚与所述第二传感器的电压输入管脚连接,且所述第一磁传感器的电压输入管脚与所述第二传感器的电压输入管脚的连接处接有基准电压,所述第一电阻的第二端与所述第二电阻的第二端连接,所述第一电阻和所述第二电阻的连接处接入所述微控制单元的第七引脚。4 . The self-locking circuit for a mobile lighting device according to claim 3 , wherein the first magnetic induction component comprises a first magnetic sensor and a first resistor, and the output pin of the first magnetic sensor is connected to the the first end of the first resistor is connected to the first end; the second magnetic induction component includes a second magnetic sensor and a second resistor, the output pin of the second magnetic sensor is connected to the first end of the second resistor; the The voltage input pin of the first magnetic sensor is connected with the voltage input pin of the second sensor, and the connection between the voltage input pin of the first magnetic sensor and the voltage input pin of the second sensor is connected with a Reference voltage, the second end of the first resistor is connected to the second end of the second resistor, and the connection between the first resistor and the second resistor is connected to the seventh pin of the micro-control unit . 5.根据权利要求4所述用于移动照明设备的自锁电路,其特征在于,所述磁感自锁电路还包括第三电阻,所述第三电阻一端连接于所述第一传感器的电压输入管脚和所述第二传感器的电压输入管脚的连接处并与所述基准电压连接,所述第三电阻另一端连接于所述第一电阻与所述第二电阻的连接处并接入所述微控制单元的第七引脚。5 . The self-locking circuit for mobile lighting equipment according to claim 4 , wherein the magnetic induction self-locking circuit further comprises a third resistor, and one end of the third resistor is connected to the voltage of the first sensor. 6 . The connection between the input pin and the voltage input pin of the second sensor is connected to the reference voltage, and the other end of the third resistor is connected to the connection between the first resistor and the second resistor in parallel into the seventh pin of the micro-control unit. 6.根据权利要求1所述用于移动照明设备的自锁电路,其特征在于,所述开关电路包括第一开关键和第二开关键,所述第一开关键与所述微控制单元的第三引脚连接,所述第二开关键与所述微控制单元的第四引脚连接。6 . The self-locking circuit for a mobile lighting device according to claim 1 , wherein the switch circuit comprises a first switch key and a second switch key, the first switch key and the micro-control unit’s The third pin is connected, and the second switch key is connected with the fourth pin of the micro-control unit. 7.根据权利要求1所述用于移动照明设备的自锁电路,所述微控制单元的第六引脚与所述驱动电路连接,所述微控制单元的第三引脚还接有稳压电路。7. The self-locking circuit for mobile lighting equipment according to claim 1, the sixth pin of the micro-control unit is connected with the drive circuit, and the third pin of the micro-control unit is also connected with a voltage regulator circuit. 8.一种移动照明设备,其特征在于,包括灯体、位于所述灯体上的开关按键以及设置在所述灯体内部的电路板,所述开关按键与所述电路板电连接,所述电路板采用如权利要求1-7任一项所述的自锁电路,所述电路板上连接有磁传感器。8. A mobile lighting device, characterized in that it comprises a lamp body, a switch button located on the lamp body, and a circuit board arranged inside the lamp body, wherein the switch button is electrically connected to the circuit board, so that the The circuit board adopts the self-locking circuit according to any one of claims 1-7, and a magnetic sensor is connected on the circuit board. 9.根据权利要求8所述的移动照明设备,其特征在于,包括灯体保护套,所述灯体保护套内设有与所述磁传感器位置相对应的磁铁,所述灯体放入所述灯体保护套中,所述磁传感器在所述磁铁的磁场作用下反应,所述电路板对所述开关按键进行锁定。9 . The mobile lighting device according to claim 8 , characterized in that it comprises a lamp body protective cover, the lamp body protective cover is provided with a magnet corresponding to the position of the magnetic sensor, and the lamp body is placed in the In the lamp body protective cover, the magnetic sensor reacts under the action of the magnetic field of the magnet, and the circuit board locks the switch button. 10.根据权利要求9所述的移动照明设备,其特征在于,所述电路板呈圆形设置在所述灯体的横截面上,所述磁传感器包括第一霍尔开关和第二霍尔开关,所述第一霍尔开关与所述第二霍尔开关分别位于所述电路板直径的两端,所述磁铁呈环状设置于所述灯体保护套中,所述磁铁到所述灯体保护套底部的距离与所述电路板到所述灯体出光口的距离相等。10 . The mobile lighting device according to claim 9 , wherein the circuit board is arranged in a circular shape on the cross section of the lamp body, and the magnetic sensor comprises a first Hall switch and a second Hall switch 10 . The first Hall switch and the second Hall switch are respectively located at two ends of the diameter of the circuit board, the magnet is arranged in a ring shape in the protective cover of the lamp body, The distance from the bottom of the lamp body protective sleeve is equal to the distance from the circuit board to the light outlet of the lamp body.
CN202010501778.6A 2020-06-04 2020-06-04 Self-locking circuit for mobile lighting equipment and mobile lighting equipment Active CN111734967B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010501778.6A CN111734967B (en) 2020-06-04 2020-06-04 Self-locking circuit for mobile lighting equipment and mobile lighting equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010501778.6A CN111734967B (en) 2020-06-04 2020-06-04 Self-locking circuit for mobile lighting equipment and mobile lighting equipment

Publications (2)

Publication Number Publication Date
CN111734967A true CN111734967A (en) 2020-10-02
CN111734967B CN111734967B (en) 2022-11-11

Family

ID=72649974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010501778.6A Active CN111734967B (en) 2020-06-04 2020-06-04 Self-locking circuit for mobile lighting equipment and mobile lighting equipment

Country Status (1)

Country Link
CN (1) CN111734967B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150102804A1 (en) * 2013-10-14 2015-04-16 Infineon Techologies Ag System for Magnetic Self Test
CN105674114A (en) * 2016-01-19 2016-06-15 晨辉光宝科技有限公司 LED lamp
CN107314782A (en) * 2017-05-18 2017-11-03 重庆神缘智能科技有限公司 A kind of Hall counting device
CN206761670U (en) * 2016-12-29 2017-12-19 广州市千牧电子有限公司 A kind of cold light source device of medical endoscope based on Hall element
CN109270876A (en) * 2018-11-20 2019-01-25 漳州高新区远见产业技术研究有限公司 A kind of control device and electronic equipment
CN209057193U (en) * 2019-03-11 2019-07-02 西安洋流潜水设备科技有限公司 A kind of key circuit for underwater equipment controller
CN209180892U (en) * 2019-01-15 2019-07-30 深圳市傲雷电商科技股份有限公司 It is a kind of prevent accidentally by switch block and mobile lighting equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150102804A1 (en) * 2013-10-14 2015-04-16 Infineon Techologies Ag System for Magnetic Self Test
CN105674114A (en) * 2016-01-19 2016-06-15 晨辉光宝科技有限公司 LED lamp
CN206761670U (en) * 2016-12-29 2017-12-19 广州市千牧电子有限公司 A kind of cold light source device of medical endoscope based on Hall element
CN107314782A (en) * 2017-05-18 2017-11-03 重庆神缘智能科技有限公司 A kind of Hall counting device
CN109270876A (en) * 2018-11-20 2019-01-25 漳州高新区远见产业技术研究有限公司 A kind of control device and electronic equipment
CN209180892U (en) * 2019-01-15 2019-07-30 深圳市傲雷电商科技股份有限公司 It is a kind of prevent accidentally by switch block and mobile lighting equipment
CN209057193U (en) * 2019-03-11 2019-07-02 西安洋流潜水设备科技有限公司 A kind of key circuit for underwater equipment controller

Also Published As

Publication number Publication date
CN111734967B (en) 2022-11-11

Similar Documents

Publication Publication Date Title
US8269644B2 (en) Apparatus and method for electronic lock key indicator
CN209527981U (en) A kind of detachable locator of substation safety cap based on WIFI communication
CN111734967A (en) A self-locking circuit for mobile lighting equipment and mobile lighting equipment
CN205647676U (en) Cell -phone with charge and temperature detection
CN208433077U (en) SCM Based wireless location anti-theft device
CN110206446A (en) New-type safe control system
CN109488145A (en) Intelligent door
CN205177114U (en) System is reminded to belongings of going out
US20060220897A1 (en) Notebook with power indication
CN215424358U (en) Toilet paper storing and taking device
CN210007421U (en) intelligent charging cabinet
CN214042568U (en) A button-type magnetic suction conduction device for smart wearable devices
CN203773657U (en) Intelligent notebook anti-theft device
CN214796150U (en) Household power failure alarm system based on single chip microcomputer
CN114056265A (en) Anti-interference touch awakening system and method thereof
CN210319429U (en) Induction alarm circuit
CN220584304U (en) Electronic lock battery voltage measuring circuit and electronic lock
CN223053152U (en) Cabinet Lights
WO2011140722A1 (en) Intelligent capacity measuring battery
CN222864871U (en) Safety flashlight
CN213957469U (en) Electric energy meter
CN211235730U (en) Ambient air detector
CN213582284U (en) Vehicle key and vehicle control system
CN115884476B (en) Emergency lighting device with electric quantity indication function
CN219843441U (en) A power supply control circuit

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
GR01 Patent grant
GR01 Patent grant