Back to Parent

This circuit is designed so as to be part of the home automation system - it can help you find your way if you wake up in the middle of the night. It therefore detects if someone has gotten off the bed (force resistor is not pressed - low force - someone has gotten up) and at the same time if it is night (photo resistor shows darkness) and then switches on the 'guide lights' in this scenario. Later when someone gets back on the bed (force resistor reads the weight) , it switches off the light. It also switches off the light if it detects that it is day-time.

COMPONENTS USED :

Jumper wires

Spark micro-controller

1 red LED pin

1 force resistor

1 photo-sensitive resistor

1 1kohm resistor

2 10kohm resistors


Here is the code for it :


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0