Back to Parent

Outcome


Intention

My grandma is one of those who have to frequent the bathroom by night. It can be dangerous for her to grope for the room light switch in the darkness, with a certain distance from the bed. Moreover, pet owners need to watch out for their cats and dogs when they step out of bed at night, and people don't want to wake their partners up. Therefore, I would like to make a smart bed light installed under the bed frame. It is motion activated at night to provide visibility. To save energy, people can turn off the switch when the room is bright enough.

Part

- Particle Photon x 1
- PIR motion sensor x 1
- 10 kOhm resistor x 3
- LED GRB strip x 1
- LED x 1 (for testing)
- Breadboard x 1
- Jumper Wires
- Slide switch x 1

Process

1. Test the motion sensor with LED light

Firstly, I built the test circuit connecting the LED light and the PIR motion sensor. As soon as I approached the motion sensor, the LED lit up. And then when I walked away, the LED light went out after about 15 seconds. Therefore, I knew that the motion sensor was working well. I consider a time delay of 15 seconds acceptable because the sensor might need some time to figure out whether there are still motion changes taking place.
01
Show Advanced Options
001
Show Advanced Options
Show Advanced Options

2. Replace the white LED with a RGB LED

I replaced the white LED light with a RGB LED because it looks nicer with the vivid color. 

Wechatimg953
Show Advanced Options
Show Advanced Options

3. Add the slide switch

Finally, I added a slide switch to the circuit so that people can turn off this motion activated light when the room is bright enough. 

The slide switch is designed to control inputs of the motion sensor. If the switch slides to the left, the photon can receive the input from the motion sensor so the RBG LED will light up when motion is detected. If the switch slides to the right, the motion sensor is disconnected to the photon, and therefore the RBG LED won't be activated by motion in this case.

Wechatimg954
Show Advanced Options

Reflection

If I have more time to improve my design, I would like to add a photo resistor to provide extra inputs. If enough light is detected (which means the room is bright), the photon will automatically disconnect the motion sensor, and therefore manual control of the  switch will be no longer needed. Moreover, another improvement can be connecting the breadboard with a 12V, 60W power supply, so that this under-bed light can be installed without a computer to provide power right next to it.

Show Advanced Options
Drop files here or click to select

You can upload files of up to 20MB using this form.