Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.11 KB

README.md

File metadata and controls

29 lines (19 loc) · 1.11 KB

Automatic LED light in my bathroom Build Status

It's so much useful so I even removed regular bulb — it became redundant.

Features

  • Automatic night mode 😴 (When it's dark in the apartment — turn on with 1% power)
  • On motion detection trigger for N minutes (prolongation works)
  • Buttons to change brightness or add 10 more minutes
  • Automatically fades in and out
  • Display how much time left
  • Covered with tests! 🚀
  • Modular source code 🔥

Breadboard

"I have another microcontroller!", "I have Arduino board instead"...

It's okay. This code was initially written for Arduino Nano and later moved to single ATMega8 processor. Every Arduino should work fine, just change pins definition and you're done. It should be even compatible with ATTiny processors.

Dependencies

  • SevSeg for easy seven segment display operation

License

MIT