Make a hamster feeder with Raspberry Pi Zero

People make marvellous things for their pets with Raspberry Pi. Here’s a splendid hamster feeder tutorial from Christopher Barnatt of Explaining Computers, just perfect if you’re after a small project for this weekend.

Raspberry Pi Zero Hamster Feeder

Raspberry Pi servo-controlled pet feeder, using a Raspberry Pi Zero and two SG90 servo motors. This project builds on the servo control code and setup from m…

All you need to build your hamster feeder is a Raspberry Pi Zero and peripherals, a couple of servos, some plasticard, sellotape and liquid polyadhesive, and some jumper wires. The video takes you very clearly through the entire set-up, from measurements to wiring details to Python code (which is available to download). As Christopher explains, this will allow you to feed your hamster controlled portions of food at suitable intervals, so that it doesn’t eat the lot in one go and, consequently, explode. What’s not to love?

Check out the Explaining Computers YouTube channel for more clear, detailed videos to help you do more with computing. And for more Raspberry Pi projects, head to our own Raspberry Pi projects, with hundreds of ideas for beginners and beyond available in English and many other languages.

Jump to the comment form


I wonder if this also works for kavia :)

Reply to Lars


Were any hamsters harmed in the making of this product?

Reply to Neil


Christopher Barnatt’s Explaining Computers has been one of my goto sites for everything SBC. A true treasure trove of useful and understandable information.

He breaks everything down in a way that makes me think of what I can do next.

Cheers Chris

Neil from New Jersey

Reply to Neil Stewart


He’s a great communicator. I think the foundation should commission him to produce a series of Raspberry Pi video tutorials.

Reply to Andrew


So where can I find the python code for the feeder as promised in the introduction

Reply to CalleB

Leave a Comment