Categories
001. Caleb's Favorite Posts 002. Final Projects 200. Networks 203. ITP Stuff 990. Connected Devices 993. Physical Fabrication 995. Physical Computing

A Simple Connected Thermostat

The connected thermostat I was building earlier is now complete! 🌡🌡🌡

This thermostat works like a Nest Thermostat (though clearly not as pricey); collecting the current temperature and sending that information to an online server.

Here is the repo for the project.

It was recently collecting the temperature of its environment at NYU ITP for a week. During that week, it was sending that information (along with the desired temperature which is controlled by the knob) to a real, live server. 📡

Consequently, it was hanging out on the real, live internet and subject to attacks. Read more about the cybersec here.

Networking:

Thank you to cvalenzuena and ardunio sample sketches

The thermostat uses a MKR1000 to wirelessly send an HTTPS request to a server once an hour. The request has the following JSON data in it:

{"sessionKey":"[redacted]",
"macAddress":"[redacted]",
"data":{"temp":"20.99",
        "targetTempC":"73",
        "fahrenheit":"69.78",
        "targetTempF":"74"}
}

It sends the information in both celsius and fahrenheit because this is the world we live in.

Digital Details:

Thank you to Tom Igoe  and this instructable (temperature sensor), and altervista for the LCD screen wiring

The major 🔑 parts of the thermostat are the MKR1000 and temperature sensor.

The LCD screen is nice for visual confirmation as well:

Fabrication:

The enclosure used for this thermostat was a travel soap container from Muji (the best store in the world❣)

I used a Dremel with a metal, brillo-style bit to create holes for the LCD, knob, USB and sensor holes seen on the exterior.

putting the ‘rapid’ in rapid prototyping 😉

The hardware on the interior is then latched on to these exterior pieces.

On the inside is a breadboard setup:

one potentiometer is used to control the target temperature, the other is for LCD screen contrast – see the reference material for more information

The LCD screen is attached to a mini-breadboard that is connected to the main one. Here is what that setup looks like without the LCD screen attached:

a MKR1000 wireless micro-controller on the bottom left

The components fit through the holes in the muji box like so:

Close it up and plug it in – tada! A thermostat.

2 replies on “A Simple Connected Thermostat”

Leave a Reply

Your email address will not be published. Required fields are marked *