Monday, February 11, 2019

The Magic Hat


AVNET invited me to the "electronica 2018" in Munich to hold a speech about IoT and Neopixels. So I thought, wouldn't it be great if I could finish my speech with presenting a functional project on stage by controlling Neopixels with a smartphone. Something with a practical, everyday use in home automation? .... Yeah, I got it! A hat! Home automation at it's finest .. somehow.


Quite easy. We just need a pin for the Neopixels. Although the WeMos and the Neopixels are working with 5Volts, they can be both be powered by a 3.7V LiPo battery for a short period. To wrap the stipe around the hat once, I needed a total of 19 Neopixels (with a specification of 60 LEDs / meter).



Off (0)

All LEDs are turned off

On (1)

All LEDs are on

Random (2) *

Colors changes randomly

Kight Rider (3)

K.I.T.T mode. Like in the TV series.

Blue Light (4)

Like a blue light of a fire truck

Driver (5) *

White on the front, red on the back

Blinky (6)

Makes the LEDs blink

* Mode doesn't use the selected color



Code @ Bitbucket

Part list

WeMos -
Neopixels 60/m -
Fedora -
LiPo 1200mAh -

No comments:

Post a Comment