The goal of this project is to create a device which log the temperature every hour then send to the server, and also be able to show the current “temperature settings” compare to the temperature detected, the machine should turn on the heater/air condition, or not. The device is not actually connected to the heater or air condition, just a hypothetic practice.
The most trouble that I had is probably successfully push to the server. We are using a server that our instructor, Tom Igoe, set up, and only been told that we are supposed to sent the request as a JSON. but after hours of trouble shoot me and some classmates are only able to send “hello world” via terminal. Finally I found out the smallest thing that i needed to change, which is double quote ” on the outside, and single quote ‘ on the inside.
I decided to put my device in the wood shop, so I also included a dust sensor.
dust sensor datasheet:
how it works:
temperature sensor (gp2y1010au0f) datasheet:
Because I have a dust sensor, i need some air flow, which i taken it as a consideration while designing my fixture. In the instructable post, he mentioned having a fan would help the air flow, but it should work without one, so I decided not to include it. But after not logging much information from the dust sensor, I will include it in the next version.
I decided instead of showing the current temperature, users can decide what temperature they want to set the room to be, and the device will show red if the temperature is set higher than current temperature (heating) or blue if its lower (cooling). Similar to traditional thermal stat but with a bit more feed back.
⇧showing cooling and heating⇧