Arduino assisted night time bed light

A motion activated bed light system

Similar projects worth following
A motion activated bed light system using a led strip, a PIR sensor and a photoresistor.

Some times ago I came across this interesting project by Scott Clandinin wich catch my attention, so I decided to built one but instead of activate all the system with an RTC I decided to use a simple photoresistor in order to detect if the room is lighted or not, here you will find all my developing stages and milestones, feel free to leave your feedback and opinions on this project and how I'm doing.

  • 1 × Arduino Uno R3
  • 3 × TIP120 or an IRLB8721 n-channel mosfet
  • 1 × 10K OHM Potentiometer
  • 1 × 220 OHM Resistors
  • 1 × Momentary push button

View all 6 components

  • ​VERSION 0.3b! - Time for a beta test!

    Fabio10/10/2016 at 10:58 0 comments

    Today I decided that it was time to try my projects, so I menaged to close if up in a box an install it in my bed room. Some things need to be solved like the push butto to make all the lights stays on bypassing all the for loops used to loop between the color when the PIR is triggered, now I have to wait that all the for loops ends before I can push the botton.

    This is what is looks like:

  • ​VERSION 0.3a! - Ready for the first test!

    Fabio10/06/2016 at 09:24 0 comments

    Hi everybody, after some delay due to other aspects of my life, today I'm ready to add another project log, the project is nearly done and I'm ready for a first little show off.

    I added a little momentary push button in order to make the led strip to stays on as a normal light source bypassing the PIR sensor, the same button if pressed agan will turn the lights off an enable the PIR again ready for detect movements.

    A 10K OHM potentiometer has been added as well in order to change the color displayed by the led strip when it's steady on.

    As soon as I can I will post here all the working code for this new update, meanwhile enjoy a little show off of the new features implemented:

    And here below the schema used:

    Stay tuned for updates ;)

  • 24/09/2016 - V 0.2a is here!

    Fabio09/29/2016 at 05:44 0 comments

    Yesterday, after I've received my IRLB8721, i set all up and managed to have a little test drive, just to see what was the effect of the glowing glory of my LED strip in my bedroom

    Next steps in the next days will be to

    • Add the LDR.
    • Add a lumonosity knob regulator.
    • Add a "color picker" knob.
    • Add an "alway on" button to bypass the PIR sensor in order to keep the strip always on.

    See ya..

  • 27/09/2016 V 0.1a - IRLB8721 arrived.

    Fabio09/27/2016 at 14:37 0 comments

    Today via post I received my three IRLB8721 N-CHANNEL mosfets, later on I'll connect those to my led be continued...

  • 26/09/2016 V 0.1a -Thoughts

    Fabio09/26/2016 at 07:53 0 comments

    As I already said, I'm a rookie, I can program in different lenguage but I'm not very an expert with electronics, so I'm wondering how can I switch on/off my led strip, I got two options at this stage, plugging 12v directly to the power plug of my Arduino or use the Vin as a power source, furthermore how will I manage to switch my LED strip on and off without using any kind of relay? hum... hope someone out there could point me..


    Peter Walsh gave me a very beautiful and exaustive answer here!

  • 24/09/2016 V 0.1a

    Fabio09/24/2016 at 15:50 0 comments

    At this stage I managed to wire up some leds and the pir sensor only in order to start to play with it, so after wired all up I plugged it into the wall socket and placed the sensor near the floor level, I noticed that the working angle is quite wide (120 degrees if I undersand well), so I will menage to place something circular, like a little slice of a plastic tube around it to make it triggered only if something is perfectly in front of it.

    Meanwhile here it is a little trailer of the version 0.1a (thanks to Giulia for the Oscar awards nomination :) ).

View all 6 project logs

Enjoy this project?



Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates