The system consists of the light module. 2.1.2.3 WEBIO Controllin dule wing interface chie and cell ph g p e c 3.3w□25.0 program the further development I2C1 SDA 5.0V c principle gram shown in Figure 2 IN 7 GROUND910 UARTO RX OUT GPr01711cP018 OUT OUT GP0271314 OUT GP0221516 GP1023 IN 3.3w1718cPI024 IN IN GPTO 10 9 20 W GPI092122cPI025 IN N GP10112324GP108 IN GROUND 7 IN Fig.2. Block the system Click on "IN /OUTto switch operating mode of 2.1.I Harhvare connection diagram GPIO.Click the number 25 to control the light Connect the light and switch to the Pi Raspberry in 1.2.4M bile Terminal Conrolling gure 3.Here,we control the light bulb by controlling the Control light by phone terminal software. ela 2.2 Curtain Module This module contains a stepping motor which placed in curtain rails.Python program control stepper motor rotation direction and speed to control curtains lif Driver chip of the stepper motor is ULN2803A.Using Raspberry Pi's four GPIO outputs controls the stepper motor.Concrete realization of the circuit is shown in Figure 5. U1 Fig 3.Light module conro 2.1.2 Control mode 2.1.2.1 Ordinary switch control mode Switch is a input signal to Raspberry Pi,so we need the GPIO input function.When in use,we can use switches control lights blinking When press the switch,the light is LN2803 tumed on.When press again,the light is tumned off 2.1.2.2 Computer control mode Fig 5.Stepping motr driving circuit Run putty and use the command line to change Run command sent by the terminal to complete action electrical level to control the light. once opened or closed curtains.And the amplitude of Operation instruction: curtains also can be adjusted by changing input >>>GPIO.setup(25.GPIO.OUT) parameters.So that the design has more degrees of Lighting light instruction freedom.All of these makes the design more intelligent >>>GPIO.output(25.GPIO.HIGH) and humane. Close instructions: 2.3 Kettle Module >>>GPlO.output(25.GPIO.LOW) GPIO ports control kettle.When GPIO port is high
The English Proceedings of the College of Instrumentation & Electrical Engineering, Jilin University, in the Second Half of 2015 16 The system consists of the light module, curtain module, music module, temperature module, kettle module, alarm module and monitoring module. we have achieved more modules of computer and cell phone remote control. Using putty software can also view the program to facilitate the further development of programming enthusiasts. The basic principle diagram shown in Figure 2: Fig. 2. Block diagram of the smart home system 2.1 Light module 2.1.1 Hardware connection diagram Connect the light and switch to the Pi Raspberry in figure 3. Here, we control the light bulb by controlling the relay. Fig. 3. Light module control circuit 2.1.2 Control mode 2.1.2.1 Ordinary switch control mode Switch is a input signal to Raspberry Pi, so we need the GPIO input function. When in use, we can use switches control lights blinking. When press the switch, the light is turned on. When press again, the light is turned off . 2.1.2.2 Computer control mode Run putty and use the command line to change electrical level to control the light. Operation instruction: >>>GPIO.setup(25,GPIO.OUT) Lighting light instruction: >>>GPIO.output(25,GPIO.HIGH) Close instructions: >>>GPIO.output(25,GPIO.LOW) 2.1.2.3 WEBIO Controlling Open the URL http://192.168.137.200:8000/webiopi/, we will get the following interface. Fig. 4. WEBIO interface Click on "IN / OUT" to switch operating mode of GPIO. Click the number 25 to control the light. 2.1.2.4 Mobile Terminal Controlling Control light by phone terminal software. 2.2 Curtain Module This module contains a stepping motor which placed in curtain rails. Python program control stepper motor rotation direction and speed to control curtains lift. Driver chip of the stepper motor is ULN2803A. Using Raspberry Pi’s four GPIO outputs controls the stepper motor. Concrete realization of the circuit is shown in Figure 5. Fig. 5. Stepping motor driving circuit Run command sent by the terminal to complete action once opened or closed curtains. And the amplitude of curtains also can be adjusted by changing input parameters. So that the design has more degrees of freedom. All of these makes the design more intelligent and humane. 2.3 Kettle Module GPIO ports control kettle. When GPIO port is high
Caozhan-peng et Distributed Wirele Monitoring System of Factrory Machinery Temperature level,the kettle Whe material of a high re the range of acti of 10 to 20 meters.The is set lov off and starts th nction to alert th er or the water has beer When GPIO port is low,water heating functio dule is modified fr on GitHub m an open source projec It is easy to use this module to play musi HC.SRE -DK R1000 Fig 8.Alarm circu Afer the python program uns,infrared sensor modul detects intervals.If a person close to the buzzer alamm wil sound,and print 'someone close'on screen.If people leave,it stops chirping.display 'no one close'on the Fig 6.Player interface screen To make home life more intelligent,the player allows 2.7 Monitoring module the user to choose a different channel,mark and cancel This module uses a USB interface webcam.Webcam favorite music,and play the next song You can also set controlled by Raspberry Pi takes photos.Then these the loop mode. photos are transmitted to intemet.So we can see the 2.5 Temperature Module real-time monitoring videos. This module uses a temperature sensor DS18520 Browser control:Open the browser,in the address ba sensing indoor temperature.The DS18S20 digital enter hutp/192.168.137.200:8081,which,192.168.137 thermometer provides 9-bit Celsius temperature 200 is the IP address of the Raspberry Pi.On the page measurements and has an alarm function with nonvolatile you can see a 640*480 pixel window.which is captured user-programmable upper and lower trigger points.The by the webcam. DS18S20 communicates over a 1-Wire bus that by 2.8 Remote Control definition requires only one data line (and ground)for By Raspberry Pi Command and RPi_Automation communication with a central microprocessor. mobile terminal APP you can easily achieve control of When actual measurements,we have found DS18S20 the Raspberry PiGPIO level and sending an instruction to drift 2C.so we lose2C as temperature compensation. complete complex tasks. 3 SOFTWARE SOURCES Linux system is an open source system.It can achieve 270☐ a complete operating system but only uses very little of the program code.It is an operating system suitable for home appliances or electronic appliances,which is known as embedded system A linux host allows mam people to work on the line,and resource allocation is Fig 7.Temperature Module Circuit more equitable,which is just to meet the needs of 2.6Alarm Module multi-user and multi-tasking for Raspberry Pi. This module uses human infrared sensor module Linux system is the soul of Raspberry Pi.Raspbian is a HC-SR501.The core of the device is body pyroelectric linux system,which is the preferred operating system for infrared sensor.Pyroelectric infrared sensor made of a Raspberry Pi.Python language is completely free,object- 17
level, the ket reaches 100℃ port is set lo alarm functio boiled. When not performed 2.4 Music Mo This modu on GitHub. I online. To make h the user to ch favorite musi the loop mode 2.5 Temperatu This modu sensing indo thermometer measurement user-programm DS18S20 co definition req communicatio When actu drift 2℃, so w F 2.6 Alarm Mo This modu HC-SR501. T infrared senso Cao zha ttle began to b ℃ which is d ow. Then kettl on to alert the n GPIO port is d. odule ule is modified It is easy to u Fig. 6. P home life mor hoose a differ c, and play th e. ure Module ule uses a t oor temperat provides s and has an a mmable upper ommunicates quires only on on with a cent ual measureme we lose 2℃ a Fig. 7. Temper odule ule uses hum The core of th or. Pyroelectr an-peng etc.: D boil water. W detected by D le is turned o e owner of the s low, water h d from an ope use this modu Player interface re intelligent, t rent channel, he next song. temperature s ture. The D 9-bit Celsi alarm function and lower tri over a 1-W ne data line ( tral microproc ents, we have s temperature rature Module Ci man infrared he device is b ric infrared se istributed Wire When temperat DS18B20, GP off and starts e water has b eating functio en source proj ule to play mu the player allo mark and can You can also sensor DS18 DS18S20 dig ius temperat n with nonvola igger points. T Wire bus that (and ground) essor. e found DS18 compensation ircuit sensor mod body pyroelec ensor made o ele Monitoring S ature PIO the been on is oject usic ows ncel o set S20 gital ature atile The by for S20 n. dule ctric of a mat can pyro circ A dete soun leav scre 2.7 T con pho real B ente 200 you by t 2.8 B mob the com 3 SO L a co the hom kno peo mor mul Linu linu Ras System of Factr terial consistin measure the oelectric infra cuit shown in F After the pytho ects intervals. nd, and print ve, it stops c een. Monitoring m This module u ntrolled by R otos are trans l-time monitor Browser contro er http://192.1 0 is the IP add u can see a 640 the webcam. Remote Contr By Raspberry bile terminal Raspberry Pi mplete comple OFTWARE SOU Linux system i omplete opera program cod me appliance own as embed ople to work re equitable, lti-user and ux system is t ux system, wh spberry Pi. Pyt rory Machinery ng of a high range of actio ared sensor an Figure 8: Fig. 8. Alar on program ru If a person clo t ‘someone cl hirping, displ module uses a USB in Raspberry Pi mitted to inte ring videos. ol: Open the b 168.137.200:8 dress of the R 0 * 480 pixel rol y Pi Comma APP, you can GPIO level an x tasks. URCES is an open sou ating system b e. It is an ope s or electron dded system. A on the line, a which is ju multi-taskin the soul of R hich is the pref thon language y Temperature pyroelectric on of 10 to 20 nd buzzer con rm circuit uns, infrared s ose to the buz close’ on scre lay ‘no one nterface webc takes photos ternet. So we browser, in th 8081, which, Raspberry Pi. window, whic and and RPi n easily achie nd sending an urce system. I but only uses erating system nic appliance A Linux host and resource ust to meet t ing for Ra Raspberry Pi. R ferred operatin e is completely 17 coefficient. It 0 meters. The nnected to the sensor module zer alarm will een. If people close’ on the cam. Webcam . Then these e can see the he address bar 192.168.137. On the page ch is captured i_Automation eve control of n instruction to It can achieve very little of m suitable for es, which is allows many allocation is the needs of aspberry Pi. Raspbian is a ng system for y free, object- 7 t e e e l e e m e e r . e d n f o e f r s y s f . a r -
python is an 5CONCLUSION This paper fully dem strated the p ome.in genc 4SYSTEM TEST RESULTS ue,we erry Pi as a co ight odule ordinary switches,computers, through mobile phones.computer herotation the stepper motor,stepper e pyu and a ugn mo phones and computer 8 ram suc℃e remote controing add wat Practice has proved our theory is correc ic module:using Raspberry Pi autonomous play Temperature module:Raspberry Pi control DS18S20 Experiences sure temperature,and view the current temperature alue through mobile phones,computers, Through this experiment,we gain a lot of feelings rm module:Raspberry Pi control pyroelectric infrare to scientifi nsor detects infrared signals the body,the buzzer alarm edge,exploration,no ind when someone close into every deta can we CU:Raspberry Pi control Webcam indoor real- ome dimt the c monitoring monitor screen can be viewed through mobile During the most difficult period,I fully felt the phones,computers. team's strength is infinite.Everytime we were in trouble The following figure shows the physical map and phone we would discuss with each other.This process facilitate software works we use screenshots: us to complete all tasks we expected and promoted the success of our products Acknowledgements Our work completed with the loving care and guidance from our teacher called Li Zhe.First of all,we wil express heartfelt thanks for the teacher's tolerance,for he give us a lot of space to play the best of our creativity.Secondly,everytime we encountered problems Fig 9 Real Products we could not solve,teacher Li would give us proper guidance.He showed patience and helped us solve the problems independently. What's more,we will Show gratitude to Xu Kai,Grant Van Skiver,Lukasz Skalski,GuoYu(turingou)and Mike Haldas for their help.It is in the help of these seniors that our work improve constantly and success step by step.Thanks for the help that provided by the above Light on predecessors. Light off References Fig10 AndroidAPP 18
The English Proceedings of the College of Instrumentation & Electrical Engineering, Jilin University, in the Second Half of 2015 18 oriented, easy to learn and portability, and it has access to the underlying hardware and control it. So python is an excellent choice to control hardware based on Raspberry Pi. 4 SYSTEM TEST RESULTS We implemented features are: Light module: through ordinary switches, computers, mobile phones control lights; Curtain Module: through mobile phones, computer remote controls the rotation of the stepper motor, stepper motor driven curtains rise or fall; Kettle modules: through mobile phones and computer remote controing add water and boil kettles; Music module: using Raspberry Pi autonomous play music; Temperature module: Raspberry Pi control DS18S20 measure temperature, and view the current temperature value through mobile phones, computers; Alarm module: Raspberry Pi control pyroelectric infrared sensor detects infrared signals the body, the buzzer alarm will sound when someone close; PCU: Raspberry Pi control Webcam indoor real-time monitoring monitor screen can be viewed through mobile phones, computers. The following figure shows the physical map and phone software works we use screenshots: Fig 9 Real Products Fig 10 Android APP 5CONCLUSION This paper fully demonstrated the concept of intelligent home. In general, we have successfully built a smart home model and software platform. For hardware, we did it with Raspberry Pi as a controller, and with computer and mobile phone as a terminal. The system has realized controlling the lights, curtains and kettle, and temperature measurement, network audio playback and monitoring alarm, which make the smart home concept come to the reality. As for software, we use python language as a tool, use Linux system and Raspberry Pi as a platform, by writing python program successfully achieved controlling the hardware. Practice has proved our theory is correct and feasible. Experiences Through this experiment, we gain a lot of feelings. There are no shortcuts on the road to scientific exploration. Only constant knowledge, exploration, not giving up and delving into every detail can we successfully overcome difficulties and achieve the desired results. During the most difficult period, I fully felt the team's strength is infinite. Everytime we were in trouble, we would discuss with each other. This process facilitated us to complete all tasks we expected and promoted the success of our products. Acknowledgements Our work completed with the loving care and guidance from our teacher called Li Zhe. First of all, we will express heartfelt thanks for the teacher's tolerance, for he give us a lot of space to play the best of our creativity. Secondly, everytime we encountered problems we could not solve, teacher Li would give us proper guidance.He showed patience and helped us solve the problems independently. What’s more, we will Show gratitude to Xu Kai, Grant Van Skiver, Lukasz Skalski, GuoYu (turingou) and Mike Haldas for their help. It is in the help of these seniors that our work improve constantly and success step by step. Thanks for the help that provided by the above predecessors. References
Cao zhan-peng ete.:Distributed Wirele Monitoring System of Factrory Machinery Temperature [1]Chen Jianhao.Raspberry Pi Getting Started Guide [M] Beijing:Posts and Telecom. [2]Brendan Horan.Practical Raspberry Pi [M]Beijing:Posts and Telecom Press.2014 [3]Li Longqi,Fang Meifa,Tang Xiaoteng Development of Raspbery Pi based o Real-time Monioring System Journal of Minjiang University.2014 (05) ]Zheng Shijue,Xu Hong Design and implementation of remote monitoring system based on Raspberry Pi] [5]Simon Monk.Raspberry Pi Python programming entry [M].Beijing Science Press,2014. 6 Unknown Autho.A tiny and smart cli player of douban fim in Node.js [EB/OL]https//github.com/turingou/douban.fim [7]Unknown Author.Another Way to Let Raspbery Pi Start up and Run Python Scrip[EB/OLhtp/shumeipainxez.com/0 []15/2/09/run-python-script-when-the-raspberry-pi-starthtml 19
Cao zhan-peng etc.: Distributed Wirele Monitoring System of Factrory Machinery Temperature 19 [1] Chen Jianhao. Raspberry Pi Getting Started Guide [M]. Beijing: Posts and Telecom Press, 2014. [2] Brendan Horan. Practical Raspberry Pi [M] Beijing: Posts and Telecom Press, 2014. [3] Li Longqi, Fang Meifa, Tang Xiaoteng. Development of Raspberry Pi based on Real-time Monitoring System [J]. Journal of Minjiang University, 2014 (05). [4] Zheng Shijue, Xu Hong. Design and implementation of remote monitoring system based on Raspberry Pi [J]. Microcomputer & its Applications, 2014 (19). [5] Simon Monk. Raspberry Pi Python programming entry [M]. Beijing: Science Press, 2014. [6] Unknown Author. A tiny and smart cli player of douban.fm in Node. js [EB/OL]. https://github.com/turingou/douban.fm [7] Unknown Author. Another Way to Let Raspberry Pi Start up and Run Python Script[EB/OL]http://shumeipai.nxez.com/20 [8] 15/02/09/run-python-script-when-the-raspberry-pi-start.html
Distributed Wirele Monitoring System of Factory Machinery Temperature Cao zhan-peng:Zhou bo:Mu-tingting (School of Instrumen Science and electrical engineering.Jilin University.Changchn 130022) energy consumption and high performance micro controller STC89C52RC and temperature sensor DHT11,and uses wireless module Because of the large factory environment,the real-time changes and uneven distribution of temperature and humidity is caused.If we adopt the traditional way of the measurement circuit.it will be verv complex,vulnerable to be distracted,and accuracy is not high,does not meet certain harsh industrial environmen and some outdoor environment.Therefore,choosing a good digital temperature,a wireless transmission module and simple to use is particularly important.This design has low power consumption,low cost,simple hardware circuit,high receiving sensitivity.receiving and transmitting distance is about 100 meters,it is a feasible method. Keywords-NRF24L01;temperature and humidity sensor DHT11:STC89C52RC transmission.The whole design of the master and 1 INTRODUCTION slave modules are connected through wireless communications module NRF24L01.The core of WrTH the development of society.Our requirement slave is microcontroller STC89C52.and the slave to the temperature and humidity of environmental is transmits temperature that collected by the higher and higher,especially in the pharmaceutical, temperature sensors to the host via the wireless food,aviation,microelectronics and other fields module NRF24L01,the master receives For the daily management of factory,the temperature data via the wireless module temperature and humidity will directly affect the NRF24L01.and then the data displays on the service lifeand safety reliability of the factory items liquid crystal LCD1602.so as to achieve the Therefore.A system that is capable of accurate. purpose of monitoring.Finally.the temperature stable.real-time monitoring of temperature and and humidity data received by sensor can be sentto humidity is particularly important.In some cases. the host from two slaves via the wireless module in we need to monitor a large extent,the wiring is not the range of m,the host received the data via the convenient and not conducive to post-maintenance. wireless module and the data is displaved on the then we use wireless modules for temperature LCD1602 LCD.so as to achieve the purpose of acquisition. monitoring the temperature and humidity. Taking into account that there are demands for The system is designed with low cost.fast multi-point temperature monitoring the environment transmission,low power consumption and high in many factories,sowe design a distributed factory the soare design is simpe wireless temperature monitoring system.We adopt NRF24L01 as wireless communication module and 2.HARDWARE SYSTEM DESIGN STC89C52RC as the core to control the temperature and humidity to achieve short-range wireless The basic block diagram of the system is as 21
Cao zhan-peng etc.: Distributed Wirele Monitoring System of Factrory Machinery Temperature 21 Distributed Wirele Monitoring System of Factory Machinery Temperature Cao zhan-peng; Zhou bo; Mu-tingting (School of Instrument Science and electrical engineering, Jilin University, Changchun 130022) Abstract-The paper introduce a design that monitors temperature and humidity for short distance , which is based on low energy consumption and high performance micro controller STC89C52RC and temperature sensor DHT11, and uses wireless module nRF24L01. Because of the large factory environment, the real-time changes and uneven distribution of temperature and humidity is caused. If we adopt the traditional way of the measurement circuit ,it will be very complex, vulnerable to be distracted, and accuracy is not high, does not meet certain harsh industrial environment and some outdoor environment. Therefore, choosing a good digital temperature ,a wireless transmission module and simple to use is particularly important.This design has low power consumption, low cost, simple hardware circuit, high receiving sensitivity, receiving and transmitting distance is about 100 meters, it is a feasible method. Keywords-NRF24L01; temperature and humidity sensor DHT11; STC89C52RC 1 .INTRODUCTION WITH the development of society, Our requirement to the temperature and humidity of environmental is higher and higher, especially in the pharmaceutical, food, aviation, microelectronics and other fields. For the daily management of factory, the temperature and humidity will directly affect the service life and safety reliability of the factory items. Therefore, A system that is capable of accurate, stable, real-time monitoring of temperature and humidity is particularly important. In some cases, we need to monitor a large extent, the wiring is not convenient and not conducive to post-maintenance, then we use wireless modules for temperature acquisition. Taking into account that there are demands for multi-point temperature monitoring the environment in many factories, so we design a distributed factory wireless temperature monitoring system. We adopt NRF24L01 as wireless communication module and STC89C52RC as the core to control the temperature and humidity to achieve short-range wireless transmission. The whole design of the master and slave modules are connected through wireless communications module NRF24L01. The core of slave is microcontroller STC89C52,and the slave transmits temperature that collected by the temperature sensors to the host via the wireless module NRF24L01, the master receives temperature data via the wireless module NRF24L01, and then the data displays on the liquid crystal LCD1602, so as to achieve the purpose of monitoring. Finally, the temperature and humidity data received by sensor can be sent to the host from two slaves via the wireless module in the range of 5m, the host received the data via the wireless module and the data is displayed on the LCD1602 LCD, so as to achieve the purpose of monitoring the temperature and humidity. The system is designed with low cost, fast transmission, low power consumption and high reliability,and the software design is simple. 2.HARDWARE SYSTEM DESIGN The basic block diagram of the system is as