BBC Micro:bit Powered Halloween Fancy Dress

by kitronik in Craft > Costumes & Cosplay

291 Views, 1 Favorites, 0 Comments

BBC Micro:bit Powered Halloween Fancy Dress

FDVGYWUKU2NWN4C.jpeg

Halloween offers the perfect opportunity for some fancy dress fun. In this tutorial, we will show you how this can easily be done using the Kitronik ZIP Halo for the BBC microbit. This will definitely make you the belle of the ball and if you also want venture out to trick or treat, it will help to light your way. 

In this tutorial, we are going to show you how to add LEDs to a witches hat, as pictured above, the same techniques can be used to modify other fancy dress items such as capes, as shown above, and at the foot of the tutorial. Let's get making!  

Supplies

Parts:

Tools:

Coding:

Getting the Halo Ready

zip-halo-powered-halloween-dress-halo-front-microbit-870.jpg
zip-halo-powered-halloween-dress-halo-cutters-870.jpg

Once the microbit has been connected to the ZIP Halo using the supplied bolts the first task is to connect the extra ZIP LEDs that we will be adding to the hat, to the extension connection point on the ZIP Halo. The extension point is indicated by the text ‘ZIP_EXT’ as shown in the image below. These connections will need connecting to the corresponding connections on the flexible ZIP LED strips.

To connect the parts together you will need three strands of cable. We have decided to use a male to female servo extension cable to that the hat can be ‘plugged’ into the ZIP Halo and removed again when not in use. The first task is to cut the extension cable into two halves as shown in the second image above.

Stripping the Wires

zip-halo-powered-halloween-dress-halo-wire-strip-microbit-870.jpg

Take one-half and strip the insulation from the end of each of the three wires so that it can be soldered to the ZIP Halo board.

Soldering the Halo

zip-halo-powered-halloween-dress-halo-solder-microbit-870.jpg
zip-halo-powered-halloween-dress-halo-servo-extension-microbit-870.jpg

Solder the three wires to the ‘ZIP_EXT’ connection point as shown below. We have chosen to have the wires coming out of the back of the ZIP Halo so that they don’t get in the way of the front LEDs. The results will look like the second image above.

Connecting the LED Strip Pt 1

zip-halo-powered-halloween-dress-halo-strip-snip-microbit-870.jpg
Screenshot 2021-09-27 at 160225.png
zip-halo-powered-halloween-dress-halo-led-strip-microbit-870.jpg

The flexible ZIP strips will need cutting down to fit the size of hat that you are using. This is easy to do as the strips have cut points after each LED as shown below. We will be using one strip on either side of the hat so cut two of the same length.

Now take the second half of the servo intension cable which we will be soldering to the first section of flexible ZIP strip. It important to make sure the three lines are connected in the correct way. The connections should be made (soldered) as shown in the 2nd image (the table):

 Also, the flexible strips are directional with data being fed in one end and out the other. This is indicated by the arrows printed on the strip. Make sure you connect to the data in end. The result should look as shown in the 3rd image above.

Connecting the LED Strip Pt 2

zip-halo-powered-halloween-dress-halo-joined-microbit-870.jpg

Now take the second flexible ZIP strip and connect (solder) it to the first piece using three pieces of connecting wire as shown below. Again take care to ensure the arrows on the strips flow from the ZIP Halo, along the first strip and onto the second strip.

Positioning the LED Strip on the Hat

zip-halo-powered-halloween-dress-halo-backing-microbit-870.jpg

Now it is time to carefully position the two LED strips onto the hat. The flexible ZIP strip has an adhesive backing. Peel this away and stick the two strips in the desired positions. The extension connector should be located at the bottom of the hat. When you are happy with the positioning you may wish to sew over the strips (not through the PCBs!) in a number of places for extra security.

Fixing the LEDs in Place

zip-halo-powered-halloween-dress-halo-scissors-microbit-870.jpg
zip-halo-powered-halloween-dress-halo-through-hat-microbit-870.jpg
zip-halo-powered-halloween-dress-halo-hat-complete-microbit-870.jpg
  • Cut a small hole in the hat at the point where the extension cable joins the strips as in image 1.
  • Then feed the cable through the hole as shown in image 2.
  • The resulting hat should look like image 3.

Sew the ZIP Halo Board in Place

zip-halo-powered-halloween-dress-halo-on-mat-microbit-870.jpg

Now the hat is complete it is now time to sew the ZIP Halo board in place. Key points that you will want to consider when deciding where to put the ZIP Halo are:

  • Does it want to be visible and do you also want to use the LEDs on the ZIP Halo and microbit?
  • Where will the batteries be located? We have chosen to use 3xAAA batteries. These are bulkier than a Lithium Polymer battery but much safer to use.

Note: The ZIP Halo can also become warm if the LEDs are used to display some colours at maximum brightness. We will use them at a lower brightness to ensure this is not an issue.

With these points in mind, we decided to locate the ZIP Halo at the front of the dress so that the LEDs can shine through the material and be visible. I small pouch was added to hold the batteries.

The Code

Screenshot 2021-09-27 at 162119.png

The code is shown in the image above can be downloaded from here. The code that we have created to control the hat and dress is as follows. This uses two variables to control the ZIP LEDs on the hat and dress. The dress is set up to display red all the time (red is a colour that doesn’t generate too much heat) and the hat can swap between display red and rainbow depending on which button on the microbit is pressed.

Testing

kitronik-halo-ween-microbit-zip-led-12-1000.jpg
kitronik-halo-ween-microbit-zip-led-13-1000.jpg
kitronik-halo-ween-microbit-zip-led-1-1000.jpg
kitronik-halo-ween-microbit-zip-led-2-1000.jpg
kitronik-halo-ween-microbit-zip-led-3-1000.jpg
kitronik-halo-ween-microbit-zip-led-4-1000.jpg
kitronik-halo-ween-microbit-zip-led-5-1000.jpg
kitronik-halo-ween-microbit-zip-led-6-1000.jpg
kitronik-halo-ween-microbit-zip-led-7-1000.jpg
kitronik-halo-ween-microbit-zip-led-8-1000.jpg
kitronik-halo-ween-microbit-zip-led-9-1000.jpg
kitronik-halo-ween-microbit-zip-led-10-1000.jpg
kitronik-halo-ween-microbit-zip-led-11-1000.jpg

Try on and test. Connect the hat to the dress taking care to ensure the power and data connections are connected the correct way around. Insert the batteries into the battery pack and connect to the microbit and turn on the ZIP Halo. The dress will now look like this, perfect for some Halloween fun! Above is a collection of photos that we took of the costumes and I think you'll agree, costume + LEDs = that's more like it!

The images above show it in action!