Skip to content

ReDetection/bathroom-light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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