CN207586696U - A kind of detecting system for bedroom - Google Patents

A kind of detecting system for bedroom Download PDF

Info

Publication number
CN207586696U
CN207586696U CN201721761477.7U CN201721761477U CN207586696U CN 207586696 U CN207586696 U CN 207586696U CN 201721761477 U CN201721761477 U CN 201721761477U CN 207586696 U CN207586696 U CN 207586696U
Authority
CN
China
Prior art keywords
sensor
bedroom
resistance
mcu
detecting system
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.)
Expired - Fee Related
Application number
CN201721761477.7U
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.)
Hunan Institute of Engineering
Original Assignee
Hunan Institute of Engineering
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 Hunan Institute of Engineering filed Critical Hunan Institute of Engineering
Priority to CN201721761477.7U priority Critical patent/CN207586696U/en
Application granted granted Critical
Publication of CN207586696U publication Critical patent/CN207586696U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Alarm Systems (AREA)

Abstract

The utility model discloses a kind of detecting system for bedroom, including MCU, power module, sensor assembly and communication module;Power module is used to power for MCU;Power module, sensor assembly and communication module are connected with MCU;The sensor assembly includes Temperature Humidity Sensor, air quality sensor and optical sensor;Temperature Humidity Sensor, air quality sensor and optical sensor are connected with MCU;This system further includes rainfall detection circuit based on rain sensor and electrical equipment current detecting and control relay circuit.This is feature-rich for the detecting system in bedroom, can detect various field parameter.

Description

