We didn’t have a motion sensor handy, so we used a Ultrasonic Distance Sensor instead to act like a motion sensor. The speaker was from an old musical toy. You can use pretty much any speaker you have available.

For this program we used an evil laugh mp3 audio file dowloaded off the internet then downsampled it using itunes and encoded as described by High-low tech. Note that the encoded audio codes may be long.

If the Arduino compliler throws an out of memory error then use a shorted audio sample. In this example the audio is 6 secs long. Recommeded is 4 secs.

Connections:

Speaker is connected to ground and pin 11 of Arduino Uni

Lets are connected to pins 5 and 6 of Arduino

The distance sensor used here has two input pins – the transmit or output pin is connected to pin 7 and the input/echo pin connected to pin 8 of Arduino

The code below includes the encoded audio codes for the evil laugh. It won’t likely show in your browser. But if you copy and paste the code into the Arduino IDE it should work. If not then you should encode your own audio file.

Like this:

littleBits just launched their cloudBit product. This is Omkar’s first true IoT project that takes data from the cloud to activate something local. In this case, taking goal alerts from a twitter feed to light up LEDs whenever a goal is scored. littleBits cloudBit is truly the easiest way for anyone to make a internet of things project.

The cloudBit works with IFTTT (If This Then That), a cloud service for making ‘Recipes’ to trigger actions based on events. Essentially, you create a Recipe on IFTTT using the the littleBits ‘Channel’ and you have a means to send a signal to the cloudBit based on an event defined in the Recipe.

We had to do a bit of a hack to make this work in real-time as soon as a goal is scored. Most IFTTT recipes don’t trigger in real-time (it usually triggers in 15 minute cycles) except a few. One of the real-time ones is the Email recipe. So for this project we used a work around in order to trigger cloudBit via the Email recipe on IFTTT as illustrated in the video below.

This could be done more simply by writing a web app as well. However, for this project we’ve tried to make it work without any web coding. Some Arduino programming is used to show a more meaningful alert on the device with sounds (though it is not essential to do any coding to make something similar).

Notes and acknowledgements:

Thanks to littleBits for choosing us for a early Beta trial of the cloudBit. This project was done during the Worldcup. But we couldn’t publish it before the launch of the cloudBit product.

Thanks to Andy Jiang who created a twitter feed of Worldcup goal alerts that we were able to use as data feed for this project.

The goals and alerts shown in the videos are live alerts recording during live game broadcasts.

The 2012 Maker Faire and an article on Popular Science about 12 year old entrepreneur Quin Etnyre sparked my son’s interest in making. So certainly the big highlight of the day was meeting Quin himself in person who was generous with his time and goodies. Be sure to check out his company website qtechknow.com for his kid friendly Arduino products.

The second highlight was the encounter with Spark Core team at their booth. They were so super awesome in recognizing my son from his last video and showered him with praises, encouragement and goodies (even a new Spark Core!). Plus he got to meet their CEO Zach Supalla who was really nice to offer encouragement and support. Thanks guys – we promise to make some cool projects with the 2 Spark Cores soon.

Except the Phoenard all the others look like good kits for young kids to get started, though he said the Phoneard was the coolest thing he saw at the show. The best part was seeing exhibits from many young makers including these 12 year olds: