1. Trang chủ
  2. » Giáo Dục - Đào Tạo

báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh

59 7 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

BỘ GIAO THÔNG VẬN TẢI ĐẠI HỌC GIAO THÔNG VẬN TẢI THÀNH PHỐ HỒ CHÍ MINH KHOA ĐIỆN – ĐIỆN TỬ VIỄN THÔNG BÁO CÁO BÀI TẬP LỚN MÔN HỌC SCADA NÂNG CAO ĐỀ TÀI: NHÀ THÔNG MINH GVHD: Th.S Trần Quang Vinh Nhóm thực hiện: Nhóm download by : skknchat@gmail.com MỤC LỤC LỜI MỞ ĐẦU PHẦN 1: GIỚI THIỆU PHẦN 2: WEB SCADA I.ĐẶT VẤN ĐỀ II.TỔNG QUAN VỀ MẠNG INTERNET 2.1 Giới thiệu 2.2 Hoạt động mạng internet 2.3 Giao thức TCP/ IP 2.4 Công nghệ Ethernet III WEB SERVER VÀ CƠ SỞ DỮ LIỆU 3.1 Các ngơn ngữ lập trình cho Website 3.2 Khái quát ngôn ngữ HTML 10 3.2.1 HTML gì? Giải thích rõ ngơn ngữ Markup Hypertext 10 3.2.2 Lịch sử HTML 10 3.2.3 HTML hoạt động nào? 10 3.2.4 Ưu điểm nhược điểm HTML 11 3.3 Khái quát ngôn ngữ CCS 12 3.3.1 CSS gì? 12 3.3.2 Tại sử dụng CSS? 12 3.3.3 Cách nhúng CSS vào website 13 IV LẬP TRÌNH WEBSITE 13 4.1 Phần mềm lập trình cho website 13 4.2 Website 18 PHẦN 3: MOBILE APP 33 I.TỔNG QUAN VỀ MOBILE APP 33 Mobile app gì? 33 Những ưu điểm mobile app 34 II.ỨNG DỤNG MOBILE APP TRONG ĐỒ ÁN MÔN HỌC 34 1.Tạo phần mềm Android với MIT App Inventor 34 2.Giao diện phần mềm 35 3.Phần code lập trình giao diện 35 PHẦN 4: DESKTOP 37 I.TẠO GIAO DIỆN TRÊN MÁY TÍNH TRONG ĐỒ ÁN MƠN HỌC 37 1.Giới thiệu Visual Studio 37 2.Giao diện phần mềm 38 3.Phần code lập trình giao diện 39 TÀI LIỆU THAM KHẢO 52 download by : skknchat@gmail.com LỜI MỞ ĐẦU Với bùng nổ mạnh mẽ ngày phát triển không ngừng thời đại công nghệ 4.0 với mong muốn sống tiện nghi, thoải mái nhà thông minh bước tiến xu hướng tương lai Nếu sở hữu nhà thông minh Smarthome đồng nghĩa với việc có trọn tiện ích thơng minh đại Sự tiện nghi nhà thơng minh mà mang lại bạn điều khiển thiết bị thơng minh thơng qua smartphone hay giọng nói Hệ thống điện tử giao tiếp với người dùng thông qua bảng điều khiển điện tử lắp đặt nhà, máy tính bảng, ứng dụng điện thoại di động giao diện web Nói cách đơn giản hơn, nhà thông minh smarthome thiết bị điện nhà kết nối với trung tâm để dễ dàng cho người dùng kiểm soát điều khiển thơng qua điện thoại hay máy tính nơi đâu Các hệ thống điện chạy cách tự động theo lịch hẹn sẵn theo điều khiển người sử dụng Với kiến thức học, tìm hiểu từ trưởng học khoa học công nghệ sống đại, nhóm em có mong muốn góp phần phát triển xã hội cách học hỏi đưa sản phẩm có ích cho sống Nhóm em xin giới thiệu sản phẩm: “Hệ thống nhà thông minh“ download by : skknchat@gmail.com PHẦN 1: GIỚI THIỆU Công nghệ, kỹ thuật lĩnh vực trí tuệ nhân tạo hay nhà thơng minh ngày phát triển mạnh mẽ Cùng với phủ sóng rộng khắp mạng internet làm thay đổi giới, đời sống người Từ điện thoại thơng minh, trí tuệ nhân tạo (AI) làm cho sống người ngày tiện nghi nhanh chóng hết Cùng với phát triển đó, ngơi nhà sống hay thiết bị mà thường sử dụng trở nên thơng minh khơng cịn vật dụng “vơ tri” Chúng giao tiếp, thực mệnh lệnh tối ưu mong muốn cách mãnh mẽ… Nhà thơng minh theo xuất nhiều Tuy nhiên, khơng phải có khả biết tới Nếu tìm hiểu nhà thơng minh, hẳn bạn thấy nhà thông minh sản phẩm cách mạng công nghiệp 4.0 Nhờ ứng dụng công nghệ hồng ngoại, điện thoại thơng minh, IoT, cơng nghệ đám mây…Nhà thơng minh tự động giúp bạn làm công việc nhà PHẦN 2: WEB SCADA I ĐẶT VẤN ĐỀ Với phát triển khoa học kỹ thuật, công nghệ thơng tin ngày diễn nhanh chóng, kéo theo xu hướng phát triển tất quốc gia, có Việt Nam Đó lĩnh vực ứng dụng công nghệ 4.0 vào lĩnh vực công nghiệp đời sống Đồng thời, phổ biến Internet thiết bị di động thông minh tạo nên khái niệm IoT (Internet of Things – Internet vạn vật), vấn đề ứng dụng thành tựu vào việc điều khiển thiết bị điện trở nên tất yếu, giúp thiết bị trở nên thơng minh tính tự động hóa cao, kèm theo việc điều khiển người dùng trở nên dễ dàng Xuất phát từ thực tế này, nghiên cứu lựa chọn đề tài: “Thiết kế hệ thống điều khiển giám sát nồng độ khí mơi trường thơng qua Webserver sử dụng board Arduino Esp8266” để bước đầu tiếp cận công nghệ thời đại 4.0 Hệ thống sử dụng tài nguyên Arduino Esp8266 thiết kế chuyên cho ứng dụng IoT (Internet of Things) với công suất nhỏ Với hệ thống việc giám sát thiết bị trở nên dễ dàng, mà thông số thời gian hoạt động, download by : skknchat@gmail.com trạng thái thiết bị đưa lên website để người dùng tương tác cách trực quan hệ thống II.TỔNG QUAN VỀ MẠNG INTERNET 2.1 Giới thiệu Internet hệ thống thơng tin tồn cầu truy cập cơng cộng gồm mạng máy tính liên kết với Hệ thống truyền thông tin theo kiểu nối chuyển gói liệu (packet switching) dựa giao thức liên mạng chuẩn hóa (giao thức IP) Hệ thống bao gồm hàng ngàn mạng máy tính nhỏ doanh nghiệp, viện nghiên cứu trường đại học, người dùng cá nhân, phủ tồn cầu Chúng cung cấp khối lượng thông tin dịch vụ khổng lồ internet Mạng Internet mang lại nhiều tiện ích hữu dụng cho người sử dụng, tiện ích phổ thơng Internet hệ thống thư điện tử (email), trò chuyện trực tuyến (chat), máy truy tìm liệu (search engine), dịch vụ thương chuyển ngân, dịch vụ y tế giáo dục chữa bệnh từ xa tổ chức lớp học ảo Nguồn thông tin khổng lồ kèm theo dịch vụ tương ứng hệ thống trang Web liên kết với tài liệu khác www (World Wide Web) Internet tập hợp mạng máy tính kết nối với dây đồng, cáp quang, v.v ; www hay Web tập hợp tài liệu liên kết với siêu liên kết (hyperlink) địa URL, truy nhập cách sử dụng Internet 2.2 Hoạt động mạng Internet Các Giao Thức (Protocols): tập luật mà máy tính phải tuân theo giao tiếp Internet download by : skknchat@gmail.com Tranmission Control Protocol (TCP): thiết lập kết nối hai máy tính để truyền tải liệu, chia liệu thành gói nhỏ đảm bảo việc truyền nhận liệu TCP giao thức hướng kết nối (connection-oriented protocol) User Datagram Protocol (UDP): thiết lập kết nối nhanh khơng chắn máy tính để truyền tải liệu, cung cấp dịch vụ đểkhắc phục lỗi Internet Protocol (IP): điều chỉnh đường gói liệu đường truyền nhận Internet TCP giao thức phi kết nối (connectionless protocol) HTTP: cho phép trao đổi thông tin Internet FTP: cho phép truyền nhận file Internet SMTP: cho phép gửi thư điện tử Internet POP3: cho phép nhận thư điện tử Internet TCP/IP dùng làm giao thức chuẩn giao tiếp Internet độc lập với hệ thống (platform independent) khơng có tổ chức có quyền sở hữu giao thức Địa Chỉ IP (IP Adress) Internet mạng kết nối rộng lớn máy tính Để xác định máy tính mạng này, người ta dùng số gọi địa IP Địa IP gồm tập số nhỏ 255 ngăn cách dấu ‘.’ Ví dụ: 192.168.1.1 Hệ Thống Tên Miền (DNS- Domain Name System): máy tính mạng Internet xác định địa IP, số khó nhớ Để khắc phục nhược điểm này, người ta dùng hệ thống tên miền để đặt tên cho máy tính Ví dụ: tên miền www.yahoo.com ứng với địa IP 216.109.127.28 2.3 Giao thức TCP/IP TCP/IP giao thức cho phép kết nối hệ thống mạng không đồng với TCP/IP viết tắt Transmission Control Protocol (Giao thức Điều khiển Truyền thông)/Internet Protocol (Giao thức Internet) Ngày TCP/IP sử dụng rộng rãi c ác mạng cục mạng Internet toàn cầu TCP/IP download by : skknchat@gmail.com không gồm giao thức mà thực tế tập hợp nhiều giao thức Chúng ta gọi hệ giao thức hay giao thức (Suite Of Protocols) TCP/IP xem giản lược mơ hình tham chiếu OSI với bốn tầng, mơ hình (theo thứ tự từ xuống): + Tầng ứng dụng (Application Layer) + Tầng giao vận (Transport Layer) +Tầng mạng (Internet Layer) + Tầng liên mạng (Network Interface Layer) Hình 1: Mơ hình TCP/IP Tần liên mạng (Network Interface Layer): Tầng liên mạng có trách nhiệm đưa liệu tới nhận liệu từ phương tiện truyền dẫn Tầng bao gồm thiết bị giao tiếp mạng (Card Mạng Cáp Mạng) chương trình cung cấp thơng tin cần thiết để hoạt động, truy nhập đường truyền vật lý qua thiết bị giao tiếp mạng Tầng mạng (Internet Layer): nằm tầng liên mạng, tầng có chức gán địa chỉ, đóng gói định tuyến (Route) liệu Bốn giao thức quan trọng tầng gồm: download by : skknchat@gmail.com • IP (Internet Protocol): Có chức gán địa cho liệu trước truyền định tuyến chúng tới đích • ARP (Address Resolution Protocol): Có chức biên dịch địa IP máy đích thành địa MAC (Media Access Control) • ICMP (Internet Control Message Protocol): Có chức thông báo lỗi trường hợp truyền liệu bị hỏng • IGMP (Internet Group Management Protocol): Có chức điều khiển truyền đa hướng (Multicast) Tầng giao vận (Transport Layer): Có trách nhiệm thiết lập phiên truyền thơng máy tính quy định cách truyền liệu giao thức tầng gồm có hai giao thức chính: TCP (Transmission Control Protocol) UDP (User Datagram Protocol) • TCP cung cấp kênh truyền thông hướng kết nối đảm bảo truyền liệu cách tin cậy, cung cấp luồng liệu tin cậy hai trạm, sử dụng chế chia nhỏ gói tin tầng thành gói tin có kích thước thích hợp cho tầng mạng bên dưới, báo nhận gói tin, đặt hạn chế thời gian time-out để đảm bảo bên nhận biết gói tin gửi TCP thường truyền gói tin có kích thước lớn u cầu phía nhận xác nhận gói tin nhận Do tầng đảm bảo tính tin cậy, tầng khơng cần quan tâm đến • UDP cung cấp dịch vụ đơn giản cho tầng ứng dụng UDP cung cấp kênh truyền thông phi kết nối, gửi gói liệu từ trạm tới trạm mà khơng đảm bảo gói tin đến tới đích Các ứng dụng dùng UDP thường truyền gói có kích thước nhỏ, độ tin cậy liệu phụ thuộc vào ứng dụng Các chế đảm bảo độ tin cậy cần thực tầng Tầng ứng dụng (Application Layer): Tầng ứng dụng tầng mơ hình TCP/IP bao gồm tiến trình ứng dụng cung cấp cho người sử dụng để truy cập mạng Một số giao thức thông dụng tầng là: download by : skknchat@gmail.com • DHCP (Dynamic Host Configuration Protocol): Giao thức cấu hình trạm • DNS (Domain Name System): Hệ thống tên miền động • SNMP (Simpe Network Management Protocol): Giao thức quản lý mạng đơn giản • FTP (File Transfer Protocol): Giao thức truyền tập tin • TFTP (Trivial File Transfer Protocol): Giao thức truyền tập tin bình thường • SMTP (Simple Mail Transfer Protocol): Giao thức truyền thư đơn giản 2.4 Công nghệ Ethernet Ethernet đời mang lại mạng truyền liệu nối tiếp tốc độ cao, trở thành chuẩn chấp nhận khắp giới, giao thức thống trị mạng LAN, 85% kết nối mạng cài đặt giới Ethernet Tốc độ truyền liệu phổ biến Ethernet 10 triệu bit/s (10 Mbps), vậy, hầu hết mạng nhanh chóng nâng cấp lên Fast Ethernet với tốc độ 100 Mbps Ethernet thường gắn với hệ điều khiển công nghiệp qua điều khiển độc lập kết nối với PC hay mạng cáp Ethernet Chuẩn Ethernet 10Mbps xuất năm 1980 phối hợp phát triển hãng: DEC, Intel Xerox Chuẩn có tên DIX Ethernet (lấy tên theo chữ đầu tên hãng) Uỷ ban 802.3 IEEE lấy DIX Ethernet làm tảng để phát triển Năm 1985, chuẩn 802.3 đời với tên IEEE 802.3 Carrier Sense Multiple Access with Collition Detection (CSMA/CD) Access Method vesus Physical Layer Specification Mặc dù không sử dụng tên Ethernet hầu hết người hiểu chuẩn công nghệ Ethernet Ngày chuẩn IEEE 802.3 chuẩn thức Ethernet IEEE phát triển chuẩn Ethernet nhiều cơng nghệ truyền dẫn khác có nhiều loại mạng Ethernet Các chuẩn Ethernet hoạt động tầng Data Link mơ hình lớp OSI đơn vị liệu mà trạm trao đổi với khung (frame) Cấu trúc khung Ethernet sau: download by : skknchat@gmail.com Phần code lập trình giao diện namespace fireConfig { partial class Form1 { / / Required designer variable / private System.ComponentModel.IContainer components = null; / / Clean up any resources being used / / true if managed resources should be disposed; otherwise, false. protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code / / Required method for Designer support - not modify / the contents of this method with the code editor / private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.button1 = new System.Windows.Forms.Button(); this.Temperature = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.onquat = new System.Windows.Forms.Button(); this.bttatled = new System.Windows.Forms.Button(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); 42 download by : skknchat@gmail.com this.label7 = new System.Windows.Forms.Label(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.solidGauge3 = new LiveCharts.WinForms.SolidGauge(); this.solidGauge2 = new LiveCharts.WinForms.SolidGauge(); this.solidGauge1 = new LiveCharts.WinForms.SolidGauge(); this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox3 = new System.Windows.Forms.PictureBox(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.button4 = new System.Windows.Forms.Button(); this.button5 = new System.Windows.Forms.Button(); this.pictureBox6 = new System.Windows.Forms.PictureBox(); this.pictureBox5 = new System.Windows.Forms.PictureBox(); this.pictureBox4 = new System.Windows.Forms.PictureBox(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.listView1 = new System.Windows.Forms.ListView(); this.columnHeader1 = ((System.Windows.Forms.ColumnHeader) (new System.Windows.Forms.ColumnHeader())); this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.timer1 = new System.Windows.Forms.Timer(this.components); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize) (this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize) (this.pictureBox3)).BeginInit(); ((System.ComponentModel.ISupportInitialize) (this.pictureBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize) (this.pictureBox6)).BeginInit(); ((System.ComponentModel.ISupportInitialize) (this.pictureBox5)).BeginInit(); ((System.ComponentModel.ISupportInitialize) (this.pictureBox4)).BeginInit(); this.groupBox2.SuspendLayout(); this.SuspendLayout(); // / button1 / Serif", this.button1.Font = new System.Drawing.Font("Microsoft Sans 15.75F, ((System.Drawing.FontStyle) 43 download by : skknchat@gmail.com ((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button1.Location = new System.Drawing.Point(0, 240); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(132, 71); this.button1.TabIndex = 2; this.button1.Text = "Show Data"; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // / Temperature / this.Temperature.AutoSize = true; this.Temperature.Font = new System.Drawing.Font("Microsoft Sans Serif", 30F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Temperature.Location = new System.Drawing.Point(292, 41); this.Temperature.Name = "Temperature"; this.Temperature.Size = new System.Drawing.Size(257, 46); this.Temperature.TabIndex = 5; this.Temperature.Text = "Temperature"; // / label2 / this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 30F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label2.Location = new System.Drawing.Point(1358, 41); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(183, 46); this.label2.TabIndex = 6; this.label2.Text = "Humidity"; // / label3 / this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 30F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label3.Location = new System.Drawing.Point(872, 41); 44 download by : skknchat@gmail.com this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(72, 46); this.label3.TabIndex = 7; this.label3.Text = "Air"; // / onquat / this.onquat.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, ((System.Drawing.FontStyle) ((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.onquat.Location = new System.Drawing.Point(321, 43); this.onquat.Name = "onquat"; this.onquat.Size = new System.Drawing.Size(132, 71); this.onquat.TabIndex = 8; this.onquat.Text = "ON Máy Lạnh"; this.onquat.UseVisualStyleBackColor = true; this.onquat.Click += new System.EventHandler(this.btled_Click); // / bttatled / this.bttatled.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, ((System.Drawing.FontStyle) ((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.bttatled.Location = new System.Drawing.Point(459, 43); this.bttatled.Name = "bttatled"; this.bttatled.Size = new System.Drawing.Size(132, 71); this.bttatled.TabIndex = 9; this.bttatled.Text = "OFF Máy Lạnh"; this.bttatled.UseVisualStyleBackColor = true; this.bttatled.Click += new System.EventHandler(this.bttatled_Click); // / label4 / this.label4.AutoSize = true; this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 48F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.ForeColor = System.Drawing.SystemColors.Highlight; this.label4.Location = new System.Drawing.Point(568, -5); 45 download by : skknchat@gmail.com this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(465, 73); this.label4.TabIndex = 15; this.label4.Text = "SMART HOME"; // / label5 / this.label5.AutoSize = true; this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label5.ForeColor = System.Drawing.Color.Red; this.label5.Location = new System.Drawing.Point(718, 114); this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(0, 37); this.label5.TabIndex = 16; // / label6 / this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.ForeColor = System.Drawing.Color.Red; this.label6.Location = new System.Drawing.Point(45, 114); this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(0, 37); this.label6.TabIndex = 17; // / label7 / this.label7.AutoSize = true; this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.ForeColor = System.Drawing.Color.Red; 46 download by : skknchat@gmail.com this.label7.Location = new System.Drawing.Point(373, 114); this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(0, 37); this.label7.TabIndex = 18; this.label7.Click += new System.EventHandler(this.label7_Click); // / groupBox1 / this.groupBox1.BackColor = System.Drawing.SystemColors.ActiveCaption; this.groupBox1.Controls.Add(this.solidGauge3); this.groupBox1.Controls.Add(this.solidGauge2); this.groupBox1.Controls.Add(this.solidGauge1); this.groupBox1.Controls.Add(this.label6); this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.label7); this.groupBox1.Controls.Add(this.pictureBox1); this.groupBox1.Controls.Add(this.pictureBox3); this.groupBox1.Controls.Add(this.Temperature); this.groupBox1.Controls.Add(this.label3); this.groupBox1.Controls.Add(this.pictureBox2); this.groupBox1.Controls.Add(this.button1); this.groupBox1.Controls.Add(this.label2); this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 25.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox1.Location = new System.Drawing.Point(6, 70); this.groupBox1.Margin = new System.Windows.Forms.Padding(2); this.groupBox1.Name = "groupBox1"; this.groupBox1.Padding = new System.Windows.Forms.Padding(2); this.groupBox1.Size = new System.Drawing.Size(1569, 311); this.groupBox1.TabIndex = 19; this.groupBox1.TabStop = false; this.groupBox1.Text = "Show Data"; this.groupBox1.Enter System.EventHandler(this.groupBox1_Enter); // / solidGauge3 += new / 47 download by : skknchat@gmail.com this.solidGauge3.Location = new System.Drawing.Point(1341, 114); this.solidGauge3.Name = "solidGauge3"; this.solidGauge3.Size = new System.Drawing.Size(200, 100); this.solidGauge3.TabIndex = 21; this.solidGauge3.Text = "solidGauge3"; // / solidGauge2 / this.solidGauge2.Location = new System.Drawing.Point(773, 125); this.solidGauge2.Name = "solidGauge2"; this.solidGauge2.Size = new System.Drawing.Size(200, 100); this.solidGauge2.TabIndex = 20; this.solidGauge2.Text = "solidGauge2"; this.solidGauge2.ChildChanged += new System.EventHandler(this.solidGauge2_ChildChanged); // / solidGauge1 / this.solidGauge1.Location = new System.Drawing.Point(300, 125); this.solidGauge1.Name = "solidGauge1"; this.solidGauge1.Size = new System.Drawing.Size(200, 100); this.solidGauge1.TabIndex = 19; this.solidGauge1.Text = "solidGauge1"; / / pictureBox1 // this.pictureBox1.Image = global::fireConfig.Properties.Resources.high_temperature; this.pictureBox1.Location = new System.Drawing.Point(201, 6); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new System.Drawing.Size(85, 81); this.pictureBox1.TabIndex = 10; this.pictureBox1.TabStop = false; // / pictureBox3 / this.pictureBox3.Image = global::fireConfig.Properties.Resources.humidity 1_; this.pictureBox3.Location = new System.Drawing.Point(1294, 6); this.pictureBox3.Name = "pictureBox3"; 48 download by : skknchat@gmail.com this.pictureBox3.Size = new System.Drawing.Size(68, 81); this.pictureBox3.TabIndex = 12; this.pictureBox3.TabStop = false; // / pictureBox2 / this.pictureBox2.Image = global::fireConfig.Properties.Resources.air_quality; this.pictureBox2.Location = new System.Drawing.Point(759, 1); this.pictureBox2.Name = "pictureBox2"; this.pictureBox2.Size = new System.Drawing.Size(90, 86); this.pictureBox2.TabIndex = 11; this.pictureBox2.TabStop = false; this.pictureBox2.Click+=new System.EventHandler(this.pictureBox2_Click); // / button2 / this.button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, ((System.Drawing.FontStyle) ((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button2.Location = new System.Drawing.Point(20, 43); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(132, 71); this.button2.TabIndex = 22; this.button2.Text = "ON Quạt"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // / button3 / this.button3.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, ((System.Drawing.FontStyle) ((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button3.Location = new System.Drawing.Point(158, 43); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(132, 71); this.button3.TabIndex = 23; this.button3.Text = "OFF Quạt"; 49 download by : skknchat@gmail.com this.button3.UseVisualStyleBackColor = true; this.button3.Click System.EventHandler(this.button3_Click); // / button4 += new / this.button4.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, ((System.Drawing.FontStyle) ((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button4.Location = new System.Drawing.Point(639, 43); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(132, 71); this.button4.TabIndex = 24; this.button4.Text = "ON Đèn"; this.button4.UseVisualStyleBackColor = true; this.button4.Click += new System.EventHandler(this.button4_Click); // / button5 / this.button5.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, ((System.Drawing.FontStyle) ((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.button5.Location = new System.Drawing.Point(777, 43); this.button5.Name = "button5"; this.button5.Size = new System.Drawing.Size(132, 71); this.button5.TabIndex = 25; this.button5.Text = "OFF Đèn"; this.button5.UseVisualStyleBackColor = true; this.button5.Click += new System.EventHandler(this.button5_Click); // / pictureBox6 / this.pictureBox6.Image = global::fireConfig.Properties.Resources.led 1_; this.pictureBox6.Location = new System.Drawing.Point(646, 134); this.pictureBox6.Margin = new System.Windows.Forms.Padding(2); this.pictureBox6.Name = "pictureBox6"; 50 download by : skknchat@gmail.com this.pictureBox6.Size = new System.Drawing.Size(251, 253); this.pictureBox6.TabIndex = 19; this.pictureBox6.TabStop = false; // / pictureBox5 / this.pictureBox5.Image = global::fireConfig.Properties.Resources.fan 1_; this.pictureBox5.Location = new System.Drawing.Point(20, 134); this.pictureBox5.Margin = new System.Windows.Forms.Padding(2); this.pictureBox5.Name = "pictureBox5"; this.pictureBox5.Size = new System.Drawing.Size(253, 304); this.pictureBox5.TabIndex = 21; this.pictureBox5.TabStop = false; // / pictureBox4 / this.pictureBox4.Image = global::fireConfig.Properties.Resources.off; this.pictureBox4.Location = new System.Drawing.Point(321, 134); this.pictureBox4.Margin = new System.Windows.Forms.Padding(2); this.pictureBox4.Name = "pictureBox4"; this.pictureBox4.Size = new System.Drawing.Size(260, 324); this.pictureBox4.TabIndex = 20; this.pictureBox4.TabStop = false; // / groupBox2 / this.groupBox2.BackColor System.Drawing.SystemColors.InactiveCaption; this.groupBox2.Controls.Add(this.pictureBox6); this.groupBox2.Controls.Add(this.button5); this.groupBox2.Controls.Add(this.pictureBox5); this.groupBox2.Controls.Add(this.pictureBox4); this.groupBox2.Controls.Add(this.button4); this.groupBox2.Controls.Add(this.button2); this.groupBox2.Controls.Add(this.button3); this.groupBox2.Controls.Add(this.onquat); this.groupBox2.Controls.Add(this.bttatled); = 51 download by : skknchat@gmail.com this.groupBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBox2.Location = new System.Drawing.Point(2, 385); this.groupBox2.Margin = new System.Windows.Forms.Padding(2); this.groupBox2.Name = "groupBox2"; this.groupBox2.Padding = new System.Windows.Forms.Padding(2); this.groupBox2.Size = new System.Drawing.Size(965, 553); this.groupBox2.TabIndex = 20; this.groupBox2.TabStop = false; this.groupBox2.Text = "Khu vực điều khiển"; // / listView1 / this.listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { this.columnHeader1, this.columnHeader2}); this.listView1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.listView1.HideSelection = false; this.listView1.Location = new System.Drawing.Point(971, 385); this.listView1.Margin = new System.Windows.Forms.Padding(2); this.listView1.Name = "listView1"; this.listView1.Size = new System.Drawing.Size(604, 228); this.listView1.TabIndex = 21; this.listView1.UseCompatibleStateImageBehavior = false; this.listView1.View = System.Windows.Forms.View.Details; this.listView1.SelectedIndexChanged += new System.EventHandler(this.listView1_SelectedIndexChanged); // / columnHeader1 / this.columnHeader1.Text = "Thời gian"; this.columnHeader1.Width = 250; / / columnHeader2 // this.columnHeader2.Text = "Nhiệt độ"; 52 download by : skknchat@gmail.com this.columnHeader2.TextAlign System.Windows.Forms.HorizontalAlignment.Center; this.columnHeader2.Width = 400; // / timer1 = / this.timer1.Enabled = true; this.timer1.Interval = 500; this.timer1.Tick += new System.EventHandler(this.timer1_Tick); / / Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.Control; this.ClientSize = new System.Drawing.Size(1583, 613); this.Controls.Add(this.listView1); this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox1); this.Controls.Add(this.label4); this.Name = "Form1"; this.Text = "Form1"; this.Load += new System.EventHandler(this.Form1_Load); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize) (this.pictureBox1)).EndInit(); ((System.ComponentModel.ISupportInitialize) (this.pictureBox3)).EndInit(); ((System.ComponentModel.ISupportInitialize) (this.pictureBox2)).EndInit(); ((System.ComponentModel.ISupportInitialize) (this.pictureBox6)).EndInit(); ((System.ComponentModel.ISupportInitialize) (this.pictureBox5)).EndInit(); ((System.ComponentModel.ISupportInitialize) (this.pictureBox4)).EndInit(); this.groupBox2.ResumeLayout(false); this.ResumeLayout(false); this.PerformLayout(); 53 download by : skknchat@gmail.com } #endregion private System.Windows.Forms.Button button1; private System.Windows.Forms.Label Temperature; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label3; private System.Windows.Forms.Button onquat; private System.Windows.Forms.Button bttatled; private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.PictureBox pictureBox2; private System.Windows.Forms.PictureBox pictureBox3; private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label6; private System.Windows.Forms.Label label7; private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.PictureBox pictureBox4; private System.Windows.Forms.PictureBox pictureBox5; private System.Windows.Forms.Button button2; private System.Windows.Forms.Button button3; private System.Windows.Forms.Button button4; private System.Windows.Forms.Button button5; private System.Windows.Forms.PictureBox pictureBox6; private System.Windows.Forms.GroupBox groupBox2; private System.Windows.Forms.ListView listView1; private System.Windows.Forms.ColumnHeader columnHeader1; private System.Windows.Forms.ColumnHeader columnHeader2; private System.Windows.Forms.Timer timer1; private LiveCharts.WinForms.SolidGauge solidGauge3; private LiveCharts.WinForms.SolidGauge solidGauge2; private LiveCharts.WinForms.SolidGauge solidGauge1; } } TÀI LIỆU THAM KHẢO 54 download by : skknchat@gmail.com 55 download by : skknchat@gmail.com download by : skknchat@gmail.com ... tiện nghi, thoải mái nhà thơng minh bước tiến xu hướng tương lai Nếu sở hữu nhà thông minh Smarthome đồng nghĩa với việc có trọn tiện ích thơng minh đại Sự tiện nghi nhà thông minh mà mang lại bạn... ngoại, điện thoại thông minh, IoT, cơng nghệ đám mây? ?Nhà thơng minh tự động giúp bạn làm công việc nhà PHẦN 2: WEB SCADA I ĐẶT VẤN ĐỀ Với phát triển khoa học kỹ thuật, công nghệ thông tin ngày diễn... lệnh tối ưu mong muốn cách mãnh mẽ… Nhà thông minh theo xuất nhiều Tuy nhiên, khơng phải có khả biết tới Nếu tìm hiểu nhà thơng minh, hẳn bạn thấy nhà thông minh sản phẩm cách mạng công nghiệp

Ngày đăng: 27/04/2022, 16:50

Xem thêm:

HÌNH ẢNH LIÊN QUAN

Hình 1: Mô hình TCP/IP - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 1 Mô hình TCP/IP (Trang 7)
Hình 2: Cấu trúc khung tin Ethernet - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 2 Cấu trúc khung tin Ethernet (Trang 11)
Hình 3: Phần mềm Visual Studio Code - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 3 Phần mềm Visual Studio Code (Trang 17)
Hình 4: Khảo sát về môi trường phát triển 2019 - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 4 Khảo sát về môi trường phát triển 2019 (Trang 18)
Hình 5: Phần mềm Visual Studio Code - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 5 Phần mềm Visual Studio Code (Trang 19)
Hình 6: Lập trình trong Visual Hỗ trợ đa ngôn ngữ lập trình - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 6 Lập trình trong Visual Hỗ trợ đa ngôn ngữ lập trình (Trang 21)
Màn hình đa nhiệm - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
n hình đa nhiệm (Trang 22)
Hình 7: Giao diện đăng nhập trên Web - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 7 Giao diện đăng nhập trên Web (Trang 37)
Hình 10: Ưu điểm Mobile app - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 10 Ưu điểm Mobile app (Trang 38)
Hình 9: Mobile app - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 9 Mobile app (Trang 38)
Hình 11: MIT AppInvento r2 - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 11 MIT AppInvento r2 (Trang 39)
Hình 12: AppInventor liên kết tài khoản Google - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 12 AppInventor liên kết tài khoản Google (Trang 40)
Hình 13: Giao diện đăng nhập trên điện thoại - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 13 Giao diện đăng nhập trên điện thoại (Trang 41)
Hình 14: Giao diện hệ thống trên điện thoại - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 14 Giao diện hệ thống trên điện thoại (Trang 42)
Hình 15: Phần mềm thiết kế giao diện Visual Studio - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 15 Phần mềm thiết kế giao diện Visual Studio (Trang 43)
Hình 16: Giao diện đăng nhập hệ thống trên máy tính - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 16 Giao diện đăng nhập hệ thống trên máy tính (Trang 44)
Hình 17: Giao diện Visual Studio được thiết kế - báo cáo bài tập lớn môn học scada nâng cao đề tài nhà thông minh
Hình 17 Giao diện Visual Studio được thiết kế (Trang 44)

TỪ KHÓA LIÊN QUAN

TRÍCH ĐOẠN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w