Sense HAT egg drop game

Here’s a little game for your Raspberry Pi and Sense HAT from Dan Aldred. Dan’s a UK teacher (one of those people you wish had been YOUR teacher when you were a kid). So, as always with a Dan resource, he’s made the code available on GitHub to make made sure that kids (and adults) can build the game themselves, and learn plenty of useful stuff while they’re at it.

Raspberry Pi SenseHat Egg Drop Game #

Egg Drop is a simple game where eggs fall from the top of the SenseHat. The egg falls toward the ground under the influence of gravity! You have a basket which you can use to catch the eggs. If you catch one, then you gain one point and your score goes up.

The Sense HAT‘s perfect for building this kind of activity; Sense HAT games using the motion sensors, the humidity sensor (we’ve had some fun coming up with Boppit clones you have to blow on) and the accelerometers. See if you can come up with something that uses the magnetometer and the temperature sensor. If you’re already using one, you’re in good company: there are two on the ISS as part of the Astro Pi programme. (Brace yourselves, ‘cos there’s no gravity.)

Thanks Dan!

12 comments

Avatar

Alright! A low resolution game from 1965!
I still haven’t tried the sense HAT yet.

Avatar

When I read Egg drop game I thought he was going to show a picture of an egg and drop the Pi using the sensors to decide if the egg breaks or not. :)

I guess in a classroom having RPi’s being thrown around might not be advisable. ;) LoL.

Avatar

I think that perhaps the title’s a psychological test in disguise. It just made me think of soup.

Avatar

It made me thing of coughing.

Avatar

I’m working on writing something up for just that, I thought the same thing! I wrote a new Engineering Principles course for this year and created a new STEAM Lab. Of course one of the things I ordered was a bakery full of Pis, Sense HATs, and even a couple of touch screens. I am working on writing up and prototyping an upgrade to the old egg lab!

Avatar

Is the filter commercially available? I’ve been thinking about how to make/by one.

Avatar

Looks like it’s one of the diffusers from https://shop.pimoroni.com/products/pibow-modification-layers

Avatar

Brill – thanks for the link.

Avatar

Awesome little gadget … I’ll make my own version of digipet :)

Avatar

Here’s a useful starting point https://www.raspberrypi.org/learning/pixel-pet/

Avatar

Missing the image chick.png

Avatar

nice can you make a guide to how to make it?

Leave a Comment

Comments are closed