Bling Bling Bracelet

Let's make a beautiful bracelet!


You'll need

1 x Micro:bit,
1 x basic:bit,
1 x Felt Strap,
1 x GVS LED Strip

Buy this activity

Step 1

Instructions

Place the basic:bit as shown in the picture with the felt in between it and the micro:bit




Materials

1 x Micro:bit
1 x basic:bit
1 x Felt Strap


Step 2

Instructions

Place the micro:bit above the basic:bit and ensure that the 'G' of the micro:bit lines up with the 'G' of the basic:bit. Screw all the screws in after they have been aligned properly.




Materials

1 x Micro:bit
1 x basic:bit
1 x Felt Strap


Step 3

Instructions

Fold the strap as shown in the picture.


Step 4

Instructions

Fill your battery pack with batteries and slot the battery pack into the loop you just created.




Materials

1 x battery pack
2 x batteries


Step 5

Instructions

Connect the battery pack to the micro:bit.


Step 6

Instructions

Insert the female end (the end that’s not pokey) of the LED strip into the slit next to the button B of your micro:bit. Pull it all the way in until only the white area of the LED strip remains outside the slit.




Materials

1 x GVS LED Strip


Step 7

Instructions

Connect the LED Strip to Pin 1 on the basic:bit. Ensure that the black wire is connected to 'G' and the yellow wire is connected to '1'.


Step 8

Instructions

Loop the excess wire flat against the back of the basic:bit.


Step 9

Instructions

Now insert the hanging end of the strap into the slit on the other end of the micro:bit. Pull the strap through till you reach a suitable size.


Step 10

Instructions

Insert the loose end of the LED strip into the slit as well. And pull till the LED strip is secure against your bracelet.


Step 11

Instructions

Code your bracelet and slip it on!


Step 12

Instructions

Play with the strap and watch what happens to the LED. Add music and more to your fancy bling!


Step 13

Instructions

Now you’ve gotten it all together, it’s time to code! For beginners, follow steps 15 through 18. For more challenge, follow steps 19 through 23. For advanced coders, follow step 24. Have fun, folks!


Step 14

Instructions

First off, we need to import the blocks for the neopixel light strip. To do so, click on Advanced > Extensions. Type in “neopixel” and select the first search result.




Step 15

Instructions

To initialise the light strip, go to the neopixel drawer, drag out a “set strip to neopixel....” block. In the block, we have to make several changes. First, change pin to P0, or to whichever pin you’ve plugged in. Second, replace “change with 24” to “10”.


Step 16

Instructions

To display rainbow color, from neopixel drawer, drag a 'strip show rainbow...' and place in a forever block.


Step 17

Instructions

You are done for this beginner level! Download and see the rainbow lights appearing on your light strip!


Step 18

Instructions

If you are still here, congrats! You’ve successfully displayed rainbow colored lights on the light strip! Now, let’s add code some event handlers to change lights whenever we shake the micro:bit. First off, delete the forever block containing ‘strip show rainbow...’.


Step 19

Instructions

From the input drawer, drag in an “on shake”.


Step 20

Instructions

From the neopixel drawer, drag in a 'strip clear' block, 'strip show color...' block and 'strip show' block.


Step 21

Instructions

Duplicate the ‘on shake’ block and change the gesture to ‘tilt left’ and change ‘show color’ option to a different one.


Step 22

Instructions

Now, you are done with the intermediate level! Download the code and shake away!


Step 23

Instructions

Ready for more advanced stuff? Head over to tk.sg/bbb now!


Code and References

Completed this tutorial?

Spread the word! Let's get this trending on social media with #letsgethacking #BlingBlingBracelet