Introduction: Automated Home

In this project I created an automated home using Arduino.

Step 1: Gather Materials

Arduino Uno
12V Battery

DC Motor


Ultrasonic Distance Sensor

FSR Force Plate


Breadboard x2


LED x3

MDF Board

Resistors x2

Temperature Sensor



Step 2: Do the Wiring

Wire up the breadboards according to the picture above.

I started off with the ultrasonic sensor, which connected to the LED strip in the hallway. As LED strips use 12V, I had to use a MOSFET. I coded the ultrasonic sensor so that when the distance is less than 15 inches, the lights in the hallway turn on. I wired the trig pin of the ultrasonic to pin 2 and the echo pin to pin 4. I then wired the ground and 5V to the breadboard. The weird part about this ultrasonic sensor is that it does not work when it is perpendicular to the board, it only works when it is lying flat (parallel to board).

I then connected the LED strip to pin 6 with the MOSFET.

Next, I worked with the FSR Force Plate to turn on lights in another area of the house. To set up the Force Plate, I connected it to a resistor and to 5V. The resistor is connected to A0 and ground.

I then connected the LED strip to pin 11 with the MOSFET.

I then worked on the temperature sensor which connects to the DC Motor which rotates the fan. The temperature sensor has 3 pins, one for ground, one for 5V and the third I connected to pin A1.

For the fan, I connected, the negative side ground and the positive side to a diode which I then connected to 12V.

I coded it so that the fan would turn on when the temperature went below 25 degrees Celsius.

For bug fixing, I added another breadboard and connected 3 LED's to it, a green, yellow and red. As I am not always connected to a computer, I can not read the data it is giving out. So I used the LED's to see around what range the temperature is. When the light is red, the temperature is less than 24 degrees Celsius, when it is between 24 and 25 degrees, the light is yellow. The light is green when the temperature is greater than 25 degrees, so I know that the fan should be on when the fan is green. Something peculiar about this is that when the lights in the hallway turn on with the ultrasonic sensor, the reading of the temperature sensor jumps by a couple of degrees.

Finally, I used a light dependant resistor to be able to turn on lights in the third part of the house when it becomes dark. I connected the LDR to a resistor and 5V, and the resistor is connected to ground and A2. When the LDR reads less than 600, the lights turn on.