Have a high-tech bake off with the BBC micro:bit

Project bake off

Coding is a lot like baking, if you think about it. You need to follow the recipe closely, prepare the right tools and ingredients for the job, and if you've forgotten something, the end result could be messy!

Last year's Great British Bake Off winner, Nadiya, had a chat with Team micro:bit about her eating habits with her family.

She said: "Once a month the one thing we love to do is have dessert for dinner!"

"That's where the kids get to pick whatever they want to have - cakes, biscuits... and we can have whatever dessert we want for dinner that night, no savoury at all!"

We have some cracking baking-inspired activities for you below. I'm sure your finished work will be delicious, so on your marks... get set... bake!

3D Print a BBC micro:bit strawberry cake topper

One of the coolest parts of TV baking shows is watching the bakers decorate their cakes. Flowers, mirror glaze, macarons... they all look delicious, but we've designed something a little more high-tech... a micro:bit cake topper!

The case we've designed to hold the micro:bit looks like a massive strawberry - it looks great with other fruit cake toppings.

There's space inside the strawberry for a battery pack, and even a small speaker, so you can get your cake topper to scroll "Congratulations!" or sing Happy Birthday.

Download the 3D printing files for the cake topper here.

If you make this then we'd love to hear how well it worked. Get in touch with support.

Bake your own BBC micro:bit cake!

Decorating your cake with a micro:bit with one thing, but how about turning a cake... into a micro:bit!

That's exactly what Emma's done - she always decorated cakes for her daughter's birthdays and after making a fire engine, the Cheshire Cat and the entire Periodic Table out of individual cupcakes, she's made an edible micro:bit.

Even though the cake decoration is so elaborate, Emma is a fan of keeping the cake itself easy to make.

Emma said: "I love a really simple cake that tastes good but can be made without too much effort. I have a lemon drizzle recipe which is dead easy to make but tastes much more impressive."

The micro:bit cake is a chocolate sponge with black fondant icing. Emma's given the full recipe down below, so get baking!

Making the Cake


  • 20cm Square Cake Tin
  • 225g Caster Sugar
  • 225g Butter or Baking Spread
  • 4 eggs
  • 200g Self Raising Flour
  • 25g Cocoa Powder
  • 1 teaspoon baking powder


  1. Preheat the oven to 180 degrees C / gas mark 4.
  2. Grease the square tin with baking spread or butter and dust with flour to make sure the tin is fully greased.
  3. Cream together the caster sugar and butter or baking spread in a large bowl using a mixer or wooden spoon.
  4. Add the eggs one by one and continue to mix.
  5. Gradually add the flour and cocoa powder ensuring all the ingredients are fully mixed.
  6. Pour the mix into the baking tin and cook for 40-45 minutes. Test cake with skewer. If it does not come out clean then put the sponge in for a few more minutes and test again.
  7. Once cake is cooked, remove from tin and leave to cool completely on a wire rack.

Making the Icing


  • 1 Table Spoon of Apricot Jam
  • Small amount of icing sugar
  • 500 g Ready to Roll black icing
  • Small amount of Ready to Roll icing in another colour for the micro:bit logo (light or dark blue, green, red, yellow or dark pink)
  • Gold shimmer spray
  • Silver shimmer spray or silver edible glitter
  • Sugar Art Pen or Icing pen.
  • Large Silver balls or individual LED lights


  1. Gently heat a large spoonful of apricot jam in a pan on the hob.
  2. Roll out a large piece of black ready to roll/fondant icing big enough to entirely cover the cake, using a small amount of icing sugar to dust the surface and rolling pin if the icing sticks.
  3. Turn the cake upside down so the flattest surface is on the top and put it on a cake board or breadboard.
  4. With a pastry brush cover the cake with the hot apricot jam so the icing will bond to the cake.
  5. Gently lift the black icing sheet and cover the cake making sure that the icing is smooth. Fold the icing into the corners and trim the excess icing away with a knife.
  6. Cut another strip of black icing, using a ruler, to go along the bottom of the cake. Spray the strip of icing with the gold shimmer spray and once dry enough to handle add the strip to the bottom of the cake.
  7. Roll out some more black icing and cut five circles. The metal lid of a screw top wine bottle can be used as a cutter.
  8. Spray some gold shimmer spray onto a plate and use a clean paintbrush to paint a gold rim around each black circle. Add these to the gold strip on the cake, slightly overlapping the circles over the strip.
  9. With a ruler make indentations along the bottom of the gold strip to mark the 20 pin edge connectors. Using a micro:bit or a picture of one for reference is helpful at this point. Once indentations are visible go over them with an edible licorice pen or icing pen. Also mark the gold strip with the numbers and letters which appear underneath each ring.
  10. With the remaining black icing cut two small squares for programmable buttons. Spray these squares with silver shimmer spray or dust with silver edible glitter. Add one to each side of the microbit.
  11. Next roll two very small balls of black icing and press them flat. Add one on top of each silver square, using a little bit of water if necessary to make them stick into place.
  12. Next roll some coloured icing to make the decoration for the micro:bit. Cut three triangles and fix them to the top left hand corner of the cake using a little water as an adhesive if necessary.
  13. Then cut two much smaller triangles and place one below the left button and one above the right button. With the edible pen write the letter A on the left one and the letter B on the right one.
  14. With the same coloured icing make the micro:bit logo. Roll some icing out and using a craft knife cut an oval shape. Then cut a smaller oval inside and remove the middle section. Lift the outer oval ring up carefully and place on cake. Then roll two small balls, flatten them out and place inside the oval on the cake.
  15. Finally add the 25 LEDs to the cake using edible silver balls. These need to be arranged in five rows of five.
  16. As an alternative, individual battery powered red LEDs can be used instead of silver balls. These are available to buy online but if battery operated devices are used then children should be supervised at all times when near the cake.
Selecting this opens external content from our support system, which adheres to their privacy policy.