Introduction: Sound Reactive Halo HD Elephant Made From Recycled Carton

About: Kitronik creates high-quality products and resources for education and makers.

Get creative with the children at home and make your very own Sound Reactive Halo HD Elephant! Combine creativity and code with this fun-filled project that can be completed in any household, no matter what your coding ability or craft supplies!

This guide will take you through the whole project step-by-step, so you can follow along with your children and just have fun! The main emphasis of this project is that you can use recycled materials, like a milk carton, to explore coding in a different way, whilst making it very child-friendly!  

Supplies

The best bit about recycled projects is that you don't need anything special to get started, a lot of it will be around the house already! We used...


Electronics:


Craft Supplies:

  • Used 4-pint milk carton
  • Paint and paintbrushes
  • Scissors
  • Glue
  • Any other decorative material for your elephant

Step 1: Making the Elephant Shape

  1. Mark a line around the milk carton indicating where it wants to be cut.
  2. Using scissors, carefully cut along this line - an adult should supervise younger children.
  3. Mark and cut two half circles on either side to make the feet of the elephant.

Step 2: Decorating the Elephant

  1. Use coloured paint (or anything else you'd like to use) to decorate your elephant.
  2. Once dry, use a pen to mark on the elephant's eyes. Alternatively, you could use 'googly' eyes.
  3. Use some of the leftover milk carton to make 2 ears for the elephant, then stick them down using glue.

That's it, your elephant is all ready! Now, let's move on to coding the Halo HD so we can create our Sound Reactive Elephant...  

Step 3: Coding the BBC Micro:bit

If you're new to coding with the micro:bit and haven't been on Microsoft MakeCode before, we advise that you have a quick read of our 'micro:bit User Guide for Beginners'. It's very simple to use, so don't be put off whilst you're halfway through!

  1. Open a new MakeCode window for the project. Name it what you would like and then save it at the bottom of the screen.
  2. Now add the custom blocks for the Kitronik Halo HD. You can find this by clicking on the 'cog' on the top right of the screen, selecting 'Extensions' and searching 'Halo'.

You can see a screenshot of the code in the above image.

  1. It's now time to create the code shown above. We wanted to add a 'beating' heart to ours, so that code is in the 'forever' loop. If you are unsure about the code, you can download the attached code below and simply drag it into MakeCode.
  2. The code in the 'listen for' blocks run when the microphone detects a clap. It plays a song on the buzzer (we liked the 'baddy' melody) and spins a rainbow on the Halo HD LEDs while it sounds.
  3. Once you're happy with the code, click 'Download' and save the file under 'micro:bit'. The light on the micro:bit should flash whilst downloading then stay constant when the download is complete.
  4. Slot the micro:bit into the edge connector and switch the Halo HD to 'on'. Now, cover your Halo HD with your elephant and admire your finished sound responsive, rainbow lit, elephant in action!


Step 4: See It in Action