Electric Imping

blog1

Over Christmas I was having a bit of a rest from writing my transfer report by playing with my new Electric Imp.

This wonderful little device is the size of an SD card that can be embedded into objects to make them internet enabled. I managed to create a few Christmasy experiments over the festive period. The first experiment was to borrow Bendan Dawes’ wonderful example to create a tweeting Christmas tree, every time the tree lights went on in the house it sent out a tweet to let everyone know. This was done by sticking an LDR directly onto one of the tree lights to recognise when they were turned on. When the imp sees that the lights are on it sends a message to open.se, which composes a message and tweets for you.

Screen shot 2013-01-10 at 15.00.04

 

The second experiment was to make the Electric Imp work the other way round. Instead of using the real world as an input and digital world as an output,  I wanted to control the real world using the digital world. I managed to hack some code together from online examples so that every time a website was refreshed it activated a servo motor to spin a mini Christmas tree.

Electric Imp controlling a servo motor from michael shorter on Vimeo.

This code was then combined with a mains relay, now when the website was visited it turned the Christmas tree lights on, and then off when visited again.

Electric Imp controlling Christmas tree lights from michael shorter on Vimeo.

 

Leave a Reply

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