Santa's Sorting Hat With Micro:bit

by BrownDogGadgets in Circuits > Microcontrollers

1632 Views, 12 Favorites, 0 Comments

Santa's Sorting Hat With Micro:bit

Santa-Hat-Hero-3461-Edit.jpg
Santa's Sorting Hat: micro:bit Edition - DIY Animated Santa Hat with Neopixel Lights!

We've been working closely with Santa's Workshop to bring you another innovation in naughty or nice list communication. Now, you can check in real-time if your good and bad deeds have affected your standing on Santa's Naughty or Nice list! A fun project to make and share with your friends who's results may surprise you!

The hat consists of a servo, a micro:bit with a Crazy Circuits Bit Board, and a pushbutton. It's a pretty simple build overall and a real big hit with kids of all ages.

We've included a printable version (Easy) and an epic version with LEDs (Advanced). Make the project that's right for your skill level!

If you prefer a version of this product with an Arduino check out our Santa's Sorting Hat - Arduino Edition

Love Christmas? You might also like our "Circuit-Tree" Singing Christmas Tree project.

If you like our projects and want to see more of what we get up to each week please follow us on Twitter, Instagram, Facebook, and YouTube.

Supplies

Brown Dog Gadgets does in fact sell kits and supplies, however you can most certainly build this project without buying a single thing from us. Though buying from us does help support small our small business and us building cool projects just like this.

Electronics Needed:

Craft Supplies Needed:

Optional: A Silhouette or Cricut electronic cutting machine to cut out the design

Gather Materials

Santas Sorting Hat 1.jpg
  • Gather the materials (and tools) you'll need for the project.

Cut Foam Strips

Santas Sorting Hat 2.jpg
Santas Sorting Hat 5.jpg
  • Cut the foam strips to size.
  • For the hat that we used, we cut a 23-inch by 1.5-inch strip to go around the head and two 14-inch by 1.5-inch strips to go over the head in both directions. Measure your hat and head to find the right size for you.

Connect the Foam Strips

Santas Sorting Hat 6.jpg
Santas Sorting Hat 7.jpg
Santas Sorting Hat 8.jpg
  • Use rubber cement to connect the ends of the long strip to make a circle.
  • Connect the two shorter pieces to the main circle, making a dome shape as shown.

Attach the Bit Board and Servo

Santas Sorting Hat 9.jpg
Santas Sorting Hat 10.jpg
Santas Sorting Hat 11.2.jpg
  • Use a plastic-covered twist tie to attach the servo motor through the GND and 3V holes.

Connect the Button

Santas Sorting Hat 15.jpg
Santas Sorting Hat 16.jpg
Santas Sorting Hat 18.jpg
  • Wrap Maker Tape around the button, connecting it to itself as shown.
  • Add foam mounting tape to the back.
  • Adhere the button inside the hat where it touches the top of the head. This button will activate the code when the hat is placed on the wearer's head.
  • Adhere one of the strips of Maker Tape to Pin 5 and the other strip to GND.


Connect the Servo and Battery

Santas Sorting Hat 19.jpg
Santas Sorting Hat 20.jpg
Santas Sorting Hat 21.jpg
  • Connect the Servo to Pin 13 using the pins on the back of the Bit Board. The ground wire is the brown one.
  • Use foam mounting tape to secure the battery pack.
  • Secure the wires into the screw terminals with a small screwdriver.


Connect the Stick

Santas Sorting Hat 23.jpg
Santas Sorting Hat 24.jpg
Santas Sorting Hat 25.jpg
  • To make the arm that will swing the hat around, we put a dab of superglue to connect the LEGO to the popsicle stick (this is optional).
  • Then, we wrapped the two together with a piece of electric tape as shown.

Add the Micro:bit and Code It

Santas Sorting Hat 26.jpg
code.jpg
  • Place the micro:bit into the Bit Board and connect it to your computer to download this code.
  • Tip: Remove the stick from the motor during your first upload. Then, press button "B" to move the motor to the center position, and place the stick onto the motor facing straight up.

Make the Topper

Santas Sorting Hat 28.jpg
Santas Sorting Hat 29.jpg
Santas Sorting Hat 30.jpg
  • Using the foam template, cut two of the shapes out of foam.
  • Apply rubber cement to the edges, leaving the area at the bottom dry, as shown.
  • Press the two pieces together, then slide the popsicle stick between them. By keeping the glue away from the stick, you can insert it more or less to match the height of your Santa Hat.


Fill the Santa Hat

Santas Sorting Hat 35.jpg
Santas Sorting Hat 37.jpg
Santas Sorting Hat 34.jpg
  • Glue the foam inside the peak of the Santa hat with the front of the hat matching the front of the foam piece.
  • Insert the rest of the assembly inside the hat. It's easiest to do this in two steps: detach the foam piece and place it inside, then place the headpiece inside, then carefully re-attach the stick to the motorhead inside the hat.

Test & Decorate (Simple Version)

Santas Sorting Hat 38.jpg
Epic Santa Hat-14.jpg
  • Test the hat by placing it on your head - it should dance around!
  • To complete the simple version of the hat, print and cut out the template, then hot glue the pieces in place, as shown.

Advanced Version: Let's Add LEDs!

Epic Santa Hat-01.jpg
Epic Santa Hat-02.jpg
Epic Santa Hat-03.jpg
  • For the advanced version, we'll make the template 3D and add lights!
  • Staple the template to a piece of cardboard. We removed one side of the cardboard to make it easier to punch.
  • Cut out the arrow shape and use a hole punch to punch out the holes.


Add Craft Foam

Epic Santa Hat-05.jpg
Epic Santa Hat-06.jpg
Epic Santa Hat-07.jpg
  • Line the outer edge with .5 inch strips of craft foam. Cardboard strips would also work.
  • Paint the arrows green.

Glue the Words

Epic Santa Hat-08.jpg
  • Glue the words behind the arrows, making sure not to cover the LED holes.

Plan the LED Circuit

microbitDiagram-01-01.png
microbitDiagram-02.png
  • The circuit is a bit complex: We soldered two rows of 12 LEDs together so that the animation would be easy to code. See the diagram for details. Make two sets of 12, one set for each arrow. There are detailed soldering instructions in the next step.
  • In the second diagram, you can see the LED layout, with the LEDs closest to the Bit Board (#1) placed at the bottom of the arrow, and moving around the arrow on either side toward the tip (#12). One of the two rows will have an extra LED that you can cut off.

Solder the LEDs

Epic Santa Hat-09.jpg
  • This step is very tricky! If you're new to soldering, partner with a maker with experience for this step.
  • The "fairy light style" NeoPixel LEDs are very tricky to work with because the wires are very thin and coated with resistive plastic. Use an X-ACTO blade to peel away the plastic, exposing the copper wire.
  • Add heat shrink tubing before connecting the wires to the long female jumper wires. This will make it easy to plug it into the Bit Board.


Glue the LEDs in Place

Epic Santa Hat-10.jpg
Epic Santa Hat-11.jpg
Epic Santa Hat-12.jpg
  • Following the diagram in step 15, glue each LED in place behind each hole.
  • Remove any glue that makes its way to the front with tweezers.

Glue the Arrows to the Hat

Santa-Hat-Hero-3452.jpg
Santa-Hat-Hero-3432.jpg
Santa-Hat-Hero-3422.jpg
Santa-Hat-Hero-3423.jpg
  • Connect the "Nice" arrow to Pin 0 and the "Naughty" arrow to Pin 1.
  • Use Hot Glue to glue the Arrows to the hat, with the "OR" sign in the center.
  • It's time to see who's NAUGHTY and who's NICE!