Skip to content
/ MagicHat Public

Arduino-based LED animation to sew into a "magic hat"

License

Notifications You must be signed in to change notification settings

psol/MagicHat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MagicHat

Arduino-based LED animation to sew in a pointy "magician hat."

Sew the sequin in front of the hat, hide the strand, Gemma and battery inside the hat.

Hardware

Wiring

Gemma

  • D0: strand data
  • D1: vibration sensor
  • D2: PN2222 base
  • Vout: regulator VIN
  • GND : strand-, sequin-, regulator GND and vibration sensor

Soldering thing

You would think that it will be easier to solder to the strand data to D1 but it is not PWM capable.

Regulator

Regulates 5V to the strand (optimal for NeoPixels brightness).

  • VIN: Gemma Vout
  • GND: Gemma GND
  • VOUT: strand+

Optional PN2222

For the sequin to light up more brightly, use a PN2222 transistor. Wire the base to the D2 (instead of sequin+), the emitter to Gemma GND and the collecter to sequin-. Wire sequin+ to Gemma Vout.

Sine Wave

The sine wave is generate by sine.py. It pulses at low power twice, followed by one high power.

Reduce/increase sampling to speed the animation up/down.

About

Arduino-based LED animation to sew into a "magic hat"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published