BBC micro:bit Pancake Flipping Game
Pancake day might have passed but that doesn't mean you need to stop practising your flipping. It will require you to use the micro:bit’s accelerometer, buttons, code the LEDs and a little craft. This code comes courtesy of Touch Develop. There's a simpler version that you can make by following this guide from the BBC. However, we're going to be taking a look at an awesome (but a bit more complex) version, made by one of our favourite geeks, David Whale.
Project Time: 15 minutes
Skills required: Coding, Craft, Haute cuisine
Difficulty Level: Advanced
Take a look at the finished code. It's pretty confusing at first sight. Lots of condensed code. This code is a bit tougher than the others. Fortunately, if you click on one of the lines of code you can see an explanation of how it works. Slowly work through the code until you feel like you've got a pretty good understanding of it. If you're still feeling a bit lost, why not go to the easier guide above and see how a less complex version of this game is created.
Once you've got an understanding of the code down it's time to get your BBC micro:bit strapped to a frying pan. Or, you can choose not to and keep the game and micro:bit functioning without the pan. Even the battery pack is optional. This is what makes this project really good for someone who has their micro:bit but isn't really sure what to do with it, or might think it's a bit boring.
To attach it to a frying pan you will need:
- Micro USB cable
- 2x AAA Batteries
- Battery clip
- Frying pan
- Cable ties or something similarly to attach the micro:bit to the pan (Optional)
Get a frying pan (or any sort of pan), hold the battery pack against the handle and wrap some tape around them both to hold them together.
Then hold the BBC micro:bit on the top making sure that the system button on the back doesn't touch the handle. Thread a hair clip, or something similar, through hole 3V, and round the back of the battery. Thread another tie clip through its eye, and thread the tip of that back through the 1 hole. Finally, thread the tip through the eye of the first tie clip, pull tight, and cut off any excess with some scissors. The tie clips should now hold everything securely in place.
Finally, connect the batteries, flash your code to the micro:bit and get flipping! The originator of this code, David Whale, can be seen in action, below!