CN105962740A - Intelligent curtain controller based on fuzzy PID and intelligent curtain - Google Patents

Intelligent curtain controller based on fuzzy PID and intelligent curtain Download PDF

Info

Publication number
CN105962740A
CN105962740A CN201610292215.4A CN201610292215A CN105962740A CN 105962740 A CN105962740 A CN 105962740A CN 201610292215 A CN201610292215 A CN 201610292215A CN 105962740 A CN105962740 A CN 105962740A
Authority
CN
China
Prior art keywords
light
intelligent curtain
fuzzy
blocking
controller
Prior art date
Application number
CN201610292215.4A
Other languages
Chinese (zh)
Inventor
郑健博
焦新兵
Original Assignee
上海理工大学
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 上海理工大学 filed Critical 上海理工大学
Priority to CN201610292215.4A priority Critical patent/CN105962740A/en
Publication of CN105962740A publication Critical patent/CN105962740A/en

Links

Classifications

    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47HFURNISHINGS FOR WINDOWS OR DOORS
    • A47H23/00Curtains; Draperies
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47HFURNISHINGS FOR WINDOWS OR DOORS
    • A47H5/00Devices for drawing draperies, curtains, or the like
    • A47H5/02Devices for opening and closing curtains
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47HFURNISHINGS FOR WINDOWS OR DOORS
    • A47H5/00Devices for drawing draperies, curtains, or the like
    • A47H5/02Devices for opening and closing curtains
    • A47H2005/025Devices for opening and closing curtains controlled by electronic sensors

Abstract

The invention provides an intelligent curtain controller based on the fuzzy PID. The intelligent curtain controller is connected with an execution motor of an intelligent curtain for controlling the open-close state of a light-shielding component of the intelligent curtain. The intelligent curtain controller is characterized by comprising a motor control part, a communication part, an illumination detection part and a position detection part, wherein the motor control part is connected with the execution motor, and is used for sending out a current signal to drive the operation of the execution motor; the communication part communicates with an external intelligent terminal; the illumination detection part is arranged on the indoor side of the curtain, and is used for detecting an indoor illumination intensity signal; the position detection part is used for detecting a position signal of the light-shielding component; the motor control part comprises a singlechip main control unit, a power unit and a motor drive unit. The singlechip main control unit of the motor control part can carry out the fuzzy PID control according to the condition of ambient light, so that the intelligent curtain controller provided by the invention can accurately control the opening and closing of the intelligent curtain, and the requirements for reasonably utilizing the natural light and protecting the privacy of people are satisfied.

Description

A kind of Intelligent curtain controller based on fuzzy and intelligent curtain

Technical field

The present invention relates to a kind of curtain intelligent controller based on fuzzy and curtain, belong to field of intelligent control.

Background technology

The development of Smart Home field is swift and violent, and curtain intelligent controller is exactly one of which.Curtain is the necessary article of daily life.It typically has two major functions: one, help our Appropriate application nature light, and when indoor light is dark, we can open curtain shines into by light;And when indoor light is brighter, curtain can be opened again;Two, protecting our privacy, when night came, we draw the curtain together at custom.

But the change of natural light is subtle, Various Seasonal, different weather in even one day the most in the same time, the change of light is the biggest.Therefore, it is desirable to according to the opening and closing of indoor and outdoor equation of light automatic control curtain, be not easy to.

Summary of the invention

The present invention solves the problems referred to above; provide a kind of curtain intelligent controller based on fuzzy and curtain; it utilizes fuzzy-adaptation PID control accurately to control the opening and closing of intelligent curtain to solve illumination and control signal problem under above-mentioned different situations, meets Appropriate application nature light and the protection privacy requirements of people.

