# Glowing Fascinator Hat with Gemma M0 and MakeCode

## Overview

https://youtu.be/IcMKfcjKlCs

Create a beautiful and unique fascinator hat for every occasion. A NeoPixel Jewel, Gemma M0, and tiny battery are hidden inside. The flowers and feathers glow tastefully and set off your outfit-du-jour with colors and animations you can design yourself in MakeCode.&nbsp;

A little hot glue, a little creativity, and you'll be the talk of the Derby Hat Parade. Make one for everyone in your wedding party, or two for yourself and one for each of your girlfriends for a night on the town.&nbsp;&nbsp;

From Wikipedia:

A&nbsp; **fascinator** &nbsp;is a&nbsp;[headpiece](https://en.m.wikipedia.org/wiki/Headpiece "Headpiece"), a style of&nbsp;[millinery](https://en.m.wikipedia.org/wiki/Hatmaking "Hatmaking"). Fascinators were originally a form of lightweight knitted head-covering. Since the 1990s the term refers to a type of formal headwear worn as an alternative to the hat; it is usually a large decorative design attached to a band or clip, sometimes incorporating a base to resemble a hat, in which case it may be called a&nbsp; **hatinator**.&nbsp;

Hatinator is my new favorite word.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/071/512/medium800/adafruit_gemma_LED_Fascinator-12.jpg?1550619629)

