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](/proxy/?url=https://content.instructables.com/FGY/UVNM/KX4OV1XO/FGYUVNMKX4OV1XO.jpg&filename=Santa-Hat-Hero-3461-Edit.jpg)
![Santa's Sorting Hat: micro:bit Edition - DIY Animated Santa Hat with Neopixel Lights!](/proxy/?url=https://content.instructables.com/FXS/4EPK/KX4OVQLL/FXS4EPKKX4OVQLL.jpg&filename=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.
Downloads
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:
- Crazy Circuits Bit Board
- micro:bit
- Crazy Circuits Push Button
- Brick Compatible 720 Degree Servo Motor
- 2 AAA Battery Pack
- Maker Tape 1/4" Wide
- 6 x Female to Female Ribbon Cables
Craft Supplies Needed:
- LEGO Beam 5 x 0.5 with Axle Holes on each end (11478 / 44864)
- Popsicle Stick
- Twist Ties
- 1/4 inch EVA Foam
- Craft Foam
- Cardboard
- Paper, and embellishments to decorate
- A Santa Hat, or Fleece and a sewing machine to make your own
- A Big White PomPom, Star, or other hat toppers
Optional: A Silhouette or Cricut electronic cutting machine to cut out the design
Gather Materials
![Santas Sorting Hat 1.jpg](/proxy/?url=https://content.instructables.com/FBM/V8Z1/KX4OVFN0/FBMV8Z1KX4OVFN0.jpg&filename=Santas Sorting Hat 1.jpg)
- Gather the materials (and tools) you'll need for the project.
Cut Foam Strips
![Santas Sorting Hat 2.jpg](/proxy/?url=https://content.instructables.com/F17/0U6H/KX4OVFRG/F170U6HKX4OVFRG.jpg&filename=Santas Sorting Hat 2.jpg)
![Santas Sorting Hat 5.jpg](/proxy/?url=https://content.instructables.com/F5Z/YS47/KX4OVFSD/F5ZYS47KX4OVFSD.jpg&filename=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](/proxy/?url=https://content.instructables.com/FVA/49E4/KX4OVGPN/FVA49E4KX4OVGPN.jpg&filename=Santas Sorting Hat 6.jpg)
![Santas Sorting Hat 7.jpg](/proxy/?url=https://content.instructables.com/FSJ/RL0I/KX4OVGPO/FSJRL0IKX4OVGPO.jpg&filename=Santas Sorting Hat 7.jpg)
![Santas Sorting Hat 8.jpg](/proxy/?url=https://content.instructables.com/FV4/CKAF/KX4OVGR1/FV4CKAFKX4OVGR1.jpg&filename=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](/proxy/?url=https://content.instructables.com/FAZ/BK5N/KX4OVH6L/FAZBK5NKX4OVH6L.jpg&filename=Santas Sorting Hat 9.jpg)
![Santas Sorting Hat 10.jpg](/proxy/?url=https://content.instructables.com/FC5/LBQL/KX4OVH7A/FC5LBQLKX4OVH7A.jpg&filename=Santas Sorting Hat 10.jpg)
![Santas Sorting Hat 11.2.jpg](/proxy/?url=https://content.instructables.com/FXC/F571/KX4OVH9M/FXCF571KX4OVH9M.jpg&filename=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](/proxy/?url=https://content.instructables.com/F7J/9308/KX4OVHWB/F7J9308KX4OVHWB.jpg&filename=Santas Sorting Hat 15.jpg)
![Santas Sorting Hat 16.jpg](/proxy/?url=https://content.instructables.com/FW2/DX5H/KX4OVHWK/FW2DX5HKX4OVHWK.jpg&filename=Santas Sorting Hat 16.jpg)
![Santas Sorting Hat 18.jpg](/proxy/?url=https://content.instructables.com/FSS/RU6Q/KX4OVHYZ/FSSRU6QKX4OVHYZ.jpg&filename=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](/proxy/?url=https://content.instructables.com/FWB/B7EJ/KX4OVITI/FWBB7EJKX4OVITI.jpg&filename=Santas Sorting Hat 19.jpg)
![Santas Sorting Hat 20.jpg](/proxy/?url=https://content.instructables.com/FGL/V2FL/KX4OVIVB/FGLV2FLKX4OVIVB.jpg&filename=Santas Sorting Hat 20.jpg)
![Santas Sorting Hat 21.jpg](/proxy/?url=https://content.instructables.com/F61/QYAR/KX4OVIX1/F61QYARKX4OVIX1.jpg&filename=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](/proxy/?url=https://content.instructables.com/F8B/W7G8/KX4OVJ21/F8BW7G8KX4OVJ21.jpg&filename=Santas Sorting Hat 23.jpg)
![Santas Sorting Hat 24.jpg](/proxy/?url=https://content.instructables.com/FT4/5Z9E/KX4OVJ33/FT45Z9EKX4OVJ33.jpg&filename=Santas Sorting Hat 24.jpg)
![Santas Sorting Hat 25.jpg](/proxy/?url=https://content.instructables.com/FUI/TGQG/KX4OVJ3M/FUITGQGKX4OVJ3M.jpg&filename=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](/proxy/?url=https://content.instructables.com/F89/0NEK/KX4OVJFS/F890NEKKX4OVJFS.jpg&filename=Santas Sorting Hat 26.jpg)
![code.jpg](/proxy/?url=https://content.instructables.com/FTR/0HN2/KX4OVJHG/FTR0HN2KX4OVJHG.jpg&filename=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](/proxy/?url=https://content.instructables.com/F29/2F1E/KX4OVJN0/F292F1EKX4OVJN0.jpg&filename=Santas Sorting Hat 28.jpg)
![Santas Sorting Hat 29.jpg](/proxy/?url=https://content.instructables.com/F9G/C5G6/KX4OVJOM/F9GC5G6KX4OVJOM.jpg&filename=Santas Sorting Hat 29.jpg)
![Santas Sorting Hat 30.jpg](/proxy/?url=https://content.instructables.com/FU6/V3DI/KX4OVJRN/FU6V3DIKX4OVJRN.jpg&filename=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](/proxy/?url=https://content.instructables.com/FSK/Y6Z7/KX4OVKKR/FSKY6Z7KX4OVKKR.jpg&filename=Santas Sorting Hat 35.jpg)
![Santas Sorting Hat 37.jpg](/proxy/?url=https://content.instructables.com/FID/N025/KX4OVKKS/FIDN025KX4OVKKS.jpg&filename=Santas Sorting Hat 37.jpg)
![Santas Sorting Hat 34.jpg](/proxy/?url=https://content.instructables.com/FOD/00PX/KX4OVKOD/FOD00PXKX4OVKOD.jpg&filename=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](/proxy/?url=https://content.instructables.com/FNF/DSAT/KX4OVMDI/FNFDSATKX4OVMDI.jpg&filename=Santas Sorting Hat 38.jpg)
![Epic Santa Hat-14.jpg](/proxy/?url=https://content.instructables.com/FGP/2B23/KX4OVMF7/FGP2B23KX4OVMF7.jpg&filename=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](/proxy/?url=https://content.instructables.com/FRI/Y4U2/KX4OVMSP/FRIY4U2KX4OVMSP.jpg&filename=Epic Santa Hat-01.jpg)
![Epic Santa Hat-02.jpg](/proxy/?url=https://content.instructables.com/FKG/DS4H/KX4OVMT3/FKGDS4HKX4OVMT3.jpg&filename=Epic Santa Hat-02.jpg)
![Epic Santa Hat-03.jpg](/proxy/?url=https://content.instructables.com/FHW/PGYK/KX4OVMV0/FHWPGYKKX4OVMV0.jpg&filename=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](/proxy/?url=https://content.instructables.com/F8S/668Z/KX4OVN9U/F8S668ZKX4OVN9U.jpg&filename=Epic Santa Hat-05.jpg)
![Epic Santa Hat-06.jpg](/proxy/?url=https://content.instructables.com/FO5/CTRU/KX4OVN9V/FO5CTRUKX4OVN9V.jpg&filename=Epic Santa Hat-06.jpg)
![Epic Santa Hat-07.jpg](/proxy/?url=https://content.instructables.com/FF1/D0IT/KX4OVN9X/FF1D0ITKX4OVN9X.jpg&filename=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](/proxy/?url=https://content.instructables.com/FWW/VN1D/KX4OVNFJ/FWWVN1DKX4OVNFJ.jpg&filename=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](/proxy/?url=https://content.instructables.com/FAT/OK7G/KX4OVNQB/FATOK7GKX4OVNQB.png&filename=microbitDiagram-01-01.png)
![microbitDiagram-02.png](/proxy/?url=https://content.instructables.com/FLX/47K4/KX4OVNQC/FLX47K4KX4OVNQC.png&filename=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](/proxy/?url=https://content.instructables.com/FV3/EEIF/KX4OVO5R/FV3EEIFKX4OVO5R.jpg&filename=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](/proxy/?url=https://content.instructables.com/F2R/BJNZ/KX4OVOGJ/F2RBJNZKX4OVOGJ.jpg&filename=Epic Santa Hat-10.jpg)
![Epic Santa Hat-11.jpg](/proxy/?url=https://content.instructables.com/FEB/WYCH/KX4OVOGN/FEBWYCHKX4OVOGN.jpg&filename=Epic Santa Hat-11.jpg)
![Epic Santa Hat-12.jpg](/proxy/?url=https://content.instructables.com/F6S/4NYP/KX4OVOH1/F6S4NYPKX4OVOH1.jpg&filename=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](/proxy/?url=https://content.instructables.com/F77/UO18/KX4OVOXC/F77UO18KX4OVOXC.jpg&filename=Santa-Hat-Hero-3452.jpg)
![Santa-Hat-Hero-3432.jpg](/proxy/?url=https://content.instructables.com/F26/H0NG/KX4OVP2A/F26H0NGKX4OVP2A.jpg&filename=Santa-Hat-Hero-3432.jpg)
![Santa-Hat-Hero-3422.jpg](/proxy/?url=https://content.instructables.com/FHC/8H56/KX4OVP3U/FHC8H56KX4OVP3U.jpg&filename=Santa-Hat-Hero-3422.jpg)
![Santa-Hat-Hero-3423.jpg](/proxy/?url=https://content.instructables.com/F6Q/VGZS/KX4OVP5E/F6QVGZSKX4OVP5E.jpg&filename=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!