Have you ever walked to class in the freezing cold, three layers deep in sweatshirts, only to find that your classroom thermostat is set to 85 degrees? Our IOT Project, the Average Temperature Calculator, serves as a solution to the drastic issues faced by our engineering students every fall semester. The Average Temperature Calculator allows one to know the average temperature between two distant locations (both inside and out) and dress accordingly.
This project starts off by having two Particle photons recording temperatures via separate temperature sensors, and then sending this data to the cloud.
Each photon records temperature every 10 seconds and updates in real time to a spreadsheet in Google sheets. Below are the two graphs of the temperature in real time for the first and second photon; this is done through a connected IFTTT applet.
Click the link below to view live data from photon 1
https://docs.google.com/spreadsheets/d/1LZEeEebW6h5viCM6vXAthFb4oGn6P9rgCa1pYfxKsko/edit?usp=sharing
Click the link below to view the live data from photon 2
https://docs.google.com/spreadsheets/d/1WnGPXZdOsaCJnY8D6GdRT0Yx0vhS4Yr4Q9-UFTOeDlA/edit?usp=sharing
The blue line in the above figure represents temperature data from Particle 1, the red line represents temperature data from Particle 2, and the gold line represents the average temperature over the time period.
This data is published into two separate events, to which the third/central photon subscribes to. Once subscribed, the photon takes in the string character data and converts it to floating integer data so that the average between the two temperatures can be calculated. This average temperature is finally displayed on the OLED screen; after the average temperature is displayed a second event titled “Average Temperature” is published from the third photon. The first and second photon subscribe to this event and flash the D7 output every time the average is calculated.
Comments
Please log in or sign up to comment.