A kind of Intelligent curtain controller based on fuzzy, it is connected to control the folding condition of the light-blocking member of intelligent curtain with the actuating motor of intelligent curtain, it is characterized in that including: motor controling part, and actuating motor connects, for sending current signal to drive the operating of actuating motor;Communication unit, communicates with extraneous intelligent terminal;Illumination test section, is arranged on the indoor of curtain, the intensity of illumination signal in sensing chamber;And position detection part, for detecting the position signalling of light-blocking member, wherein, motor controling part includes single-chip microcomputer main control unit, power subsystem, electric-motor drive unit.

The Intelligent curtain controller based on fuzzy that the present invention provides, can also have a feature in that wherein, position detection part also includes avoidance unit, light-blocking member opening amount detection unit, avoidance unit, for avoiding the obstacle in light-blocking member moving process, light-blocking member opening amount detection unit, for detecting the opening amount signal of light-blocking member.

The Intelligent curtain controller based on fuzzy that the present invention provides, can also have a feature in that wherein, avoidance unit is infrared sensor, light-blocking member opening amount detection unit includes two Hall elements, place, for detecting turning to and rotating cycle send single-chip microcomputer main control unit to of actuating motor being separated by quadrant.

The Intelligent curtain controller based on fuzzy that the present invention provides, it is also possible to having a feature in that wherein, illumination test section is optical sensor BH1750FVI chip.

The Intelligent curtain controller based on fuzzy that the present invention provides, it is also possible to having a feature in that wherein, Hall element is 3144E Hall switch sensor, infrared sensor is that infrared emission receives pipe.

The Intelligent curtain controller based on fuzzy that the present invention provides, it is also possible to having a feature in that wherein, the mode that communication unit communicates with intelligent terminal is bluetooth or Wi-Fi.

The present invention also provides for a kind of intelligent curtain, including: intelligent curtain body, including actuating motor and light-blocking member;And controller, and actuating motor be connected to control light-blocking member folding condition, wherein, controller is above-mentioned Intelligent curtain controller based on fuzzy.

Invention effect and effect

Intelligent curtain controller based on fuzzy provided by the present invention; there is motor controling part, communication unit, illumination test section and position detection part; the single-chip microcomputer main control unit having due to motor controling part therein can be according to the situation of ambient light; carry out fuzzy-adaptation PID control; so that the Intelligent curtain controller of the present invention can accurately control the opening and closing of intelligent curtain, meet Appropriate application nature light and the protection privacy requirements of people.

Accompanying drawing explanation

Fig. 1 is the structural representation of the intelligent curtain of the present invention;

Fig. 2 is the structured flowchart of the Intelligent curtain controller based on fuzzy of the present invention;

Fig. 3 is light intensity fuzzy control search table.

Detailed description of the invention

For the technological means making the present invention realize, creation characteristic, reaching purpose and be easy to understand with effect, following example combine accompanying drawing and are specifically addressed the intelligent curtain of the present invention and the structure of Intelligent curtain controller based on fuzzy and using method operation principle.

Embodiment 1

Fig. 1 is the structural representation of the intelligent curtain of the present embodiment.

As it is shown in figure 1, intelligent curtain 100 includes intelligent curtain body 10 and Intelligent curtain controller based on fuzzy 20.

Wherein, intelligent curtain body 10 includes actuating motor 11 and light-blocking member 12 and peg 13, and wherein actuating motor 11 and light-blocking member 12 are all arranged on peg 13, and peg 13 is fixed on the top wall of window.In the present embodiment, light-blocking member 12 is common curtain, folding under the control of actuating motor 11.

Intelligent curtain controller 20 based on fuzzy, and actuating motor 11 be connected to control light-blocking member 12 folding condition, there is motor controling part 21, communication unit 22, illumination test section 23 and position detection part 24.

Wherein, motor controling part 21, and actuating motor 11 connects, including single-chip microcomputer main control unit 211, power subsystem 212 and electric-motor drive unit 213.

