This thesis describes the process of research and development of a control loop feedback device (regulator) “PID”, which can be remotely controlled over internet connection. In the development process, I have limited the application to one user only and assumed that it is connected in a closed or protected internet environment. As such, the final product was not completely safe to use in a public network.
Application was based on “Arduino” microcontroller board. The development of the application began with usage of board model “Uno”, but was soon replaced with model “Mega”, due to microcontroller limitations. Arduino Mega was based on “ATmega2560” microcontroller. For internet communication and the ability of memory card SD, expansion board Arduino “Ethernet Shield” was used in both microcontroller board cases.
Programming code was split in two parts. First part was webpage code in HTML5 and JavaScript. The second part was microcontroller program (firmware), written in C++. Webpage was written with usage of free editing software “Notepad++”. Microcontroller firmware was written in free editor “Visual Studio Community 2015”. Firmware was compiled and uploaded to flash memory with “Make.exe” tool and script called “Makefile”.
Regulator software in first state functioned as a webpage server of user interface. When client connected, webpage was transferred to him and connection was terminated. After termination, webpage immediately connected back to the regulator. The application was then ready for remote control.
|