Lämpötilojen seuranta Googlen verkkosovelluksella
Koivisto, Jesse (2021)
Koivisto, Jesse
2021
All rights reserved. This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2021112822181
https://urn.fi/URN:NBN:fi:amk-2021112822181
Tiivistelmä
Opinnäytetyön aiheena on toteuttaa projekti, jonka avulla voidaan seurata lämpötila-antureiden mittaamia arvoja verkkosovelluksen kautta. Projektissa mitataan lämpötila-arvoja 1-Wire protokollaa sekä NodeMCU-kehitysalustaa käyttäen. Mitatuista lämpötila-arvoista piirretään viivakaavioita Googlen verkkosovellukseen, josta niitä päästään seuraamaan verkkoselaimen kautta.
Opinnäytetyön projektin toteutuksessa käytettiin NodeMCU ESP8266 -kehitysalustaa sekä DS18B20 lämpötila-antureita. NodeMCU ohjelmoitiin Arduino IDE -kehitysympäristön avulla. Ohjelma lukee lämpötila-antureiden antamat arvot, ja lähettää ne Wi-Fi-yhteyden avulla Google Driveen. Google Drivessä verkkosovelluksen kehittämiseen käytetään HTML, CSS sekä Google Apps Script -ohjelmointikieltä. Viivakaaviot piirretään sivulle Chart.js JavaScript-kirjastoa avuksi käyttäen.
Opinnäytetyön alussa käydään läpi projektissa käytettyjä laitteita ja ohjelmia, sekä niiden toimintaperiaatteita. Tämän jälkeen kerrotaan projektin suunnittelusta sekä sen toteutuksen eri vaiheista. Opinnäytetyön lopussa nähdään, miten projektin toteutuksessa onnistuttiin. The purpose of this thesis was to create a project that could be used to monitor temperatures remotely. The temperatures are measured by using 1-Wire protocol and ESP8266 microcontroller. The measured temperatures are used to create multiple line charts in a web application that you can monitor with a web browser.
The measuring of the temperatures for this project was done by using NodeMCU ESP8266 development board and DS18B20 temperature sensors. The development board was programmed to get the values measured by the temperature sensors and send them to Google Drive using a Wi-Fi connection. This program was made with Arduino IDE development environment. The Google web application was developed with HTML, CSS, and Google Apps Script programming language. Chart.js JavaScript library was used to help with data visualization, by creating the line charts for the web application.
At the beginning of the thesis all the hardware and software needed for the project are reviewed. After this the planning of the project and the different stages of its development are described. At the end of the thesis, we see how the final result turned out.
Opinnäytetyön projektin toteutuksessa käytettiin NodeMCU ESP8266 -kehitysalustaa sekä DS18B20 lämpötila-antureita. NodeMCU ohjelmoitiin Arduino IDE -kehitysympäristön avulla. Ohjelma lukee lämpötila-antureiden antamat arvot, ja lähettää ne Wi-Fi-yhteyden avulla Google Driveen. Google Drivessä verkkosovelluksen kehittämiseen käytetään HTML, CSS sekä Google Apps Script -ohjelmointikieltä. Viivakaaviot piirretään sivulle Chart.js JavaScript-kirjastoa avuksi käyttäen.
Opinnäytetyön alussa käydään läpi projektissa käytettyjä laitteita ja ohjelmia, sekä niiden toimintaperiaatteita. Tämän jälkeen kerrotaan projektin suunnittelusta sekä sen toteutuksen eri vaiheista. Opinnäytetyön lopussa nähdään, miten projektin toteutuksessa onnistuttiin.
The measuring of the temperatures for this project was done by using NodeMCU ESP8266 development board and DS18B20 temperature sensors. The development board was programmed to get the values measured by the temperature sensors and send them to Google Drive using a Wi-Fi connection. This program was made with Arduino IDE development environment. The Google web application was developed with HTML, CSS, and Google Apps Script programming language. Chart.js JavaScript library was used to help with data visualization, by creating the line charts for the web application.
At the beginning of the thesis all the hardware and software needed for the project are reviewed. After this the planning of the project and the different stages of its development are described. At the end of the thesis, we see how the final result turned out.