Coincell keychain flashlight

Christmas gift for my friends. Also a pilot project for the moisture sensors. It periodically checks for movement and adjusts its “activity” value accordingly. The activity value determines how often (or if at all) it randomly flashes. It’s supposed to feel like it’s alive, in a sense. Written out like this it doesn’t sound like much but I think the effect is kinda neat and serves its purpose.

It also has some more or less useful features like a static flashlight, various flashing modes, and a “game”, which you cannot win.

User Manual

  • Flick it and simultaneously press the button to get into the menu or keep holding the button and the light will come on.
  • Menu:
    • Red: Exit menu
    • Orange: Flashing mode 1 (exit by pressing the button, no timeout)
    • Yellow: Flashing mode 2 (exit by pressing the button, no timeout)
    • Green: The game (Have fun! If you figure out how to play it, congratulate yourself)
    • Blue: Suspend the random flashing for 24 hours
    • Purple: Show battery level

Source code and a little bit of documentation are available on my GitHub


Last updated on November 02, 2019