DIY $10 Slack Notification Light

[youtube https://www.youtube.com/watch?v=BT3PeNsmyPA&w=560&h=315]

While being isolated at home, my company uses Slack more heavily than ever, and that Slack chime is starting to get old. What if there’s a physical light that can notify me instead?

I have a Smoko ambient light and a few of Digisparks lying around screaming “use me!”. So I started the project using a combination of these two.

Digispark
Smoko Ami Shrimp Sushi Ambient Light

The circuit is really simple, just a NPN and a resistor. I used a NPN with a beta (use hFE on datasheet for a rough estimate of beta) of 40, and with a 1K resistor the NPN gives about 130mA to the LED. If you want to do this project too, change the R1 value to match your desired LED current.

Schematics

I have to make some “battery adapters” to provide power to the light:

“Battery adapter” made with nickel strips
Circuitry wrapped in heat-shrink

On the software side, I don’t really want to reinvent the wheel and build a USB protocol from scratch, so I used code from blink(1) and adapted it for the Digispark.

The rest is relatively easy: use the blink(1) client and set up a slack integration with IFTTT.

Code:

https://github.com/gyf304/usblight

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.