201033033 六、發明說明: 【發明所屬之技術領域】 本發明涉及一種智能車窗的裝置與控制方法,尤其是控 制車窗的開啟程度以引進車外自然風調節車内溫度。 【先前技術】 在全球能源愈來愈短缺以及全球暖化的雙重影響下, 開發各式各樣的節能裝置已是全球的趨勢,而當車輛停泊 時車内的,JBL度#常因為陽光或車子引擎溫度的輻射而升 馬,-方面造成車主進入車内時的不舒適感,也因在高溫 之下,車子内裝材料會釋放有毒物質,而造成危害·因此 如何避免車内的溫度過高便成為一個重要的需求。 目前的作法是朗f力闕的送風方式並配合車内冷 氣以”周降車内溫度’或用電力風扇料車外自然風進入車 内’然而在車内冷氣空調下使収扇只能加強局部的降溫 效果’或只是降溫喊覺’對整體車时均溫度來說,其 實反而是會上升’因為車_送縣身便會增加車内的空 氣能量,補能量絲錢是溫度,車⑽冷氣控制系統 為保持車_溫度,杉彳林加強冷㈣的操作功率以移 除額外的熱量,如此便需消耗更多的電力。 目别利用電力風扇導引車外自然風進入車内的缺點 是’車窗關啟程度是由駕駛操作U車輛具有四扇 車門的車窗以及車頂岐窗,紐要賴車射—路注意 3 201033033 車内外溫度’隨時調整車窗以引進適當的車外自然風會造 成行車安全的疑慮,同時操作上也很不方便。 因此,需要一種自動控制車窗開啟程度的智能車窗, 同時需具有防止意外夾傷的安全防護以及在下雨時關閉車 囪並停止車窗自動開啟的功能,以解決習用技術的缺點。 【發明内容】201033033 VI. Description of the Invention: [Technical Field] The present invention relates to a device and a control method for a smart window, and particularly to controlling the opening degree of a window to introduce an outside air temperature to adjust the temperature inside the vehicle. [Prior Art] Under the dual influence of global energy shortage and global warming, the development of various energy-saving devices is a global trend. When the vehicle is parked, the JBL degree # often is due to sunlight or the car. The temperature of the engine rises and rises, which causes the owner to feel uncomfortable when entering the car. Because of the high temperature, the car interior material will release toxic substances, which will cause harm. Therefore, how to avoid the excessive temperature inside the car becomes An important need. The current practice is to use the air supply method of the lang 阙 并 并 并 并 配合 配合 配合 配合 配合 配合 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车 车Or just cool down and feel that 'the average temperature of the whole car, in fact, it will rise instead' because the car _ send the county will increase the air energy inside the car, make up the energy is the temperature, the car (10) air-conditioning control system to keep the car _ Temperature, Sugi Yulin strengthens the cold (four) operating power to remove extra heat, so it needs to consume more power. The disadvantage of using the electric fan to guide the natural wind outside the car into the car is that the 'window level is By driving the U vehicle, the window with four doors and the roof window, New Zealand depends on the car - road attention 3 201033033 The temperature inside and outside the car 'adjust the window at any time to introduce the appropriate outside natural wind will cause driving safety doubts, At the same time, it is also very inconvenient to operate. Therefore, there is a need for a smart window that automatically controls the degree of opening of the window, and at the same time, it is required to have safety protection against accidental pinching. Hang in the rain closed car windows automatically open and stop functions, in order to address the shortcomings of conventional techniques. SUMMARY OF THE INVENTION
一本發明之主要目的在提供一種智能車窗的控制方法, 藉車内溫度與預設溫度的溫差,開啟車窗到適當程度,以 便利用自然風調節車内溫度。該方法利用適當歸屬函數對 ,差進行确化處理’並配合預設賴糊刪,藉由最大 最小合成法進行模糊推論演算,接著以中心最大演曾 =模掏處理’並輸出馬達驅動信號,讓馬達驅動I驅動 …達運轉’拉動智能車窗,在相溫度太高時,車窗 進衫的自賴,歧在車响度不高時, 讓車固的開啟程度變小,減少自然風引進車内 然風調節車内溫度的效應。 窗框 ,發明之另—目的在提供—種智能車窗裝置係包括 框、一移動窗、一馬達驅動、一民、 器以及-主控制器,其中該溫度感測器=車:溫度感測 ::内溫度’並將感測信號傳送到該主控器 模糊化處理、模糊推論處理、解模糊處理,輪出= ::動信號到該馬達驅動器,由馬達驅動器驅動該= 轉動,進而拉動車窗至適當的位置。 、’、達而 4 201033033 ' 王g肖匕囡尸衣置, 步包括-超音波感·,㈣感測是否有障礙物位 本發明之另-目的在提供—種智能窗戶裝置係進一 f移動路徑上,比如是否有人靠近該智能 本發明之另-目的在提供—種智能窗戶裝置係進一 步包括-雨測器,用以感測是否下雨,並在下雨時傳送下A main object of the present invention is to provide a control method for a smart window, which utilizes a temperature difference between a temperature inside the vehicle and a preset temperature to open the window to an appropriate degree to facilitate adjustment of the interior temperature by natural wind. The method uses the appropriate attribution function pair, the difference is reduced, and the default inference is deleted. The fuzzy inference calculation is performed by the maximum and minimum synthesis method, and then the central maximum performance is processed and the motor drive signal is output. Let the motor drive I drive... to run 'pull the smart window, when the phase temperature is too high, the window enters the shirt's self-reliance, when the car's loudness is not high, the car's opening degree is reduced, reducing the natural wind introduction The inside of the car regulates the effect of the temperature inside the car. Window frame, another object of the invention - aims to provide a smart window device comprising a frame, a moving window, a motor drive, a civilian, a main controller, wherein the temperature sensor = car: temperature sensing :: internal temperature' and transmit the sensing signal to the main controller fuzzification processing, fuzzy inference processing, defuzzification processing, turn out =:: move signal to the motor driver, the motor driver drives the = rotation, and then pulls The window is in the proper position. , ',达和4 201033033 ' Wang g Xiao 匕囡 匕囡 置 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , For example, if someone is close to the smart invention, the other is to provide a smart window device system further comprising a rain detector for sensing whether it is raining and transmitting under rain.
雨信號給主控制器,主控制器便會停止車窗的自動開啟功 能’而使車窗關閉。 、藉由本發明的智能車窗,能控制車窗的開啟程度,引 進適當的自然風,同時本發明的超音波_雜提供防止 夹傷的安全機制,且本發明的雨測器能避免雨水進入車 内’進一步提供智能車窗的安全性與方便性。 【實施方式】 以下配合圖式及元件符號對本發明之實施方式做更詳 細的說明,俾使熟習該項技藝者在研讀本說明書後能據以 實施。 參閱第一圖,依據本發明第一實施例之智能車窗裝置 的系統架構示意圖,該智能車窗裝置包括一車窗框10、一 移動窗12、一馬達14、一馬達驅動器16、一主控制器a、 一傳動機構19、一雨測器20、一溫度感測器21以及一超 音波感測器22。溫度感測器21位於車内,用以感測車内溫 度,並將温度信號TP傳送到該主控制器18,主控制器ι8 求出溫度信號TP的溫度與預設溫度TR之溫差TD,並利用 模糊處理而輸出馬達驅動控制信號MDRV給馬達驅動器16, 5 201033033 ,=== 亥馬達驅動控制信㈣而輪出馬達 m 使馬達14轉動並拉動該傳動機構 馬達14拉動,到達所需,立構置19^另一端的移動窗12便被 機構19是指能將馬達14 ^旦意值的是’圖式中的傳動 置’比如_輪組與皮帶茲:到移動窗12的裝 參 ❿ 銘健19 用表不疋否有障礙物在 =:動路徑上。如果有障礙物在移動窗12的移 制器18接收該障礙物偵測信號SS後, τ發运馬達驅動控制信號職v,以停止馬達的 細則12夹傷,提 雨測器20配置於車外,用以_是否下雨,並產生下 =賴’主控制器18接收到下雨信_後會關閉移 囪。 上述車窗框10可位於該車的頂部當作車項天窗 於側邊車門上當作車門的車窗。 參閱第二圖’依據本發明第一實施例之智能車窗裝置 的主控制II的功能方塊圖。如第二_示,主控制器18包 括-減法器23、-延遲器24、-第-乘法器25、-第二乘 法器26、一類比至數位轉換器(Anai〇g_tc)_Digitai c_rter,ADC)27、一第三乘法器28以及一模糊邏輯模 組30,其中該ADC 27將類比的溫度信號τρ轉換成數位溫 度#號TPD,由減法器23減去預設溫度TR得到溫差TD。 弟乘法器25將溫差TD乘上第一比例因子jQ後得到第一 201033033 溫差信號SIN1並輸入到模糊邏輯模組3〇。另外,溫差TD 經延遲器24後得到第二溫差信號SIN2,並經第二乘法器 26乘上第二比例因子K2後得到第二輸入信號SIN2而輸入 到模糊邏輯模組30。模糊邏輯模組3〇對第一溫差信號siNl 與第二溫差信號SIN2進行模糊處理得到開窗輸出信號 S0UT。第二乘法器28將開窗輸出信號s〇UT乘上第三比例 因子K3後得到馬達驅動控制信號MDRV。第一比例因子π、 第二比例因子Κ2以及第三比姻子Κ3視系制最佳操作 參 條件而定,比如輸入值太小時增大比例因子,而輸入值太 大時減小比例因子,使得後續處理單元能在最大範圍内進 行最佳操作。 智能車窗裝置可進一步包括超音波感測器22,安置於 該車窗框10上,對準移動窗12的移動路徑,用以感測在 该移動窗12的移動路徑上的障礙物,產生障礙物偵測信號 ss,並傳送給主控制器18,而主控制器18接收障礙物偵測 信號ss後,停止發送馬達驅動控制信號]^)1^,使馬達14 φ 停止’進而停止該移動窗12的移動。 此外’智能車窗裝置可再包括雨測器2〇,安置於車外, 用以在下雨時產生下雨信號RN並傳送給主控制器18,而主 控制器18依據該下雨信號RN以關閉該移動窗12。 以下將詳細說明模糊邏輯模組的操作。參閱第三圖, 依據本發明第一實施例之智能車窗裝置的模糊羅輯模組的 功能方塊圖。該模糊邏輯模組3〇包括一模糊化模組31、一 模糊推論模組33、一模糊資料庫35、一解模糊模組37,其 中該模糊化模組31利用内建的歸屬函數對第一溫差信號八 SIN1與第二溫差信號SIN2進行模糊化處理,以輸出歸屬度 7 201033033 DT (Degree 〇f Truth)給模糊推論模組羽,接著模糊推論 模組33依據模糊資料庫35中所定義的模糊規則,利用最 大最小合成法求出第-溫差錢_料二溫差信號讀 的相對絲顧_ FV。解_漁37魏推論模糊值 FV,並利财喊賴算法進行峨魏理,轉得開窗 輸出信號S0UT。When the rain signal is given to the main controller, the main controller will stop the automatic opening function of the window and the window will be closed. With the smart window of the present invention, it is possible to control the opening degree of the window and introduce an appropriate natural wind, and the ultrasonic wave of the present invention provides a safety mechanism for preventing pinching, and the rain detector of the present invention can prevent rainwater from entering. The interior of the car further provides the safety and convenience of smart windows. [Embodiment] Hereinafter, the embodiments of the present invention will be described in more detail with reference to the drawings and the reference numerals, and those skilled in the art can implement the present invention after studying the present specification. Referring to the first figure, a schematic diagram of a system architecture of a smart window device according to a first embodiment of the present invention includes a window frame 10, a moving window 12, a motor 14, a motor driver 16, and a main The controller a, a transmission mechanism 19, a rain detector 20, a temperature sensor 21, and an ultrasonic sensor 22. The temperature sensor 21 is located in the vehicle for sensing the temperature inside the vehicle, and transmits the temperature signal TP to the main controller 18. The main controller ι8 determines the temperature difference TD between the temperature of the temperature signal TP and the preset temperature TR, and utilizes Blur processing and output motor drive control signal MDRV to motor driver 16, 5 201033033, === hai motor drive control signal (4) and take out motor m to rotate motor 14 and pull the transmission motor 14 to pull, reach the desired, stereo The moving window 12 at the other end of the 19^ is the mechanism 19 that can be used to set the motor 14 to the value of the 'transmission in the drawing', such as the wheel set and the belt: to the moving window 12 Jian 19 use the table to see if there are obstacles on the =: moving path. If an obstacle is received by the shifter 18 of the moving window 12, the τ sends a motor drive control signal v to stop the pin 12 of the motor, and the rain detector 20 is disposed outside the vehicle. , used to _ whether it rains, and produces the next = Lai 'the main controller 18 receives the rain letter _ will close the shift. The window frame 10 described above may be located at the top of the vehicle as a window of the vehicle sunroof on the side door as a door. Referring to the second figure, a functional block diagram of the main control II of the smart window unit according to the first embodiment of the present invention. As shown in the second example, the main controller 18 includes a subtractor 23, a delayer 24, a -multiplier 25, a second multiplier 26, an analog to digital converter (Anai〇g_tc)_Digitai c_rter, ADC. 27, a third multiplier 28 and a fuzzy logic module 30, wherein the ADC 27 converts the analog temperature signal τρ into a digital temperature ##TPD, and the preset temperature TR is subtracted by the subtractor 23 to obtain a temperature difference TD. The multiplier 25 multiplies the temperature difference TD by the first scale factor jQ to obtain the first 201033033 temperature difference signal SIN1 and inputs it to the fuzzy logic module 3〇. In addition, the temperature difference TD is obtained by the delay unit 24 to obtain the second temperature difference signal SIN2, and is multiplied by the second multiplier 26 to obtain the second input signal SIN2 to be input to the fuzzy logic module 30. The fuzzy logic module 3 模糊 blurs the first temperature difference signal siN1 and the second temperature difference signal SIN2 to obtain a windowed output signal SOUT. The second multiplier 28 multiplies the windowed output signal s〇UT by the third scale factor K3 to obtain a motor drive control signal MDRV. The first scale factor π, the second scale factor Κ2, and the third ratio are based on the optimal operating parameters of the system. For example, if the input value is too small, the scale factor is increased, and when the input value is too large, the scale factor is decreased. This allows subsequent processing units to perform optimally within the widest range. The smart window device may further include an ultrasonic sensor 22 disposed on the window frame 10 to align the moving path of the moving window 12 for sensing an obstacle on the moving path of the moving window 12, and generating The obstacle detection signal ss is transmitted to the main controller 18, and after receiving the obstacle detection signal ss, the main controller 18 stops transmitting the motor drive control signal]^)1^, causing the motor 14φ to stop' and then stops the The movement of the window 12 is moved. In addition, the 'smart window device can further include a rain detector 2〇 disposed outside the vehicle for generating a rain signal RN when it is raining and transmitting it to the main controller 18, and the main controller 18 is turned off according to the rain signal RN. The moving window 12. The operation of the fuzzy logic module will be described in detail below. Referring to the third figure, a functional block diagram of a fuzzy array module of a smart window device according to a first embodiment of the present invention. The fuzzy logic module 3 includes a fuzzy module 31, a fuzzy inference module 33, a fuzzy database 35, and a defuzzification module 37, wherein the fuzzification module 31 utilizes a built-in attribution function pair A temperature difference signal eight SIN1 and a second temperature difference signal SIN2 are fuzzified to output a degree of attribution 7 201033033 DT (Degree 〇f Truth) to the fuzzy inference module feather, and then the fuzzy inference module 33 is defined according to the fuzzy database 35 The fuzzy rule, using the maximum and minimum synthesis method to find the relative difference between the first temperature difference and the second temperature difference signal reading _ FV. Solution _ Yu 37 Wei inferred the fuzzy value FV, and Li Cai shouted the algorithm to carry out Wei Li, turned to open the window output signal S0UT.
B以下將舉-實例說明模糊化模組31的操作。要注意的 是’本實施射所使㈣參數只是肋方便_而已^ 發明的範圍並不受限於此。 模糊中間預設值為125。〇,比例因子為12,則 模糊輸出值=模糊中間預設值+溫差χ比例因子 =125 + TD X 12 比如溫差TD為+3t:時’亦即車内溫度高於預設溫度代, 則模糊輸出值為⑻,岐溫差料贫時,亦 度低於預設溫度2。(:,則模糊輸出值為1〇卜 酿 以下將詳細說明模糊化模組31的歸屬函數。參閱第四 圖’本發明第—實施例之智能車窗裝置的歸屬函數示音 Γτ 前的溫差進行糊處理,其中縱轴為歸i度 DT ’板軸為上義翻輪纽,觸函細線a、s S4、S5分別代表很小(very—smaU)、小“⑴、 (mediuffl) . A(large) . ^A(very_large)^if;|^^ 0 „ 目則的溫差TD為+3t來說,第四圖顯示模糊輸出值為 日、與歸屬函數曲線S3與S4分別被於歸屬度DT 與0.78,物理4義是該溫度是適巾又有—轉。為〇· 22 - 五^本發明第—實施例之智能車妓置的另 知屬函數^圖’用以針對前—次的溫差進行糊處理, 8 201033033 圖中顯示出代表歸屬函數negative、zer〇、卿出呢的歸 屬函數曲線B卜B2、B3。以前-次的溫差TD為-2t:來說, 第五圖顯示模糊輸出值為101時與歸屬函數曲線B1與B2 ^別相交於歸屬度DT為G. 43與G. 58,物理意義是該溫度 是適中又有一點冷。因此,本實施例的參數代表的條件是, 前-次的溫度是有-點冷,而目前的溫差是有一點熱。 接著參閱表一,本實施例的模糊規則。本實施例共有 15條模糊規則’其中IF與ΊΉΕΝ表示條件與結果,IF的條 罄 件ch-err代表前一次的歸屬函數,包括負數(negative)、 零(zero)以及正數(Positive),而IF的條error代表目前 的歸屬函數’包括很小(Very—small)、小(_丨1)、中等 (medium)、大(large)、很大(very—large),THEN 的結果包 括很小(very一small)、小(观⑴、中等(medium)、大 (large)、很大(very_iarge)。比如條件u是指前一次的 歸屬函數為零(zero)而且目前的歸屬函數為大(large),則 開窗位置為小(small)。 謇 參閱表一,模糊資料庫的二維矩陣表列,亦即以矩陣 方式表示表1的所有狀況。表一或表二的資料是儲存在模 糊資料庫35中’而模糊推論模組33則依據上述規則進行 最大最小合成法的推論處理,得到smaU時的歸屬度耵為 0.58,以及medium時的歸屬度DT為0.22,亦即第三圖的 推論模糊值FV包括small時〇· 58的歸屬度以及medium時 0.22的歸屬度。 以下將詳細說明解模糊模組37的操作。參閱第六圖, 本發明第一實施例之智能車窗裝置的解模糊模組的CoM示 意圖’其中歸屬函數曲線S2(small)的歸屬度DT為0.58, 9 201033033 中間值為85,而歸屬函數曲線S3 (medium)的歸屬度DT為 0· 22,中間值為13〇。解模糊模組37接收推論模糊值Fv 依據如下的CoM計算式: Μ S她)赚動·22*1, φ 表令間值,"代表歸屬度。因此,得到開窗輸出 佗唬S0UT為96。 f由本發_智能車冑裝置驗據糊溫度與預設溫 度之/皿差以控制車窗的開啟程度,進而引進車外的自 以調節車恤度,_節㈣效應,W又具杨止夹傷 ==。要注意的是’本實施例只顯示出包含一扇移 =的車但是本發明可適關包含複數個_窗的 單囪框。 本發明的第二實施例是提供控制智能車窗的方法,利 用第-實施例n贿構,以控制車窗開啟的程度。 料1^七1依據本發邮二實施例之控制智能車窗 /、机程圖。第七圖顯示出本發明的控制流程 謂:1始’接著進行步驟_,將模糊邏輯模組30啟:B. The operation of the fuzzification module 31 will be described below by way of example. It should be noted that the 'fourth parameter' is only convenient for the ribs. The scope of the invention is not limited thereto. The fuzzy intermediate preset value is 125. 〇, the scale factor is 12, then the fuzzy output value = fuzzy intermediate preset value + temperature difference χ scale factor = 125 + TD X 12 For example, if the temperature difference TD is +3t: when the inside temperature is higher than the preset temperature generation, then blur The output value is (8), and the temperature difference is lower than the preset temperature 2 when the temperature difference is poor. (:, the fuzzy output value is 1 〇 Brewing The following will explain in detail the attribution function of the fuzzification module 31. Referring to the fourth figure, the temperature difference before the attribution function Γτ of the smart window device of the first embodiment of the present invention Paste processing, in which the vertical axis is the Δ DT 'plate axis is the upper cockerel turn, the touch line thin lines a, s S4, S5 respectively represent very small (very-smaU), small "(1), (mediuffl). A (large) . ^A(very_large)^if;|^^ 0 „ The temperature difference TD of the target is +3t, the fourth figure shows the fuzzy output value as the day, and the attribution function curves S3 and S4 are respectively attributed to the attribution DT and 0.78, the physical meaning is that the temperature is suitable for the towel and there is - turn. For the 〇 · 22 - five ^ the second embodiment of the invention of the smart car device of the other known function ^ map 'for the front - time The temperature difference is paste processed, 8 201033033 The figure shows the attribution function curve B, B2, B3 representing the attribution function negative, zer〇, and qing. The previous-time temperature difference TD is -2t: For example, the fifth figure shows The fuzzy output value is 101 and the attribution function curves B1 and B2 ^ are intersected at the attribution degree DT is G. 43 and G. 58, the physical meaning is that the temperature is There is a little bit of cold in the middle. Therefore, the parameters of this embodiment represent the condition that the pre-time temperature is a point-point cold, and the current temperature difference is a little hot. Next, refer to Table 1, the fuzzy rule of this embodiment. This embodiment has a total of 15 fuzzy rules 'where IF and ΊΉΕΝ represent conditions and results, and the IF ch ch ch-err represents the previous attribution function, including negative (negative), zero (zero), and positive (Positive). The IF bar error represents the current attribution function 'Very-small, small (_丨1), medium, large, very-large, THEN results include very small (very a small), small (view (1), medium (medium), large (large), large (very_iarge). For example, the condition u means that the previous attribution function is zero (zero) and the current attribution function is large ( Large), the window opening position is small. 謇 Refer to Table 1, the two-dimensional matrix table of the fuzzy database, that is, all the conditions of Table 1 are represented in a matrix. The data of Table 1 or Table 2 is stored in The fuzzy inference module 33 in the fuzzy database 35 is based on the above rules. The inference process of the maximum and minimum synthesis method is performed, and the attribution degree 得到 of smaU is 0.58, and the attribution degree DT of medium is 0.22, that is, the inference fuzzy value FV of the third figure includes the attribution degree of 〇·58 and the medium of small. The degree of attribution of 0.22. The operation of the deblurring module 37 will be described in detail below. Referring to the sixth figure, the CoM diagram of the deblurring module of the smart window device of the first embodiment of the present invention has a attribution degree DT of the attribution function curve S2 (small) of 0.58, 9 201033033, and an intermediate value of 85, and a attribution function. The attribution degree DT of the curve S3 (medium) is 0·22, and the intermediate value is 13〇. The deblurring module 37 receives the inference fuzzy value Fv according to the following CoM calculation formula: Μ S she) earns · 22 * 1, φ inter-arrival value, " represents attribution. Therefore, the window output 佗唬SOUT is 96. f by the hair _ smart rut device inspection paste temperature and preset temperature / dish difference to control the degree of opening of the window, and then introduce the car outside the adjustment of the car, _ section (four) effect, W and Yang clip Injury ==. It is to be noted that this embodiment only shows a car that includes a shift = but the present invention can accommodate a single chisel frame containing a plurality of _windows. A second embodiment of the present invention provides a method of controlling a smart window that utilizes the first embodiment to control the degree of window opening. Material 1^7 1 According to the embodiment of the present invention, the smart window/machine diagram is controlled. The seventh figure shows the control flow of the present invention: 1 start then step _, the fuzzy logic module 30 is activated:
t,其中該翻邏輯 3G包括模她31、模糊推L 目"^f ^ 37’之舰倾測。在步驟^ 中將則車内溫度經ADC27轉換成數位式目前車 信號,由_倾組31求錄位式目前轴 = 設溫度之_第-溫差,並針對前—次賴溫度求出遽與與預預 201033033 设溫度之間的第二溫差,_使肋建的複數個歸屬函數 進仃模糊化處理’產生歸屬度DT給模糊推論模組33。接著 在步驟S130中,模糊推論模組33依據模糊資料庫35 e 規則,利用最大最小合成法’進行模糊推論處 理,產生推論模糊值FV給解模糊模組37,並進入步驟 S140,由解模糊模组37利用中心最大演算法進行^模 理,以獲得開窗輸出信號sout。接著在步驟S150中,如 雨測器發出下雨信號,則產生關閉車窗的馬達驅動控制信 號MDRV,如果超音波感測器發出障礙物侦測信號,^呆^寺 驅動控制信號歷v ’亦即馬達驅動控制信號隨 錄位準而不做改變,以使馬達立即停止,侧將 S0UT乘上一比例因子產生馬達驅動控制信號‘ '、口馬達驅動器16 ’並進入步驟S160。在步驟si6〇中由 =達驅動器16產生馬達驅動信號DV給馬達14。在步驟sl7〇 ’馬,依據馬達驅動信號DV而轉動,並帶動傳動機 :9。在乂驟_中,傳動機構_動移動窗12。麸後 控制流成回到步驟12G,重複上述流程。 ,本發明控制智能車窗的方法具有自動控制車窗 開啟程度的魏,同時具有自_節車内溫度的節能效應。 X上所述者僅為用以轉本發明之較佳實施例,並非 以對本發明做任何形式上之限制,是以,凡有在相 精神下所作有關本發明之任何修飾或變更,皆仍 應匕括在本發明意圖保護之範疇。 11 201033033 【圖式簡單說明】 第一圖為顯示依據本發明第一實施例之智能車窗裝置的 系統架構示意圖。 第一圖為顯示依據本發明第一實施例之智能車窗裝置的 主控制器的功能方塊圖。 第二圖為顯示依據本發明第一實施例之智能車窗裝置的 模糊羅輯模組的功能方塊。 第四圖為顯示依據本發明第一實施例之智能車窗裝置的 歸屬函數示意圖。 第五圖為顯示依據本發明第一實施例之智能車窗裝置的 另一歸屬函數示意圖。 第六圖為顯示依據本發明第一實施例之智能車窗裝置的 解模糊模組的CoM示意圖。 第七圖為顯示依據本發明第二實施例之控制智能車窗方 法的流程圖。 表一為顯示依據本發明第一實施例的模糊規則。 表二為顯示依據本發明第一實施例的模糊資料庫 矩陣表列。 一、’隹 【主要元件符號說明】 10車窗框 12移動窗 14馬達 16馬達驅動器 18主控制器 201033033 19傳動機構 20雨測器 21溫度感測器 22超音波感測器 23減法器 24延遲器(DL)t, where the logic 3G includes the model 31, the fuzzy push L " ^f ^ 37' ship survey. In step ^, the temperature inside the car is converted into a digital current car signal by ADC27, and the current axis of the recording position is determined by the _ tilt group 31 = the temperature difference of the temperature is set, and the — and Pre-201033033 sets the second temperature difference between the temperatures, _ causes the ridge to establish a plurality of attribution functions to perform the fuzzification process to generate the attribution DT to the fuzzy inference module 33. Next, in step S130, the fuzzy inference module 33 performs fuzzy inference processing using the maximum and minimum synthesis method according to the fuzzy database 35 e rule, generates an inference fuzzy value FV to the deblurring module 37, and proceeds to step S140, where the fuzzy is performed. The module 37 performs the ^ modulus using the central maximum algorithm to obtain the windowed output signal sout. Next, in step S150, if the rain detector sends a rain signal, a motor drive control signal MDRV for closing the window is generated. If the ultrasonic sensor emits an obstacle detection signal, the ^^^^^^^^^^^^ That is, the motor drive control signal is not changed with the recording level to stop the motor immediately, and the side multiplies the S0UT by a proportional factor to generate the motor drive control signal '', the port motor driver 16' and proceeds to step S160. The motor drive signal DV is generated by the = up driver 16 to the motor 14 in step si6. In step s17, the horse is rotated according to the motor drive signal DV, and drives the conveyor: 9. In the step _, the transmission mechanism moves the window 12. After the bran control flows back to step 12G, the above procedure is repeated. The method for controlling the smart window of the invention has the function of automatically controlling the degree of opening of the window, and has the energy saving effect of the temperature inside the car. The above description is only for the preferred embodiment of the invention, and is not intended to limit the invention in any way, so that any modifications or changes relating to the invention made in the spirit of the invention are still It should be included in the scope of the intention of the present invention. 11 201033033 [Simplified description of the drawings] The first figure is a schematic diagram showing the system architecture of the smart window device according to the first embodiment of the present invention. The first figure is a functional block diagram showing a main controller of a smart window device according to a first embodiment of the present invention. The second figure is a functional block showing a fuzzy array module of the smart window device according to the first embodiment of the present invention. The fourth figure is a schematic diagram showing the attribution function of the smart window device according to the first embodiment of the present invention. Fig. 5 is a view showing another attribution function of the smart window unit according to the first embodiment of the present invention. Figure 6 is a diagram showing the CoM of the deblurring module of the smart window device according to the first embodiment of the present invention. Figure 7 is a flow chart showing a method of controlling a smart window in accordance with a second embodiment of the present invention. Table 1 shows the fuzzy rules in accordance with the first embodiment of the present invention. Table 2 is a table showing the fuzzy database matrix in accordance with the first embodiment of the present invention. 1. '隹 [Main component symbol description] 10 car window frame 12 moving window 14 motor 16 motor driver 18 main controller 201033033 19 transmission mechanism 20 rain detector 21 temperature sensor 22 ultrasonic sensor 23 subtractor 24 delay (DL)
25第一乘法器 26第二乘法器 27類比至數位轉換器(ADC) 28第三乘法器 30模糊邏輯模組(FZM) 31模糊化模組 33模糊推論模組 35模糊資料庫 37解模糊模組 B1、B2、B3歸屬函數曲線 DT歸屬度 DV馬達驅動信號 FV推論模糊值 K1第一比例因子 K2第二比例因子 K3第三比例因子 MDRV馬達驅動控制信號 RN下雨信號 SI、S2、S3、S4、S5歸屬函數曲線 SIN1第一溫差信號 13 201033033 SIN2第二溫差信號 S0UT開窗輸出信號 SS障礙物偵測信號 TD溫差 TP溫度信號 TR預設溫度25 first multiplier 26 second multiplier 27 analog to digital converter (ADC) 28 third multiplier 30 fuzzy logic module (FZM) 31 fuzzification module 33 fuzzy inference module 35 fuzzy database 37 defuzzification mode Group B1, B2, B3 attribution function curve DT attribution degree DV motor drive signal FV inference fuzzy value K1 first scale factor K2 second scale factor K3 third scale factor MDRV motor drive control signal RN rain signal SI, S2, S3, S4, S5 attribution function curve SIN1 first temperature difference signal 13 201033033 SIN2 second temperature difference signal S0UT window output signal SS obstacle detection signal TD temperature difference TP temperature signal TR preset temperature