Chapter 11
Building a Tweeting Pet Door
In This Chapter
Using Hall-effect sensors
Attaching an Ethernet shield to your Arduino
Using the Twitter library
Sending a tweet
With everyone sending tweets these days, it only makes sense that your pet should be able to do the same! This project provides a (somewhat) credible excuse to create a Twitter account for your pet and has the practical benefit that you can see when your pet is in or out, even when you’re not at home. I have an indoor/outdoor cat, who comes and goes as he pleases. Living in the city, we sort of want to be sure that he is safe and know what he is up to at any given time. What better way than to use the Internet to provide a data feed of his comings and goings?
In this project, you modify your pet door with sensors that detect when a magnet passes by them. A magnet mounted to the pet door flap triggers these sensors when your cat or dog (or badger) is entering or leaving. Your Arduino uses this signal to select a random message and sends this directly to Twitter as a tweet. You won’t need to leave a computer connected ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access