A kind of detecting system for bedroom
Technical field
The utility model is related to a kind of detecting systems for bedroom.
Background technology
The premise of intelligent domestic system is the detection of multinomial field data;Existing data detection system can only detect commonly Humiture and photometric data, function is more single, and often circuit is extremely complex, therefore, it is necessary to design a kind of new For the detecting system in bedroom.
Utility model content
The technical problem to be solved by the utility model is to provide a kind of detecting systems for bedroom, this is used for bedroom Detecting system is feature-rich, can detect various field parameter.
The technical solution of utility model is as follows:
A kind of detecting system for bedroom, which is characterized in that including MCU, power module, sensor assembly and communication mould Block;
Power module is used to power for MCU;Power module, sensor assembly and communication module are connected with MCU;
The sensor assembly includes Temperature Humidity Sensor, air quality sensor and optical sensor;Humiture passes Sensor, air quality sensor and optical sensor are connected with MCU;
In power module, MP2359 output 5V voltages is used to power for system peripheral;ASM1117-3.3V voltage stabilizing chips are MCU powers;The input termination 5V voltages of ASM1117-3.3V voltage stabilizing chips;
It is further included for the detecting system in bedroom for human-computer interaction device;The human-computer interaction device includes display screen With data/instruction inputting device;The data/commands input unit is keyboard or touch tablet;
Display screen uses TFT liquid crystal displays, and the driving chip of display screen is ILI9341, and the touch chip for driving touch tablet is XPT2046;
Detecting system further includes the rainfall detection circuit based on rain sensor, in rainfall detection circuit, slide rheostat The first of R9 fixes termination VCC, the second fixing end ground connection;The tap termination operational amplifier U2 anti-phase inputs of slide rheostat R9 End, the first termination VCC ends of resistance R3, the second end of resistance R3 are grounded by Raindrop sensor;The second termination fortune of resistance R3 Calculate the in-phase input end of amplifier U2;The output terminal of operational amplifier U2 connects VCC ends by resistance R4;Operational amplifier U2's is defeated Outlet is as the output terminal of comparator namely the output terminal of rainfall detection circuit.
Sensor assembly further includes infrared sensor, and MCU is connected with alarm.
The detecting system for bedroom further includes at least one camera being connected with MCU.
Sensor assembly further includes flame sensor.
The detecting system for bedroom further includes the stand-by power supply based on lithium battery.Stand-by power supply is provided for system Stand-by electric energy.
Communication module includes wire communication module and wireless communication module;Wire communication module is WLAN module, channel radio Letter module is WiFi module, at least one of GPRS, 3G, 4G and 5G communication module, for bedroom detecting system pass through it is logical Letter module is connected with server;It is communicated to connect for the detecting system in bedroom by communication module and smart mobile phone.
Electrical equipment current detecting and control relay circuit are further included for the detecting system in bedroom:
Current transformer L2 is in parallel with resistance R17, and the output signal of current transformer is through bridge rectifier;Bridge rectifier DC side first end for signal end, second end ground connection;The signal end is grounded through resistance R16 and resistance R14;Resistance The tie point of R16 and resistance R14 connects the in-phase input end of operational amplifier U3, and the inverting input of operational amplifier U3 passes through electricity R19 ground connection is hindered, the output terminal of operational amplifier U3 connects the b poles of the triode Q4 of NPN type through resistance R18, and the e poles of triode Q4 connect Ground, the output terminal of operational amplifier U3 are grounded by resistance R21;
One end of the c poles contact relay coil of triode Q4, another termination VCC of relay coil;The contact of relay Switch is serially connected in the power supply circuit or socket of electrical equipment;
The signal end is also output to the ADC ports of MCU by voltage follower U4 and resistance R27, realizes electric current Real-time detection.
The utility model can realize following functions:
(1) fire alarm and spray control;
Flame sensor detects fiery point, starts alarm, and start sprinkling equipment;
(2) Temperature and Humidity Control, humidifier;Air-conditioning;
By Temperature Humidity Sensor, within a preset range whether detection humiture, controlled by humidifier and air conditioner dehumidification Humidity passes through airconditioning control temperature;
(3) security based on infrared detection;
It detects whether valuables move by infrared sensor, moves excessively, then start alarm;
(4) electrical equipment overload monitor is controlled based on current transformer and relay;
The operating current of electrical equipment is detected by current transformer, if controller, is cut off by relay Electrical equipment power supply;
(5) based on rain sensor, clothes hanger control;
Rainfall size is detected by rain sensor, rainfall is higher than threshold value, then clothes hanger is controlled to shrink, and otherwise controls the clothing that dries in the air Frame expansion hangs out;And control pass window.
(6) Lighting control;Signal light control;
It is shone by optical sensor detection light, illumination is higher than threshold value, and light falls lamp, when illumination is weak, opens electric light, and adjust electricity Lamp brightness (pwm pulse control brightness).
(7) Detection of Air Quality and ventilation control;
By air quality sensor, air quality is detected, air pollution degree is higher than threshold value, then opens electric window, Or start Air conditioner air exchange.
(8) video monitoring.
In addition, this system further includes the backlight dimming control of display screen, the light intensity of backlight can be adjusted manually.
Advantageous effect:
The detecting system for bedroom of the utility model, using STM32F407 chips as master controller, it is therefore intended that It realizes the display to bedroom environmental data and provides input channel for automation control instruction;It is realized using RFID radio-frequency techniques To the automatic identification of access card so as to fulfill gate function;Various kinds of sensors is arranged in the bedroom, organizes a powerful environment sense Hownet network is conducive to system and accurately judgement and operation is made to environment, to realize air conditioning, shines clothing and receives the functions such as clothing; Bedroom secure context, system can be with fire-proof and theft-proof, and can accomplish bedroom current monitoring, so as to which effectively prevention bedroom member makes Occurs safety problem with high-power electric appliance;System simultaneously can use mobile phone remote to monitor bedroom with voice control dormitory electric appliance Environment and control dormitory electric appliance.
System mainly realizes following functions:
(1) gate function:Magnetic card, typing or deletion access card ID are read using RC522 modules, so as to authorize access card ID It can unlock.
(2) air conditioning:Detection bedroom air quality, humiture pass through indoor and outdoor so as to obtain air quality index Air-flow is exchanged so as to adjust bedroom air quality.
(3) fire-proof and theft-proof:Whether fire behavior is whether there is by flame sensor detection interior, passes through infrared light sensor ultrasound Wave sensor etc. is implemented to position detections such as bedroom important item such as computers, just alarms once being moved by other people.
(4) overcurrent protection:Bedroom circuit maximum threshold is set, once detection circuit, which is more than this value, will cut off circuit.
(5) automatic airing receives clothing:By environment sensing weather conditions, driving motor, which is made rotating forward to shine clothing and invert, receives clothing Action.
The system possesses gate inhibition, air automatic adjustment, security protection, automatic taking clothes solarization clothing, circuit current-limiting protection and hand Machine data show with control etc. functions.System uses STM32F407 chips as master controller, on the basis of environment sensing network On, intelligent adjusting is carried out to bedroom;Gate function uses RFID radio-frequency techniques, is completed by card reader to the automatic of access card Identification;Bedroom safety adds in current detecting on fire prevention, anti-theft feature, effectively prevents the peace that bedroom member uses high-power appearance Full problem;System realizes voice control electric appliance function by sound identification module;It is complete based on GSM the and WIFI communication technologys Into the communication between control terminal and mobile terminal, the remote control of the monitoring to bedroom indoor environment and electric appliance is realized.
The utility model can the high speed development based on technology of Internet of things, provide an intelligence, safety, comfortable raw for student Environment living.
Description of the drawings
Fig. 1 is the general frame figure of Tthe utility model system;
Fig. 2 is power circuit principle figure;
Fig. 3 is display screen circuit diagram;
Fig. 4 is DHT11Digital hygro sensorApplication circuit schematic diagram;
Fig. 5 is Detection of Air Quality circuit diagram;
Fig. 6 is rainfall detection circuit diagram;
Fig. 7 is lighting detecting circuit schematic diagram;
Fig. 8 is RFID module circuit diagram;
Fig. 9 is flame detection circuit schematic diagram;
Figure 10 is electrical equipment current detecting and control relay circuit schematic diagram;
Figure 11 is the anti-theft circuit schematic diagram based on infrared tube sensor;
Figure 12 is relay circuit figure;
Figure 13 for motor-drive circuit schematic diagram (one of);
Figure 14 is motor-drive circuit schematic diagram (two);
Figure 15 is wifi transmission circuit schematic diagrams.
Specific embodiment
The utility model is described in further details below with reference to the drawings and specific embodiments:
Embodiment 1:Such as Fig. 1, whole system design is made of following six part:
(1) control terminal uC-GUI interface operations design.Standby, menu, function are completed in control terminal transplanting uC-GUI softwares The design at interface, the ability that system is made to have display and input data are set.
(2) environmental monitoring subsystem.The location arrangements appropriate sensor composition environment sensing network of each needs in the bedroom For obtaining the real time data of every environmental information in bedroom, such as temperature, humidity, air quality, system is also by these data Basis for estimation and optimized integration as intelligent linkage system.
(3) intelligent entrance guard subsystem.Using RFID technique, access card is read by card reader and obtains authorization message.Every time When swiping the card, system all can intelligently identify the information of user, if it is determined that access control system can be automatically opened during the member of bedroom, It allows access into, is not allowed access into then in vain if it is determined that user swipes the card.
(4) intelligent security guard subsystem.Fire behavior is whether there is monitoring bedroom by flame sensor, is supervised by infrared sensor Survey bedroom valuables whether there is by movement, whether there is monitoring the electric current in the circuit of bedroom and overflow by current detection circuit, once Warning message will be sent by gsm communication module to the phone number that system is specified by noting abnormalities.
(5) intelligent linkage subsystem.After main control end sets the rule or condition of automation control, supervised by environment Data are controlled to realize to bedroom electric light, water dispenser, scavenger fan, the control for shining clothing motor etc..When receiving phonetic order such as system, It is operated automatically by speech recognition, for example receive " turning on light " phonetic order to automatically open electric light, receives " turning off the light " language Electric light will be automatically closed in sound instruction.
(6) data transmission sub-system.By self-defining data transport protocol, bedroom environment real time data is passed by WIFI It is defeated to be shown to mobile client, while receive the control instruction that cell phone application software is sent to bedroom master control system.
This system combination student life feature is provided one for student group and is gathered around by the design of six subsystem modules There are gate inhibition, air automatic adjustment, security protection, automatic taking clothes to shine clothing, voice control, circuit current-limiting protection and data in mobile phone to show Show with control etc. functions the detecting system scheme for bedroom.The system has function compared with traditional intelligent bedroom scheme More comprehensively, the characteristics of control is more convenient, and operation is happier, meet the intelligence in intelligent bedroom, safe, comfortableization theory.
Master controller in hardware system using ST companies produce based on CortexTM- M4's STM32F407ZGT6 chips, this 32 ARM chip operating rates reach as high as 168MHz, possess 1M FLASH, can be with Carry out floating-point operation.
In addition, such as Fig. 2-15, it is described as follows for specific peripheral circuit:
(1) power circuit:
Such as Fig. 2, input voltage is converted into 5V voltages by MP2359 and powered to system peripheral, passed through by power circuit ASM1117-3.3V voltage stabilizing chips are main control chip power supply.Wherein diode D3, D4, D5 utilizes one-way conduction characteristic, can be with Prevent reversal connection from burning system;Inductance L1 and capacitance C22, C23 etc. are mainly used to filter in circuit, ensure that power supply output is stablized.
(2) display circuit
Display screen circuit such as Fig. 3;TFT liquid crystal displays, which are shown, is driven to ILI9341, and touch chip is XPT2046.Base plate size For 5.1*8.3cm, display resolution 240x320.The effect of liquid crystal display is to provide human-computer interaction interface and control interface.
(3) Temperature and Humidity circuit
Such as Fig. 4, DHT11 is a fast response time, it is strong, cost-effective to resist noise immune, can be used with microcontroller The sensor of measurement humiture that serial monobus communicates.
Operation principle:DHT11Digital hygro sensorHave the function of to calibrate the output of humiture digital signal, inside packet Humidity sensing element containing resistance and NTC temperature elements can be accomplished to measure temperature and humidity simultaneously.Due to using serial single total Line and master controller communication, are connected in the present system using the PC4 pins of STM32F407 with DHT11 data output pins. DHT11 sensors are mainly system acquisition data of the Temperature and Humidity module.
(4) Detection of Air Quality circuit
MQ-135 is a sensor for being applied to measure air quality, has extensive investigative range, higher response And sensitivity, steady operation and other merits.
Operation principle:Such as Fig. 5, by the use of the SnO2 conductivities in air the characteristics of low as the gas sensitive of sensor, such as Fruit gaseous contamination degree increases, then sensor conductance rate can be caused to increase therewith, so as to obtain corresponding signal Output, system, which only need to be acquired and compare to the output of this signal, can obtain the contaminated degree of air.By sliding in circuit Dynamic rheostat VR1 compositions adjust circuit sensitivity, and MQ-135 sensors collect gas information, and to be then converted into voltage signal defeated Go out, sensor output voltage signal exports the level signal of entire circuit after LM393 voltage comparator shapings.Using serial Monobus communicates, in the present system using the PF13 pins of STM32F407 and air quality sensor data output pins Connection.MQ-135 is mainly system acquisition air quality data
The inverting input of the output termination operational amplifier LM393 of MQ-135, VCC ends are connect by variable resistance R49 Ground, the exit (partial pressure end) of variable resistance R49 connect the in-phase input end of operational amplifier LM393, operational amplifier LM393 works Make in comparator pattern, the output terminal of operational amplifier LM393 is the output terminal of Detection of Air Quality circuit, and the output terminal is through two Pole pipe LED10 and pull-up resistor R52 connects VCC ends, and when exporting high level, LED10 is lighted.Represent that air quality is good at this time.
(5) rainfall detection circuit
Such as Fig. 6, Raindrop sensor (or rain sensor) collection plate is using high-quality FR-04 double-side materials and uses nickel plating Cover surface, with to anti-oxidant, the superior functions such as satisfactory electrical conductivity.
Operation principle:Acquisition plate suqare is 5.0*4.0CM, can collect the information whether environment rains well, is led to Crossing LM393 voltage comparators causes signal output to have systematicness, and potentiometer can adjust comparison voltage size, be adjusted so as to reach Section output threshold.When in environment without raining, export as high level, when collection plate receives raindrop so as to be connected, output For low level.After rain stops, the raindrop on collection plate restore output as high level again after being dried.It can be by slide rheostat VR1 Composition adjusts circuit sensitivity, and Raindrop sensor collects raindrop information and is then converted into voltage signal output, sensor output Voltage signal exports the level signal of entire circuit after LM393 voltage comparator shapings.This circuit is also equipped with power supply instruction With the function of switch instruction, current limliting is carried out with the resistance of 1K in circuit, to prevent electric current excessive.It uses in the present system The PD3 pins of STM32F407 are connected with the data output pins of Raindrop sensor.Module major function is exactly to be provided for system The detection of the rainy information in outdoor.
The first of slide rheostat R9 fixes termination VCC (direct current power source voltage, 5V), the second fixing end ground connection;It slides and becomes The tap terminals (sliding end) of resistance device R9 meet operational amplifier U2 (LM393 amplifiers) inverting input, the first termination VCC of resistance R3 End, the second end of resistance R3 are grounded by Raindrop sensor;The homophase input of the second termination operational amplifier U2 of resistance R3 End;The output terminal of operational amplifier U2 connects VCC ends by pull-up resistor R4;The output terminal of operational amplifier U2 is as comparator The output terminal of output terminal namely rainfall detection circuit.
The output terminal of rainfall detection circuit also connects VCC ends by resistance R10 and diode, and diode (LED) 4 represents rain when bright It measures exceeded.
(6) lighting detecting circuit
Using photo resistance as photosensitive sensor, circuit diagram is referring to Fig. 7.
Photosensitive sensor be substantially exactly one with light variation and the changed resistance of resistance value, module is by photosensitive Resistance and voltage comparator and potentiometer composition.
Operation principle:Voltage is passed through so as to obtain the power of ambient light to the measurement of photo resistance by circuit Compare output so that output is stablized, and is not interfered by single environment noise, and good output waveform, driving force is strong, passes through electricity Position device can then adjust the sensibility that entire module detects light, circuit when given threshold is not achieved in ambient light brightness, DO ends export high level, when the brightness of external environment light is more than given threshold, DO ends output low level;Also have sensitivity can Regulatory function, is made of slide rheostat VR1 and adjusts circuit sensitivity, and photo resistance collects light information and is then converted into electricity Signal output is pressed, sensor output voltage signal exports the level signal of entire circuit after LM393 voltage comparator shapings. This circuit is also equipped with power supply instruction and switchs the function of instruction, current limliting is carried out with the resistance of 1K in circuit, to prevent electric current excessive. It is connected in the present system using the PC11 pins of STM32F407 with the data output pins of photosensitive sensor, PC11 pins are ADC acquires pin, to signal voltage collection analysis inside STM32, so as to obtain light intensity.Module major function is detection ring The variation of border light, and acquired in time to system.
Circuit connecting mode is as follows:
The first of slide rheostat R6 fixes termination VCC (direct current power source voltage, 5V), the second fixing end ground connection;It slides and becomes The tap terminals (sliding end) of resistance device R6 meet operational amplifier U1 (LM393 amplifiers) inverting input, the first termination VCC of resistance R1 End, the second end of resistance R1 are grounded by photo resistance;The in-phase input end of the second termination operational amplifier U1 of resistance R1;Fortune The output terminal for calculating amplifier U1 connects VCC ends by resistance R2;Output terminal of the output terminal of operational amplifier U1 as comparator, That is the output terminal of lighting detecting circuit.
The output terminal of lighting detecting circuit also connects VCC ends, table when diode (LED) 2 is bright by resistance R7 and diode (LED) 2 Show that illumination is exceeded.
(7) RFID module circuit diagram
Such as Fig. 8, RC522 is the non-contact highly integrated of the 13.56MHz for the low-voltage low cost small size that NXP companies propose Read-write card is now widely used for the product developments such as intelligence instrument portable handheld device.
Operation principle:RC522 uses advanced modulation-demodulation technique, is integrated with all at 13.56 mhz passive and non-connects Communication pattern is touched, read-write antenna and the information of ISO14443A/MIFARE cards and answering machine can be driven to transmit.Possess demodulating and decoding The transponder signal of processing of circuit ISO14443A can also handle frame mistake, CRYPTO1 Encryption Algorithm.Bidirectional data communication Rate reaches 424kbit/s.RC522 uses serial communication, supports SPI, I2C, UART.
It connected with MISO lines using the PB4 pins of STM32F407, connected using PB5 pins and MOSI lines in the present system It connects, connected using PB3 pins with SCK line, connected using PG0 pins with SDA line.RC522 chips are driven by simulating SPI protocol It realizes technology for radio frequency, completes the reading writing working to IEC14443A agreement cards on this basis.The major function of module is exactly System is made to pass through RC522 chip recognition access control system cards, so as to complete gate function.
(8) flame detection circuit
Flame sensor is the sensor for searching burning things which may cause a fire disaster, and the light generated to flame is especially sensitive.
Operation principle:The heat radiation generated using flame has the characteristics that discrete light radiation and continuous light radiation, so can To carry out strength investigation by 1~2 μm of near-infrared wavelength to flame temperature so as to distinguish flame.The detection range of this sensor It is increased with the increasing of the intensity of flame, detection angle is 60 degree or so, and can reach tune by adjusting comparison voltage Save sensitivity.It is made of slide rheostat VR1 and adjusts circuit sensitivity, infrared receiving tube collects flame information and is then converted into Voltage signal exports, and sensor output voltage signal exports the level letter of entire circuit after LM393 voltage comparator shapings Number.It is connected in the present system using the PD6 pins of STM32F407 with the data output pins of flame sensor.Flame sensor The function of circuit is exactly to whether there is fire behavior for system detectio bedroom, and circuit connection is as shown in Figure 9.
(9) electrical equipment current detecting and control relay circuit
Bedroom safety problem, the electricity used can be prevented well to the detection of bedroom electricity consumption for the detecting system in bedroom Current detection circuit operating voltage is 5V, and bearing power can connect 220V/40A equipment.
Operation principle:It is inserted into current transformer (or coil) by bedroom alternating current wires, generates current transformer mutual Inducing current, bedroom electric power is bigger, and mutual inducing current is also bigger, and bedroom electric power is smaller, and mutual inducing current is also just smaller, because This utilizes voltage comparator, as soon as a signal waveform can be exported, the electric current that master controller can obtain bedroom by AD acquisitions is big Small information, so as to reach detection effect.In circuit design, AC mutual induction electric current is converted into directly by four rectifier diodes Galvanic electricity stream carries out power filter with C3, forms current loop by R2, the voltage that circuit need to only measure R2 both ends is i.e. available Output signal, output signal voltage is compared by MCP602 voltage comparators and reference voltage so as to control relay and
Output signal, relay play the role of overcurrent deenergization protection, output signal then there are two types of, one kind for simulation Amount, is exported by DOUT, and also a kind of is TTL low and high levels, is exported by AOUT.Major function is for system detectio bedroom electric current. Detailed circuit design is illustrated in fig. 10 shown below
U4 is voltage follower.
Circuit describes:
Such as Figure 10, current transformer L2 is in parallel with resistance R17, and the output signal of current transformer is through bridge rectifier;Bridge The first end of the DC side of formula rectifier is signal end, and second end is grounded;The signal end connects through resistance R16 and resistance R14 Ground;The tie point of resistance R16 and resistance R14 connects the in-phase input end of operational amplifier U3 (being used as comparator), and operation is put The inverting input of big device U3 is grounded by resistance R19, and the output terminal of operational amplifier U3 meets triode Q4 (NPN through resistance R18 Type triode) b poles, the e poles ground connection of triode Q4, the output terminal of operational amplifier U3 is grounded by resistance R21;
One end of the c poles contact relay coil of triode Q4, another termination VCC of relay coil;The contact of relay Switch is serially connected in the power supply circuit (or socket) of electrical equipment.
Meanwhile the signal end is also output to the ADC ports (A/D of MCU by voltage follower U4 and resistance R27 Conversion port), realize the real-time detection of electric current.
(10) the antitheft detection circuit based on infrared sensor
Infrared tube sensor is worked using emitting infrared ray and receiving infrared-ray as medium, by infrared transmitting tube, The compositions such as infrared receiving tube, comparator.Whether there is monitoring bedroom valuables and moved by infrared sensor.
Operation principle:Such as Figure 11, infrared signal is emitted by transmitting tube, reception pipe receives, once reception pipe does not receive There is obstruction in bright centre, whether can be used in detection object by mobile direction.The modular circuit can be well adapted for residing Ambient light, high-low signal level can be exported after comparator is handled.With it is anti-interference, be easily achieved, at low cost etc. Advantage.Infrared receiving tube collects infrared ray information and is then converted into voltage signal output, and sensor output voltage signal passes through The level signal of entire circuit is exported after LM393 voltage comparator shapings.This circuit is also equipped with power supply instruction and switchs instruction Function.Current limliting is carried out with the resistance of 1K in circuit, to prevent electric current excessive.Drawn in the present system using the PF12 of STM32F407 Foot is connected with the data output pins of infrared sensor.Major function be for system provide important objects position whether there is it is mobile Information.Circuit connecting mode is as follows:
The first of slide rheostat R62 fixes termination VCC (direct current power source voltage, 5V), the second fixing end ground connection;It slides and becomes The tap terminals (sliding end) of resistance device R6 connect the inverting input of operational amplifier U8 (LM393), as the reference voltage;
Vcc ends are grounded through resistance R58 and transmitting tube, are powered for transmitting tube;The first end of infrared receiving tube is connect by R59 VCC ends, the second end ground connection of infrared receiving tube;First termination operational amplifier U8's (LM393) of infrared receiving tube is same mutually defeated Enter end;
The output terminal of operational amplifier U8 connects VCC ends by resistance R60;The output terminal of operational amplifier U8 is as comparator Output terminal namely anti-theft circuit output terminal.
The output terminal of anti-theft circuit also connects VCC ends, table when diode (LED) 12 is bright by resistance R61 and diode (LED) 12 Show that valuables are stolen.
(11) relay circuit figure
Such as Figure 12, relay is a kind of electronic switch controller part, it has input circuit and output loop, input circuit Control signal can be widely used in automatic control circuit with the connection and disconnection of the output of output control loop.
Operation principle:In input circuit the actuation and disconnection that control internal magnetic induction loop to connection are gone with smaller electric current Reach the signal output of output control loop, it can be by the Automatic Electronic Switch of external signal control function so as to have.At this The control object of system is used as in system, by controlling the switch of relay, removes the electric appliance to be controlled indirectly.This The electric appliance for needing to use relay in system is access control, water dispenser.The PG1 pins of STM32F407 are used in the present system Access control switchs, and switch of water dispenser is controlled using PD3 pins.
(12) motor-drive circuit
It is required for using motor when exhaust fan rotates and rain recycling clothes, since motor direct-electrifying speed is not met Design requirement, thus speed when needing to work to motor is controlled, so introducing PWM wave, PWM waves are that a kind of pulse is wide Spend modulation technique, can carry out simulation control to motor, motor need of work high current, in circuit for combine PWM controls and High current is provided to motor, selection is driven with metal-oxide-semiconductor SI2302, and controller controls metal-oxide-semiconductor by exporting PWM wave The break-make of SI2302, so as to achieve the purpose that control motor speed.Connected in the present system using the PC0 pins of STM32F407 PWM1, PC1 connect PWM2., circuit design is as shown in Figs. 13 and 14.
(13) data transmission sub-system
ESP8266 is a WIFI module that transparent transmission is carried out by UART-WiFi for having super low-power consumption property, is current WIFI equipment on the market provides the Networking Solutions & provisioned of an integral framework, it can be used alone independent operating, also may be used To be used as slave and the collocation of other host controllers.When making slave, SPI/SDIO interfaces or I2C/ can be passed through UART interface and host are communicatively coupled.So as to fulfill the function of access internet.
Operation principle:Two kinds of connection modes are provided by using SDK to work.The first uses udp broadcast pattern, ESP8266 first scans lower AP, obtains the relevant information of AP, such as the channel of work, and WIFI chip operations are then configured and are swept just now Retouch to channel on go receive UDP packets, if be not received by, continue configuration ESP8266 be operated on other channel, so Cycle, until receiving UDP packets.Second is AP accesses, is mainly driven herein using Espressif AT command sets ESP8266 chips work.It is connected in the present system using the serial ports 6 of STM32F407 with ESP8266 modules, PA1 pins connect TX, PA0 connect RX.Major function is to provide the data transfer mode based on ICP/IP protocol for system, enables a system to directly connect Enter internet, data source is provided for mobile phone terminal APP softwares.Circuit design is as shown in figure 15.
In addition, there is (13) gsm communication module
The main body chip of gsm communication module is SIM900A, is GSM/GPRS double frequency modules.Its dependable performance is stablized, sexual valence Than high, the diversified demand of user disclosure satisfy that.
Operation principle:Downlink transmission rate is up to 85.6kbps, and uplink transmission rate is up to 42.8kbps.It is at this System only uses AT instructions and completes short message sending function.It is connected in the present system using serial ports 3 with module serial interface, PB10 connections TX, PB11 connect RX.Major function is that the realization of the security function for system provides the transmission of information.

