I created a house with a light that graually turn on a light if it is dark and an alarm connected to the door the squeeze and send email if someone enter the house!
Step 1: Make the Circuit
Use my Fritzing file to copy the circuit I realized.
You will need:
you can add a potenziometer (for buzz volume) and everything you'd like!
Upload the casa.ino file into your board!
Step 2: Set the Light
On my file is already done!
Link a bulb lamp to a transistor and the transistor with one of your arduino's pin..
Create a circuit with a 2K resistence and a fotoresistence, this is useful to read the voltage in the connection of two resistence..
Done..! The lamp turns on in the dark!
I did analogRead from fotoresistence and then analogWrite to transistor!