## Parts
### Part: Gemma M0
quantity: 1
Gemma M0 Microcontroller
[Gemma M0](https://www.adafruit.com/product/3501)

### Part: NeoPixel Jewel
quantity: 1
7-Pixel NeoPixel Jewel
[NeoPixel Jewel](https://www.adafruit.com/product/2226)

### Part: Battery
quantity: 1
Tiny LiPoly Battery
[Battery](https://www.adafruit.com/product/2750)

### Part: On/Off Switch
quantity: 1
Tactile On/Off Switch with Leads
[On/Off Switch](https://www.adafruit.com/product/1092)

### Part: JST Connector Cable
quantity: 1
Battery Extension Cable with Connectors
[JST Connector Cable](https://www.adafruit.com/product/1131)

### Part: Battery Charger
quantity: 1
USB Battery Charger
[Battery Charger](https://www.adafruit.com/product/1304)

This is an easy project that requires some simple soldering and a little creativity. We've included code for a simple and beautiful rainbow animation. Also included is some more complex code that allows you to choose a color gradient to go with an outfit via Gemma's onboard capacitive touch pads -- just touch the Gemma and the animation colors will change.

## Tools and Materials

- Soldering iron, solder & heat shrink
- Wire cutters & strippers
- Hot glue gun & glue sticks
- Scissors
- Hair clips
- Craft foam & craft felt
- Feathers, flowers, and fancy things

I also used a few small pieces of [Worbla and Fosshape](https://www.worbla.com/) in my fascinator to add structure and height, but this is not required.

![](https://cdn-learn.adafruit.com/assets/assets/000/071/358/medium800/adafruit_gemma_fascinator-hat-with-fan.jpg?1550439268)

- [Next Page](https://learn.adafruit.com/glowing-fascinator-hat-gemma-m0-makecode/wiring-diagram.md)

## Featured Products

### Adafruit GEMMA M0 - Miniature wearable electronic platform

[Adafruit GEMMA M0 - Miniature wearable electronic platform](https://www.adafruit.com/product/3501)
The **Adafruit Gemma M0** is a super small microcontroller board, with just enough built-in to create many simple projects. It may look small and cute: round, about the size of a quarter, with friendly alligator-clip sew pads. But do not be fooled! The Gemma M0 is incredibly...

In Stock
[Buy Now](https://www.adafruit.com/product/3501)
[Related Guides to the Product](https://learn.adafruit.com/products/3501/guides)
### NeoPixel Jewel - 7 x 5050 RGB LED with Integrated Drivers

[NeoPixel Jewel - 7 x 5050 RGB LED with Integrated Drivers](https://www.adafruit.com/product/2226)
Be the belle of the ball with the NeoPixel Jewel! &nbsp;We fit seven of our tiny&nbsp;5050 (5mm x 5mm) smart RGB LEDs onto a beautiful, round&nbsp;PCB with mounting holes and a chainable design to create what we think is our most elegant (and evening-wear appropriate) NeoPixel board...

Out of Stock
[Buy Now](https://www.adafruit.com/product/2226)
[Related Guides to the Product](https://learn.adafruit.com/products/2226/guides)
### Lithium Ion Polymer Battery - 3.7V 350mAh

[Lithium Ion Polymer Battery - 3.7V 350mAh](https://www.adafruit.com/product/2750)
Lithium-ion polymer (also known as 'lipo' or 'lipoly') batteries are thin, light, and powerful. The output ranges from 4.2V when completely charged to 3.7V. This battery has a capacity of 350mAh for a total of about 1.3 Wh. If you need a larger (or smaller!) battery, <a...></a...>

Out of Stock
[Buy Now](https://www.adafruit.com/product/2750)
[Related Guides to the Product](https://learn.adafruit.com/products/2750/guides)
### Tactile On/Off Switch with Leads

[Tactile On/Off Switch with Leads](https://www.adafruit.com/product/1092)
Squeeze once to turn on, squeeze again to turn off! This clicky switch makes a great power switch or mode toggler. We like this switch because it's easy to embed in a seam for easily powering up/off wearable and fabric projects. Can handle up to 14V and 2 Amps! This is a really satisfying...

In Stock
[Buy Now](https://www.adafruit.com/product/1092)
[Related Guides to the Product](https://learn.adafruit.com/products/1092/guides)
### JST-PH Battery Extension Cable - 500mm

[JST-PH Battery Extension Cable - 500mm](https://www.adafruit.com/product/1131)
By popular demand, we now have a handy extension cord for all of our JST PH-terminated battery packs (such as our LiIon/LiPoly and 3xAAA holders). One end has a JST-PH compatible socket, and the other end has a matching plug. Between the two, 500mm of color coded wire. Handy for wearable...

In Stock
[Buy Now](https://www.adafruit.com/product/1131)
[Related Guides to the Product](https://learn.adafruit.com/products/1131/guides)
### Adafruit Micro Lipo - USB LiIon/LiPoly charger

[Adafruit Micro Lipo - USB LiIon/LiPoly charger](https://www.adafruit.com/product/1304)
Oh so adorable, this is the tiniest little lipo charger, so handy you can keep it any project box! Its also easy to use. Simply plug in the gold plated contacts into any USB port and a 3.7V/4.2V lithium polymer or lithium ion rechargeable battery into the JST plug on the other end. There are...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1304)
[Related Guides to the Product](https://learn.adafruit.com/products/1304/guides)

## Related Guides

- [GEMMA M0 Case](https://learn.adafruit.com/gemma-m0-case.md)
- [Gemma Firewalker Lite Sneakers](https://learn.adafruit.com/gemma-led-sneakers.md)
- [Light-Activated Pixel Heart](https://learn.adafruit.com/light-activated-pixel-heart.md)
- [Capacitive Touch Unicorn Horn](https://learn.adafruit.com/capacitive-touch-unicorn-horn.md)
- [Creating and sharing a CircuitPython library](https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library.md)
- [Citi Bike Helmet](https://learn.adafruit.com/citi-bike-helmet.md)
- [Fiber Optic Whip](https://learn.adafruit.com/fiber-optic-whip.md)
- [Cyber Flower: Digital Valentine](https://learn.adafruit.com/cyber-flower-digital-valentine.md)
- [Adafruit LED Sequins](https://learn.adafruit.com/adafruit-led-sequins.md)
- [CircuitPython 101: Basic Builtin Data Structures](https://learn.adafruit.com/basic-datastructures-in-circuitpython.md)
- [CircuitPython Essentials](https://learn.adafruit.com/circuitpython-essentials.md)
- [3D Printed NeoPixel LED Gas Mask](https://learn.adafruit.com/3d-printed-el-wire-laser-neopixel-led-gas-mask.md)
- [LIGHTSHIP: LED Animation over WiFi](https://learn.adafruit.com/lightship-led-animation-over-wifi.md)
- [Chameleon Scarf](https://learn.adafruit.com/chameleon-scarf.md)
- [Trinket / Gemma Space Invader Pendant](https://learn.adafruit.com/trinket-slash-gemma-space-invader-pendant.md)
