preload
Jan 24

This evening I wrote a sketch to protect my toes better. The sketch switches the LED strip on and off based on motion detection by 2 PIRs. It works ;-)

The blue LED on the Protoshield indicates when there is motion detected by the PIR. The motion detection turns the LED strip on and it will stay on until a period of 15 seconds with no motion has passed – only then, the LED strip is turned off again.

The sketch takes care of the “soft on/off” feature, by gently raising or lowering the brightness during a configurable time-span.

All that’s left to do is cleaning up the code, solder some wires, wait for the enclosure to arrive and give the LED strip, PIRs and Arduino enclosure a place under the bed.

Simple, yet very convenient automation :-)

5 Responses to “No more painful toes”

  1. DJ Says:

    Would love to see pictures how it looks at night when the led strip is turned on!

  2. Robert Hekkers Says:

    Hi DJ,

    I think that can be arranged. There will be a follow-up on this, later this week(end). I’ll post some pictures then ;-)

  3. Michel Says:

    Hi Robert, again a nice project and application!! Very nice!

    And again I have been thinking about the same application, just don’t have the time and bandwidth to do all these things.

    Great work!

    Rgds,
    Michel.

  4. Robert Hekkers Says:

    Hi Michel,

    Thanks, this intermezzo is all about priority… all the rest will just have to wait a bit longer! ;-)

    Robert

  5. Bedroom lighting almost finished Says:

    [...] small update with some results on the bedroom floor lighting [...]

Leave a Reply