4。 Socket。IO 13
5。 Node。js 14
6。 ZigBee 14
Chapter II: DESIGN and IMPLEMENTATION 16
7。 Greenhouse Design 16
7。1 Create a website 16
7。2 。js file 18
7。3 Arduino Code 18
7。3。1 Code for Light sensor 19
7。3。2 Code for Temperature & Humidity sensor (DHT11) 19
7。3。3 Code for Moisture sensor 19
7。3。4 CO2 sensor (MH-Z14A) 19
7。3。5 Self-control program 19
7。3。6 Serial Event 20
7。3。7 Serial TX/RX 21
8 Greenhouse Architecture 22
Chapter III: TEST and OPERATION 23
9。 Testing 23
9。1 Web page testing 23
9。2 Arduino program testing 23
9。3 ZigBee TX/RX 25
9。4 Intel Galileo testing 26
9。5 Final testing 29
Chapter IV: CONCLUSION 31
10。 Conclusion 31
References 32
Appendix 33
index2。html 33
nodeSerialserver。js 36
Greenhouse。ino 38
Table of figures
Figure 1: the relationship between HTML, CCS and JavaScript 5
Figure 2: greenhouse。jpeg 33
Figure 3。 1: The interaction with the web server component 13
Figure 7。 1: HTML code for "p-a" and "p-b" 16
Figure 7。 2: "p-a" and "p-b" in index。html 17
Figure 7。 3: buttons in index。html 17
Figure 7。 4: HTML code for buttons 17
Figure 7。 5: HTML code for function button1Press ( ) 18
Figure 7。 6: Greenhouse Architecture