CN105496162A - Innovative automatic window curtain device - Google Patents
Innovative automatic window curtain device Download PDFInfo
- Publication number
- CN105496162A CN105496162A CN201610053842.2A CN201610053842A CN105496162A CN 105496162 A CN105496162 A CN 105496162A CN 201610053842 A CN201610053842 A CN 201610053842A CN 105496162 A CN105496162 A CN 105496162A
- Authority
- CN
- China
- Prior art keywords
- chute
- chip microcomputer
- automatic curtain
- curtain device
- innovative automatic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000005540 biological transmission Effects 0.000 claims abstract description 16
- 230000001360 synchronised effect Effects 0.000 claims description 16
- 239000000725 suspension Substances 0.000 claims 4
- 238000009434 installation Methods 0.000 abstract description 3
- 238000012545 processing Methods 0.000 description 6
- 238000006073 displacement reaction Methods 0.000 description 4
- 208000033999 Device damage Diseases 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 101000597770 Homo sapiens Tropomodulin-1 Proteins 0.000 description 1
- 102100035291 Tropomodulin-1 Human genes 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47H—FURNISHINGS FOR WINDOWS OR DOORS
- A47H5/00—Devices for drawing draperies, curtains, or the like
- A47H5/02—Devices for opening and closing curtains
-
- A—HUMAN NECESSITIES
- A47—FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
- A47H—FURNISHINGS FOR WINDOWS OR DOORS
- A47H5/00—Devices for drawing draperies, curtains, or the like
- A47H5/02—Devices for opening and closing curtains
- A47H2005/025—Devices for opening and closing curtains controlled by electronic sensors
Landscapes
- Power-Operated Mechanisms For Wings (AREA)
Abstract
本发明公开了一种创新型自动窗帘装置,涉及窗帘技术领域,本发明包括传动装置和控制传动装置的控制装置,传动装置包括墙体框架,所述墙体框架上横向设置有滑槽,所述滑槽上均布有多个用于固定窗帘的滑轮吊钩,滑槽两端设置有同步带轮,两个同步带轮之间绕有同步带,所述同步带的内外两侧分别设置有内固定滑轮吊钩和外固定滑轮吊钩,控制装置包括电路控制盒,电路控制盒设置在墙体框架上;本发明结构简单、安装与操作便捷,提高居住舒适度,它不仅能够实现简单的遥控开关功能,更重要的是它能够随室内光强的变化,自动实现其任意开度开闭优点。
The invention discloses an innovative automatic curtain device, which relates to the technical field of curtains. The invention includes a transmission device and a control device for controlling the transmission device. A plurality of pulley hooks for fixing the curtains are evenly distributed on the chute, timing belt pulleys are arranged at both ends of the chute, and a timing belt is wound between the two timing belt pulleys, and the inner and outer sides of the timing belt are respectively set There are inner fixed pulley hooks and outer fixed pulley hooks, the control device includes a circuit control box, and the circuit control box is arranged on the wall frame; the invention has simple structure, convenient installation and operation, and improves living comfort. The remote control switch function, more importantly, it can automatically realize the advantages of opening and closing at any opening degree with the change of indoor light intensity.
Description
技术领域technical field
本发明涉及窗帘技术领域,更具体的是涉及一种创新型自动窗帘装置。The invention relates to the technical field of curtains, in particular to an innovative automatic curtain device.
背景技术Background technique
随着人们生活水平的提高,窗帘不再是简单的供遮掩家居用品,同时也可以起到很好的装饰效果,传统的窗帘必须手动去开关,特别是别墅或复式的大窗帘,比较重,而且长,使用起来非常不方便。而现在市面上出现的电动遥控窗帘,大都功能单一,结构复杂,维护不方便。With the improvement of people's living standards, curtains are no longer simple household items for covering, but also can play a very good decorative effect. Traditional curtains must be opened and closed manually, especially large curtains for villas or duplexes, which are relatively heavy. And long, very inconvenient to use. However, most of the electric remote control curtains that appear on the market have single functions, complex structures, and inconvenient maintenance.
如何解决上述技术问题成了本领域技术人员的努力方向。How to solve the above technical problems has become the direction of efforts of those skilled in the art.
发明内容Contents of the invention
为了克服上述技术不足,本发明提供一种结构简单、安装与操作便捷、及控制方便的创新型自动窗帘装置。In order to overcome the above technical deficiencies, the present invention provides an innovative automatic curtain device with simple structure, convenient installation and operation, and convenient control.
本发明为了实现上述目的具体采用以下技术方案:The present invention specifically adopts the following technical solutions in order to achieve the above object:
一种创新型自动窗帘装置,包括传动装置和控制传动装置的控制装置,传动装置包括墙体框架,所述墙体框架上横向设置有滑槽,所述滑槽上均布有多个用于固定窗帘的滑轮吊钩,滑槽两端设置有同步带轮,两个同步带轮之间绕有同步带,所述同步带的内外两侧分别设置有内固定滑轮吊钩和外固定滑轮吊钩,控制装置包括电路控制盒,电路控制盒设置在墙体框架上。An innovative automatic curtain device, including a transmission device and a control device for controlling the transmission device, the transmission device includes a wall frame, and a chute is arranged laterally on the wall frame, and a plurality of The pulley hook for fixing the curtain, the two ends of the chute are provided with a synchronous belt pulley, and a synchronous belt is wound between the two synchronous belt pulleys. The inner and outer fixed pulley hooks and outer fixed pulley hangers are respectively arranged on the inner and outer sides of the synchronous belt. The hook, the control device includes a circuit control box, and the circuit control box is arranged on the wall frame.
进一步地,所述电路控制盒上下两端通过L型盒架固定在墙体框架上。Further, the upper and lower ends of the circuit control box are fixed on the wall frame through an L-shaped box frame.
进一步地,所述滑槽两端设置有防止滑轮吊钩脱落的限位块。Further, both ends of the chute are provided with limit blocks to prevent the pulley hook from falling off.
进一步地,所述滑槽通过滑槽固定架固定在墙体框架上。Further, the chute is fixed on the wall frame through a chute fixing bracket.
进一步地,控制装置还包括红外线遥控器模块、红外线接收模块、单片机、测光模块和LCD显示器,测光模块的输出端与单片机的输入端连接,单片机的另一个输入端与红外线接收模块的输出端连接,红外线接收模块的输入端接收红外线遥控器模块的信号,单片机的两个输出端分别与LCD显示器和电动机连接。Further, the control device also includes an infrared remote controller module, an infrared receiving module, a single-chip microcomputer, a light metering module and an LCD display, the output end of the light metering module is connected to the input end of the single-chip microcomputer, and another input end of the single-chip microcomputer is connected to the output of the infrared receiving module. The input terminal of the infrared ray receiving module receives the signal of the infrared remote control module, and the two output terminals of the single-chip microcomputer are respectively connected with the LCD display and the motor.
进一步地,所述测光模块为TSL2560光强传感器。Further, the light metering module is a TSL2560 light intensity sensor.
进一步地,所述单片机为STC89C52单片机。Further, the single-chip microcomputer is a STC89C52 single-chip microcomputer.
工作原理:working principle:
本发明包括传动装置、控制装置,其中控制装置包括自动控制装置和遥控装置,传动装置的功能是通过电动机正转驱动同步带轮带动同步带运动,同步带再带动内固定滑轮吊钩和外固定滑轮由中间分别向滑槽左端和右端移动,从而实现窗帘打开。反之则实现窗帘的关闭;自动控制模块采用TSL2560光强传感器感应外界光强,将信号传递给单片机处理进而控制电机工作,实现窗帘自动打开和关闭;遥控模块主要通过遥控模块的矩阵键盘设置的相应操作向单片机发起对应的中断请求,中断响应完成之后电动机实现正转或者反转,从而实现窗帘的打开与关闭。The present invention includes a transmission device and a control device, wherein the control device includes an automatic control device and a remote control device. The function of the transmission device is to drive the synchronous belt pulley through the forward rotation of the motor to drive the synchronous belt to move, and the synchronous belt drives the inner fixed pulley hook and the outer fixed The pulley moves from the middle to the left end and the right end of the chute, so that the curtain can be opened. On the contrary, the closing of the curtain is realized; the automatic control module adopts TSL2560 light intensity sensor to sense the external light intensity, and transmits the signal to the single chip microcomputer for processing and then controls the motor to work, so as to realize the automatic opening and closing of the curtain; the remote control module mainly sets the corresponding function through the matrix keyboard of the remote control module The operation initiates a corresponding interrupt request to the single-chip microcomputer. After the interrupt response is completed, the motor realizes forward or reverse rotation, thereby realizing the opening and closing of the curtain.
该窗帘装置的开关可以实现“人为遥控控制”和“自动控制”的功能,但“人为遥控控制”处理优先级高于“自动控制”。即无论当窗帘处于开或者关的状态时,都可以通过遥控器实现人们所希望达到的状态。The switch of the curtain device can realize the functions of "manual remote control" and "automatic control", but the processing priority of "manual remote control" is higher than that of "automatic control". That is, no matter when the curtain is in the state of opening or closing, the desired state can be realized by the remote controller.
遥控控制时,当窗帘处于关闭状态时,手动按遥控器上的按钮开,此时单片机处理使控制电机正转,从而通过同步带运动带动固定滑轮吊钩向滑槽左右两端同时移动,使窗帘实现打开的功能;当窗帘处于打开状态,手动按遥控上的按钮关,此时通过单片机处理使控制电机反转,从而通过同步带运动带动固定滑轮吊钩向滑槽中间移动,使窗帘实现关闭的功能。During remote control, when the curtain is closed, manually press the button on the remote control to open, at this time, the single-chip microcomputer processing makes the control motor rotate forward, so that the fixed pulley hook moves to the left and right ends of the chute through the synchronous belt movement, so that The curtain realizes the function of opening; when the curtain is in the open state, manually press the button on the remote control to close, at this time, the control motor is reversed through the processing of the single-chip microcomputer, so that the fixed pulley hook moves to the middle of the chute through the movement of the synchronous belt, so that the curtain can be realized. Disabled functionality.
自动控制时,单片机通过判断光强传感器采集的光强值是否处于预先设定好的室内光强范围,若未处于,则控制电机转动,实现窗帘缓慢的自动开或闭,同时不断检测室内光照强度的值,直到所检测的光强值在规定的范围内或者窗帘已经完全开或闭,发动机停止转动。随着室内光强的不断变化,自动窗帘的开度大小也不断的变化,以控制室内的光强在一定得范围内。而自动窗帘的开度大小由单片机记录发动机正反转的时间来确定此时窗帘的开度情况,这样就不再需要其它传感器来检测窗帘的位置。可以通过遥控器选择不同的模式,在自动模式下设定不同阀值范围。During automatic control, the single-chip microcomputer judges whether the light intensity value collected by the light intensity sensor is within the preset indoor light intensity range. If not, it controls the motor to rotate to realize the slow automatic opening or closing of the curtains, and continuously detects the indoor light intensity at the same time. The value of the intensity, until the detected light intensity value is within the specified range or the curtain has been completely opened or closed, the engine stops rotating. With the continuous change of indoor light intensity, the opening size of the automatic curtain is also constantly changed to control the indoor light intensity within a certain range. And the opening degree of automatic curtain is determined the opening degree situation of curtain at this moment by the time that single-chip microcomputer records engine forward and reverse, so just no longer need other sensors to detect the position of curtain. Different modes can be selected through the remote control, and different threshold ranges can be set in the automatic mode.
本发明的有益效果如下:The beneficial effects of the present invention are as follows:
1、本设计是一种结构简单、功能强大的创新型自动窗帘,它不仅能够实现简单的遥控开关功能,更重要的是它能够随室内光强的变化,自动实现窗帘任意开度,智能调节室内光线强度,并且结构简单,安装与操作便捷,提高居住舒适度,能够满足人们追求高品质生活的需求。1. This design is an innovative automatic curtain with simple structure and powerful function. It can not only realize the simple remote control switch function, but more importantly, it can automatically realize the arbitrary opening of the curtain and intelligently adjust it according to the change of the indoor light intensity. Indoor light intensity, simple structure, convenient installation and operation, improve living comfort, and can meet people's needs for high-quality life.
2、传动装置采用的是同步带传动,噪音小、造价低、便于维护。2. The transmission device adopts synchronous belt transmission, which has low noise, low cost and easy maintenance.
附图说明Description of drawings
图1为本发明的正视图;Fig. 1 is the front view of the present invention;
图2为本发明的左视局部放大图;Fig. 2 is the partial enlarged view of left view of the present invention;
图3为本发明正视局部放大图;Fig. 3 is a partial enlarged view of the front view of the present invention;
图4为本发明斜视局部图;Fig. 4 is the oblique partial view of the present invention;
图5为本发明的上视图;Fig. 5 is the top view of the present invention;
图6为单片机控制模块系统图;Fig. 6 is a system diagram of the single-chip microcomputer control module;
图7为单片机和遥控模块的控制电路图;Fig. 7 is the control circuit diagram of single-chip microcomputer and remote control module;
图中:1—墙体框架,2—滑槽,3—滑轮吊钩,4—滑槽固定架,5—电路控制盒,6—电动机,7—同步带,8—带轮,9—内固定滑轮吊钩,10—外固定滑轮吊钩,11—限位块,12—盒架。In the figure: 1—wall frame, 2—chute, 3—pulley hook, 4—chute fixing frame, 5—circuit control box, 6—motor, 7—synchronous belt, 8—pulley, 9—inner Fixed pulley hook, 10—outer fixed pulley hook, 11—limiting block, 12—box frame.
具体实施方式detailed description
为了本技术领域的人员更好的理解本发明,下面结合附图和以下实施例对本发明作进一步详细描述。In order for those skilled in the art to better understand the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and the following embodiments.
实施例1Example 1
如图1到5所示,本实施例提供一种创新型自动窗帘装置,包括传动装置和控制传动装置的控制装置,其特征在于,传动装置包括墙体框架1,所述墙体框架1上横向设置有滑槽2,所述滑槽2上均布有多个用于固定窗帘的滑轮吊钩3,滑槽2两端设置有同步带轮8,两个同步带轮8之间绕有同步带7,所述同步带7的内外两侧分别设置有内固定滑轮吊钩9和外固定滑轮吊钩(10),控制装置包括电路控制盒5,电路控制盒5设置在墙体框架1上。As shown in Figures 1 to 5, this embodiment provides an innovative automatic curtain device, which includes a transmission device and a control device for controlling the transmission device, and is characterized in that the transmission device includes a wall frame 1, on which the wall frame 1 A chute 2 is arranged horizontally, and a plurality of pulley hooks 3 for fixing curtains are evenly distributed on the chute 2, and a synchronous belt pulley 8 is arranged at both ends of the chute 2, and a belt is wound between the two synchronous belt pulleys 8 Synchronous belt 7, the inner and outer sides of the synchronous belt 7 are respectively provided with an internal fixed pulley hook 9 and an external fixed pulley hook (10), the control device includes a circuit control box 5, and the circuit control box 5 is arranged on the wall frame 1 superior.
所述电路控制盒5上下两端通过L型盒架12固定在墙体框架1上。The upper and lower ends of the circuit control box 5 are fixed on the wall frame 1 through the L-shaped box frame 12 .
所述滑槽2两端设置有防止滑轮吊钩3脱落的限位块11。Both ends of the chute 2 are provided with limiting blocks 11 to prevent the pulley hook 3 from falling off.
所述滑槽2通过滑槽固定架4固定在墙体框架1上。The chute 2 is fixed on the wall frame 1 through the chute fixing bracket 4 .
实施例2Example 2
如图1到5所示,本实施例实在实施例1的基础上做了进一步改进,具体是:所述控制装置还包括红外线遥控器模块、红外线接收模块、单片机、测光模块和LCD显示器,测光模块的输出端与单片机的输入端连接,单片机的另一个输入端与红外线接收模块的输出端连接,红外线接收模块的输入端接收红外线遥控器模块的信号,单片机的两个输出端分别与LCD显示器和电动机连接。As shown in Figures 1 to 5, this embodiment has been further improved on the basis of Embodiment 1, specifically: the control device also includes an infrared remote control module, an infrared receiving module, a single-chip microcomputer, a light metering module and an LCD display, The output end of the light metering module is connected with the input end of the single-chip microcomputer, and the other input end of the single-chip microcomputer is connected with the output end of the infrared ray receiving module, and the input end of the infrared ray receiving module receives the signal of the infrared remote control module, and the two output ends of the single-chip microcomputer are respectively connected with LCD display and motor connection.
所述测光模块为tsl2560光强传感器。The light metering module is a tsl2560 light intensity sensor.
所述单片机为STC89C52单片机The single-chip microcomputer is STC89C52 single-chip microcomputer
当开启自动控制模式的时候,提供三种工作模式供用户选择:分别为低光模式、一般模式、高光模式,每个模式有两个阀值:低阀值和高阀值。通过光强传感器实时感应室内光强,当室内光强处于低阀值与高阀值之间的时候,为窗帘的稳定状态;当室内光强小于低阀值时候,单片机先判断窗帘是否已经完全打开,若已经完全打开,电动机6不工作,防止器件的损坏;若未完全打开,电动机6开始正转,通过同步带轮8,同步带7以及固定滑轮吊钩9、10,缓慢的打开窗帘,同时检测室内光强是否已经高于低阀值,如果高于,则窗帘停止打开,反之则继续打开直至窗帘完全打开;当室内光强高于高阀值的时候,单片机先判断窗帘是否已经完全关闭,若已经完全关闭,电动机6不工作,防止器件的损坏;若未完全关闭,电动机6开始反转,通过同步带轮8,同步带7以及固定滑轮吊钩9、10,缓慢的关闭窗帘,同时即时检测室内光强是否已经低于高阀值,如果低于高阀值,则窗帘停止关闭,反之则继续关闭直至窗帘完全关闭。(低光模式适用于光线比较暗的天气或季节;一般模式适用于光强一般的天气和季节如春秋,低光模式适用于光线较强的天气或季节如晴天、夏季。具体的阀值通过在阴雨天、普通天、晴天等不同光强的测量实验获得。)When the automatic control mode is turned on, three working modes are provided for the user to choose: low light mode, normal mode, and high light mode. Each mode has two thresholds: low threshold and high threshold. The indoor light intensity is sensed in real time by the light intensity sensor. When the indoor light intensity is between the low threshold and the high threshold, the curtain is in a stable state; when the indoor light intensity is less than the low threshold, the microcontroller first judges whether the curtain is fully Open, if it has been fully opened, the motor 6 will not work to prevent damage to the device; if it is not fully opened, the motor 6 will start to rotate forward, and slowly open the curtain through the timing pulley 8, timing belt 7 and fixed pulley hooks 9, 10 , and at the same time detect whether the indoor light intensity is higher than the low threshold, if it is higher, the curtain will stop opening, otherwise it will continue to open until the curtain is fully opened; when the indoor light intensity is higher than the high threshold, the microcontroller first judges whether the curtain has been opened Completely closed, if it is completely closed, the motor 6 does not work to prevent damage to the device; if it is not completely closed, the motor 6 starts to reverse, and it is slowly closed through the timing belt pulley 8, the timing belt 7 and the fixed pulley hook 9, 10 Curtains, and at the same time detect whether the indoor light intensity is lower than the high threshold, if it is lower than the high threshold, the curtain will stop closing, otherwise it will continue to close until the curtain is completely closed. (Low light mode is suitable for weather or seasons with relatively dark light; general mode is suitable for weather and seasons with average light intensity such as spring and autumn, and low light mode is suitable for weather or seasons with strong light such as sunny days and summer. The specific threshold value is set by Obtained from measurement experiments with different light intensities such as cloudy and rainy days, normal days, and sunny days.)
当有人控制的时候,如图6所示,打开遥控器手动控制按钮,“人为遥控”处理优先级高于“自动控制”。按动遥控器上相应开关,通过红外控制器发出控制信号,传输至红外线接收模块,再将得到的信号传输至单片机控制中心STC89C52进行处理,发出响应信号至电动机并控制电动机的正反转,实现窗帘的开关。When someone controls, as shown in Figure 6, turn on the manual control button of the remote control, and the processing priority of "manual remote control" is higher than that of "automatic control". Press the corresponding switch on the remote control, send a control signal through the infrared controller, transmit it to the infrared receiving module, and then transmit the obtained signal to the single-chip control center STC89C52 for processing, send a response signal to the motor and control the forward and reverse rotation of the motor to realize Curtain switch.
控制程序如下:The control procedure is as follows:
//----------------------------------------------------------------------//------------------------------------------------ ----------------------
//窗帘有一个初状态,即窗帘打开,此程序在此基础上完成//The curtain has an initial state, that is, the curtain is open, and this program is completed on this basis
//假设电机正转时窗帘打开//Assume that the curtain is open when the motor is rotating forward
//遥控手动控制开闭后,若想切换到自动模式,一定要时把窗帘完全打开//After the remote control manually controls the opening and closing, if you want to switch to the automatic mode, you must fully open the curtain when necessary
//----------------------------------------------------------------------//------------------------------------------------ ----------------------
#include<reg52.h>#include <reg52.h>
#include<intrins.h>#include <intrins.h>
#include<IR.c>//红外线数据接收子程序#include<IR.c>//Infrared data receiving subroutine
#include<2561.c>//光强传感器tsl2561子程序#include<2561.c>//Light intensity sensor tsl2561 subroutine
sbitB1=P2^0;//B2为高位sbitB1=P2^0;//B2 is the high bit
sbitB2=P2^1;//10正转01反转11停转sbitB2=P2^1;//10 forward rotation, 01 reverse rotation, 11 stop rotation
#defineucharunsignedchar#defineucharunsignedchar
#defineuintunsignedint#defineuintunsignedint
longValue=0;//用于设定光强传感器的阀值longValue=0;//used to set the threshold of the light intensity sensor
uchartemp,t2561=0,state=1;//state=1表示窗户开着的uchartemp, t2561=0, state=1;//state=1 means the window is open
uintt=0,t1=0;//假设电机速度恒定,且5秒完成单边完全打开或关闭的运动,。用时间t1,(向左运动为正方向)uintt=0,t1=0;//Assume that the motor speed is constant, and the movement of one side is fully opened or closed within 5 seconds. Use time t1, (moving to the left is the positive direction)
//来表征固定在传动带上右边的那一个挂钩相对于窗帘最右端距离,此挂钩在最中间时距离为100//To characterize the distance between the hook fixed on the right side of the transmission belt and the rightmost end of the curtain, when the hook is in the middle, the distance is 100
ucharflag_move=2;//2无实意。手动正转时标志位转变为1,反转是为0。ucharflag_move=2;//2 has no real meaning. The flag bit turns to 1 when it is forwarded manually, and it is 0 when it is reversed.
ucharopen=0,confirm=0;//0代表待命,当接收到红外信号时值变为1ucharopen=0,confirm=0;//0 means standby, when the infrared signal is received, the value becomes 1
ucharcodeIR_code[]={0x45,0x46,0x47,ucharcodeIR_code[]={0x45,0x46,0x47,
0x44,0x40,0x43,0x44,0x40,0x43,
0x07,0x15,0x09,0x07,0x15,0x09,
0x16,0x19,0x0d,0x16,0x19,0x0d,
0x0c,0x18,0x5e,0x0c,0x18,0x5e,
0x08,0x1c,0x5a,0x08,0x1c,0x5a,
0x42,0x52,0x4a};0x42,0x52,0x4a};
voidinterrupt_initia()voidinterrupt_initia()
{{
TMOD=0X11;//两个定时器01定时模式均为1TMOD=0X11;//both timer 01 timing modes are 1
EA=1;EA=1;
EX0=1;EX0=1;
ET0=1;ET1=1;//两个定时器的中断允许开关打开ET0=1;ET1=1;//The interrupt enable switch of the two timers is turned on
IT0=1;//中断0采用跳沿触发方式IT0=1;//Interrupt 0 adopts edge trigger mode
TH0=(65536-50000)/256;TH1=(65536-50000)/256;//均定时50MSTH0=(65536-50000)/256; TH1=(65536-50000)/256;//Equal timing 50MS
TL0=(65536-50000)%256;TL1=(65536-50000)%256;TL0=(65536-50000)%256;TL1=(65536-50000)%256;
}}
voidmain()voidmain()
{{
ucharn=0;ucharn=0;
interrupt_initia();interrupt_initia();
IRInit();IRInit();
Read_Light();//光照强度采集Read_Light();//light intensity acquisition
while(1)while(1)
{{
if(open!=0)//等待接收命令if(open!=0)//Waiting to receive commands
{{
while(confirm!=0)//等待输入完成后按下CONFIRM按键while(confirm!=0)//press the CONFIRM button after waiting for the input to be completed
LCD_display(words3);//1602显示“OK”表示设定以已经完成LCD_display(words3);//1602 display "OK" means the setting has been completed
if(Lux>Value)//光照强度很强,应关闭窗户if(Lux>Value)//The light intensity is very strong, the windows should be closed
{if((state=1)||(t1!=100)){if((state=1)||(t1!=100))
B2=1;B1=0;//电机反转,开始关闭窗户B2=1;B1=0;//The motor reverses and starts to close the window
TR0=1;t=0;TR0=1;t=0;
while((t+t1)!=100);//假设电机正转的相对时间为5秒钟完成关闭while((t+t1)!=100);//Assume that the relative time for the motor to rotate forward is 5 seconds to complete the shutdown
state=0;//此时窗户完全闭合state=0;//The window is completely closed at this time
TR0=0;t=0;t1=100;TR0=0;t=0;t1=100;
}}
elseelse
{{
if((state=0)||(t1!=0))//确认窗户闭着再进行开启,防止器件破坏if((state=0)||(t1!=0))//Confirm that the window is closed and then open it to prevent device damage
{{
B2=0;B1=1;//电机正转,窗户开启B2=0;B1=1;//The motor rotates forward and the window opens
TR0=1;t=0;TR0=1;t=0;
while(t!=t1);//当电机运行时间等于手动控制移动的相对位移t1(假设电机运动速度恒定,t1就可以表征相对位移)while(t!=t1);//When the motor running time is equal to the relative displacement t1 of the manual control movement (assuming that the motor movement speed is constant, t1 can represent the relative displacement)
state=1;state=1;
TR0=0;t=0;t1=0;TR0=0;t=0;t1=0;
}}
}}
}}
TR0=1;TR0=1;
if(t=20*120)//定时两分钟,光强传感器两分钟采集一次外部数据if(t=20*120)//time for two minutes, the light sensor collects external data every two minutes
{{
TR0=0;TR0=0;
Read_Light();Read_Light();
if(Lux>Value)//光照强度很强,应关闭窗户if(Lux>Value)//The light intensity is very strong, the windows should be closed
{if((state=1)||(t1!=100)){if((state=1)||(t1!=100))
B2=1;B1=0;//电机反转,开始关闭窗户B2=1;B1=0;//The motor reverses and starts to close the window
TR0=1;t=0;TR0=1;t=0;
while((t+t1)!=100);//假设电机正转的相对时间为5秒钟完成关闭while((t+t1)!=100);//Assume that the relative time for the motor to rotate forward is 5 seconds to complete the shutdown
state=0;//此时窗户完全闭合state=0;//The window is completely closed at this time
TR0=0;t=0;t1=100;TR0=0;t=0;t1=100;
}}
elseelse
{{
if((state=0)||(t1!=0))//确认窗户闭着再进行开启,防止器件破坏if((state=0)||(t1!=0))//Confirm that the window is closed and then open it to prevent device damage
{{
B2=0;B1=1;//电机正转,窗户开启B2=0;B1=1;//The motor rotates forward and the window opens
TR0=1;TR0=1;
while(t!=t1);//当电机运行时间等于手动控制移动的相对位移t1(假设电机运动速度恒定,t1就可以表征相对位移)while(t!=t1);//When the motor running time is equal to the relative displacement t1 of the manual control movement (assuming that the motor movement speed is constant, t1 can represent the relative displacement)
state=1;state=1;
TR0=0;t=0;t1=0;TR0=0;t=0;t1=0;
}}
}}
}}
}}
}}
voidIR_IN()interrupt0using0voidIR_IN()interrupt0using0
{{
red_control();//红外线命令接收程序red_control();//Infrared command receiving program
switch(IRCOM[2])switch(IRCOM[2])
{{
case69:open=1;break;case69:open=1;break;
case70:LCD_Wcmd(0x08);break;//关显示case70:LCD_Wcmd(0x08);break;//Close display
case71:confirm=1;break;case71:confirm=1;break;
case68:B2=0;B1=1;//电机正转,窗户开启case68:B2=0;B1=1;//The motor rotates forward and the window opens
TR1=1;flag_move=1;TR1=1;flag_move=1;
break;break;
case64:B2=1;B1=0;//电机反转,窗户关闭case64:B2=1;B1=0;//The motor reverses and the window closes
flag_move=0;TR1=1;flag_move=0;TR1=1;
break;break;
case67:B2=1;B1=1;//电机停转case67:B2=1;B1=1;//motor stop
TR1=0;TR1=0;
break;break;
default:break;default: break;
}}
}}
voidt00()interrupt1voidt00()interrupt1
{{
TH0=(65536-50000)/256;//定数50MSTH0=(65536-50000)/256;//fixed number 50MS
TL0=(65536-50000)%256;TL0=(65536-50000)%256;
t++;t++;
if(t=20*120)if(t=20*120)
{{
t=0;t=0;
}}
}}
voidt11()interrupt3//用于手动控制电机反转的相对时间的计时,间接确定窗帘开闭的相对位置。voidt11() interrupt3//It is used to manually control the timing of the relative time of motor reversal, and indirectly determine the relative position of curtain opening and closing.
{{
TH1=(65536-50000)/256;//定数50MSTH1=(65536-50000)/256;//fixed number 50MS
TL1=(65536-50000)%256;TL1=(65536-50000)%256;
if(flag_move==1)t1--;if(flag_move==1)t1--;
if(flag_move==0)t1++;if(flag_move==0)t1++;
}}
以上所述,仅为本发明的较佳实施例,并不用以限制本发明,本发明的专利保护范围以权利要求书为准,凡是运用本发明的说明书及附图内容所作的等同结构变化,同理均应包含在本发明的保护范围内。The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention. The scope of patent protection of the present invention is subject to the claims. Any equivalent structural changes made by using the description and accompanying drawings of the present invention, All should be included in the protection scope of the present invention in the same way.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610053842.2A CN105496162A (en) | 2016-01-27 | 2016-01-27 | Innovative automatic window curtain device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610053842.2A CN105496162A (en) | 2016-01-27 | 2016-01-27 | Innovative automatic window curtain device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105496162A true CN105496162A (en) | 2016-04-20 |
Family
ID=55704751
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610053842.2A Pending CN105496162A (en) | 2016-01-27 | 2016-01-27 | Innovative automatic window curtain device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105496162A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106724707A (en) * | 2017-01-18 | 2017-05-31 | 石坤银 | Automatic curtain |
CN107065694A (en) * | 2017-05-26 | 2017-08-18 | 杭州正电科技有限公司 | A kind of tubular motor intelligent control system |
CN107928360A (en) * | 2017-12-11 | 2018-04-20 | 许昌学院 | A kind of passive intelligent curtain Controller based on photovoltaic |
CN108037708A (en) * | 2017-12-29 | 2018-05-15 | 浙江强伟五金有限公司 | A kind of intelligent full control energy-saving curtain lever system and its operating method |
CN110353460A (en) * | 2019-06-25 | 2019-10-22 | 罗龙坤 | A kind of intelligent curtain system |
CN111920286A (en) * | 2020-08-19 | 2020-11-13 | 泰州广亿净环保科技有限公司 | Method and device for regulating indoor illumination intensity |
CN113261839A (en) * | 2021-05-20 | 2021-08-17 | 深圳市索迪新创科技有限公司 | Intelligent household equipment control method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09276122A (en) * | 1996-04-09 | 1997-10-28 | Hiroto Sato | Motor-driven curtain, photosensor for motor-driven blind and automatic switch by alarm clock type remote controller |
CN2553694Y (en) * | 2002-04-10 | 2003-06-04 | 揭雪强 | Driving device of automatic curtain machine |
CN2753247Y (en) * | 2004-10-22 | 2006-01-25 | 姚文锋 | Automatic-switch curtain frame |
CN2774337Y (en) * | 2004-12-03 | 2006-04-26 | 周健生 | Improved automatic remote control device for curtains |
CN201341747Y (en) * | 2009-02-13 | 2009-11-11 | 张宝林 | Double-track interactive remote control electric window curtain |
CN202039760U (en) * | 2011-04-25 | 2011-11-16 | 南京师范大学 | Embedded solar film power generation roller shutter |
CN202723503U (en) * | 2012-04-09 | 2013-02-13 | 陈培洛 | Manual operation and electric operation dual-use curtain control system |
CN103654258A (en) * | 2013-11-30 | 2014-03-26 | 四川邮科通信技术有限公司 | Electronic infrared remote-control curtain based on STC89C52RC single chip microcomputer |
CN205548267U (en) * | 2016-01-27 | 2016-09-07 | 成都大学 | Innovative automatic (window) curtain device |
-
2016
- 2016-01-27 CN CN201610053842.2A patent/CN105496162A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09276122A (en) * | 1996-04-09 | 1997-10-28 | Hiroto Sato | Motor-driven curtain, photosensor for motor-driven blind and automatic switch by alarm clock type remote controller |
CN2553694Y (en) * | 2002-04-10 | 2003-06-04 | 揭雪强 | Driving device of automatic curtain machine |
CN2753247Y (en) * | 2004-10-22 | 2006-01-25 | 姚文锋 | Automatic-switch curtain frame |
CN2774337Y (en) * | 2004-12-03 | 2006-04-26 | 周健生 | Improved automatic remote control device for curtains |
CN201341747Y (en) * | 2009-02-13 | 2009-11-11 | 张宝林 | Double-track interactive remote control electric window curtain |
CN202039760U (en) * | 2011-04-25 | 2011-11-16 | 南京师范大学 | Embedded solar film power generation roller shutter |
CN202723503U (en) * | 2012-04-09 | 2013-02-13 | 陈培洛 | Manual operation and electric operation dual-use curtain control system |
CN103654258A (en) * | 2013-11-30 | 2014-03-26 | 四川邮科通信技术有限公司 | Electronic infrared remote-control curtain based on STC89C52RC single chip microcomputer |
CN205548267U (en) * | 2016-01-27 | 2016-09-07 | 成都大学 | Innovative automatic (window) curtain device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106724707A (en) * | 2017-01-18 | 2017-05-31 | 石坤银 | Automatic curtain |
CN107065694A (en) * | 2017-05-26 | 2017-08-18 | 杭州正电科技有限公司 | A kind of tubular motor intelligent control system |
CN107928360A (en) * | 2017-12-11 | 2018-04-20 | 许昌学院 | A kind of passive intelligent curtain Controller based on photovoltaic |
CN108037708A (en) * | 2017-12-29 | 2018-05-15 | 浙江强伟五金有限公司 | A kind of intelligent full control energy-saving curtain lever system and its operating method |
CN110353460A (en) * | 2019-06-25 | 2019-10-22 | 罗龙坤 | A kind of intelligent curtain system |
CN111920286A (en) * | 2020-08-19 | 2020-11-13 | 泰州广亿净环保科技有限公司 | Method and device for regulating indoor illumination intensity |
CN113261839A (en) * | 2021-05-20 | 2021-08-17 | 深圳市索迪新创科技有限公司 | Intelligent household equipment control method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105496162A (en) | Innovative automatic window curtain device | |
CN201802240U (en) | Multifunctional intelligent window | |
CN204402239U (en) | A kind of curtain Controller | |
CN201262010Y (en) | Smart Window Controls | |
CN103774973A (en) | Intelligent shutter control system and method | |
CN109480592B (en) | Intelligent curtain control system and method utilizing wind energy | |
CN203925234U (en) | A kind of sun blind intelligence control system | |
CN103590738B (en) | Blind window control device and method for adjusting opening degree according to illumination intensity changes | |
CN204299440U (en) | Intelligent solar protection devices | |
CN102361496B (en) | Camera capable of automatically determining existence of people and application of camera in energy conservation | |
CN205370257U (en) | Thing networking smart window | |
CN202810481U (en) | Intelligent window | |
CN106351864A (en) | Automatic temperature control fan | |
CN106639772A (en) | Anti-falling intelligent window | |
CN205548267U (en) | Innovative automatic (window) curtain device | |
CN209460608U (en) | IoT-based multi-sensor smart window remote monitoring system | |
CN209911780U (en) | Intelligent household equipment control system | |
CN202537076U (en) | Curtain capable of being automatically opened and closed | |
CN206785200U (en) | Full-automatic window closing device based on rainwater sensing and infrared induction | |
CN110786712A (en) | Curtain control system, method and motorized curtain | |
CN207020482U (en) | A kind of indoor air quality monitoring and the switch window system of windproof and rain proof | |
CN206233782U (en) | A kind of Anti-fall intelligent window | |
CN209463817U (en) | A light-sensing control curtain | |
CN210977047U (en) | An intelligent switch window device | |
CN113057487A (en) | Roman rod curtain opening and closing device and control system thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160420 |