CN205352422U - Multi -functional hall sensor module - Google Patents

Multi -functional hall sensor module Download PDF

Info

Publication number
CN205352422U
CN205352422U CN201620140211.XU CN201620140211U CN205352422U CN 205352422 U CN205352422 U CN 205352422U CN 201620140211 U CN201620140211 U CN 201620140211U CN 205352422 U CN205352422 U CN 205352422U
Authority
CN
China
Prior art keywords
pin
pic12f508
diode
resistance
microprocessor
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.)
Withdrawn - After Issue
Application number
CN201620140211.XU
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201620140211.XU priority Critical patent/CN205352422U/en
Application granted granted Critical
Publication of CN205352422U publication Critical patent/CN205352422U/en
Withdrawn - After Issue legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Switches That Are Operated By Magnetic Or Electric Fields (AREA)

Abstract

The utility model discloses a multi -functional hall sensor module circuit, including hall sensor and single chip microprocessor PIC12F508, hall sensor's output is connected with microprocessor PIC12F508's the 4th pin, the 5th pin, hall sensor's output passes through second electric capacity C2 ground connection, its characterized in that still is connected through third resistance R3 to hall sensor's output with positive: microprocessor PIC12F508's the 2nd pin, the 3rd pin are connected with two mode selection circuit respectively, microprocessor PIC12F508's the 6th pin and the 7th pin are connected with two amplifier circuit respectively. The advantage lies in: the commonality is strong, through change select switch K1, K2 sets up the mode, can realize multiple functions, there is low power consumption, ability dormancy when not having signal input, because the variant module of the same kind of function can be developed through the software upgrading to PIC12F508's programmability.

Description