Claims (7)

1. a kind of detecting system for bedroom, which is characterized in that including MCU, power module, sensor assembly and communication mould Block;
Power module is used to power for MCU;Power module, sensor assembly and communication module are connected with MCU;
The sensor assembly includes Temperature Humidity Sensor, air quality sensor and optical sensor;Temperature Humidity Sensor, Air quality sensor and optical sensor are connected with MCU;
In power module, MP2359 output 5V voltages is used to power for system peripheral;ASM1117-3.3V voltage stabilizing chips are supplied for MCU Electricity;The input termination 5V voltages of ASM1117-3.3V voltage stabilizing chips;
It is further included for the detecting system in bedroom for human-computer interaction device;The human-computer interaction device includes display screen sum number According to/instruction inputting device;The data/commands input unit is keyboard or touch tablet;
Display screen uses TFT liquid crystal displays, and the driving chip of display screen is ILI9341, and the touch chip for driving touch tablet is XPT2046;
Detecting system further includes the rainfall detection circuit based on rain sensor, in rainfall detection circuit, slide rheostat R9's First fixes termination VCC, the second fixing end ground connection;The tap termination operational amplifier U2 inverting inputs of slide rheostat R9, The first termination VCC ends of resistance R3, the second end of resistance R3 are grounded by Raindrop sensor;The second termination operation of resistance R3 is put The in-phase input end of big device U2;The output terminal of operational amplifier U2 connects VCC ends by resistance R4;The output terminal of operational amplifier U2 As the output terminal of comparator namely the output terminal of rainfall detection circuit.
2. the detecting system according to claim 1 for bedroom, which is characterized in that sensor assembly further includes infrared biography Sensor, MCU are connected with alarm.
3. the detecting system according to claim 1 for bedroom, which is characterized in that further include at least one with MCU phases Camera even.
4. the detecting system according to claim 1 for bedroom, which is characterized in that sensor assembly further includes flame biography Sensor.
5. the detecting system according to claim 1 for bedroom, which is characterized in that further include based on the spare of lithium battery Power supply.
6. the detecting system according to claim 1 for bedroom, which is characterized in that communication module includes wire communication mould Block and wireless communication module;Wire communication module is WLAN module, and wireless communication module is WiFi module, GPRS, 3G, 4G and 5G At least one of communication module is connected for the detecting system in bedroom by communication module with server;For the inspection in bedroom Examining system is communicated to connect by communication module and smart mobile phone.
7. the detecting system in bedroom to be used for according to claim 1-6 any one of them, which is characterized in that further include electrical equipment Current detecting and control relay circuit:
Current transformer L2 is in parallel with resistance R17, and the output signal of current transformer is through bridge rectifier;Bridge rectifier it is straight The first end for flowing side is signal end, and second end is grounded;The signal end is grounded through resistance R16 and resistance R14;Resistance R16 with The tie point of resistance R14 connects the in-phase input end of operational amplifier U3, and the inverting input of operational amplifier U3 passes through resistance R19 Ground connection, the output terminal of operational amplifier U3 connect the b poles of the triode Q4 of NPN type, the e poles ground connection of triode Q4, fortune through resistance R18 The output terminal for calculating amplifier U3 is grounded by resistance R21;
One end of the c poles contact relay coil of triode Q4, another termination VCC of relay coil;The contact switch of relay It is serially connected in the power supply circuit or socket of electrical equipment;
The signal end is also output to the ADC ports of MCU by voltage follower U4 and resistance R27, realizes the reality of electric current When detect.
CN201721761477.7U 2017-12-17 2017-12-17 A kind of detecting system for bedroom Expired - Fee Related CN207586696U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201721761477.7U CN207586696U (en) 2017-12-17 2017-12-17 A kind of detecting system for bedroom

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201721761477.7U CN207586696U (en) 2017-12-17 2017-12-17 A kind of detecting system for bedroom

