This thesis describes a device, which purpose is to observe and control a house from a distance. House can be controlled through an electronic mail, which spares a lot of time, since we can send e-mails from the mobile phone, which we carry everywhere.
We check for new e-mails on a computer. The program is written in Python programming language. We check who the sender is and the content of the e-mail. If the data is valid, program will send it through USB communication to a microcontroller (STM32F207), on which a wireless module NRF24L01+ is connected. The wireless module is set as transceiver. All devices will receive the data sent through the wireless module, but only the device, to which data was intend will respond. This device checks sensor states and send the obtained data back to the microcontroller system connected to the computer. Data about sensor states is then sent to its original sender through the e-mail.
The whole process, from sending to receiving the e-mail, takes a few seconds, which meet our needs. Program running on the microcontroller, is from start to the end written and tested in winIDEA development environment, which is connected to iTag debugger. Program running on the computer is written in programming language Python. Uses a couple of processor threads, which improves the response times of the program.
|