CN207586662U - A kind of intelligence bedroom system - Google Patents

A kind of intelligence bedroom system Download PDF

Info

Publication number
CN207586662U
CN207586662U CN201721761486.6U CN201721761486U CN207586662U CN 207586662 U CN207586662 U CN 207586662U CN 201721761486 U CN201721761486 U CN 201721761486U CN 207586662 U CN207586662 U CN 207586662U
Authority
CN
China
Prior art keywords
sensor
mcu
bedroom
circuit
communication module
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
CN201721761486.6U
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 CN201721761486.6U priority Critical patent/CN207586662U/en
Application granted granted Critical
Publication of CN207586662U publication Critical patent/CN207586662U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Alarm Systems (AREA)

Abstract

The utility model discloses a kind of intelligent bedroom system, including MCU, power module, sensor assembly, executing agency and communication module;Power module is used to power for MCU;Power module, sensor assembly, executing agency and communication module are connected with MCU;The sensor assembly includes Temperature Humidity Sensor, rain sensor, air quality sensor, optical sensor and current transformer;The executing agency includes electric clothes hanger, ventilating fan and the relay for controlling electrical equipment powered off and on;MCU drives electric clothes hanger to shrink and extend automatically by motor;Ventilating fan is controlled by MCU;Electrical equipment includes at least one of water dispenser, electric cooker and electromagnetic oven.The intelligence bedroom system function is enriched, easily controllable, high safety and reliability, has anti-theft feature.

Description