Single-chip microcomputer main control unit 211, uses single-chip microcomputer as platform, is written in single-chip microcomputer by pre-designed fuzzy-adaptation PID control model, has thus obtained carrying out the single-chip microcomputer main control unit 211 of fuzzy-adaptation PID control.The STC89C52RC single-chip microcomputer that single-chip microcomputer model is macrocrystalline company that the present embodiment uses.The most in use will be described in detail the structure of Controlling model.

Power subsystem 212 and single-chip microcomputer main control unit 211 connect, and power for it, and itself connects with indoor power grid.

Electric-motor drive unit 213, and power subsystem 212 connects, and under the control of single-chip microcomputer main control unit 211, directly drive the operating of actuating motor 11.

Communication unit 22, communicate with extraneous intelligent terminal, the mode of communication is bluetooth or Wi-Fi, selects bluetooth and smart mobile phone to communicate in the present embodiment, is directly sent instruction by the APP on smart mobile phone and issues single-chip microcomputer main control unit 211 after communication unit 22 receives and be controlled.

Illumination test section 23, is arranged on the indoor of light-blocking member 12, the intensity of illumination signal L in sensing chamber, and unit is lx.The present embodiment is selected optical sensor BH1750FVI chip, is arranged on indoor, and connects with single-chip microcomputer main control unit 211.

Position detection part 24, for detecting the position signalling of light-blocking member, including avoidance unit 241, light-blocking member opening amount detection unit 242.

Avoidance unit 241, for avoiding the obstacle in light-blocking member 12 moving process, uses infrared sensor, uses infrared emission to receive pipe and realize obstacle in the present embodiment.

Light-blocking member opening amount detection unit 242, for detecting the opening amount signal of light-blocking member 12, it is made up of two Hall elements, it is placed on the rotation shaft side of actuating motor 11 being separated by quarter turn, available actuating motor 11 turns to and rotating cycle, single-chip microcomputer main control unit 211 process the signal of Hall element and just can get the stroke of curtain, i.e. opening amount signal W, namely sensing the position signalling W of light-blocking member 12, select in the present embodiment is 3144E Hall switch sensor.

1. illumination FUZZY ALGORITHMS FOR CONTROL realizes.According to the principle of fuzzy control, selected light intensity SP that sets, setting value and actual value deviation ER (ER=SP-L), as the input quantity of fuzzy controller, curtain aperture U is as output.Definition domain is SP [0,1500], ER [-600,600], U [0,1].SP, ER are intensity of illumination, and unit is lx.U represents curtain percent travel, and 0 represents fully closed, and 1 represents standard-sized sheet.

Setting SP, the fuzzy subset of ER, U is respectively as follows: SP{TS, VS, S, M, B, VB, TB};ER{NB,NM,NS,ZE,PS,PB};U{TS,VS,S,M,B,VB,TB}.The physical significance of SP, U is the most respectively: TS is minimum, and VS is the least, and S is little, and M is medium, and big B, VB are relatively big, and TB is the biggest.The physical significance of ER is the most respectively: NB is much smaller than, and NM is less than, and NS is smaller than, and ZE is equal to, and relatively larger than, PB is more than PS.

The membership function of SP, ER, U is set as triangle.According to life experience, set fuzzy control rule.Such as set light intensity (SP) medium (M), and deviation value (ER) is relatively big (PS), then the aperture of curtain should be M (medium).Utilize the Fuzzy workbox in MATLAB software can realize above-mentioned setting, finally give 49 rules.

Fig. 3 is light intensity fuzzy control search table.

Write MATLAB program, Fuzzy workbox is emulated, i.e. can get light intensity fuzzy control search table.In the EEPROM of this inquiry table write STC89C52RC single-chip microcomputer, single-chip microcomputer, according to programmed instruction, is tabled look-up in due course, is exported by the position signalling of the i.e. light-blocking member 12 of desired for user curtain aperture.

