CHAPTER 9

image

The Cat Toy

Most people are pretty familiar with the “cat chasing the little red dot” paradigm. It’s so popular it even had a short scene in one of the Shrek movies. Some cats will chase the laser spot until they drop. Some will only chase it for a little while. In any event, anyone who has a cat has probably played with a laser pointer with their feline friend at some point.

But wouldn’t it be nice if you could entertain your cat when you’re not there? A laser pointer, contrary to what you might think, does not have to be held and controlled by a human. A little programming and mechanical engineering magic, and you have yourself an ...

Get Learn Raspberry Pi Programming with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.