Multipurpose Hall Transducer module
Technical field
This utility model belongs to application of electronic technology field, particularly relates to a kind of magnetic field and there is the sensor circuit of detection, magnetic field pulse existence detection, counting.
Background technology
Currently used more Hall sensor module, particularly the Hall sensor module in Hall water flow switch is all based on the comparator composition of 3144 or the Hall element of similar model, comparator LM393 or similar model, energy output pulse signal or analogue signal, referring to Fig. 1, its output logic is to have magnet close to output low level, on the contrary output high level.
Its advantage is: price is relatively low, and function is also more complete, is used in water flow switch or energy metrical pulse number in some circuit, it is also possible to does proximity switch and uses.Shortcoming is: be used in water flow switch, it is not a switch truly, and it can not directly control the open and close of interlock circuit, in addition it is also necessary to the designer of circuit writes Single Chip Microcomputer (SCM) program, and the comparators such as LM393 are all without energy saver mode, long-time power consumption.
The hall sensor module also having in a kind of gas heater in water flow switch on market, referring to Fig. 2, it applies the single-chip microcomputer of PIC series, achieve and directly open and close lighter, its output logic is if the magnetic field pulse having Water flow detector to produce, then this module output low level opening point firearm, it addition, it can also be used in above the water flow switch of booster water pump.Its advantage is: when pulse exists, it is possible to directly drives relay or electrical equipment, also has park mode, very energy-conservation, only consumes number muA under park mode.Shortcoming is: high expensive, function singleness, it does not have pulsed output mode, can't be used as proximity switch, at magnet close to energy output low level in beginning, but a moment later with regard to dormancy, it is impossible to keep constant output state.
Above two module is disadvantageous in that function singleness, it is impossible to general, and the scope of application is limited, once choose type of error, will be unable to use, making troubles to user.
Summary of the invention
In order to overcome the deficiency of above two sensor, the purpose of this utility model is to provide a kind of general multifunctional Hall element based on PIC12F508.
In order to solve the problems referred to above, the technical solution adopted in the utility model is: Multipurpose Hall Transducer module, including Hall element and chip microprocessor PIC12F508, 4th pin of the outfan of described Hall element and microprocessor PIC12F508, 5th pin connects, the outfan of described Hall element passes through the second electric capacity C2 ground connection, the outfan of described Hall element is connected with positive source also by the 3rd resistance R3, it is characterized in that: the 2nd pin of described microprocessor PIC12F508, 3rd pin is connected with two mode selection circuits respectively, 6th pin and the 7th pin of described microprocessor PIC12F508 are connected with two amplifying circuits respectively.
Further, described mode selection circuit includes the 4th resistance R4, 5th resistance R5, first mode selects switch K1, second mode selection switch K2, first electric capacity C1 and the three diode D3, described 5th resistance R4 one end connects the 3rd pin of described microprocessor PIC12F508, another terminates positive source, described 5th resistance R5 one end connects the 2nd pin of described microprocessor PIC12F508, another terminates positive source, described first mode selects the 2nd pin that switch K1 one end connects described microprocessor PIC12F508, other end ground connection, described second mode selection switch K2 one end connects the 3rd pin of described microprocessor PIC12F508, other end ground connection, described first mode selects switch K1, the earth terminal of the second mode selection switch K2 connects the negative pole of the first electric capacity C1 and the positive pole of the 3rd diode D3 simultaneously, the positive pole of the first electric capacity C1 and the negative pole of the 3rd diode D3 connect positive source.
Further, said two amplifying circuit includes the first amplifying circuit and the second amplifying circuit, first amplifying circuit includes the NPN audion Q1 being cascaded, 4th diode D4 and the six resistance R6, 6th pin of described microprocessor PIC12F508 is connected by the base stage of the second resistance R2 and NPN audion Q1, the emitter stage of NPN audion connects the positive pole of the second diode D2, the negative pole of the second diode D2 and the colelctor electrode of the first audion Q1 connect, the current collection of NPN audion extremely described Multipurpose Hall Transducer module the first output pin out-, second amplifying circuit includes the PNP triode Q2 being cascaded, 7th resistance R7 and the five diode D5, 7th pin of described microprocessor PIC12F508 is connected by the base stage of the first resistance R1 and PNP triode Q2, the emitter stage of PNP triode connects the positive pole of the first diode D1, the negative pole of the first diode D1 is connected with the colelctor electrode of PNP triode Q2, the transmitting of PNP triode extremely described Multipurpose Hall Transducer module the second output pin out+.
This utility model it be a kind of universal Hall sensor module, it comprises the basic function of the Hall element of above-mentioned device based on the comparison and single function Hall element based on PIC12F508 simultaneously, being also advantageous in that of it make use of the PIC12F508 feature with internal RC agitator, cut external crystal-controlled oscillation, vacate its 2,3 two pins, them are allowed to become function selecting pin, by selecting switch K1, K2 to change their level, it is possible to achieve patterns 4 kinds different in following table:
In upper table, pattern 0 can be used for developing New function, and pattern 1-3 has different output logics, substantially contains logic function in need, is available for users to select.
This utility model also uses the house dog that PIC12F508 is built-in, allows under this module both of which wherein, it does not have during signal input can dormancy, there is energy-conservation characteristic.This module also resides in and make use of the 6 of PIC12F508,7 pins realize the output that two-way is anti-phase, it is simple to user selects output level as required easily.
PIC12F508 used in this utility model is single-chip microcomputer, and it is programmable, and function can pass through software upgrading, it is simple to develop the uniformity module of Various Functions.
This utility model devises an insomnia pattern, allows the Hall element based on PIC12F508 except energy saver mode, moreover it is possible to simulate the function of the Hall element of device based on the comparison.
This utility model make use of two audions Q1, Q2 to make output buffering; the output port of PIC12F508 can be protected; make use of diode D1, D2 release circuit self inductance current protection audion Q1, Q2; diode D3 is make use of to protect PIC12F508 to prevent its reverse power connection; by these measures, make the work of this module more reliable.
Summary, advantage of the present utility model essentially consists in: 1. highly versatile, selects switch K1, K2 to arrange pattern by changing, moment becomes the pattern required for user, can also selecting the polarity of output level, namely this module has several functions, substantially increases versatility;2. there is energy saver mode, it does not have energy dormancy during signal input, be highly suitable for counting or the pulse detection be interrupted;3, due to the programmability of PIC12F508, the function of this module can pass through software upgrading, is also convenient for developing the uniformity module of function variation.This utility model is applicable to the various detection changes of magnetic field that requires over and controls the control system of other circuit or electrical equipment.
Accompanying drawing explanation
Fig. 1 is based on the Hall element circuit theory diagrams of comparator.
Fig. 2 is based on single function Hall element circuit theory diagrams of PIC12F508.
Fig. 3 is the Multipurpose Hall Transducer modular circuit schematic diagram based on PIC12F508 of the present utility model.
Fig. 4 is the circuit diagram of this utility model embodiment 1.
Fig. 5 is the circuit diagram of this utility model embodiment 2.
Fig. 6 is the circuit diagram of this utility model embodiment 3.
Fig. 7 is the circuit diagram of this utility model embodiment 4.
Fig. 8 is the program flow diagram that this utility model uses.
Detailed description of the invention
As shown in Figure 3, Multipurpose Hall Transducer module of the present utility model, including Hall element HALLSENSOR and chip microprocessor PIC12F508, the outfan of described Hall element HALLSENSOR and the 4th pin of microprocessor PIC12F508, 5th pin connects, the outfan of described Hall element passes through the second electric capacity C2 ground connection, the outfan of described Hall element is connected with positive source also by the 3rd resistance R3, it is characterized in that: the 2nd pin of described microprocessor PIC12F508, 3rd pin is connected with two mode selection circuits respectively, 6th pin and the 7th pin of described microprocessor PIC12F508 are connected with two amplifying circuits respectively;Described mode selection circuit includes the 4th resistance R4, 5th resistance R5, first mode selects switch K1, second mode selection switch K2, first electric capacity C1 and the three diode D3, described 5th resistance R4 one end connects the 3rd pin of described microprocessor PIC12F508, another terminates positive source, described 5th resistance R5 one end connects the 2nd pin of described microprocessor PIC12F508, another terminates positive source, described first mode selects the 2nd pin that switch K1 one end connects described microprocessor PIC12F508, other end ground connection, described second mode selection switch K2 one end connects the 3rd pin of described microprocessor PIC12F508, other end ground connection, described first mode selects switch K1, the earth terminal of the second mode selection switch K2 connects the negative pole of the first electric capacity C1 and the positive pole of the 3rd diode D3 simultaneously, the positive pole of the first electric capacity C1 and the negative pole of the 3rd diode D3 connect positive source;Said two amplifying circuit includes the first amplifying circuit and the second amplifying circuit, first amplifying circuit includes the NPN audion Q1 being cascaded, 4th diode D4 and the six resistance R6, 6th pin of described microprocessor PIC12F508 is connected by the base stage of the second resistance R2 and NPN audion Q1, the emitter stage of NPN audion connects the positive pole of the second diode D2, the negative pole of the second diode D2 and the colelctor electrode of the first audion Q1 connect, the current collection of NPN audion extremely described Multipurpose Hall Transducer module the first output pin out-, second amplifying circuit includes the PNP triode Q2 being cascaded, 7th resistance R7 and the five diode D5, 7th pin of described microprocessor PIC12F508 is connected by the base stage of the first resistance R1 and PNP triode Q2, the emitter stage of PNP triode connects the positive pole of the first diode D1, the negative pole of the first diode D1 is connected with the colelctor electrode of PNP triode Q2, the transmitting of PNP triode extremely described Multipurpose Hall Transducer module the second output pin out+, described NPN audion Q1 is 8050 types, described PNP triode Q2 is 8550 types.
Operation principle of the present utility model: in figure, HALLSENSOR is three pin Hall elements, model is 3144 or similar model, the output low level when magnetic pole is just to its sensitive surface, leaves, exports high level.The 5 foot inputs by PIC12F508 of this signal, PIC12F508 reads the level of 2,3 feet simultaneously, and the level of the two pin can become high level by pull-up resistor i.e. the 4th resistance R4, the 5th resistance R5, can be dragged down by mode selection switch K1, K2 again.If the level of the 2nd of PIC12F508 the, 3 feet is 01, then work by pattern 1, i.e. magnet proximity test pattern, the output logic of this pattern is: Hall element experiences magnet, a kind of level of output, magnet leaves the another kind of level of output, and this pattern needs this module moment to be in Alertness, thus can not allow its dormancy;If the 2nd, the level of 3 feet is 10, then working by pattern 2, i.e. pulse-counting mode, this pattern has pulse then to work, and no pulse is dormancy then;If 2, the level of 3 feet is 11, then working by pattern 3, namely there is detection pattern in pulse, under this pattern, its output logic is: if pulse exists, then export fixed level, to open or to stop corresponding electric appliance, select different mode of operations in a word, it may be achieved different output logics.The 6 of PIC12F508,7 pins are all the output signals of this module, but they are anti-phase, and the signal of output is finally exported from OUT-, OUT+ by the expansion stream of audion Q1, Q2, it is possible to directly drive the element such as relay, optocoupler.Protection to audion Q1, Q2 when diode D1, D2 realize outfan contact relay, diode D3 connects at modular power source and shields inverse time.
Described microprocessor PIC12F508 can use PIC12C508, PIC12F509 or PIC12C509 to substitute.
Working procedure FB(flow block) of the present utility model is shown in Fig. 8.
Embodiment 1
As shown in Figure 4, the present embodiment is the firing circuit that this utility model is used for gas heater, is this utility model module in broken box, in Fig. 4, PIC12F508 the 2nd, 3 pins are all high level, i.e. K1K2=11, this module works in pattern 3, and namely magnetic field impulse exists detection pattern.If magnet rotor operate, Hall element will export pulse, OUT-will output low level, this pattern enables house dog and keeps an eye on whether pulse exists, if pulse exists always, OUT-will output low level always, pulse disappears, after 0.5S, OUT-recovers high level, module dormancy.General gas water heater ignition device is when current microswitch is connected, and its essence is exactly dragged down by the Enable Pin current potential of ignition module, enables igniting, and firing circuit will start, and in this circuit, module is when there being current, and OUT-, with regard to output low level, enables lighter.OUT+ output and the output of OUT-keep anti-phase, if not having current, close gas after 0.5S, flame-out.Compared with mechanical water flow switch, the sensor that this module is constituted is much higher to current sensitivity.This circuit is transformed a little, moreover it is possible to be used on the water flow switch of low hydraulic pressure area booster pump, solves the insensitive problem of mechanical water flow switch.This pattern energy dormancy, for power conservation feature, is particularly suitable for making battery-powered occasion.
Also having and be a bit worth mentioning: by program setting OUT-, this module can be responsible for whether marker pulse exists, and OUT+ is responsible for output pulse simultaneously, so, user has only to select output lead, it is not necessary to arrange output mode.It is used in Hall-type water flow switch, both can be used to count, can be used to again drive relay.
Embodiment 2
As it is shown in figure 5, the present embodiment is that this utility model is used for counter circuit, it is this module in broken box.PIC12F508 the 2nd, 3 pins respectively high and low level, i.e. K1K2=10 in Fig. 5, this module works in pattern 2, i.e. pulse-counting mode.OUT-and OUT+ can be connected on the input of enumerator, if it is desired, this module also can connect single-chip microcomputer.This pattern after there is no pulse 0.5S, module will dormancy, enter energy saver mode.The time delay of this 0.5S can't affect the accuracy of counting.But need to consume the time of several milliseconds owing to this pattern adopts single-chip microcomputer PIC12F508 to inquire about pin level change, it is impossible to be used on the pulse counting equipment of very high frequency, be appropriate only on mechanical separator speed or other middle-low frequency pulse counting assemblys.
Embodiment 3
As shown in Figure 6, the present embodiment is the control circuit that this utility model is used for sensor, is this utility model module in broken box.PIC12F508 the 2nd, 3 pins respectively low, high level, i.e. K1K2=01 in Fig. 6, this module works in pattern 1, i.e. magnet proximity test pattern.If magnetic induction line is through the sensitive surface of Hall element, OUT-will output low level, magnet leaves output high level, and OUT+ output and the output of OUT-keep anti-phase, this mode module can not dormancy, do not possess power conservation feature.When being in this pattern, this module can use as a proximity transducer, or replaces tongue tube, and the reliability of this module is better than tongue tube, service life is longer than it.
Embodiment 4
As it is shown in fig. 7, the present embodiment be with CPU with the use of example, be this module in broken box.In Fig. 7, PIC12F508 the 2nd, 3 pins are controlled by the processor of higher level, can be implemented in and work changes this module mode of operation, the such as beginning works in pulse and there is detection pattern, and processor detects that pulse is changed into count mode or allows it forward not park mode at once after existing.
Subordinate list: difference arranges down the function of multi-functional Hall module
In table, OUT+, OUT-output level is anti-phase, allows user select output level more easily.K1 at PIC12F508 the 2nd foot, K2 at the 3rd foot.In pattern 0, OUT-and OUT+ is not anti-phase, is temporarily set to OUT-output low level when pulse exists, and OUT+ exports pulse simultaneously.This pattern can also develop other function.
Module for power supply voltage: 3.0V~5.5V.

