Networked Thermostat: Adventures in IoT

For our final project in Connected Devices, we were tasked with creating an IoT Thermostat that had a physical UI and temperature sensor built in.

This was achieved using Node and an i2c ADC on a Raspberry Pi W. This was done with lots of amazing example code from Tom Igoe, a few repos in particular:

https://github.com/tigoe/NodeExamples
https://github.com/tigoe/NodeSensorExamples
https://github.com/tigoe/MakingThingsTalk2

Our challenge was to have a device that would post the current temperature to a web server for a week. The twist being that we were going to be under attack by a red team trying to hack our devices.

Continue reading “Networked Thermostat: Adventures in IoT”

Connected Devices Homework 2

I’ve been working a lot with MIDI lately, doing many little experiments with WebMIDI.js. Our homework for this week was to make a web interface to interact with an existing IoT lighting device, so I decided to leverage my experience and make a mashup.

Here is the MIDI Phillips Hue control:

And another after the break:

Continue reading “Connected Devices Homework 2”

Connected Devices Homework 1

Our first assignment in Connected Devices was to make a basic web server with node.js and express.js, with three end points.

I had originally tried to make this a musical project, where different musical sequences played on the server. The *music* part did not pan out (a fight for another day!) But the node server with endpoints exists.

One GET request gets the main webpage: /index.html
Another GET will tell the user the current sequence: /currentSequence
And a POST method via webpage sets the sequence: /readform

All of the functionality is pretty basic right now, but I’m hoping this can be the template for something more complicated in the future.

Here is the code currently:

Continue reading “Connected Devices Homework 1”