Skip to content
Switch branches/tags
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Sea Glass

This code drives a string of four Adafruit Neopixel LEDs connected to an AdaFruit 5V Trinket causing the four LEDs to glow white with varying brightness that emulates the rhythm of human breathing.

Sea Glass

It's used to power four LEDs hidden inside a collection of sea glass found on a beach and kept inside an old glass jar. It makes a simple night light.

Video of the Breathing Night Light


This little project was made from things I had lying around or found:

  1. An AdaFruit 5V Trinket
  2. Four LEDs cut from a strip ot AdaFruit Neopixel
  3. An old wall wart adapter giving 5V @ 2000mA
  4. A glass that had previously held a candle
  5. Sea glass picked up on a beach
  6. Some Kintsu Glue


I first drilled a hole in the glass using a ceramic drill. The hole is there do that the cable from the wall wart can pass through. To protect the cable once in place I use the Kintsu Glue to make a little strain relief grommet. It also covers the sharp edges of the drilled glass.

Drilled glass Strain Relief

The code is pretty simple. It uses the AdaFruit Neopixel library to drive the four LEDs. The LEDS are literally cut with scissors from a strip and then bent into a circle and super-glued together.

Circuit Close up

There are just three wires to solder:

  1. +5V from wall wart goes to the Neopixel strip and BAT+ on the Trinket
  2. GND goes to the Neopixel strip and GND on the Trinket
  3. A single wire goes from PIN #0 on the Trinket to the Neopixel data line


The electronics are simply buried in the sea glass.

Buried in Sea Glass Buried in Sea Glass


The breathing is based on the old "sleep LED" on Macs and the explanation found here. The formula for the LED brightness is


where x is the number of milliseconds since start. It looks like this when plotted (there's a sharper intake of breath than exhalation):



AdaFruit Trinket-based project that makes string of LEDs 'breath'




No releases published


No packages published