Publications (1)

Publication Number Publication Date
CN207586696U true CN207586696U (en) 2018-07-06

Family

ID=62738112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201721761477.7U Expired - Fee Related CN207586696U (en) 2017-12-17 2017-12-17 A kind of detecting system for bedroom

Country Status (1)

Country Link
CN (1) CN207586696U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647076A (en) * 2019-09-26 2020-01-03 华中科技大学 College dormitory system integrating dormitory control and micro-social interaction
CN111812918A (en) * 2020-04-30 2020-10-23 广东弘景光电科技股份有限公司 Press cover type raindrop detection automatic heating raindrop removing and steam removing camera module

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647076A (en) * 2019-09-26 2020-01-03 华中科技大学 College dormitory system integrating dormitory control and micro-social interaction
CN111812918A (en) * 2020-04-30 2020-10-23 广东弘景光电科技股份有限公司 Press cover type raindrop detection automatic heating raindrop removing and steam removing camera module
CN111812919A (en) * 2020-04-30 2020-10-23 广东弘景光电科技股份有限公司 External raindrop detection automatic heating raindrop removing and steam removing camera module

Similar Documents

Publication Publication Date Title
CN107861396B (en) Intelligent bedroom system based on Internet of things
CN108107856A (en) A kind of field monitoring and security protection control method based on Internet of Things
CN108089452A (en) A kind of multi-functional onsite monitoring and safety-protection system based on Internet of Things
CN206096784U (en) Intelligent home control system
CN106444397A (en) Smart home system with anti-theft function and intelligent control function
CN105407020A (en) Intelligent home system based on wireless remote control technology
CN207586696U (en) A kind of detecting system for bedroom
CN206972032U (en) A kind of intelligent window control system
CN109737075A (en) A kind of multi-mode induced intelligent energy-saving fan
CN206515668U (en) Intelligent switch
CN106527235A (en) Bidirectional control switch based on single live wire power supply
CN107219832A (en) A kind of intelligent appliance and access control system based on technology of Internet of things
CN205507396U (en) Intelligent house control system based on mobile communication and STM singlechip
CN112462670A (en) Smart home control system based on STM32F103
CN207939805U (en) A kind of intelligent light control system
CN207586662U (en) A kind of intelligence bedroom system
CN207912531U (en) Window intelligent control equipment
CN205402937U (en) Remote control's environmental conditioning system
CN206162133U (en) Wireless automatic control system of safety protection of family intelligence
CN105179996A (en) Intelligent energy-saving table lamp
CN206817710U (en) A kind of controlling switch based on infrared induction
CN206162139U (en) Household electric appliance intelligent control device
CN211906467U (en) STM32F 103-based fingerprint identification security system
CN208820809U (en) A kind of intelligent gateway
CN206948662U (en) A kind of New Reaction Light

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180706

Termination date: 20191217

CF01 Termination of patent right due to non-payment of annual fee