Introduction: Smart Home Arduino Project

This project has two components to making the smart house. The first component is the dependent circuit supported by the Arduino. The second component is a stand-alone circuit with just a switch.

First Component: Sliding Door Control with Speaker
Second Component: Darkness Detection Blinking Lights

Supplies

  • Arduino Uno
  • Soldering Kit

First Component:

  • DVD Drive Stepper
  • Motor Driver L298n
  • Jumper Cables
  • Arduino Speaker or Speaker from Prebuil Speakers
  • LM386 Audio Amplifier
  • Push Buttons
  • 10k ohm Resistor
  • Pre-built Wooden Home
  • Bread Boards
  • Batteries
  • Battery Cap

Second Component:

  • PCB Board
  • Red LEDs
  • Jumper Cables
  • Photoresistor
  • Slide Switch
  • LM 555 Timer
  • 180k ohm Resistor
  • 330 ohm Resistor
  • Battery
  • Switch
  • 100v Capacitor

Step 1: Making the Night Lights

First I will give you the schematic, and electronic plan, and explain it further going on

Step 2: Connecting It All Together

Solder the 9 V battery connector where the battery is shown, with the negative (black) wire to pin 1 and the positive (red) wire to pin 8. We'll refer to these points later as "Ground" and "+9 V"


Pin 8 is connected to pin 7 through a 180 kilo-ohm resistor, and pin 7 is connected to pin 6 through a second a 180 kilo-ohm resistor.


Use a telephone wire to connect pin 2 to pin 6.


The 0.22 uF capacitor connects to pin 6 to pin 1.


Pins 4 and 5 should be left unwired.


Pin 3 is our "clock" output


Solder the LEDs to the board and connect them together. Example: If you have 6 LEDs the positive (+) pin of LED 1 is connected to LED 6 through the positive pins of LEDs 2,3,4 and 5 to the 6th LED


Take the output from the 555 (pin 3) and connect it to the positive side of the LED, through a 330-ohm resistor, and then to the ground (-).


You are all most done. Now attach the switch. Cut the wire from the battery snap, peel 1mm of the wire on both sides and connect it to the switch.

Step 3: Connecting the CD Drive

First, disassemble the CD Drive from the computer and connect 4 wires as shown in the above picture.

Connect the 4 wires to the L298n Motor Driver as shown above.

Connect the ground and 5v power from the Arduino and the same from the battery cap.


Step 4: Adding Functioning Push Buttons to Control the Motor

As Shown above connect two pushbuttons to the Arduino on a breadboard which control the motor (Code showed after)

Step 5: Connecting the Speaker

By using the LM386 Module and connecting the wires (Ground, power and pin 3(HAS TO BE PIN 3) to the arduino). The Speaker has been connected to the Arduino.

Step 6: Assemble the Speaker and the Motor

Screw both the output to the Modeled home for optimal house look

Step 7: Adding Code

Use the file below to upload the code on to the Arduino IDE

The Libraries needed to download are "Stepper" and the "Talkie" Libraries shown above

Step 8: The Project in Live Action

Last step was the final step enjoy the project!