Note - this projects has been updated, and all new content resisdes in the en
directory.
Hamsters are nocturnal, which means that they sleep in the daytime and come out at night. This means that when you are sleeping, your hamsters are up and about and when you are up and about, your hamsters are sleeping!
~ Violet
We need to find some way of being able to see what the hamsters are up to during the night. I suspect they are partying.
In this project, we are going to use a Raspberry Pi camera and an Explorer HAT with a Raspberry Pi to take pictures and video of the hamsters, triggered by their movement.
As well as a Raspberry Pi with an SD card loaded with Raspbian, you'll also need:
- 1 x Raspberry Pi Camera Module
- 1 x Explorer HAT (e.g. from Pimoroni)
- 2 x crocodile clip cables (e.g. from Amazon)
- 2 x male-to-male jumper wires (e.g. from Pimoroni)
- 1 x wind speed sensor (e.g from Maplin)
- 1 x speaker with 3.5mm audio jack (e.g from Amazon)
- python3-picamera
- python3-explorerhat
See more information on checking you have these packages installed, and how to install them, on the software installation page.
- 1 x hamster cage with hamster wheel
- 1 x hamster
- Setting up your Raspberry Pi, Pi Camera and Explorer HAT
- Create a trigger switch
- Create a Python program to take pictures of the hamsters
- Get the party started with lights!
- Hamsters need music to dance!
- The worksheet
- (Optional) Final version of Python code hamster_disco.py
Adding lights and music to the party is fun but it could keep you awake at night, and may become a little annoying to adults, so you might not want to keep your speaker turned on every night.
It may also scare hamsters of a shy disposition, and as a hamster owner you have a duty to care for the wellbeing of your hamster. Check out the RSPCA Hamster Guide to learn more!
Based on an idea submitted for the Raspberry Pi Poster Competition in December 2013 by Violet. It's been a pleasure to make this Raspberry Pi poster project idea a reality.
Unless otherwise specified, everything in this repository is covered by the following licence:
Hamster Party Cam by the Raspberry Pi Foundation is licensed under a Creative Commons Attribution 4.0 International Licence.
Based on a work at https://github.com/raspberrypilearning/hamster-party-cam