Model Smart Home

by TarundeepK in Circuits > Arduino

356 Views, 2 Favorites, 0 Comments

Model Smart Home

20220616_221807.jpg
20220616_221907.jpg

In this project, I have made a model smart home that consists of 2 parts: an RFID system using an Arduino to lock and unlock the door and an analog circuit to turn the rights on or off outside the house.

ARDUINO: Use RFID systems to enter or exit.
1. If the right card is used to open the door, the door will open. The LCD monitor will indicate a welcome message with the name of the card owner. Buzzer will be used to indicate the system unlocking.

Servo Motor will open the door.

2. If the wrong card is used to enter, the door will not open. The LCD monitor will indicate that the wrong card was used and warn that only 1 more try is left. Buzzer will indicate that the wrong card was used.

3. If the wrong card is used twice, the door will not open. The buzzer will sound like an alarm. The LCD monitor will indicate that the system has been locked for 10 seconds before resetting.

ANALOG SYSTEM: Use 555 timer to create an on-off button for the LED strip outside the house. Controlled by a button.

PLEASE NOTE: STRUCTURE OF HOUSE AND DOOR ARE PREMADE AND PREATTACHED

Supplies

  • House (Premade)
  • Door Hinge (Preattached)
  • Arduino x 2 + Batteries (1 Arduino is solely used for 5 Vs)
  • RFID Module
  • Relay
  • x3 RFID Tags
  • LCD Monitor
  • Buzzer
  • Servo Motor (opens door)
  • Jump wires
  • Button
  • X 2 1k Ω resistors
  • 5.1 k Ω resistor
  • 555 timer
  • 10 μF Capacitor
  • RGB LED Strip

Connect the RFID, Relay, LCD Monitor, Buzzer and Servo to the Arduino and Breadboard

20220529_230905.jpg
20220531_104249.jpg

We are going to start off by setting up the security system. To step up the security system, connect the RFID, relay, servo to breadboard and arduino.

Pins Used:

  • Servo motor connected to pin 9
  • 5 V power and ground
  • Relay connected to pin 8, 5 V power and ground
  • RFID connected:
    • VCC: 3.3 V
    • RST: 2
    • GND: ground
    • MISO: 3
    • MOSI: 4
    • SCK: 5
    • NSS: 6
    • IRQ: 7
  • Buzzer connected to pin 10
  • LCD monitor connected to A0, A1, power and ground

Use the Code Below to Find the Ideas of the RFID Tags

Using the getID code attached above, identify your RFID tags. You will need the id's for the code. Each RFID tag has a different code so this step is necessary to go through. Code taken from: https://learn.sunfounder.com/category/rfid-kit-v2-0-for-arduino/

Downloads

Attach the RFID System to the Model Home and Upload the Code

20220605_210010.jpg
20220605_210022.jpg

Once you have gathered your ID's for the RFID tags, change the code of the House Lock System (attached) and upload it to the Arduino. Code is annotated to make it easier to follow along.

Before you attach the RFID system to the model home, check to see if all of the components in the house are working. It is harder to check after it has been attached to the model home.

Clean up the wires using tap and attach the Arduino, relay and servo inside the house using screws or hot glue gun.

Optional: add a wooden extension to the servo to make sure it completely blocks the door. Before attached the servo, make sure to check in which direction the arm turns.

Attach the RFID and the LCD monitor outside the house using screws or hot glue.

Once everything is attached confirm that all the components are working.

This completes Pt. 1 of the Model Home System

Make the Analog Circuit

20220616_190723.jpg
Screenshot 2022-06-20 140548.png
20220620_143458.jpg

For the analog circuit, I used a 555 timer to turn on and off my RGB LED strip. My LED strip could only recieve 5V of current which is why I used a second Ardunio for power and ground rather then connected the circuit directly to a 9V battery.

Attached above is the circuit I made on the breadboard.

In the tinkercad circuit, you can see that I attached the LED to a 470 ohm resistor, however on my breadboard I did not. This is because, when a resistor was attached to the LED strip, it was not bright, regardless of the size of the resistor.

Above is the 555 timer schematic for easier visualization.

Attach LED Strip and Breadboard to House

20220616_221741.jpg
20220616_221907.jpg

Before attaching the LED strip and button to the house, confirm that the analog circuit is properly functioning.

Once you have confirmed that the circuit is working, clean up the wires on the breadboard with tape and attach the LED strip around the house. Attach the button on the outside of the house to make turning on and off more accessible (use male and female wires to extend from the breadboard).

Confirm that everything is glued/screwed down and test try all the components!

Final Product

Model Smart Home

Here is what the final product looks like! Happy tinkering!!