Smart Home Arduino Project

by Param Desai in Circuits > Arduino

282 Views, 4 Favorites, 0 Comments

Smart Home Arduino Project

IMG_3127.jpg

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

Making the Night Lights

FKE2ME3FIHEWI62.jpeg

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

Connecting It All Together

IMG_3116.png
IMG_3114.png
IMG_3115.png

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.

Connecting the CD Drive

IMG_3122.png
IMG_3123.png
IMG_3120.png

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.


Adding Functioning Push Buttons to Control the Motor

IMG_3117.png

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

Connecting the Speaker

IMG_3125.png
lm386-module-pcb-layout.gif

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.

Assemble the Speaker and the Motor

IMG_3124.png
IMG_3121.png

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

Adding Code

Screen Shot 2022-06-20 at 11.04.13 PM.png
Screen Shot 2022-06-20 at 11.04.39 PM.png

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

Downloads

The Project in Live Action

Arduino Smart Home (Param Desai)

Last step was the final step enjoy the project!