element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Gene Breniman's Blog Kitchen lighting system - take 2
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: genebren
  • Date Created: 3 Jan 2018 11:57 PM Date Created
  • Views 1712 views
  • Likes 13 likes
  • Comments 15 comments
Related
Recommended

Kitchen lighting system - take 2

genebren
genebren
3 Jan 2018

Upon moving into our 'new' home in Texas (5/2016), we noticed an under-cabinet lighting system was in place in our kitchen.  We thought cool, this will help brighten up our kitchen.  I found the remote, tried all the buttons, but nothing happened.  I then noticed that the light pucks were all battery powered.  This might make for an easy install, but wow, that is a lot of batteries (3 AAA batteries per unit x 8 units).  So after settling in a bit I decided to convert the system to use a wall wart for power and modify the system to slave itself to the under-cabinet microwave's surface lighting system (nice two level control button on the microwave front panel, i.e. not added switches). The idea was to install a small circuit into the microwave, connected in series with the lighting system, which would be powered by the controller board, and would return the current flowing to the lights.  The controller would read the A/C waveform for the current and determine the light setting level (off, low or high) and then transfer a light level to the modified light pucks via a four wire cable (+5, ground and an I2C bus). 

 

This all worked well for a while, but the current sensor was also picking up crazy readings when the microwave was in use, or when the microwave door was opened or closed.  I tried various modifications to the reading of the currents, but nothing was rock solid.  Either the lights would come on randomly or not come on at all.  I had adapted the algorithms to use filtering, modified the baseline and thresholds programmatically, moved the limits around, but nothing seemed to work quite the way I wanted.

 

Here are some pictures of the various components (original and modified):

imageimageimage

This is the original unit back, front (light on) and controller (as best as I can tell, this was a home depot distributed product).

 

 

imageimageimage

After cutting out the old battery compartment, I mounted the universal PCB (at left, configured as a end-point light fixture, center, configured as the controller and at right, the original electronics).  I used a Atmel, ATtiny85 as the processor for the light pucks and the controller boards (the opposite of this boards as the three LEDs mounted). In all, a very simple replacement PCB, designed around the mounting holes of the original unit.

 

So fast forward to the present.  After having recently completed a PIR based system for a client, I began to think that maybe I should convert my kitchen lighting to a PIR motion turn on/off system.  My wife agreed and I started planning on a very simple implementation.  Using a simple SparkFun PIR sensor, that I connected in place of my current sensor board (+5V, ground and input), I could and a 'motion detect' signal to my controller. My idea was simple, on motion detect, turn on the lights and set a timer.  Any time motion is detected, the timer is reset.  When the timer times out, the lights are turned off.  The modification to the controller was very simple, rip out all of the current sensing, replace it with a simple motion detect (high going logic level) and add a simple timer (1 to 120 minutes). Even with my dominant (right) arm in a sling, I was able to code and test the changes in a little less than a day.  Hopefully I can finish the installation tomorrow.

 

We will see how long this system work!

  • Sign in to reply

Top Comments

  • shabaz
    shabaz over 7 years ago in reply to mcb1 +4
    Hi Mark, I suspect you're right. They are a bit ancient now (perhaps coming up to 10 years), and due to the permanence of how I mounted them (I cut slots into the cabinet underside, and glued them flush…
  • genebren
    genebren over 7 years ago +4
    I finished the installation of the PIR board and the upgraded controller board. Everything looks like it is working well. I still need to verify delayed power down, but as I have already tested in on the…
  • mcb1
    mcb1 over 7 years ago in reply to genebren +3
    I always enjoy looking through the lights at IKEA I'm sticking to the catalogue from now on ... it will be quicker.
  • beacon_dave
    beacon_dave over 7 years ago in reply to shabaz

    Purely by coincidence I was reading about a hallway 'waterfall' lighting system project in Alan Trevennor's 'Practical AVR Microcontrollers' book last night:

    https://www.apress.com/gp/book/9781430244462

     

    Basically LED lighting strips that come on and go off in sequence as you enter and leave the hallway using PIR motion detectors either end. Could be improved on with pixel LED strips these days, but the book was published 5+ years ago.

     

    Not quite PlayMID's 'Port Estel lar' (star gate) but fun none-the-less...

    https://vimeo.com/145339817

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 7 years ago in reply to genebren

    Hi Gene,

     

    That looks really nice!

    Now everyone guest will want such automated lights when they see them in action : )

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 7 years ago in reply to genebren

    I always enjoy looking through the lights at IKEA

    I'm sticking to the catalogue from now on ... it will be quicker.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • genebren
    genebren over 7 years ago in reply to mcb1

    Thanks Mark,

     

    I always enjoy looking through the lights at IKEA.  Funny, but I never seem to buy any.  They do have some very interesting products.

     

    Gene

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • genebren
    genebren over 7 years ago

    I finished the installation of the PIR board and the upgraded controller board.  Everything looks like it is working well.  I still need to verify delayed power down, but as I have already tested in on the bench I am assuming that it will work fine.

     

    The LEDs throw enough light to offset the shadows from the cabinets. Each puck contains 3 LED with about 2500 mcd each (slightly defused lens).

     

    image

    Here is finished product. The overhead lights (also warm LEDs) are off in this picture.  Note: this late afternoon on a cloudy day.

     

    Gene

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube