You are reading a single comment by @Owen and its replies. Click here to read the full conversation.
  • Hello,
    I've installed LED strips in my wardrobe and using Espruino and a Photoresistor the LEDs turn on of off when the door is opened/closed. All the wiring and code works perfect, the issue I have is more funny.
    Wardrobe door opens and sun/room light hits the photoresistor, Espruino reads this and turns on the LEDs. All good so far.
    The problem is when the doors close. The LEDs light up the inside so much the photoresistor doesn't detect a large enough drop in light to turn off the LEDs. :(

    I've tried many different light values and code to guess when the door is closed but every fix has side effects. Should I try looking at using some other sensor to detect the doors opening/closing? Reed switch, motion sensor, ...
    My wardrobe has two sliding doors that over lap making it a little awkward.

About

Avatar for Owen @Owen started