How-To: The Lonely Christmas Tree

Internet of Things Raspberry Pi Technology
How-To: The Lonely Christmas Tree

There’s no better way to show your geek cred on Christmas than hooking up your Christmas tree to the internet. While it’s certainly not a new idea, I was eager to try out my own spin on it this holiday season. The Lonely Christmas Tree lights up whenever you receive an email, hopefully adding a little cheer to your holiday season.

YouTube player

This project uses an internet-connected Arduino. There are many ways to get your Arduino online, and I decided to use the Ethernet Shield because I had one handy. You can connect yours through your computer or make your project wireless with a WiFi shield or the XBee Internet Gateway. On a set interval, the Arduino will connect to a PHP-enabled web server which will, in turn, check for new email. The PHP web server will return the count of messages to the Arduino, which will turn on the tree when it sees that the message count in your in box has risen. Thanks to the PowerSwitch Tail, controlling the A/C electricity is a snap.

Once you’ve uploaded the code to your Arduino, you can modify the PHP script to return any kind of count to light your tree up. As you can see from the video above, I worked with the YouTube API to light up my tree as new comments are posted to that video and it really does work! What would your internet-connected Christmas tree respond to?

This was first published on Dec. 15, 2011. The Networked On-Air video can be found here

What will the next generation of Make: look like? We’re inviting you to shape the future by investing in Make:. By becoming an investor, you help decide what’s next. The future of Make: is in your hands. Learn More.

Tagged

Matt Richardson is a San Francisco-based creative technologist and Contributing Editor at MAKE. He’s the co-author of Getting Started with Raspberry Pi and the author of Getting Started with BeagleBone.

View more articles by Matt Richardson
Discuss this article with the rest of the community on our Discord server!

ADVERTISEMENT

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 16th iteration!

Prices Increase in....

Days
Hours
Minutes
Seconds
FEEDBACK