2. fuzzy self-turning PID control algorithm realizes.Fuzzy selftuning PID algorithm, actually utilizes fuzzy control strategy that three parameters of PID controller are carried out on-line tuning so that system suitability is more good, thus arrives intended control effect.

The realization of this algorithm can be divided into two parts: the generation of 1.PID fuzzy control search table;2.PID algorithm.Wherein the generation process of PID fuzzy control search table is as the generation of illumination fuzzy control search table, and differing only in PID fuzzy control search table needs to produce three tables: KP, KD, KI.They are also stored in single-chip microcomputer EERROM.The input of PID FUZZY ALGORITHMS FOR CONTROL is E{NB, NM, NS, ZE, PS, PB};EC{NB, NM, NS, ZE, PS, PB} are output as KP{NB, NM, NS, ZE, PS, PB};KI{NB,NM,NS,ZE,PS,PB};KD{NB,NM,NS,ZE,PS,PB}.Wherein E represents the difference of user's desired locations and physical location, and this difference is E=U-W by obtain Hall element in position detecting module embodying computing formula.EC is the rate of change of deviation.Exporting KP, KI, KD represent P ratio, I integration, and the increment of three parameters of D differential, in order to Tuning PID Controller.

About pid algorithm, increasable algorithm is used to realize.Increasable algorithm formula is as follows:

Uout=Uk+KP*[E (k)-E (k-1)]+KI*E (k)+KD*[E (k)-2E (k-1)+E (k-2)]

The output uout of increment type, pulsewidth modulation during we are set as actuating motor 11 in program (PWM, Pulse Width Modulation) controls the dutycycle of ripple.Thus the speed of actuating motor 11 can be controlled by this controller according to the value that fuzzy obtains, and reaches desired locations the most more accurately.

Pid algorithm can run in single-chip microcomputer Interruption, selectes the sampling time, utilizes above-mentioned formula, can realize the control of PID during initialization timing device.And for KP, tri-parameters of KI, KD, the data utilizing PID fuzzy control search table to obtain carry out on-line tuning, fuzzy self-turning PID control algorithm can be realized.

The determination of 3.PID initial parameter.About the initial parameter of PID controller, certain method is needed to go to determine.Through frequently with Z-N method in engineering.This controller uses two kinds of methods to determine the initial parameter of PID controller, all can get desired value.

Method one:

After actuating motor 11 and peg 13 (here as curtain rail) are coupled together so that it is maximum that motor PWM controls the dutycycle of ripple, under maximum speed, run motor, obtain curtain by the fully closed time T to standard-sized sheet.

In PID increasable algorithm so that KI=KD=0, choose suitable KP value.By the serial communication with computer, can observe the KP value chosen within the time of T/10 so that motor reaches maximal rate, and this value is exactly suitable KP initial value.

About the determination of KI, KD, same mode is taked i.e. to can determine that.The overshoot of system to be ensured and steady-state error are within the acceptable range.

Method two:

Profit shows a C language setting procedure, utilizes the value determining KP in a program.Z-N tuning formulae KI=0.2KP, KD=1.25KP is finally utilized to obtain complete parameter.The thinking of this setting procedure is, sets the initial value of KP, and the value of KP is increased by T at a certain time interval, sees whether it meets the system requirements set.

This program is the subprogram that PID controls, and revises a little, can realize the requirement of this controller.

Plant running principle

Illumination test section 23, sending the indoor and outdoor light difference signal ER obtained to single-chip microcomputer main control unit 211, single-chip microcomputer main control unit 211 calculates aperture U of curtain, the position that i.e. should arrive by FUZZY ALGORITHMS FOR CONTROL, thus controlling motor drive module so that curtain arrives this position.

Light-blocking member opening amount detection unit 242, send the position that light-blocking member 12 is actually reached to single-chip microcomputer main control unit 211, single-chip microcomputer main control unit 211 corrects the switch degree of curtain by Fuzzy PID, so that light-blocking member 12 arrives user's desired locations more accurately.

Communication unit 22 coordinates with single-chip microcomputer main control unit 211, it is possible to achieve what bluetooth Non-follow control and illumination automatically controlled freely switches.

The effect of embodiment and beneficial effect

The Intelligent curtain controller based on fuzzy that the present embodiment is provided; there is motor controling part, communication unit, illumination test section and position detection part; the single-chip microcomputer main control unit having due to motor controling part therein can be according to the situation of ambient light; carry out fuzzy-adaptation PID control; so that the Intelligent curtain controller of the present invention can accurately control the opening and closing of intelligent curtain, meet Appropriate application nature light and the protection privacy requirements of people.

The Intelligent curtain controller based on fuzzy that the present embodiment is provided, avoidance unit, light-blocking member opening amount detection unit is also included due to position detection part, the controller making the present invention can hide obstacle, light-blocking member opening amount detection unit can detect aperture in real time simultaneously, realize feedback control, thus send control instruction more accurately.

The Intelligent curtain controller based on fuzzy that the present embodiment is provided, owing to wherein avoidance unit is infrared sensor, light-blocking member opening amount detection unit includes multiple Hall element, the two sensor construction is simple, cheap and easy to get, it is more suitable for being used on intelligent curtain so that this controller is easy to spread.

Claims (7)

1. holding of an Intelligent curtain controller based on fuzzy, and described intelligent curtain Row motor is connected to control the folding condition of the light-blocking member of described intelligent curtain, and its feature exists In including:
Motor controling part, and the connection of described actuating motor, be used for sending current signal to drive State the operating of actuating motor;
Communication unit, communicates with extraneous intelligent terminal;
Illumination test section, is arranged on the indoor of described curtain, and the illumination in sensing chamber is strong Degree signal;And
Position detection part, for detecting the position signalling of described light-blocking member,
Wherein, motor controling part includes that single-chip microcomputer main control unit, power subsystem, motor drive list Unit.
Intelligent curtain controller based on fuzzy the most according to claim 1, it is special Levy and be:
Wherein, described position detection part also includes avoidance unit, light-blocking member opening amount detection unit,
Described avoidance unit, for avoiding the obstacle in described light-blocking member moving process,
Described light-blocking member opening amount detection unit, for detecting the opening amount signal of described light-blocking member.
Intelligent curtain controller based on fuzzy the most according to claim 2, it is special Levy and be:
Wherein, described avoidance unit is infrared sensor,
Described light-blocking member opening amount detection unit includes two Hall elements, being separated by four/ One circumference is placed, for detecting turning to and rotating cycle send institute to of described actuating motor State single-chip microcomputer main control unit.
Intelligent curtain controller based on fuzzy the most according to claim 1, it is special Levy and be:
Wherein, described illumination test section is optical sensor BH1750FVI chip.
Intelligent curtain controller based on fuzzy the most according to claim 3, it is special Levy and be:
Wherein, described Hall element is 3144E Hall switch sensor,
Described infrared sensor is that infrared emission receives pipe.
Intelligent curtain controller based on fuzzy the most according to claim 1, it is special Levy and be:
Wherein, the mode that described communication unit communicates with described intelligent terminal is bluetooth or Wi-Fi.
7. an intelligent curtain, including:
Intelligent curtain body, including actuating motor and light-blocking member;And
Controller, and described actuating motor is connected to control the folding condition of described light-blocking member,
Wherein, during described controller is claim 1-5 described in any one based on fuzzy Intelligent curtain controller.
CN201610292215.4A 2016-05-05 2016-05-05 Intelligent curtain controller based on fuzzy PID and intelligent curtain CN105962740A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610292215.4A CN105962740A (en) 2016-05-05 2016-05-05 Intelligent curtain controller based on fuzzy PID and intelligent curtain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610292215.4A CN105962740A (en) 2016-05-05 2016-05-05 Intelligent curtain controller based on fuzzy PID and intelligent curtain

