Smart Façade For Thermal Comfort Manipulation - AI (Fuzzy)

版本 1.0.1 (13.3 KB) 作者: Janice Ong
Functions providing the implementation Fuzzy Logic toolbox and serial read the sensors from Arduino.
140.0 次下载
更新时间 2018/7/13

查看许可证

The file contains M file which connect 2 Arduinos platform; One for input serial data of 4 sensors (2 DHT22 and 2 LDR) from Arduino and another for output which control two continuous servo motors and LED brightness. The main decision module for the project was governed by artificial intelligence technique, namely fuzzy controller using MATLAB software (Fuzzy Logic Toolbox).

3 inputs and 3 outputs were considered in the Fuzzy Inference System (FIS).
Inputs: Temperature inside, temperature outside and light level outside.
Outputs: Blind angle, blind length and LED
Triangular membership function was used. This FIS has total of 27 rules.
All the set up and FIS were built at the MATLAB command line.

‘fuzzy3.m’ defines the FIS inputs and outputs variables, membership functions and rule list.
‘FIS rule based.xls’ defines the Fuzzy rules that will be added into the rule of FIS.

‘serialread2.m’ reads the data in serial from the 4 sensors (2 DHT22 amd 2 LDR) connecting to Arduino and convert the string into numbers.

‘nearest.m’ convert the value to the nearest defined value of the blind angle and blind length in every 90degree rotation of motors.
(Blind angle = [0 7 8 14 19 27 30 37 42 52 57 73]
Blind length = [38.7 36.5 34.5 32.4 30.2 27.8 25.3 23.2 21.3 18.7 16.3 14.0 11.5 8.8 6.8 5.0])
The purpose of this conversion is to make the response turn more effectively and accurately as well as to save the energy if the difference of the next rotation of the motor is very small.

‘DEMO.m’ is the main coding consists of all the functions. From setting up Arduino, defining FIS, collect sensors data, evaluate FIS from the detected FIS inputs, and upload the data to ThingSpeak.

引用格式

Janice Ong (2024). Smart Façade For Thermal Comfort Manipulation - AI (Fuzzy) (https://www.mathworks.com/matlabcentral/fileexchange/68173-smart-facade-for-thermal-comfort-manipulation-ai-fuzzy), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Fuzzy Logic Toolbox 的更多信息
社区
ThingSpeak 社区中有更多文件

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.1

Minor correction in description.

1.0.0