Skip to content

A smart tool for home & office to control lighting autonomously

Notifications You must be signed in to change notification settings

syk-yaman/smart-led

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart LED

An AVR board to control home lighting autonomously. It provides automatic control of LED lighting (12vdc) according to:

  • Time schedule: active during daily work time except for holidays.
  • People movement: turning on lighting automatically when sensing movement using a PIR extension.
  • Electric supply status: provides auxiliary lighting when needed (in case of a power outage).
  • Illumination level sensing: no need to turn on the lighting when there is enough lighting.

Also providing manual control:

  • Directly using onboard buttons.
  • Remotely using an infrared remote control (RC5 based).

Cover

Specifications

Inputs:

  • 12v DC power supply.
  • 220v AC (power detection).

Output:

  • 12v DC power supply for LEDs.

Schematic:

Schematic layout

Main parts:

  • ATmega 8A
  • DS1307 RTC
  • PIR module (link)
  • 5v DC Relay
  • Infrared receiver

See BOM for further details.

Development

Required tools:

  • Atmel Studio
  • Autodesk Eagle
  • A brain

BE AWARE OF ELECTRIC SHOCK, 220V POWER SUPPLY SHOULD BE TAKEN SERIOUSLY. PLEASE TAKE SAFETY MEASURES FIRST

License

The software side is licensed under MIT License
MIT License

Copyright (c) [year] [fullname]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The hardware side is licensed under CERN License
This documentation describes Open Hardware and is licensed under the CERN OHL v. 1.2.

You may redistribute and modify this documentation under the terms of the CERN OHL v.1.2. (http://ohwr.org/cernohl). This documentation is distributed WITHOUT ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING OF MERCHANTABILITY, SATISFACTORY QUALITY AND FITNESS FOR A PARTICULAR PURPOSE. Please see the CERN OHL v.1.2 for applicable conditions