Claims (5)

1. Multipurpose Hall Transducer module, including Hall element and chip microprocessor PIC12F508, 4th pin of the outfan of described Hall element and microprocessor PIC12F508, 5th pin connects, the outfan of described Hall element passes through the second electric capacity (C2) ground connection, the outfan of described Hall element is connected with positive source also by the 3rd resistance (R3), it is characterized in that: the 2nd pin of described microprocessor PIC12F508, 3rd pin is connected with two mode selection circuits respectively, 6th pin and the 7th pin of described microprocessor PIC12F508 are connected with two amplifying circuits respectively.
2. Multipurpose Hall Transducer module according to claim 1, it is characterized in that: described mode selection circuit includes the 4th resistance (R4), 5th resistance (R5), first mode selects switch (K1), second mode selection switch (K2), first electric capacity (C1) and the 3rd diode (D3), described 4th resistance (R4) one end connects the 3rd pin of described microprocessor PIC12F508, another terminates positive source, described 5th resistance (R5) one end connects the 2nd pin of described microprocessor PIC12F508, another terminates positive source, described first mode selects the 2nd pin that switch (K1) one end connects described microprocessor PIC12F508, other end ground connection, described second mode selection switch (K2) one end connects the 3rd pin of described microprocessor PIC12F508, other end ground connection, described first mode selects switch (K1), the earth terminal of the second mode selection switch (K2) connects the negative pole of the first electric capacity (C1) and the positive pole of the 3rd diode (D3) simultaneously, the positive pole of the first electric capacity (C1) and the negative pole of the 3rd diode (D3) connect positive source.
3. Multipurpose Hall Transducer module according to claim 1, it is characterized in that: said two amplifying circuit includes the first amplifying circuit and the second amplifying circuit, first amplifying circuit includes the NPN audion (Q1) being cascaded, 4th diode (D4) and the 6th resistance (R6), 6th pin of described microprocessor PIC12F508 is connected with the base stage of NPN audion (Q1) by the second resistance (R2), the emitter stage of NPN audion connects the positive pole of the second diode (D2), the negative pole of the second diode (D2) and the colelctor electrode of the first audion (Q1) connect, the current collection of NPN audion extremely described Multipurpose Hall Transducer module the first output pin (out-), second amplifying circuit includes the PNP triode (Q2) being cascaded, 7th resistance (R7) and the 5th diode (D5), 7th pin of described microprocessor PIC12F508 is connected with the base stage of PNP triode (Q2) by the first resistance (R1), the emitter stage of PNP triode connects the positive pole of the first diode (D1), the negative pole of the first diode (D1) is connected with the colelctor electrode of PNP triode (Q2), the transmitting of PNP triode extremely described Multipurpose Hall Transducer module the second output pin (out+).
4. Multipurpose Hall Transducer module according to claim 1, it is characterised in that: described microprocessor PIC12F508 PIC12C508, PIC12F509 or PIC12C509 substitute.
5. Multipurpose Hall Transducer module according to claim 3, it is characterised in that: described NPN audion (Q1) is 8050 types, and described PNP triode is 8550 types.
CN201620140211.XU 2016-02-20 2016-02-20 Multi -functional hall sensor module Withdrawn - After Issue CN205352422U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201620140211.XU CN205352422U (en) 2016-02-20 2016-02-20 Multi -functional hall sensor module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201620140211.XU CN205352422U (en) 2016-02-20 2016-02-20 Multi -functional hall sensor module

