Door Locking with Arduino and RFID Tags: Tutorial

Forums IoTStack News (IoTStack) Door Locking with Arduino and RFID Tags: Tutorial

  • This topic has 1 voice and 0 replies.
Viewing 0 reply threads
  • Author
    Posts
    • #36967
      Telegram SmartBoT
      Moderator
      • Topic 5959
      • Replies 0
      • posts 5959
        @tgsmartbot

        #News(IoTStack) [ via IoTGroup ]


        Headings…
        Door Locking with Arduino and RFID Tags: Tutorial
        How Do These Doors Lock and Unlock? RFID Explained
        The Tutorial
        Noah Omdal

        Auto extracted Text……

        I use them all the time to get in and out of my building, and every time the little light on the entry pad lights up and the lock clicks open, I find myself wondering what sort of wizardry is at hand here.
        We’ll start with explaining the underlying tech before walking through a tutorial of how you, armed with little more than an Arduino and some RFID tags and a sensor, can implement your own door lock.
        As explained above, the initial ideas for RFID’s use were immense and diverse.
        What we will be creating today will look something like this: we have our arduino connected to our computer, where we upload the code to have it function with the RFID reader.
        The reader is wired to the Arduino, and when we hold any of our test RFID tags in front of it, it will register with the machine and our code will make the arduino turn the motor of our servo, which will then be connected to a locking mechanism.
        As we make the motor turn back and forth, it will cause the lock to open and close.
        Later on I will talk about how to allow only certain tags to have access to open and close your lock.

        MFRC522 mfrc522(SS_PIN, RST_PIN); // Create instance of our reader void setup() {
        myservo.write(90); // Flip open lock
        myservo.write(0); // Close lock

        Next up, let’s update the code a little bit to ensure that only certain tags can trigger the lock opening.
        Make note of the RFID identification string that is printed out from the code above, and then insert it in the code below in the place where I wrote “INSERT ID HERE” (the code below begins where “Authorized Access” was printed in the code above)

        myservo.write(90); // Flip open lock
        myservo.write(0); // Close lock

        Mount the RFID reader on the outside of the door, and BAM you have a working deadbolt lock.
        What I implemented was the door lock as explained above.
        Which will cause the lock to open and the close in quick succession, giving you time to open up the door and close it.
        Locking and unlocking my door with a RFID ta


        Read More..
        AutoTextExtraction by Working BoT using SmartNews 1.0299999999 Build 26 Aug 2019

    Viewing 0 reply threads
    • You must be logged in to reply to this topic.