A kind of intelligence bedroom system
Technical field
The utility model is related to a kind of intelligent bedroom systems.
Background technology
Intelligent domestic system mainly develops towards the direction for personal home services, can bedroom be also to learn for student Raw family, the place of rely study and relax, but the structure in bedroom and environment still have very with ordinary individual family Big difference, bedroom is there are narrow space, room air exchange has some setbacks, it is circuit aging be difficult to optimize and at closing time it is indoor not The problems such as completely enclosed.To improve student life environment, facilitate school control, difference is gone out according to the present situation in bedroom and Demand Design It is just particularly necessary in the intelligent bedroom system of general intelligence house system.
Intelligent bedroom system is like an all-round house keeper of student dormitory, and the moment is all managing dormitory without tired It is exhausted.Student, which has a class to open the door when returning to bedroom, no longer needs the cumbersome ground moment with key, but can pass through a card of school Logical identification of swiping the card is opened the door.System perceives every life data of bedroom environment by big quantity sensor, such as detects bedroom humiture, Analysis indoor air quality and optimal value are compared, and make bedroom ventilated so as to adjust in time, without peculiar smell, are kept most Comfortable state.Student learns or in the bedroom during rest, and the electric appliance of indoor lamp, water dispenser etc is controlled by mobile phone, can Them is allowed to feel very satisfied, feeling is constrained caused by the narrow space of bedroom so as to mitigate.Each school requires that student exists Bedroom safety utilization of electric power, because the variation bedroom circuit with the time just becomes aging, if it is easy to appear safe things for overburden Therefore intelligent bedroom system need the moment monitor bedroom circuit conditions, when detect bedroom member using it is high-power when need to cut in time Power-off source is so as to avoid that contingency occurs.Sometimes student at school, if giving the clothes an airing problem intelligence caused by Changes in weather Energy bedroom system can also solve that student's release trouble and worry can undoubtedly be allowed attentively to be attended class for it.Just in case there is security situation When, preferred plan can be used in time, as it can be found that alarm after fire behavior, notice bedroom member will be so as to lose after finding theft It minimizes.
Such a intelligence is provided for student, comfortable, safety living environment will make student's study more feel at ease with life. For school, intelligent bedroom system can also help school preferably to solve management bedroom, prevent all kinds of safety accidents etc. Problem, so intelligent bedroom system is very helpful and anticipated helping improve student life environment and school control etc. tool Justice.
S Designs in 1984 and after showing the first building intelligent building in the world, in the world the flourishing country of Economic contrast and Area such as Canada, Australian, Japanese, European Union have all started the exploration to smart home industry, it is proposed that various Smart home scheme so that smart home technology is gradually developed, and China currently quite payes attention to smart home technology, intelligence Energy family product gradually comes into people's life, is serviced for people.
Cry the bedroom that people's successful design of Derek Low goes out warm intelligence between one in one, the U.S..He will move equipment with getting into bed Indoor various electrical equipments carry out interconnection communication by network, are beaten using modules such as acousto-optic electric transducer, speech recognitions This automation bedroom has been produced, has reached to point and has turned on light automatically the curtain that opens a window that winds up an alarm clock, returned to bedroom and turn on light and open a window automatically curtain, Using the effect of the electric appliances such as infrared remote control and cell phone application and speech identifying function manipulation electric light, and bedroom is named as BRAD, People is allowed to feel scintillating, it is very happy.
At home, everybody is also being energetically that most effective reliable designing scheme is found in university student bedroom, utilizes microcontroller Device and RFID radio-frequency modules design bedroom intelligent access control system, go out the difficulty left behind key and do not returned in bedroom to solve classmates Topic, bedroom antitheft security system is had devised for easily stolen take of the great property in bedroom, but compared to external and smart home just Seem that function is more single, system is still not enough very comprehensively and perfect, and development speed is slower.
With the increase of national economy level, the more attention to education, now traditional school bedroom will be by naughty It eliminates, the living environment of a more comfortable safety is provided for student to be particularly important, therefore, it is necessary to design a kind of new intelligence It can bedroom system.
Utility model content
The technical problem to be solved by the utility model is to provide a kind of intelligent bedroom system, the intelligence bedroom system structures It is compact, feature-rich, the safety in energy effective guarantee bedroom.
The technical solution of utility model is as follows:
A kind of intelligence bedroom system, including MCU, power module, sensor assembly, executing agency and communication module;
Power module is used to power for MCU;Power module, sensor assembly, executing agency and communication module with MCU phases Even;
The sensor assembly includes Temperature Humidity Sensor, rain sensor, air quality sensor, optical sensor And current transformer;
The executing agency include electric clothes hanger, ventilating fan and for control electrical equipment powered off and on after Electric appliance;
MCU drives electric clothes hanger to shrink and extend automatically by motor;Electric clothes hanger is existing mature technology;
Ventilating fan is controlled by MCU;
Electrical equipment includes at least one of water dispenser, electric cooker and electromagnetic oven.
The motor is stepper motor, and MCU controls Pulse Width Control stepper motor to rotate by transmission.
Sensor assembly further includes infrared sensor, and MCU is connected with alarm.
The intelligent bedroom system further includes at least one camera being connected with MCU.
Sensor assembly further includes flame sensor, and spray equipment is further included in executing agency.
The intelligent bedroom system further includes the stand-by power supply based on lithium battery.
Communication module includes wire communication module and wireless communication module;Wire communication module is WLAN module, channel radio Letter module is at least one of WiFi module, GPRS, 3G, 4G and 5G communication module, and intelligent bedroom system passes through communication module It is connected with server;Intelligent bedroom system is communicated to connect by communication module and smart mobile phone.
The intelligent bedroom system further includes the entrance guard device based on RFID card reader and electric door lock and (reads RFID Card is unlocked by i.e. control door lock after verification);
In power module, MP2359 output 5V voltages is used to power for system peripheral (sensor etc.); ASM1117-3.3V Voltage stabilizing chip is powered for MCU;The input termination 5V voltages of ASM1117-3.3V voltage stabilizing chips;
Display screen uses TFT liquid crystal displays, and the driving chip of display screen is ILI9341, and touch chip is XPT2046.
The intelligent bedroom system further includes the lighting system for being controlled by MCU;
In rainfall detection circuit, the first of slide rheostat R9 fixes termination VCC, direct current power source voltage 5V.Second is solid Fixed end is grounded;The tap terminals (sliding end) of slide rheostat R9 connect operational amplifier U2 (LM393 amplifiers) inverting input, electricity The first termination VCC ends of R3 are hindered, the second end of resistance R3 is grounded by Raindrop sensor;The second termination operation amplifier of resistance R3 The in-phase input end of 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.
The intelligent bedroom system further includes 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.
MCU uses STM32F407 chips.
Autocontrol method:
Step 1:Presence states are detected by sensor;
Step 2:Pass through preset control strategy, (remote controler) control instruction at scene or long-range (mobile phone terminal) control System instruction controls each executing agency;
Step 3:Newest status data is fed back into mobile phone end by communication module;
There are two types of control modes:
(1) manual active monitoring site device, method, the equipment at mobile phone remote control scene;
(2) field device automatically controls, and control result is fed back to mobile phone terminal;
Specific control method:
(1) access control;Gate inhibition alarms;
It detects that someone swarms into, starts alarm;
(2) fire alarm and spray control;
Flame sensor detects fiery point, starts alarm, and start sprinkling equipment;
(3) 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;
(4) security based on infrared detection;
It detects whether valuables move by infrared sensor, moves excessively, then start alarm;
(5) 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;
(6) 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.
(7) 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).
(8) 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.
(9) video monitoring.
Secondly, the backlight dimming control of display screen is further included, the light intensity of backlight can be adjusted manually.
Advantageous effect:
The intelligent bedroom system of the utility model, using STM32F407 chips as master controller, it is therefore intended that realization pair The display of bedroom environmental data and for automation control instruction input channel is provided;It is realized using RFID radio-frequency techniques to access card Automatic identification so as to fulfill gate function;Various kinds of sensors is arranged in the bedroom, and one powerful environment sensing network of tissue has Environment is made conducive to system and accurately judges and operates, to realize air conditioning, shines clothing and receives the functions such as clothing;Safety in the bedroom Aspect, system can be with fire-proof and theft-proof, and can accomplish bedroom current monitoring, so as to which effectively prevention bedroom member is using high-power Electric appliance and there is safety problem;System can use mobile phone remote monitoring bedroom 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) notification unit:Data or alarm are reached into mobile phone control terminal and receive mobile phone control command.
(5) cryptopart:Access right is fixed by setting and preserving password.
(6) overcurrent protection:Bedroom circuit maximum threshold is set, once detection circuit, which is more than this value, will cut off circuit.
(7) 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;Based on GSM the and WIFI communication technologys, the communication between control terminal and mobile terminal is completed, is realized to bedroom inner ring The monitoring in border and the remote control of electric appliance.
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;
Figure 16 is nozzle and fire sensor distribution schematic diagram;
Figure 17 is the structure diagram of rotating spraying shower device;
Figure 18 is the structure diagram of sprayer;
Figure 19 adjusts circuit diagram for display backlight;
Figure 20 is constant-current charge schematic diagram;
Figure 21 is camera structure schematic diagram.
Label declaration:301- subregions, 302- fire sensors, 303- nozzles.
108- spray guns;116- drawstrings, 117- spray gun driving motors, 118- rotating platforms, 119- driven gears, 120- branch Support seat, 121- rotating platform driving motors, the first driving gears of 122-, 123- gunjet racks.
111- crawler type walking mechanisms, 112- support platforms, the auxiliary water tanks of 113-;The sub- cameras of 114-, the auxiliary spray guns of 115-;71- Sub- camera lens, 72- combined type camera lenses, 73- shafts, 74- light-reflecting sheets, 75- photoemission and reception device, 76-CCD sensors, 77- fuselages.
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..
(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, circuit current-limiting protection and data in mobile phone to show and control Etc. functions intelligent bedroom system schema.The system has function more comprehensively compared with traditional intelligent bedroom scheme, and control is more It is convenient, the characteristics of 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 IS014443A 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 just It is that 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
The detection to bedroom electricity consumption of intelligent bedroom system can prevent bedroom safety problem well, the electric current inspection used Slowdown monitoring 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 ACD ports of MCU by voltage follower U4 and resistance R27, it is real The real-time detection of existing 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 12C/ 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 EspressifAT instruction set 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.
In the utility model, spray equipment is one of its core;
Fire detection device be fire sensor, Smoke Detector, flame sensor and thermal infrared probe at least one of, Or fire detection device uses infrared camera.
Spray equipment has 3 kinds of preferred method:
Embodiment 1:
Such as Figure 16, field regions are divided into N number of subregion, 301, at least provided with a fire sensor in each subregion; Spray equipment includes N number of nozzle (303), sets that there are one nozzles in each subregion, it is preferred that nozzle is arranged on above subregion On stent above ceiling or subregion, N is the natural number more than or equal to 4.N=9 herein;
Embodiment 2:
Such as Figure 17, spray equipment is the rotary spray dress on the stent of the ceiling or top above setting at the scene It puts;
At this point, (1) fire sensor is multiple, it is distributed using array;If some or sensor detect at this time A certain region is there are fire behavior, then the spray gun on rotating spraying shower device control rotating spraying shower device rotates to be registered to the region Implement sprinkling fire-distinguishing;
Alternatively, (2) fire sensor uses infrared camera, the position of fire point is obtained through image procossing, then rotary spray Spray gun on device control rotating spraying shower device is rotated implements sprinkling fire-distinguishing to be registered to the fire point region.
The rotating spraying shower device includes support base, rotating platform 118 and rotating platform driving motor 121;Spray gun 108 are arranged on rotating platform;
Rotating platform driving motor can drive rotating platform to rotate by the first transmission mechanism;Rotating platform is equipped with spray gun Driving motor 117, spray gun driving motor can pass through the angle of depression of the second transmission mechanism control main jet rifle;
First transmission mechanism is gear or belt wheel transmission mechanism;
Second transmission mechanism is electric pushrod or drawstring 116, when the second transmission mechanism is drawstring, the lower end of drawstring The front end of spray gun is arranged on, the upper end of drawstring is in the shaft mounted in spray gun driving motor;Spray gun is mounted in gunjet rack 123 On, it is hinged with gunjet rack, therefore, spray gun front end is downward under the effect of gravity, and therefore, the angle of depression is completely by drawstring control System.
Embodiment 3:Implement to spray water using sprayer
Such as Figure 18, crawler type sprayer is equipped with sub- camera 114 and auxiliary spray gun 115.
Crawler type sprayer is connected by water pipe with main water box;And crawler type sprayer is equipped with auxiliary water tank 113.Sub- phase Machine is for monitoring water spray action and fire-extinguishing location state, and for auxiliary spray gun for spraying water, crawler type sprayer has wireless communication module, It is controlled by remote terminal (such as mobile phone).
In addition, MCU is connected with display screen, Figure 19 is the light adjusting circuit of display backlight, i.e. brightness regulating circuit;
The brightness regulating circuit includes MCU, LED light string, triode, potentiometer Rx and A/D converter;Triode For NPN type triode;Rotary switch is additionally provided on the fixed frame of display screen with potentiometer Rx to be coaxially connected;
Potentiometer Rx and first resistor R1 concatenates to form partial pressure branch, and partial pressure branch one terminates positive pole Vcc, partial pressure The other end ground connection of branch;The tie point of potentiometer Rx and first resistor R1 connect the input terminal of A/D converter;A/D converter The data-in port of output termination MCU;
LED light string includes the LED light of multiple concatenations;The anode of LED light string meets positive pole Vcc;The cathode of LED lamp strings The C poles of triode are connect, the E poles of triode are grounded through second resistance R2;The output terminal for meeting MCU of the B poles of triode.Power supply is just Pole Vcc is 5V, and A/D converter is 8 Bits Serial output type converters.
Constant-current charging circuit is as shown in figure 20, is charged by constant-current charging circuit for lithium battery, in constant-current charging circuit, respectively Element or label declaration:
VIN+----- input power anodes.
VIN------ input power cathode.
VOUT+----- out-put supply anodes.
VOUT----- out-put supply cathode.
The anode of VREF+----- reference power sources
C1 is input filter capacitor.
C2 is output filter capacitor.
C3 is current sample feedback filtering.
R1, R2, R5, C3 form current sample feedback line.
R3, R4 are voltage sample feedback circuit.
D1 is isolation diode.
Constant-current charging circuit includes constant pressure driving chip and current feedback circuit;
(1) voltage output end of constant pressure driving chip is the positive output end V0UT+ of constant-current charging circuit;Constant pressure driving chip Negative output terminal ground connection;
Constant pressure driving chip is powered by DC-voltage supply end VIN+ and VIN-;
(2) current feedback circuit described in includes resistance R1, R2 and R5 and reference voltage end VREF+;
Reference voltage end VREF+ is grounded by resistance R1, R2 and the R5 being sequentially connected in series;
The tie point of resistance R5 and R2 are the negative output terminal VOUT- of constant-current charging circuit;
The tie point of resistance R1 and R2 meet the feedback end FB of constant pressure driving chip.
Constant-current charging circuit further includes voltage feedback circuit;
Voltage feedback circuit includes resistance R3 and R4 and diode D1;
Resistance R3 and R4 series connection are followed by between the positive output end VOUT+ and ground of constant-current charging circuit;Resistance R3's and R4 Tie point connects the anode of diode D1;The cathode of diode D1 meets the feedback end FB of constant pressure driving chip.
Operation principle explanation:
Using stable reference power supply as reference voltage, using R1, R2, R5 divide to obtain the voltage equal with FB, so as to The inside PWM of adjustment DCDCIC is gone to control the size of output current by FB.For example, when output current becomes larger, in sampling electricity Voltage on resistance R5 will increase, and since VRFE+ is fixed value, so as to be that FB voltages become larger, FB becomes larger, and duty ratio will subtract It is few, so as to be that output current is reduced, and a complete feedback is completed, achieve the purpose that stabling current exports.
Constant current calculates:
If the voltage that R5 upstream overcurrent generates is VIo, output current Io
Reference voltage is VREF+=2.5V,
FB voltages are VFB=0.6V,
R5=0.1 Ω, R1=40K Ω, R2=10K Ω
Then:
VIo=Io*R5
VFB=VIo+ ((VREF+-VIo) * R2/ (R1+R2))
It calculates:
Io=(VFB* (R1+R2)-R2*VREF+)/R1*R5
The equation if K=(VFB* (R1+R2)-R2*VREF+)/R1 is taken
Io=K/R5
In terms of calculation formula, Io output currents and output voltage and input voltage do not have any relationship, only with VFB. R1, R2, VREF are related, and these parameters are in specific design, they be all it is fixed (VFB be in stable state it is fixed, for Chip fp7192 constant pressure chips, steady-state value 0.6v), so K is necessarily a fixed value, so formula:
Io=K/R5 has the fabulous linearity and with excellent controllability.
The occurrence that parameter imparting above is set above can be obtained:
Io=(VFB* (R1+R2)-R2*VREF+)/R1*R5
=(0.6* (40+10) -10*2.5)/40*0.1
=1.25A
It can be seen that, this scheme introduces fixed VREF+ from above equation, is only taken so as to which Io be made to become one with R5 The linear equation of sample resistance, makes Io become constant, so as to achieve the purpose that constant current.
The characteristics of constant-current circuit in this programme, is as follows:
1. using fixed VREF+ voltages, control and stability control convenient for precision is stablized.
It is fed back 2. current sample is become electric resistance partial pressure by use, it is more simple and reliable.
3. applicability is wide, the circuit of any required constant current can use.
In addition, such as Figure 21, camera (i.e. camera) includes fuselage 77 and combined type camera lens 72;Multiple CCD are equipped in fuselage Sensor 76, fuselage are equipped with for the photoemission of alignment lens and reception device 75;
Combined type camera lens is equipped with shaft 73;4 sub- camera lenses 71 are integrated in combined type camera lens;Sub- camera lens is along combined type mirror Head is arranged circumferentially;The rear end of combined type camera lens is additionally provided with the light-reflecting sheet being adapted to the photoemission with reception device 74;The stepper motor for driving rotation of lens is additionally provided in fuselage.Photoemission can be with reception device and light-reflecting sheet More sets, preferably 2 sets, in axisymmetrical, alignment result is more preferable, and only 2 sets of photoemission and reception device and light-reflecting sheet are all right After standard, just think that camera lens is targeted by with ccd sensor, such alignment precision higher.Multiple sub- lens focus are different, for monitoring Different visual angles, flexibility are good.

Claims (10)

1. a kind of intelligence bedroom system, which is characterized in that including MCU, power module, sensor assembly, executing agency and communication Module;
Power module is used to power for MCU;Power module, sensor assembly, executing agency and communication module are connected with MCU;
The sensor assembly includes Temperature Humidity Sensor, rain sensor, air quality sensor, optical sensor and electricity Current transformer;
The executing agency includes electric clothes hanger, ventilating fan and the relay for controlling electrical equipment powered off and on Device;
MCU drives electric clothes hanger to shrink and extend automatically by motor;
Ventilating fan is controlled by MCU;
Electrical equipment includes at least one of water dispenser, electric cooker and electromagnetic oven.
2. intelligence bedroom according to claim 1 system, which is characterized in that the motor is stepper motor, and MCU passes through Send the stepper motor rotation of control Pulse Width Control.
3. intelligence bedroom according to claim 1 system, which is characterized in that sensor assembly further includes infrared sensor, MCU is connected with alarm.
4. intelligence bedroom system according to claim 1, which is characterized in that further include it is at least one be connected with MCU take the photograph As head.
5. intelligence bedroom according to claim 1 system, which is characterized in that sensor assembly further includes flame sensor, Spray equipment is further included in executing agency.
6. intelligence bedroom according to claim 1 system, which is characterized in that further include the stand-by power supply based on lithium battery.
7. intelligence bedroom according to claim 1 system, which is characterized in that communication module includes wire communication module and nothing Line communication module;Wire communication module is WLAN module, and wireless communication module is WiFi module, GPRS, 3G, 4G and 5G communication mould At least one in the block, intelligent bedroom system are connected by communication module with server;Intelligent bedroom system passes through communication module It is communicated to connect with smart mobile phone.
8. intelligence bedroom according to claim 1 system, which is characterized in that further include based on RFID card reader and electrically operated gate The entrance guard device of lock;
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.
9. intelligence bedroom according to claim 1 system, which is characterized in that further include the lighting system for being controlled by MCU;
In rainfall detection circuit, the first of slide rheostat R9 fixes termination VCC, the second fixing end ground connection;Slide rheostat R9 Tap termination operational amplifier U2 inverting inputs, the first termination VCC ends of resistance R3, the second end of resistance R3 passes through raindrop Sensor ground;The in-phase input end of the second termination operational amplifier U2 of resistance R3;The output terminal of operational amplifier U2 passes through Resistance R4 connects VCC ends;Output of the output terminal of operational amplifier U2 as the output terminal namely rainfall detection circuit of comparator End.
10. intelligence bedroom according to claim 1 system, which is characterized in that further include human-computer interaction device;The people Machine interactive device includes display screen and data/instruction inputting device;The data/commands input unit is keyboard or touch Plate;Display screen uses TFT liquid crystal displays, and the driving chip of display screen is ILI9341.
CN201721761486.6U 2017-12-17 2017-12-17 A kind of intelligence bedroom system Expired - Fee Related CN207586662U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201721761486.6U CN207586662U (en) 2017-12-17 2017-12-17 A kind of intelligence bedroom system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201721761486.6U CN207586662U (en) 2017-12-17 2017-12-17 A kind of intelligence bedroom system

Publications (1)

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

Family

ID=62738526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201721761486.6U Expired - Fee Related CN207586662U (en) 2017-12-17 2017-12-17 A kind of intelligence bedroom system

Country Status (1)

Country Link
CN (1) CN207586662U (en)

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
CN204331418U (en) Be provided with controlled plant and the remote signal transferring system of duty feedback function
CN203745868U (en) Smart home control alarm system
CN106444397A (en) Smart home system with anti-theft function and intelligent control function
CN206649300U (en) Wireless intelligent house configures system
CN203786554U (en) Smart home control system
CN205561166U (en) Unattended substation wisdom economizer system
CN109947071A (en) Smart home system
CN207586696U (en) A kind of detecting system for bedroom
CN109976184A (en) A kind of smart home system based on wireless sensor network
CN207586662U (en) A kind of intelligence bedroom system
CN205644078U (en) Intelligent guest room controller
CN109737075A (en) A kind of multi-mode induced intelligent energy-saving fan
CN106873386A (en) A kind of intelligent domestic system
CN206162091U (en) Intelligent housing system
CN205920332U (en) House thing networking robot based on electric control system
CN207101083U (en) Curtain control device
CN109116779A (en) A kind of automatic switch controller and method of electrical equipment
CN211698635U (en) Intelligent home system
CN107621785A (en) Based on wireless fully-automatic intelligent house system
CN206817710U (en) A kind of controlling switch based on infrared induction
Arunkumar et al. Advanced Smart Home and Office Automation using IoT
CN205876753U (en) Intelligence wireless remote control electric fan

Legal Events

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

Granted publication date: 20180706

Termination date: 20191217