Back to Parent

Outcome


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 :

Show Advanced Options
Show Advanced Options
20150128 145634
Show Advanced Options
20150128 145243 richtone%28hdr%29.thumb
Show Advanced Options
20150128 153532
Show Advanced Options
20150128 153537.thumb
Show Advanced Options
Drop files here or click to select

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