Publications (1)

Publication Number Publication Date
CN205352422U true CN205352422U (en) 2016-06-29

Family

ID=56183850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201620140211.XU Withdrawn - After Issue CN205352422U (en) 2016-02-20 2016-02-20 Multi -functional hall sensor module

Country Status (1)

Country Link
CN (1) CN205352422U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105675025A (en) * 2016-02-20 2016-06-15 向旭东 Multifunctional hall sensor module
CN108910707A (en) * 2018-08-24 2018-11-30 安徽合力股份有限公司 A kind of empty container tool suspender decline protection control device and method
CN114312554A (en) * 2021-12-31 2022-04-12 昆山市兴利车辆科技配套有限公司 Low-power-consumption automobile brake lamp switch sensor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105675025A (en) * 2016-02-20 2016-06-15 向旭东 Multifunctional hall sensor module
CN105675025B (en) * 2016-02-20 2018-05-11 向旭东 Multipurpose Hall Transducer module
CN108910707A (en) * 2018-08-24 2018-11-30 安徽合力股份有限公司 A kind of empty container tool suspender decline protection control device and method
CN108910707B (en) * 2018-08-24 2024-05-31 安徽合力股份有限公司 Device and method for controlling descending protection of empty container lifting appliance
CN114312554A (en) * 2021-12-31 2022-04-12 昆山市兴利车辆科技配套有限公司 Low-power-consumption automobile brake lamp switch sensor

