CN106405659A - Automatic door security protection intelligent monitoring method and gas detection method - Google Patents
Automatic door security protection intelligent monitoring method and gas detection method Download PDFInfo
- Publication number
- CN106405659A CN106405659A CN201610900196.9A CN201610900196A CN106405659A CN 106405659 A CN106405659 A CN 106405659A CN 201610900196 A CN201610900196 A CN 201610900196A CN 106405659 A CN106405659 A CN 106405659A
- Authority
- CN
- China
- Prior art keywords
- circuit
- voltage
- processing unit
- central processing
- resistance
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01V—GEOPHYSICS; GRAVITATIONAL MEASUREMENTS; DETECTING MASSES OR OBJECTS; TAGS
- G01V3/00—Electric or magnetic prospecting or detecting; Measuring magnetic field characteristics of the earth, e.g. declination, deviation
- G01V3/08—Electric or magnetic prospecting or detecting; Measuring magnetic field characteristics of the earth, e.g. declination, deviation operating with magnetic or electric fields produced or modified by objects or geological structures or by detecting devices
- G01V3/10—Electric or magnetic prospecting or detecting; Measuring magnetic field characteristics of the earth, e.g. declination, deviation operating with magnetic or electric fields produced or modified by objects or geological structures or by detecting devices using induction coils
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N27/00—Investigating or analysing materials by the use of electric, electrochemical, or magnetic means
- G01N27/02—Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating impedance
- G01N27/04—Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating impedance by investigating resistance
- G01N27/041—Investigating or analysing materials by the use of electric, electrochemical, or magnetic means by investigating impedance by investigating resistance of a solid body
Landscapes
- Life Sciences & Earth Sciences (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Remote Sensing (AREA)
- Environmental & Geological Engineering (AREA)
- Health & Medical Sciences (AREA)
- Geology (AREA)
- Geophysics (AREA)
- Electromagnetism (AREA)
- Chemical Kinetics & Catalysis (AREA)
- Electrochemistry (AREA)
- General Life Sciences & Earth Sciences (AREA)
- Analytical Chemistry (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- Immunology (AREA)
- Pathology (AREA)
- Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)
Abstract
The invention provides an automatic door security protection intelligent monitoring method and a gas detection method. The intelligent monitoring system comprises a central processing unit, a power supply circuit, a serial communication module, an alcohol detection circuit, a metal coil oscillation circuit, a signal collecting and conditioning circuit, an LCD screen and a sound-light alarm module, wherein the metal coil oscillation circuit is connected with the central processing unit through the signal collecting and conditioning circuit, the central processing unit is respectively connected with the serial communication module, the alcohol detection circuit, the LCD screen and the sound-light alarm module, the power supply circuit is connected with the central processing unit and used for providing power for the central processing unit, and the central processing unit is connected with a PC (Personal Computer) through the serial communication module. According to the invention, detection is performed on three types of dangerous articles such as metal, alcohol and inflammable materials by taking a single-chip microcomputer as a core, and whether a visitor has certain dangerousness or not is judged intelligently according to a sensor detection value through the single-chip microcomputer.
Description
Technical field
The present invention relates to building automatic field, more particularly, to a kind of automatically-controlled door safety precaution intelligent control method and its gas
Body detecting method.
Background technology
Traditional automatically-controlled door is near the action of door or certain introduction, people to be authorized the control being identified as enabling signal
Unit, is opened door using drive system, and door is closed after leaving by people automatically, and unlatching and closing control are realized
System.In addition, the automatic door special of various discernible control, such as infrared induction door, touch sensible door, microwave induced door, brush
Card induction door etc. occurs in trend of the market in succession.At present, automatically-controlled door has been widely used for various occasions, market, bank,
Station etc..
However, these automatically-controlled doors all do not have the function of safety precaution.And the safety precaution grade such as bank, school is compared
High public place, automatic safety door used is that possess metal detection, inflammable thing detection, and this to crime prevention event is
Very necessary.
Content of the invention
The present invention proposes for existing automatically-controlled door and designs a kind of intelligent monitoring side using single-chip microcomputer and sensor for it
Method and gas detection method.
The present invention proposes a kind of automatically-controlled door safety precaution intelligent control method, is realized according to technical scheme below:
A kind of automatically-controlled door safety precaution intelligent control method it is characterised in that:It is monitored using intelligent monitor system, institute
State intelligent monitor system and include central processing unit, power circuit, serial communication module, wire coil oscillating circuit, signals collecting
Modulate circuit, LCD display, sound and light alarm module, described wire coil oscillating circuit is by described signal collection modulation circuit
Process with described central authorities and be connected, described central processing unit respectively with described serial communication module, described LCD display and described
Sound and light alarm module connects, and described power circuit is connected with described central processing unit, for powering for described central processing unit, institute
The central processing unit stated is connected with described serial communication module;
The intelligent monitoring of automatically-controlled door safety precaution is realized by following steps:
S1:Set reference voltage;
S2:Near when detecting thing, the Hall element in wire coil oscillating circuit senses the magnetic field of change to detection coil,
And the magnetic field of change is converted to voltage signal;
S3:Voltage signal, through signal collection modulation circuit, voltage signal is converted to peak output voltage;
S4:Through A/D change-over circuit, central processing unit is by peak output voltage and reference voltage ratio for peak output voltage
Relatively, peak output voltage and the absolute difference of reference voltage are compared with default sensitivity;
S5:If peak output voltage is more than default sensitivity with the absolute difference of reference voltage, determines and detect thing
Material, central processing unit drive sound and light alarm module carry out luminous prompting report to the police and sound alarm indicator;If peak value exports
Voltage is less than or equal to default sensitivity, then return to step S2 with the absolute difference of reference voltage.
Further, in step S5, by input through keyboard, described LCD display shows corresponding numerical value for default sensitivity
Size.
Further, described wire coil oscillating circuit includes multivibrator, and resistance R1 and resistance R2 is multi-harmonic-oscillations
The timing element of device, one end of resistance R1 connects power supply, and the other end of resistance R1 and R2 series connection and electric capacity C1 are connected in series, electric capacity
C1 is grounded, and open-collector output 7 pin accesses in the middle of resistance R1 and R2, trigger input end 2 pin of intervalometer and threshold values
Input 6 pin is connected with electric capacity C1, and extraneous control signal is grounded by electric capacity C2, and positive pulse signal 3 pin of output leads to
Cross the base terminal that electric capacity C3 is input to Q1 amplifying circuit, after Q1 amplifying circuit amplifies, input to inductance coil L1,
The surrounding of inductance coil L1 produces a constant alternating magnetic field.
Further, described signal collection modulation circuit includes operational amplifier LM324, and electric capacity C11 passes through coupling
The output signal of described wire coil oscillating circuit is sent to the input of described operational amplifier LM324, described computing is put
Big device LM324 be amplified after by voltage signal conversion voltage in couples.
Further, described acoustooptic alarm system includes acousto-optic diode, buzzer and PNP triode, described
PNP triode is used for drive circuit, and described acousto-optic diode is connected in parallel with described buzzer.
Further, described power circuit includes the first reduction voltage circuit and the second reduction voltage circuit, described the first blood pressure lowering
Circuit includes a circuit of three-terminal voltage-stabilizing integrated block LM7809, and described second reduction voltage circuit includes the integrated electricity of another three-terminal voltage-stabilizing
Road block LM2940-5s.
The present invention has also been proposed a kind of automatically-controlled door safety precaution Intelligent Measurement gas methods, is realized according to technical scheme below
's:
A kind of automatically-controlled door safety precaution Intelligent Measurement gas methods it is characterised in that:Examined using intelligent monitor system
Survey, described intelligent monitor system includes central processing unit, power circuit, serial communication module, alcohol detection circuit, LCD show
Screen, sound and light alarm module, described central processing unit respectively with described serial communication module, described alcohol detection circuit, described LCD
Display screen and described sound and light alarm module connect, and described power circuit is connected with described central processing unit, for in described
Central processor is powered, and described central processing unit is connected with described serial communication module;
Described alcohol detection circuit includes gas sensor, data processing module, safe threshold setting circuit and threshold values and deposits
Storage system, described data processing module is deposited with described gas sensor, described safe threshold setting circuit and described threshold values respectively
Storage system connects;
The gas detecting of automatically-controlled door safety precaution is through the following steps that realize:
S1:Preheating gas sensor 3 minutes;
S2:Initialization intelligent monitor system, system enters monitor state;
S3:Fault detect investigation is carried out to the heater strip of gas sensor;
S4:Set alarm limit magnitude of voltage;
S5:Gas sensor detected gas concentration, through A/D change-over circuit, is transmitted further to central processing unit and is processed,
Output voltage signal;
S6:Output voltage is compared by central processing unit with alarm limit magnitude of voltage, if output voltage is more than warning voltage limit
It is worth, then central processing unit drives sound and light alarm module to carry out luminous prompting and reports to the police and sound alarm indicator;If output voltage is big
In alarm limit magnitude of voltage, then return to step S2.
Further, described alcohol detection circuit includes gas sensor, data processing module, safe threshold setting circuit
With threshold values storage system, described data processing module respectively with described gas sensor, described safe threshold setting circuit and institute
State threshold values storage system to connect.
Further, described gas sensor is MQ-3 alcohol sensor, the gas sensitive of described MQ-3 alcohol sensor
For tin ash.
Further, described safe threshold setting circuit includes resistance R4, resistance R5, resistance R6 and corresponds respectively to
Resistance R4, resistance R5, the button S2 of resistance R6, button S3, button S4, described button S2 is used for arranging threshold values, and described presses
Key S3 is used for increasing threshold values, and described button S4 is used for reducing threshold values.
Further, described acoustooptic alarm system includes acousto-optic diode, buzzer and PNP triode, described
PNP triode is used for drive circuit, and described acousto-optic diode is connected in parallel with described buzzer.
Further, described power circuit includes the first reduction voltage circuit and the second reduction voltage circuit, described the first blood pressure lowering
Circuit includes a circuit of three-terminal voltage-stabilizing integrated block LM7809, and described second reduction voltage circuit includes the integrated electricity of another three-terminal voltage-stabilizing
Road block LM2940-5s.
The present invention compared with prior art, has obvious beneficial effect:The detectable visitor of the present invention has or not and carries danger
Product, if carrying cutter, firearms, flammable, during explosive material, it is automatically switched off automatically-controlled door, so as to improve the safety precaution of automatically-controlled door
Grade.Additionally, the monitoring system structure of the present invention is simple, low price, and conveniently safe liter is carried out to mounted automatically-controlled door
Level, so that the economic cost after the automatically-controlled door of tradition no intelligent monitoring ability improves safe class, and the system reform is not high, changes
Make workload few.
Brief description
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Have technology description in required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, acceptable
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of automatically-controlled door safety precaution intelligent monitor system principle schematic of the present invention;
Fig. 2 is the sound and light alarm module schematic diagram of the present invention;
Fig. 3 is that the safe threshold of the present invention arranges circuit diagram;
Fig. 4 is the serial communication module circuit diagram of the present invention;
Fig. 5 is the threshold values storage system circuit diagram of the eeprom chip of the present invention;
Fig. 6 is the wire coil oscillating circuit schematic diagram of the present invention;
Fig. 7 is the electromagnetic signal acquisition modulate circuit schematic diagram of the present invention;
Fig. 8 is the MQ-3 alcohol sensor module principle figure of the present invention;
Fig. 9 is the power-supplying circuit schematic diagram of the present invention;
Figure 10 is the metal detection flow chart of the present invention;
Figure 11 is the Keyboard Control flow chart of the present invention;
Figure 12 is the digital filtering flow chart of the present invention;
Figure 13 is the display alarm flow chart of the present invention.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that described embodiment is
The a part of embodiment of the present invention, rather than whole embodiments.
Fig. 1 is a kind of automatically-controlled door safety precaution intelligent monitor system principle schematic of the present invention, as shown in figure 1, a kind of
Automatically-controlled door safety precaution intelligent monitor system it is characterised in that:Including central processing unit, power circuit, serial communication module, wine
Smart testing circuit, wire coil oscillating circuit, signal collection modulation circuit, LCD display and sound and light alarm module, PC,
Described wire coil oscillating circuit is processed with described central authorities by described signal collection modulation circuit and is connected, described central processing unit
Respectively with described serial communication module, described alcohol detection circuit, described LCD display and described sound and light alarm module even
Connect, described power circuit is connected with described central processing unit, for powering for described central processing unit, described central processing unit
It is connected with described serial communication module.
Fig. 2 is the sound and light alarm module schematic diagram of the present invention, and the present invention to drive electricity using the crystal triode of a PNP
Road, the input port to connect PNP transistor base stage for the pin P3.4 of selection STC single-chip microcomputer during design circuit.When STC single-chip microcomputer
Pin P3.4 when being externally output as high level " 1 ", this PNP triode would be at conducting state, and voltage has+5V, this voltage
The two ends that value inputs the buzzer of piezoelectric type make it send tweeting sound;When P3.4 is in normal condition, that is, it is output as low electricity
When flat " 0 ", now PNP triode is then in cut-off state, does not have voltage to force the two ends of the buzzer of piezoelectric type, at this moment buzzing
Device will not send the alarm of buzz.If buzzer, mode in parallel is connected with light emitting diode, can save I/O end
Mouth is it is also possible to save the resource of the hardware of single-chip microcomputer.Certainly, while buzzer sounds the alarm and rings, the diode of series connection
Also light can be sent at once.The function of PNP triode is equivalent to a switch, then employs 8550 audions to drive electricity
Road.
In the present invention, described alcohol detection circuit includes gas sensor, data processing module, safe threshold setting circuit
With threshold values storage system, described data processing module respectively with described gas sensor, described safe threshold setting circuit and institute
State threshold values storage system to connect.Described gas sensor is MQ-3 alcohol sensor, the air-sensitive material of described MQ-3 alcohol sensor
Expect for tin ash.
Fig. 3 is that the safe threshold of the present invention arranges circuit diagram, and described safe threshold setting circuit includes resistance R4, resistance
R5, resistance R6 and correspond respectively to resistance R4, resistance R5, the button S2 of resistance R6, button S3, button S4, described button
S2 is used for arranging threshold values, and described button S3 is used for increasing threshold values, and described button S4 is used for reducing threshold values.Resistance R4, resistance
R5, the size of resistance R6 are all 1k Ω.
LCD display is industrial character mode lcd display screen LCD1602, is directly connected with central processing unit.
Fig. 4 is the serial communication module circuit diagram of the present invention, in order to by the alcohol concentration detecting in surrounding
It is sent to PC with combustable gas concentration value, communication module pattern is all mutually to be transmitted data in the form of serial ports.By
RS232 level in the serial ports of PC, serial line interface be but Transistor-Transistor Logic level it is therefore desirable to level conversion, level can be relied on
Conversion chip MAX232 to complete, just testing circuit can be coupled together with PC after conversion.Chip 6 pin passes through electricity
Hold C10 ground connection, chip 2 pin is connected with VCC by electric capacity C9, and 1 pin is connected by electric capacity C6 with 3 pins, pin 4 and pin
5 are connected by electric capacity C4, and 10 pins connect a resistance R13, and 11 pins are connected with VCC by resistance R10, and 16 pins directly connect
Meet VCC, 15 pin ground connection, 9 pins connect resistance R16, and 8 pins are connected with 3 pins of adapter, and 7 pins draw with the 2 of adapter
Foot connects.Resistance R10, resistance R13, the value of resistance R16 are all 10K Ω, electric capacity C4, electric capacity C6, electric capacity C9, the value of electric capacity C10
It is all the 10 4 power pico farads being multiplied by 10, that is, 100000pF.
Meanwhile, need to set rule to ensure intelligent monitor system and the PC normal communication of safety door, the present invention
In, baud rate should be set as 9600bps, and it is 1 that the form of information should be arranged to start bit, and stop position is 1, and data bit is 8,
There is no parity check bit;Also realize asynchronous serial interface communication mode, PC accepts the method using inquiry for the mode of data, and
The intelligent monitor system of safety door is then the control command to accept PC using interrupt mode.
Fig. 5 is the threshold values storage system circuit diagram of the eeprom chip of the present invention it is contemplated that the exceeded report of ethanol gas concentration
Alarm system may can be different because of different detection environment, threshold value setting, simultaneously in order to prevent from use may
Occur stops power supply suddenly temporarily, in order to avoid this situation, increased an outside EEPROM module, for completing externally
The storage of portion's data, the intelligent monitor system of the present invention is from the communication modes EEPROM AT24C04 based on I2C bus.
AT24C02 is a class eeprom chip of 2Kbi t (256Bytes) the type I2C bus producing under atmel corp.
Wherein, the SDA pin of AT24C02 chip is not only the serial address of I2C bus, is also data input and output
Pin, in the design of component, it is a two-way data transmission port, in general, as transfer address and
Data enters device inside, or the element as receiving data uses in a device.Due to being open-drain, therefore it is accomplished by
A pull-up resistor in external connection, so protection circuit could realize normal use.And why SDA can transmit data, only
Can be when SCL serial clock be low level state.And when SCL is for high level, the situation of change of SDA be as instruction start with
The condition stopping.
The SCL pin of AT24C02 chip is the serial clock port of I2C bus clock, between synchronous master-slave equipment
Time.The threshold value of ethanol gas concentration will be stored in eeprom chip AT24C02, and wherein, pin A0, A1 and A2 are chip
Addressing of address pin, due to only one of which 24C02 in circuit, therefore only this three pins need to be connected to ground terminal simultaneously.
And pin SCL and SDA is the clock line of I2C bus and the data wire that device AT24C02 and single-chip microcomputer carry out communication exchanges.VCC
Connect resistance R23 between pin and SCL pin, between VCC pin and SDA pin, connect resistance R25, resistance R23, resistance R25
Resistance value be 10K Ω.
Fig. 6 is the wire coil oscillating circuit schematic diagram of the present invention, and wire coil oscillating circuit includes multivibrator, electricity
Resistance R1 and resistance R2 is the timing element of multivibrator, and one end of resistance R1 connects power supply, the other end of resistance R1 and R2 string
Connection and electric capacity C1 are connected in series, and electric capacity C1 is grounded, and open-collector output 7 pin accesses in the middle of resistance R1 and R2, intervalometer
Trigger input end 2 pin and threshold values input 6 pin be connected with electric capacity C1, extraneous control signal is grounded by electric capacity C2,
Positive pulse signal 3 pin of output is input to the base terminal of Q1 amplifying circuit by electric capacity C3, amplifies it through Q1 amplifying circuit
Afterwards, input to inductance coil L1, produce a constant alternating magnetic field around inductance coil L1.Inductance coil and resistance
NC1 is in parallel, and wherein, electric capacity C1, electric capacity C2, electric capacity C3, electric capacity C5, the size of electric capacity C7 are the 10 3 power pico farads being multiplied by 10, electricity
Resistance R1, resistance R2, the resistance value of resistance R10 are 2K Ω, and resistance R9 is 18K Ω, resistance R11 is 200 for 675 Ω, resistance R12
Ω, resistance NC1 are 1K Ω.
Fig. 7 is the electromagnetic signal acquisition modulate circuit schematic diagram of the present invention, and this system adopts ALELGRO company of the U.S. integrated
Linear hall sensor is used for monitoring the change of coil Ll surrounding magnetic field.The major function of integrated linear Hall sensor is permissible
Linearly the magnetic field intensity signal sensing is changed into voltage signal.This integrated linear Hall sensor by Hall element, penetrate
Pole follower is integrated on same semiconductor chip with the linear differential amplifier of high-gain property, is driven by dispatch from foreign news agency potential source.
However, the voltage signal that linear hall element collects is substantially the voltage signal of a millivolt level, signal ratio
Fainter, it need to be amplified, just can be further processed this signal.Operational amplifier LM324 of the present invention, integrated line
Property Hall element output small-signal, electric capacity C11 passes through coupling and passes the output signal of described wire coil oscillating circuit
Deliver to the input of described operational amplifier LM324, voltage signal is changed after being amplified by described operational amplifier LM324
Voltage in couples.
In the circuit design of system, for the different signal of intensity, may be adjusted the amplification system of prime
The size of feedback potentiometer so that changing its amplification.By the amplification signal of the operational amplifier of prime through coupling
Input to the peak detection circuit system of rear class after closing electric capacity C14.Take the mode of resistance-capacitance coupling it becomes possible to will in front and back
The quiescent point of the Circuits System of level keeps absolute construction, isolates influencing each other between quiescent points at different levels, this electricity
Total temperature drift on road would not be too big.
And peak detection circuit is mainly made up of two-stage calculation amplifier, the operational amplifier LM324 of the first order is defeated
The peak value entering signal is delivered to electric capacity C16, and remains behind;Second level operational amplifier LM324 constitutes buffer amplifier structure,
Come mutually isolated to output signal and electric capacity.
1., when input voltage Vi2 starts to occur rising, Vo2 also can change therewith and leads to numerical value to rise so that two
Pole pipe D3 is both turned on D4, and diode D2 is in cut-off state, and operational amplifier LM324 is in profound and negative feedbck state, electric capacity
C16 starts to charge up, and Vc magnitude of voltage rises.
2. when input voltage Vi2 start occur decline when, Vo2 also can change therewith lead to numerical value decline, D2 turn on,
Operational amplifier LM324 is also at profound and negative feedbck state, but profound and negative feedbck at least can ensure that diode D3, D4's
Reliable cut-off, the magnitude of voltage of Vc can be maintained.
3., when input voltage Vi2 starts again at rising, Vo2 can be made again to increase, and D3, D4 are on, D2
It is in cut-off, if now again electric capacity C16 is charged with (and ensureing that voltage Vc is higher than magnitude of voltage during previous charging),
When input voltage Vi2 declines, diode D3, D4 can be in cut-off state again, and diode D2 begins to turn on, and Vc will
Keep peak state again.
Output voltage Vo can be with the size of reflecting voltage Vc, and the faint voltage signal collecting is through peak-detector circuit
And the circuit of rear class Hyblid Buffer Amplifier can be amplified to the DC level state of 0-5V, thus the A/D modulus meeting single-chip microcomputer turns
The transformation range of the input voltage required by die change block, finally passes through A/D analog-to-digital conversion module circuit again the peak value detecting
Signal changes into digital quantity.
Wherein, electric capacity C11 be 22uF, electric capacity C14 be 10uF, electric capacity C16 be 100pF, resistance R17, resistance R18, resistance
R19, resistance R22 are 20K Ω, resistance R21 is 500K Ω, the maximum resistance of variable resistance R20 for 470K Ω, resistance R24
Maximum resistance for 50K Ω and variable resistance R27 is 5K Ω.
Fig. 8 is the MQ-3 alcohol sensor module principle figure of the present invention, and the gas sensitive of MQ-3 alcohol sensor is dioxy
Change stannum.When the in the air that this gas sensor MQ-3 is placed has alcohol steam granule, gas sensor MQ-3
Electrical conductivity will change because the alcohol steam in environment is the change of concentration of alcohol gas, alcohol gas concentration increases
Added-time, electrical conductivity also increases therewith, and the present invention can realize the collection of alcohol steam concentration.
Fig. 9 is the power-supplying circuit schematic diagram of the present invention, and described power circuit includes the first reduction voltage circuit and second
Reduction voltage circuit, the first described reduction voltage circuit includes a circuit of three-terminal voltage-stabilizing integrated block LM7809, described second reduction voltage circuit
Including another circuit of three-terminal voltage-stabilizing integrated block LM2940-5s.
Figure 10 is the metal detection flow chart of the present invention, and the intelligent monitoring of automatically-controlled door safety precaution is realized by following steps
's:
S1:Set reference voltage;
S2:Near when detecting thing, the Hall element in wire coil oscillating circuit senses the magnetic field of change to detection coil,
And the magnetic field of change is converted to voltage signal;
S3:Voltage signal, through signal collection modulation circuit, voltage signal is converted to peak output voltage;
S4:Through A/D change-over circuit, central processing unit is by peak output voltage and reference voltage ratio for peak output voltage
Relatively, peak output voltage and the absolute difference of reference voltage are compared with default sensitivity;
S5:If peak output voltage is more than default sensitivity with the absolute difference of reference voltage, determines and detect thing
Material, central processing unit drive sound and light alarm module carry out luminous prompting report to the police and sound alarm indicator;If peak value exports
Voltage is less than or equal to default sensitivity, then return to step S2 with the absolute difference of reference voltage.
Specifically, when detection range does not have metal it is assumed that the output voltage at Hall end is U0, this voltage signal U0Obviously
It is very faint, only belong to mV level signal, voltage signal U0Through the amplification of amplifying circuit, then by the detecting circuit of peak value after,
The peak output voltage U of corresponding 0~5V just can be obtained0, and the range of ADC0809 to be met, the A/D mould in single-chip microcomputer
After number conversion, by output voltage U0Digital quantity be input to STC single-chip microcomputer and stored.Hereafter, just can be by this voltage signal
Regard reference voltage as.
When detection coil L occurs1During close metal object, according to the phenomenon of electromagnetic induction, detection inductance value will be made to send out
Raw change, thus leading to magnetic field about also accordingly to change, Hall element senses the magnetic field having changed and for, will
It is linearly changed into voltage signal Ux, the voltage that changes because of changes of magnetic field through amplifying circuit and peak-detector circuit it
Afterwards, obtain the peak output voltage U of corresponding 0-5Vx, and then again after A/D analog digital conversion, it is entered into central authorities
Processor CPU, is completed to peak output voltage U by central processor CPUxWith reference voltage U0Contrast, the two is compared to each other it
Afterwards, by (Ux-U0) can get a difference, this difference is compared with default sensitivity △ U again.Sensitivity △ U can be by keyboard
Control circuit in each key inputted, the respective value after each key can be pressed by LCD display shows, certainly, spirit
The setting of the size of sensitivity △ U is directly decide the precision height of system.If | Ux-U0|>△ U, determines that and detects
The really metal of article, output signal is gone driven for emitting lights diode to carry out luminous carrying by the delivery outlet P1.0 of central processor CPU
Show alarm indicator, P3.4 controls buzzer sensing to send the sound simultaneously, carries out audible alarm prompting.
Similarly, automatically-controlled door safety precaution gas detecting through the following steps that realize:
S1:Preheating gas sensor 3 minutes;
S2:Initialization intelligent monitor system, system enters monitor state;
S3:Fault detect investigation is carried out to the heater strip of gas sensor;
S4:Set alarm limit magnitude of voltage;
S5:Gas sensor detected gas concentration, through A/D change-over circuit, is transmitted further to central processing unit and is processed,
Output voltage signal;
S6:Output voltage is compared by central processing unit with alarm limit magnitude of voltage, if output voltage is more than warning voltage limit
It is worth, then central processing unit drives sound and light alarm module to carry out luminous prompting and reports to the police and sound alarm indicator;If output voltage is big
In alarm limit magnitude of voltage, then return to step S2.
Specifically, in detected gas, first have to preheat three minutes to MQ-3 gas sensor.Program initialization terminates
Afterwards, system enters monitor state, meanwhile carries out fault detect investigation to the heater strip of sensor MQ-3, then takes software to survey
Whether the method for examination situations such as broken string or loose contact come the heater strip or cable to check sensor, investigates one by one
After reuse.Then the gas concentration signal by detecting to sensor passes to single-chip microcomputer after carrying out A/D conversion and carries out data
Process, concentration value is compared with alarm limit magnitude of voltage, if in environment alcohol concentration value exceed safety threshold if carry out report to the police with
Open exhaust apparatus otherwise to continue to detect.
Figure 11 is the Keyboard Control flow chart of the present invention.First, initialize, and open interruption, then call keyboard scanning
Program, key to be determined whether is pressed, if there are then calling key assignments to judge subprogram, including function key, plus 1 key, the key that subtracts 1, really
Determine key.
Figure 12 is the digital filtering flow chart of the present invention, and the noise inhibiting ability of metal-detecting function is the master of metal detection
Want design objective.Due to often encountering various instantaneous interferences, the intelligent monitoring system of the present invention in collection voltages value
System to solve the problems, such as instantaneous interference using the method for digital averaging filtering, that is, in the gatherer process of primary voltage value, rapidly
Ground carries out at least 6 times collections in a short period of time to magnitude of voltage, magnitude of voltage is converted to after digital quantity, then sues for peace, analyze
Go out the maxima and minima in this 6 times inputs, then delete maxima and minima, obtain the side of meansigma methodss divided by number 4
Method, completes data acquisition filtering.The present invention is set using the hardware circuit that the method for digital averaging filtering can save complexity
Meter, and more preferable, more accurate filter effect can also be obtained.
According to above-mentioned filtering method, pendulous frequency N is bigger, and signal smoothing degree is higher, and sensitivity just reduces, but
This control system is to need higher sensitivity, therefore pendulous frequency N value be difficult excessive.One starting sample cycle of setting,
Then continuous sampling 6 times, delete maxima and minima in sampled data, remaining data is carried out accumulating operation, then asks
Its arithmetic mean of instantaneous value, using this value as the sampled value in this cycle, then the internal storage RAM this final data being stored to single-chip microcomputer
In headed by 30H location data storage.Wherein, maximum leaves depositor R in2On, minima leaves depositor R in3On,
Add up and deposit in depositor R4, the times N of continuous sampling deposits in R0.
Figure 13 is the display alarm flow chart of the present invention, and the setting of the value of its medium sensitivity △ U is key issue, in program
The value of △ U is stored in the 20H address of single-chip microcomputer memory RAM.In detection process, electricity that A/D converter is collected
Pressure signal, is stored in the data storage with first location as 30H in internal storage RAM, then by this data after numerical filtering
Ux and reference voltage U0It is compared, the two difference U leaves in the memorizer that Chip Microcomputer A RM address is 22H.Then pass through again
This difference U is compared by criterion algorithm with sensitivity △ U, each to determine whether for warning keyboard control circuit set by
The value of sensitivity, and the corresponding numerical value after LCD display display button.
The inspection with single-chip microcomputer as core, to metal, ethanol and inflammable thing three class dangerous materials for the intelligent monitor system of the present invention
Survey, whether certain risk is had according to sensor detected value intelligent decision visitor by single-chip microcomputer, such as there is certain risk
Pass door system will be started automatically by electromagnetic valve.Wherein, metal detection adopts integrated linear hall element as sensor, leads to
The eddy current effect crossing sensing metal causes the change in hot-wire coil magnetic field, then changes of magnetic field is converted into change in voltage, by monolithic
Machine records magnitude of voltage, and compared with the reference value of the voltage setting after, judge whether to detect metal;Alcohol detection
It is then to be tested to alcohol concentration using MQ-3 ethanol gas sensor, analog digital conversion and process are carried out to signal by single-chip microcomputer,
With liquid crystal display screen, signal output is shown again, but also there is threshold value setting function, can setting according to laws and regulations or user
Determine to change threshold values, as long as concentration of alcohol exceedes the threshold values of setting, system will make blinking red lamp report to the police;And detection of natural gas with
Alcohol detection principle basic simlarity.
Based on the embodiment in the present invention, those of ordinary skill in the art are obtained under the premise of not making creative work
The all other embodiment obtaining, broadly falls into the scope of protection of the invention.Although the present invention is illustrated with regard to preferred implementation
And description, it is understood by those skilled in the art that without departing from scope defined by the claims of the present invention, permissible
Variations and modifications are carried out to the present invention.
Claims (12)
1. a kind of automatically-controlled door safety precaution intelligent control method it is characterised in that:It is monitored using intelligent monitor system, described
Intelligent monitor system includes central processing unit, power circuit, serial communication module, wire coil oscillating circuit, signals collecting tune
Reason circuit, LCD display, sound and light alarm module, described wire coil oscillating circuit pass through described signal collection modulation circuit and
Described central authorities process connect, described central processing unit respectively with described serial communication module, described LCD display and described sound
Light alarm module connects, and described power circuit is connected with described central processing unit, for powering for described central processing unit, described
Central processing unit be connected with described serial communication module;
The intelligent monitoring of automatically-controlled door safety precaution is realized by following steps:
S1:Set reference voltage;
S2:Near when detecting thing, the Hall element in wire coil oscillating circuit senses the magnetic field of change to detection coil, and will
The magnetic field of change is converted to voltage signal;
S3:Voltage signal, through signal collection modulation circuit, voltage signal is converted to peak output voltage;
S4:Peak output voltage is compared with reference voltage by peak output voltage through A/D change-over circuit, central processing unit, peak
Value output voltage is compared with default sensitivity with the absolute difference of reference voltage;
S5:If peak output voltage is more than default sensitivity with the absolute difference of reference voltage, determine the material detecting thing
Material, central processing unit drives sound and light alarm module to carry out luminous prompting and reports to the police and sound alarm indicator;If peak output voltage
It is less than or equal to default sensitivity, then return to step S2 with the absolute difference of reference voltage.
2. a kind of automatically-controlled door safety precaution intelligent control method according to claim 1 it is characterised in that:In step S5,
By input through keyboard, described LCD display shows corresponding numerical values recited for default sensitivity.
3. a kind of automatically-controlled door safety precaution intelligent control method according to claim 1 it is characterised in that:Described metal wire
Circle oscillating circuit includes multivibrator, and resistance R1 and resistance R2 is the timing element of multivibrator, and one end of resistance R1 is even
Connect power supply, the other end of resistance R1 and R2 series connection and electric capacity C1 are connected in series, and electric capacity C1 is grounded, and open-collector output 7 draws
Foot accesses in the middle of resistance R1 and R2, and trigger input end 2 pin of intervalometer and threshold values input 6 pin are connected with electric capacity C1, outward
Boundary's control signal is grounded by electric capacity C2, and positive pulse signal 3 pin of output is input to Q1 amplifying circuit by electric capacity C3
Base terminal, after Q1 amplifying circuit amplifies, inputs to inductance coil L1, one perseverance of generation around inductance coil L1
Fixed alternating magnetic field.
4. a kind of automatically-controlled door safety precaution intelligent control method according to claim 1 it is characterised in that:Described signal is adopted
Collection modulate circuit includes operational amplifier LM324, and electric capacity C11 passes through coupling by the output of described wire coil oscillating circuit
Signal is sent to the input of described operational amplifier LM324, and voltage is believed after being amplified by described operational amplifier LM324
Number conversion voltage in couples.
5. a kind of automatically-controlled door safety precaution intelligent control method according to claim 1 it is characterised in that:Described acousto-optic
Warning system includes acousto-optic diode, buzzer and PNP triode, and described PNP triode is used for drive circuit, described
Acousto-optic diode is connected in parallel with described buzzer.
6. a kind of automatically-controlled door safety precaution intelligent control method according to claim 1 it is characterised in that:Described power supply
Circuit includes the first reduction voltage circuit and the second reduction voltage circuit, and the first described reduction voltage circuit includes a circuit of three-terminal voltage-stabilizing integrated
Block LM7809, described second reduction voltage circuit includes another circuit of three-terminal voltage-stabilizing integrated block LM2940-5s.
7. a kind of automatically-controlled door safety precaution Intelligent Measurement gas methods it is characterised in that:Detected using intelligent monitor system,
Described intelligent monitor system include central processing unit, power circuit, serial communication module, alcohol detection circuit, LCD display,
Sound and light alarm module, described central processing unit is shown with described serial communication module, described alcohol detection circuit, described LCD respectively
Display screen and described sound and light alarm module connect, and described power circuit is connected with described central processing unit, for for described central authorities
Processor is powered, and described central processing unit is connected with described serial communication module;
Described alcohol detection circuit includes gas sensor, data processing module, safe threshold setting circuit and threshold values storage system
System, described data processing module stores system with described gas sensor, described safe threshold setting circuit and described threshold values respectively
System connects;
The gas detecting of automatically-controlled door safety precaution is through the following steps that realize:
S1:Preheating gas sensor 3 minutes;
S2:Initialization intelligent monitor system, system enters monitor state;
S3:Fault detect investigation is carried out to the heater strip of gas sensor;
S4:Set alarm limit magnitude of voltage;
S5:Gas sensor detected gas concentration, through A/D change-over circuit, is transmitted further to central processing unit and is processed, output
Voltage signal;
S6:Output voltage is compared by central processing unit with alarm limit magnitude of voltage, if output voltage is more than alarm limit magnitude of voltage,
Central processing unit drives sound and light alarm module to carry out luminous prompting and reports to the police and sound alarm indicator;If output voltage is more than reported to the police
Voltage limit value, then return to step S2.
8. a kind of automatically-controlled door safety precaution Intelligent Measurement gas methods according to claim 7 it is characterised in that:Described wine
Smart testing circuit includes gas sensor, data processing module, safe threshold setting circuit and threshold values storage system, described data
Processing module is connected with described gas sensor, described safe threshold setting circuit and described threshold values storage system respectively.
9. a kind of automatically-controlled door safety precaution Intelligent Measurement gas methods according to claim 7 it is characterised in that:Described gas
Dependent sensor is MQ-3 alcohol sensor, and the gas sensitive of described MQ-3 alcohol sensor is tin ash.
10. a kind of automatically-controlled door safety precaution Intelligent Measurement gas methods according to claim 7 it is characterised in that:Described
Safe threshold setting circuit include resistance R4, resistance R5, resistance R6 and correspond respectively to resistance R4, resistance R5, resistance R6
Button S2, button S3, button S4, described button S2 is used for arranging threshold values, and described button S3 is used for increasing threshold values, described
Button S4 be used for reducing threshold values.
A kind of 11. automatically-controlled door safety precaution Intelligent Measurement gas methods according to claim 7 it is characterised in that:Described
Acoustooptic alarm system include acousto-optic diode, buzzer and PNP triode, described PNP triode is used for drive circuit,
Described acousto-optic diode and described buzzer are connected in parallel.
A kind of 12. automatically-controlled door safety precaution Intelligent Measurement gas methods according to claim 7 it is characterised in that:Described
Power circuit include the first reduction voltage circuit and the second reduction voltage circuit, the first described reduction voltage circuit includes a three-terminal voltage-stabilizing collection
Become circuit block LM7809, described second reduction voltage circuit includes another circuit of three-terminal voltage-stabilizing integrated block LM2940-5s.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610900196.9A CN106405659A (en) | 2016-10-14 | 2016-10-14 | Automatic door security protection intelligent monitoring method and gas detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610900196.9A CN106405659A (en) | 2016-10-14 | 2016-10-14 | Automatic door security protection intelligent monitoring method and gas detection method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106405659A true CN106405659A (en) | 2017-02-15 |
Family
ID=58011626
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610900196.9A Pending CN106405659A (en) | 2016-10-14 | 2016-10-14 | Automatic door security protection intelligent monitoring method and gas detection method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106405659A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107191658A (en) * | 2017-06-09 | 2017-09-22 | 北京万世明科技发展有限公司 | Two-wire system realizes the method and device of solenoid valve control and state-detection |
CN108415084A (en) * | 2018-02-09 | 2018-08-17 | 李法利 | Alarm method |
CN109083536A (en) * | 2018-08-24 | 2018-12-25 | 绵阳涪泽恩达科技有限公司 | A kind of automatically-controlled door intelligence control system |
CN109470743A (en) * | 2018-11-08 | 2019-03-15 | 西南大学 | A kind of gas sensor characteristic test system of multiple physical field coupling environment |
WO2019196080A1 (en) * | 2018-04-13 | 2019-10-17 | 许敏 | Inspection instrument for dangerous object in workshop |
CN112730527A (en) * | 2020-12-18 | 2021-04-30 | 中国科学技术大学 | Gas detection system based on MEMS gas sensor array |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201059147Y (en) * | 2007-01-29 | 2008-05-14 | 孙锐钧 | Safety metal inspecting control gate |
CN201378337Y (en) * | 2009-04-10 | 2010-01-06 | 侯振川 | Auto-controlled multifunctional security inspection door |
CN201548700U (en) * | 2009-11-30 | 2010-08-11 | 河南中煤矿业科技发展有限公司 | Safety electronic door metal detector |
CN103871129A (en) * | 2012-12-09 | 2014-06-18 | 山东中科安矿科技有限公司 | Mine wellhead unattended security control system |
CN105116454A (en) * | 2015-09-23 | 2015-12-02 | 哈尔滨市迪沃浦通信技术有限公司 | Novel metal detecting apparatus and detecting method |
CN205230170U (en) * | 2015-12-24 | 2016-05-11 | 哈尔滨盈江科技有限公司 | Intelligent access control system based on smell response |
-
2016
- 2016-10-14 CN CN201610900196.9A patent/CN106405659A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201059147Y (en) * | 2007-01-29 | 2008-05-14 | 孙锐钧 | Safety metal inspecting control gate |
CN201378337Y (en) * | 2009-04-10 | 2010-01-06 | 侯振川 | Auto-controlled multifunctional security inspection door |
CN201548700U (en) * | 2009-11-30 | 2010-08-11 | 河南中煤矿业科技发展有限公司 | Safety electronic door metal detector |
CN103871129A (en) * | 2012-12-09 | 2014-06-18 | 山东中科安矿科技有限公司 | Mine wellhead unattended security control system |
CN105116454A (en) * | 2015-09-23 | 2015-12-02 | 哈尔滨市迪沃浦通信技术有限公司 | Novel metal detecting apparatus and detecting method |
CN205230170U (en) * | 2015-12-24 | 2016-05-11 | 哈尔滨盈江科技有限公司 | Intelligent access control system based on smell response |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107191658A (en) * | 2017-06-09 | 2017-09-22 | 北京万世明科技发展有限公司 | Two-wire system realizes the method and device of solenoid valve control and state-detection |
CN108415084A (en) * | 2018-02-09 | 2018-08-17 | 李法利 | Alarm method |
WO2019196080A1 (en) * | 2018-04-13 | 2019-10-17 | 许敏 | Inspection instrument for dangerous object in workshop |
CN109083536A (en) * | 2018-08-24 | 2018-12-25 | 绵阳涪泽恩达科技有限公司 | A kind of automatically-controlled door intelligence control system |
CN109470743A (en) * | 2018-11-08 | 2019-03-15 | 西南大学 | A kind of gas sensor characteristic test system of multiple physical field coupling environment |
CN112730527A (en) * | 2020-12-18 | 2021-04-30 | 中国科学技术大学 | Gas detection system based on MEMS gas sensor array |
CN112730527B (en) * | 2020-12-18 | 2022-05-13 | 中国科学技术大学 | Gas detection system based on MEMS gas sensor array |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106405659A (en) | Automatic door security protection intelligent monitoring method and gas detection method | |
CN201311311Y (en) | Groundwater level detecting instrument | |
CN107015049B (en) | Control and protection device on intelligent high reliability electric vehicle cable | |
CN205210155U (en) | Monitor is opened unusually to smart electric meter case | |
CN105116808A (en) | Internet of things-based electrical appliance safety intelligent device | |
CN206818778U (en) | Control and protection device on intelligent high reliability electric automobile cable | |
CN209659348U (en) | A kind of power distribution cabinet system of fire hazard monitoring | |
CN206147304U (en) | Automatic door safety precaution intelligent monitoring system | |
CN206420493U (en) | A kind of natatorium water quality supervisory systems | |
CN203520525U (en) | Remote monitoring ATM | |
CN206097305U (en) | IC -card industry intelligent monitoring gas table controller | |
CN208271338U (en) | A kind of window anti-theft system based on embedded platform | |
CN106707841A (en) | Automatic door security protection intelligent monitoring system | |
CN206249522U (en) | Internet of Things intelligent safety and defence system based on cloud platform | |
CN207397396U (en) | A kind of gas meter, flow meter with detection valve event in real time | |
CN102779378B (en) | Novel prepayment type gas meter and target gas measurement method thereof | |
CN205655882U (en) | Low -power consumption intelligence CCD weight material position detecting system | |
CN209417582U (en) | A kind of control system of rolling screen door | |
CN206282405U (en) | A kind of self-help bank's safety monitoring device | |
CN201004270Y (en) | Digital direct meter reader based on BUS | |
CN209117657U (en) | A kind of oil smoke on-line computing model | |
CN209148765U (en) | A kind of voltage detecting system based on substation | |
CN106325178A (en) | Security management system based on intelligent communication network | |
CN206420244U (en) | A kind of refrigerator with home security | |
CN206313532U (en) | A kind of switchgear house supervising device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170215 |