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

1 thought on “How-To: The Lonely Christmas Tree

  1. Aimie Perez says:

    Hi does the power switch tail connected to the christmas lights.??? kindly elaborate.. we badly need your help. i want to achieve this :))) thank you

Comments are closed.

Discuss this article with the rest of the community on our Discord server!

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
Maker Faire Bay Area 2023 - Mare Island, CA

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

Buy Tickets today! SAVE 15% and lock-in your preferred date(s).