Similar Documents

Publication Publication Date Title
CN205352422U (en) Multi -functional hall sensor module
CN102231087B (en) Keyboard
CN104216494A (en) Single chip microcomputer controlled power grid detection and reset circuit
CN105675025A (en) Multifunctional hall sensor module
CN105352685A (en) Water leakage detection and alarming system
CN209231744U (en) It is a kind of can the preset switches machine key response time circuit
CN104719105A (en) Automatic humidity-control watering device
CN206441115U (en) Starting key circuit and electronic equipment
CN102255317B (en) Earthquake alarm household electronic power saver
CN107765194A (en) A kind of flashing light tester
CN203881830U (en) Parameter detecting instrument based on Android phone
CN204258758U (en) A kind of power down does not produce the reset circuit of reset signal
CN208588774U (en) Voltage detecting circuit based on capacitor charge and discharge and electric resistance partial pressure
CN206574646U (en) A kind of dial-up type time relay
CN206788613U (en) A kind of intelligent switch
CN108628181A (en) Smart home monitor control system
CN209542677U (en) A kind of meter backlight electric power control circuit
CN209167494U (en) A kind of gas combustion range ignition switch detection circuit
CN208060982U (en) A kind of switching value output circuit
CN205584164U (en) Hall proximity switch circuit
CN206331285U (en) A kind of beveler controls circuit
CN207232950U (en) Time-sharing multiplex is connected in series circuit
CN205066043U (en) Air conditioner economize on electricity system
CN201926699U (en) Low-voltage circuit for power failure detection
CN108519892A (en) Start-up mode selection circuit and electronic equipment

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
AV01 Patent right actively abandoned
AV01 Patent right actively abandoned

Granted publication date: 20160629

Effective date of abandoning: 20180511