Sound Reactive Halo HD Elephant Made From Recycled Carton
by kitronik in Circuits > LEDs
374 Views, 1 Favorites, 0 Comments
Sound Reactive Halo HD Elephant Made From Recycled Carton
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:
- BBC micro:bit and programming lead - we recommend the BBC micro:bit Starter Kit
- Kitronik Halo HD for micro:bit and 3xAA Batteries
Craft Supplies:
- Used 4-pint milk carton
- Paint and paintbrushes
- Scissors
- Glue
- Any other decorative material for your elephant
Making the Elephant Shape
- Mark a line around the milk carton indicating where it wants to be cut.
- Using scissors, carefully cut along this line - an adult should supervise younger children.
- Mark and cut two half circles on either side to make the feet of the elephant.
Decorating the Elephant
- Use coloured paint (or anything else you'd like to use) to decorate your elephant.
- Once dry, use a pen to mark on the elephant's eyes. Alternatively, you could use 'googly' eyes.
- 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...
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!
- Open a new MakeCode window for the project. Name it what you would like and then save it at the bottom of the screen.
- 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.
- 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.
- 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.
- 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.
- 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!