Introduction: Sense-arise Automation for Home

Sense-arise Automation for Home

Electricity at your Fingertips

Hello Geeks, Aspirants, Tech enthusiasts, students, and learners! We are back with our Second Project with different Components in a fruitful aim to save electricity. This might be similar to the one we see in hotel rooms or resorts many areas .Follow our steps clearly in order to Make the project work on your end too.We would like to thank the authors from whom we referred to our RFID Code as we are beginners in RFID.

Arduino Project Hub (Our Refernece ): https://create.arduino.cc/projecthub/Aritro/security-access-using-rfid-reader-f7c746

Step 1: Things Required (Hardware and Software )

Hey Guys ! These are the stuffs required to make this project . We have given the Amazon Link for each and every Product and link for software too .

Hardware

  1. (1 nos )Arduino UNO (with R3 Cable)
  2. (1 nos )Relay (2X Switch )
  3. (1 nos )Bulb ( For prototype )
  4. (1 nos )Breadboard
  5. (as required ) Wires
  6. (1 nos) RFID RC522 reader

Software

  1. Arduino IDE

Step 2: Hardware Connection and Explanation

Hardware Explanation

There are nearly 8 pins in the RFID Reader. Each as its own function.

RC522 Chip Explanation:

RC522 Chip is a combinational Circuit consisting of inter-connected modules of Antenna + Analog Interface ( Process the Modulation and demodulation of analog signals ) + Contactless UART ( Manages Protocol ) + FIFO Buffer ( Manages the data transmission in the basis of First In First Out ) + Serial I/O + Registers and host line. This makes the device to emit and detect RFID Tags instantly.

Pin Explanation

  1. SDA - Serial data line input and output.
  2. SCK - Serial Clock Input
  3. MOSI - Serial Peripheral Interface (SPI) Master Out Slave In
  4. IRQ - Interrupt Request Output ( Notifies for every Interrupt event )
  5. GND - Ground
  6. MISO - SPI Master In Slave Out
  7. RST - Reset
  8. 3.3V - Voltage In

Hardware Connection

Please connect the pins according to the Diagram given.

First One is Arduino and RFID and the Next one is Arduino and Relay .


Step 3: Software Code

Procedure :

  1. Open Arduino IDE
  2. Create a new file in the place where you have saved the MCRF522 Lib file ( Get from Github)
  3. Type in the Code
  4. Connect the components as per the diagram
  5. Run the program
  6. Get the ID of the TAG then replace it to the one mentioned in the code

Code :

Github Link : https://github.com/santynaren/Sense-arise/

#include <SPI.h>
#include <MFRC522.h> #define SS_PIN 10 #define RST_PIN 9 MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance. void setup() { Serial.begin(9600);// Initiate a serial communication SPI.begin(); // Initiate SPI bus mfrc522.PCD_Init(); // Initiate MFRC522 Serial.println("Approximate your card to the reader..."); Serial.println(); pinMode(7,OUTPUT);

} void loop() { // Look for new cards if ( ! mfrc522.PICC_IsNewCardPresent()) { return; } // Select one of the cards if ( ! mfrc522.PICC_ReadCardSerial()) { return; } //Show UID on serial monitor Serial.print("UID tag :"); String content= ""; byte letter; for (byte i = 0; i < mfrc522.uid.size; i++) { Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "); Serial.print(mfrc522.uid.uidByte[i], HEX); content.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " ")); content.concat(String(mfrc522.uid.uidByte[i], HEX)); } Serial.println(); Serial.print("Message : "); content.toUpperCase(); digitalWrite(7, HIGH); if (content.substring(1) == "49 3B 3A D5") //change here the UID of the card/cards that you want to give access { Serial.println("Authorized access"); digitalWrite(7, LOW); Serial.println(); delay(1000); } else { Serial.println(" Access denied"); delay(3000); } }

Step 4: Hurray Done !

Congo You Made it !

This is our working Video

Youtube Link: https://www.youtube.com/watch?v=xSelVbFrR0Q

Other Links

Github Link: https://github.com/santynaren/Sense-arise/

Like This Hack as it will be our Motivation!

Thanks for reading our Hack!

Made with Love from India By:

Kishore N

Ajay Karthik K

Wigneshwaran N

Narendra Santhosh N

How to reach Us ?

For any queries Mail Us to

Narendra <santhoshnarendra@gmail.com>

Ajay <ajaykarthikkasinaathan14@gmail.com>

Kishore <kishore.nedumaran@gmail.com>

Wignesh <wignesh1996@gmail.com>

Microcontroller Contest 2017

Participated in the
Microcontroller Contest 2017

Sensors Contest 2017

Participated in the
Sensors Contest 2017