Publications (1)

Publication Number Publication Date
CN105962740A true CN105962740A (en) 2016-09-28

Family

ID=56994767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610292215.4A CN105962740A (en) 2016-05-05 2016-05-05 Intelligent curtain controller based on fuzzy PID and intelligent curtain

Country Status (1)

Country Link
CN (1) CN105962740A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108375916A (en) * 2018-01-17 2018-08-07 深圳市博孚机电有限公司 A kind of application method of the electrically driven curtain based on bluetooth module

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102450939A (en) * 2010-10-27 2012-05-16 西安众智惠泽光电科技有限公司 Intelligent remotely-controlled window curtain
CN203369739U (en) * 2013-06-30 2014-01-01 杭州启泰遮阳技术有限公司 Intelligent sunshade curtain
JP2015192790A (en) * 2014-03-31 2015-11-05 立川ブラインド工業株式会社 Motor-driven curtain controller and program for the same
CN204790482U (en) * 2015-06-25 2015-11-18 天津荣泰建筑门窗有限公司 Intelligence control system in industry rolling slats door
CN105231787A (en) * 2015-11-04 2016-01-13 重庆蓝岸通讯技术有限公司 Curtain control method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102450939A (en) * 2010-10-27 2012-05-16 西安众智惠泽光电科技有限公司 Intelligent remotely-controlled window curtain
CN203369739U (en) * 2013-06-30 2014-01-01 杭州启泰遮阳技术有限公司 Intelligent sunshade curtain
JP2015192790A (en) * 2014-03-31 2015-11-05 立川ブラインド工業株式会社 Motor-driven curtain controller and program for the same
CN204790482U (en) * 2015-06-25 2015-11-18 天津荣泰建筑门窗有限公司 Intelligence control system in industry rolling slats door
CN105231787A (en) * 2015-11-04 2016-01-13 重庆蓝岸通讯技术有限公司 Curtain control method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108375916A (en) * 2018-01-17 2018-08-07 深圳市博孚机电有限公司 A kind of application method of the electrically driven curtain based on bluetooth module

Similar Documents

Publication Publication Date Title
US10827597B2 (en) Controlling light intensity at a location
US9521009B1 (en) Auto-configuration and automation of a building management system
CN204515369U (en) A kind of can the room air monitoring device of intelligent control of household electrical appliance
ES2780677T3 (en) System and method of control of systems and technical components of a building
CN103118465B (en) Indoor lamplight intensity control system and method
CN103245033B (en) Air-conditioner and control method thereof and device
CN102981484B (en) Greenhouse intelligent control system based on internet of things
CN105571046B (en) Air conditioning exhausting state adjusting method and indoor set
CN102374608B (en) Air conditioner and control method controlling on/off of air conditioner
CN103744411A (en) Control method related to ZigBee technology for realizing smart home
CN104295517A (en) Intelligent indoor temperature adjusting system
CN205015770U (en) Agricultural intelligent big -arch shelter control system based on internet of things
CN105972782A (en) Intelligent classroom environment control system and method based on cloud computing technology
CN203022503U (en) Instrumented intelligent safety health door and window
CN106703593B (en) A kind of automatic sensing air hole using electronic technology
CN204827019U (en) Window ware and system of windowing
CN102650876A (en) Real-time energy saving linkage control device and method for intelligent building
WO2006095763A1 (en) Indoor temperature control system
KR20080100917A (en) Intelligent fittings system
AU2014254020A1 (en) Selective execution of scheduled operations by an intelligent controller
CN203396036U (en) Novel fresh air management system
CN204229267U (en) A kind of SCM Based multiplex temperature collection control system
Kristl et al. Fuzzy control system for thermal and visual comfort in building
CN203658882U (en) Automatic control system for solar greenhouse
WO2009056144A3 (en) Method, system and device for controlling a device related to a building aperture

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160928