Night light
Night light.
I made this project when our new baby woke up alot during the nights. When you have a screaming baby in your arms and its pitch black. you may find yourself missing an arm to find the light switch,
So i built this. When i put ze baby on the nursing table the vibration will wake this lamp up, And if it is dark in the room it will light the nursing table with a nice warm white LED For a set time,
- I’ts a smal PIC12HV615
- Simple Tilt Sensor
- Photo resistor
- Warm white LED
- Pull-down Resistors
Everything is connected with pulldown resistors and the pic is told to wakeup on change by the tilt sensor,
The pic then looks at the photoresistor to tell if light is needed and if it is it will light up the led for about one minute,
I used a hollow IKEA toy to give it a child friendly look
Here is the source code for the project main