DIY RFID Smart Lock with Arduino

Поділитися
Вставка
  • Опубліковано 28 гру 2024

КОМЕНТАРІ • 101

  • @AVVGCustomstudio
    @AVVGCustomstudio 5 років тому +4

    is it possible to make him read the key at a distance of 3 meters?! and when you get close - it opens, when you leave - it closes ?

    • @MakeUseOf
      @MakeUseOf  5 років тому +2

      No, RFID is a close range technology. I did a similar project with Bluetooth though, which works at a range of about 10m. Old project though, may be out of date now: www.makeuseof.com/tag/auto-locking-office-door-smartphone-proximity-sensor/

  • @themvamad8401
    @themvamad8401 5 років тому +7

    Hey if I am inside how do I get out?

  • @Iumey
    @Iumey 5 років тому +4

    I'm going to try and fit this into our pool gate and use it as a (basic) lock for it!

  • @BhairaviStudio
    @BhairaviStudio 4 роки тому

    Without using any external storage , how many cards / tags can be registered on the inbuilt memory ?

  • @raheels.1068
    @raheels.1068 6 років тому +4

    Hi. How I can add in this project also display ?

  • @PacoOtaktay
    @PacoOtaktay 7 років тому +6

    Good video. I like the example and how it works.
    I wonder if something like this could be used to put a RFID on a cat's caller(s) to grant them access to food. That way if you have a cat that is on a diet you can keep that one from eating more often then it should??

    • @XSpImmaLion
      @XSpImmaLion 7 років тому +2

      Not a very optimal solution... RFID works only on almost touching distance. Unless you can train the cat somehow... xD

    • @PacoOtaktay
      @PacoOtaktay 7 років тому +1

      XSportSeeker,
      I know it was a crazy idea. :) Just something I thought of there. lol

    • @XSpImmaLion
      @XSpImmaLion 7 років тому +2

      I like it! xD Perhaps some other wireless standard or one of the more limited/proprietary RFID spectrums could work... but not this particular Arduino shield.

    • @PacoOtaktay
      @PacoOtaktay 7 років тому

      XSportSeeker,
      That is true. Finding more and more interesting tech that can do some amazing stuff. Plus in the home maker world getting easier to slap things together and pull off some really creative things. :)

    • @DJglass2
      @DJglass2 7 років тому

      Saw a commercial example of this in a pet store today. Has a hoop that cat/dog sticks its head through to read either tag on its collar or the registered chip then opens a cover over the food bowl. Once I saw the price I started searching for arduino ways of doing this.

  • @s7eleven8
    @s7eleven8 Рік тому

    Which Mosfet N did you use?

  • @pawspark2087
    @pawspark2087 5 років тому +1

    I did you tutorial, everything works with the code and the leds but I have 1 serious problem. Every time I tab my card it says "Welcome, you shall pass" but the arduino door lock is not opening what could be the problem? Please help me!

  • @stonynotdusty
    @stonynotdusty 7 років тому +2

    Why use rfid when you could use a keypad system. Hunting around for keys seems to me no different to hunting around for cards except that batteries on diy systems are likely to run out.
    I prefer to have a displacement touchpad setup like this ua-cam.com/video/GP-qFNMUfzU/v-deo.html with the advantage being that the digidoor example has backup power and excellent power management anyways. Good learning video though and perhaps a good system for hotels where you could have a logging system to tell when people checkout.

  • @raheels.1068
    @raheels.1068 6 років тому

    Hi. In this code also can add keypad and display to see card I'd and access or no entry . .

  • @SherryEditzTM
    @SherryEditzTM Рік тому

    could someone tell the connecctions of the card scanner

  • @nonyourbuz5805
    @nonyourbuz5805 4 роки тому

    Can this be used as a car entry alarm?...

  • @Me0_0w
    @Me0_0w 6 років тому +1

    Hi, could you tell me the Mosfet serial number that you use? As I'm interested in building one but not sure which Mosfet I should use as there are different valued Mosfet. And sorry I'm kinda new to this, also the power supply are you using a dc or ac supply? Thank you!

  • @ArrtusMusic
    @ArrtusMusic 7 років тому

    Quick question; is it possible to make the RFID reader scan continuously for the tag and then have it lock when the tag is absent? How would you go about doing that?
    Thank you

    • @IanBuckley42
      @IanBuckley42 7 років тому +1

      Hi there, this is Ian who wrote the article. Without actually rewriting the code and testing it I'm not totally sure how this would work, but here is what I think might help.
      If you look in the loop function, there is a boolean called succesRead (look at line 210 of the code provided in the article), which switches when the reader gets a successful real from a key. Slightly further down in line 234 of the code, there is a while(!successRead); desinged to stop the code going further unless there is a reading. Try changing this while loop to something like while(!successRead) { digitalWrite(relay, HIGH); } which will hold the lock shut whenever the reader is not finding your key. Then, remove this line from the granted method (line 291) to stop the door auto locking after the setDelay.
      This is just my first thought on how to do this, and it may not work or be too elegant if it does. Let me know how you get on!

  • @airBornFpv
    @airBornFpv 4 роки тому

    I want to make scooter immobiliser with that :)
    - read card, now you can turn on scoter (button works), and no 130db active buzzer sound.
    - read card again, now esc controller lost power and scooter is locked. Gyroscope is activated and position is stored - if any one moves the scooter alarm of 130db goes wild for 10sec, together with motion direction being disabled. Than alarm stops, motion detection re-enabled.
    Sound simple but there is no such system on the market at all right now - I was surprised by that🤷‍♂️
    I think something as small as Pi Zero should be able to handle broth sensors and ... mosfet I guess.
    Any suggestions man, you def know more than I do, but I’m a quick learner :) would love to hear your thoughts / advice

    • @shoxced_1020
      @shoxced_1020 2 роки тому

      maybe make a servo that presses the button when it is activated

  • @md.sakibshahriar7810
    @md.sakibshahriar7810 4 роки тому

    Can anyone tell me the which Logic-level N channel Mosfet model is used in this project ?

  • @route-249
    @route-249 6 років тому

    All I get is "Wipe Button Pressed, You have 10 seconds to Cancel, This will be remove all records and cannot be undone, Starting Wiping EEPROM, EEPROM Successfully Wiped, No Master Card Defined, Scan A PICC to Define a Master Card" what can I do to use this? I only did what you said to do. Oh but instead of using a solenoid, I just wired in an LED light. That can't be the problem, right?

    • @route-249
      @route-249 6 років тому

      OK I got it now NeverMind...

  • @aranguren12
    @aranguren12 7 років тому

    Good day,
    What is the length of the breadboard?

  • @nonymous1573
    @nonymous1573 3 роки тому

    What if the rfid sensor board doesn't have sda? I have a vma405 and not a MFRC522

  • @janektamm4994
    @janektamm4994 2 роки тому

    is it possible to use a mobile phone nfc?

  • @samartharole4335
    @samartharole4335 Рік тому

    What should be the 12V supply, AC or DC?. I have adaptor for AC so will it work on it or do I have to get DC adaptor

    • @MakeUseOf
      @MakeUseOf  Рік тому +2

      you would need DC.

    • @samartharole4335
      @samartharole4335 Рік тому

      @@MakeUseOf I am having a problem where the program doesnt move forward after scanning a card other than master card. Like:
      ** Scanned PICC's UID:
      ** 21B0F326
      After this nothing works.
      Also when I provide 12v supply all LED's automatically turn on and the solenoid lock also unlocks and doesnt lock again.
      Please help....

  • @JohnPeña-t8f
    @JohnPeña-t8f Рік тому

    What kind of 12v power supply did you use

  • @fitocs1940
    @fitocs1940 2 роки тому

    whats is code we programaiton?

  • @Eduardo-bp1fd
    @Eduardo-bp1fd 5 років тому

    What's the 12v power supply you used? Can you use a 9v battery?

    • @John-jk7po
      @John-jk7po 2 роки тому

      I have the same question, how did you solve it?

  • @steveman1982
    @steveman1982 5 років тому +5

    Exactly what I need, raiding of our candy jar by people from other departments will soon end!

  • @isabellacespedesmaldonado1645
    @isabellacespedesmaldonado1645 6 років тому

    The 12v selinoide is a push and pull type?

  • @mdhazimosman
    @mdhazimosman 6 років тому

    What model of mosfet and solenoid you use in this video? Pls reply my comments. ASAP

  • @charlescrofts4436
    @charlescrofts4436 Рік тому

    Did this not work for anyone else? I followed and after scanning mastercard and another tag, the light stays solidly red.

  • @revanthnemtoor3313
    @revanthnemtoor3313 5 років тому

    Can i use a servo motor instead of a solonoid?

    • @MakeUseOf
      @MakeUseOf  5 років тому

      Too weak to lock a door, I would think.

  • @Kiiush
    @Kiiush 3 роки тому

    Does it work with NFC tags?

    • @MakeUseOf
      @MakeUseOf  3 роки тому +1

      We haven't tried, but it should do yes.

  • @ahmedatef6683
    @ahmedatef6683 7 років тому +2

    HI
    In this code ,can use more than one tag to get access and open the lock?

    • @MakeUseOf
      @MakeUseOf  7 років тому

      The code would be easy to modify with an additional lock card, yes.

    • @ahmedatef6683
      @ahmedatef6683 7 років тому

      Thanks 😊

  • @shubhampatil1146
    @shubhampatil1146 6 років тому

    hello there..i have question...what should we do if we lost the card that means the key....can you help me..?

    • @jey3484
      @jey3484 5 років тому

      Same problem. Plss help us

  • @cyn0_
    @cyn0_ 6 років тому

    Hi, I've got a problem.
    Whenever I power on the circuit, my solenoid constantly opens and closes, and the LED's don't light up.
    I used the exact same code from the video, as I used the GitHub file.
    Does anyone know how to fix this?

  • @top10forall4
    @top10forall4 4 роки тому

    Hi
    thank you for your amazing work, please can you help me that I have dc lock so I need to change the current polarity to open and close the lock.
    what I have to add to this cod to be fitness.

  • @zillionpanic8065
    @zillionpanic8065 6 років тому

    Is it possible to replace the leds to led strips, if so how

    • @MakeUseOf
      @MakeUseOf  6 років тому

      Depends if you're talking single color 5050 strips, which require 12v to drive them and therefore some MOSFETs; or the much simpler WS2812b style "neopixels", which you could drive a few directly from the arduino 5v output, and can be inidividually controlled with a digital signal. More info: www.makeuseof.com/tag/connect-led-light-strips-arduino/

  • @MegaFahad1991
    @MegaFahad1991 6 років тому

    Can I use the same code but with arduino nano ???

    • @MakeUseOf
      @MakeUseOf  6 років тому

      Should work, yes, but be careful with wiring, I believe the nano runs at 3.3v?

  • @kobe1506
    @kobe1506 7 років тому +1

    Will this work with raspberry pi

    • @arsebiscuitsandwine
      @arsebiscuitsandwine 7 років тому

      Indeed it will! Try searching for RC552 and Raspberry Pi, there are several tutorials how to do different things with them!

  • @charantiruvuri8545
    @charantiruvuri8545 6 років тому

    I have a problem in code that it is showing error that EEPROM class has no member named 'length'can u please solve this problem for me.
    I am stuck there with that error.
    Please replay fast if possible.

  • @hairulalam1549
    @hairulalam1549 6 років тому

    RFID card identification number does not appear in the source code, what if I want to know the code of the card to be inserted, Sorry I just learned / beginner

  • @btxft5848
    @btxft5848 6 років тому

    Can I use transistor npn not mosfet

    • @lukamic1776
      @lukamic1776 6 років тому

      Yep, a transistor would work instead of a mosfet

    • @btxft5848
      @btxft5848 6 років тому

      Help Me God thank

  • @nomansaeed4511
    @nomansaeed4511 6 років тому

    Can you please add lcd display in this code

  • @kurunari5754
    @kurunari5754 4 роки тому

    @MakeUseOf .nothing in the circuit is working after connecting to a 12v power supply, pls help fast , and serial monitor says that it will remove the first card at every 10 minutes(gets automatically wiped),pls help

    • @MakeUseOf
      @MakeUseOf  4 роки тому

      A bit difficult to help given we can't see how you wired things. But for a start, check you haven'tgot anything from the +ve 12v rail going into the arduino - that would absolutely fry it.

    • @kurunari5754
      @kurunari5754 4 роки тому

      @@MakeUseOf no the arduino is working fine when connected to pc

    • @MakeUseOf
      @MakeUseOf  4 роки тому

      @@kurunari5754 so how are you powering the arduino in this project?

    • @kurunari5754
      @kurunari5754 4 роки тому

      @@MakeUseOf just like in the video

  • @muhammadakrom7020
    @muhammadakrom7020 7 років тому

    can this project change from lock to LCD, i mean do you know how?

  • @dilansmith6665
    @dilansmith6665 6 років тому +1

    i cant find the code , plz help me

    • @MakeUseOf
      @MakeUseOf  6 років тому +2

      gist.github.com/anonymous/5ec489385bcf1ac6e6efa789321aee81

  • @willybee3056
    @willybee3056 7 років тому

    What us the range of rfid s?

    • @XSpImmaLion
      @XSpImmaLion 7 років тому

      For the most part, touching distance

    • @willybee3056
      @willybee3056 7 років тому

      XSportSeeker
      oops,,, there is a yt vid that ALIVE AT 5 news cast showed them reading credit cards at over 15 feet... When I drove truck into a soy bean processing plant, they gave me a rfid card to track my truck and load through the plant.
      With the card laying on the dash , the readers were 30 to 40 feet away.
      My question was, is the Arduino boards that powerful?
      They don't use rfid chips in credit cards anymore... At least they say they don't. ...
      thanks for the reply....

    • @XSpImmaLion
      @XSpImmaLion 7 років тому

      No problems! You can definitely juice up readers or use different frequency spectrums to go through greater distances... but it requires far more power, and the Arduino module just won't do. xD
      For the most part, common readers you find to sell on the market basically requires touching distance to avoid crosstalking and interference, but the technology isn't limited to it... here, I found a good explainer:
      www.skyrfid.com/RFID_Tag_Read_Ranges.php
      There's one that can reach 500 meters! xD Probably proprietary and limited usage though...

    • @willybee3056
      @willybee3056 7 років тому

      XSportSeeker
      Where I was going with that line ,, was ,,
      it would be neat to have a rfid card in your car that would unlock your door and turn on the porch lights when you drive in the driveway...
      With as easy as it is to change the cards with that system,,, you could rotate 4 or 5 cards for added security.
      Thanks for the reply...

  • @nomansaeed4511
    @nomansaeed4511 6 років тому

    I make this but i have a problem
    I use 12v electric lock when lock open my arduino stuck then i restart it

    • @MakeUseOf
      @MakeUseOf  6 років тому

      Are you using a relay? You shouldn't be interfacing a 12V lock directly with the Arduino, since the Arduino runs on 12V and the lock will draw far too much power. That will likely cause a reset (if not worse!)

  • @remconet
    @remconet 7 років тому

    Okay, it's not working. Frustrating! It constantly says "Mastercard wil be erased in 10 seconds

  • @joefeghali8604
    @joefeghali8604 6 років тому

    How do i delete card?

  • @jduchock
    @jduchock 5 років тому

    Locking down the liqueur cabinet :)

  • @abdullahattieh1054
    @abdullahattieh1054 7 років тому

    i neeed the code?

  • @barirohsiti5452
    @barirohsiti5452 6 років тому

    sorry, I want to ask ... for the operation of the door from the room whether to enter the password again or not? please response .. thanks

  • @kellyboy650
    @kellyboy650 6 років тому

    Every time I scan the master card I get "Wipe Button Pressed - Master Card will be Erased! in 10 seconds".
    After it successfully wipes, the blues LED begins flashing again. I've triple checked all connections. Any insight?

    • @calderbmx1838
      @calderbmx1838 5 років тому +2

      I had the same issue. Change the digital pin that the wipe button is supposed to be in the code. Because initially when you change the LED pin you set it to the same pin as the wipe button causing a never ending loop, when the blue led is on I believe.

    • @TelsctTelion
      @TelsctTelion 5 років тому

      Your wipe and the blue led are on the same digital pin

  • @shroogjan8424
    @shroogjan8424 4 роки тому

    I need the codes please

    • @MakeUseOf
      @MakeUseOf  4 роки тому

      Pretty sure there's a link in the description...

  • @bray8949
    @bray8949 6 років тому

    HOW TO FREAKING INSTALL!? LACK OF EXPLANATION

    • @MakeUseOf
      @MakeUseOf  6 років тому

      www.makeuseof.com/tag/diy-smart-lock-arduino-rfid/

    • @enderlemon890
      @enderlemon890 4 роки тому

      jezus christ

  • @shoxced_1020
    @shoxced_1020 2 роки тому

    @MakeUseOf Is there a gmail you have? I am trying this out and have some issues and want to send photos of wiring. Let me know thanks!

  • @TirthPatel27
    @TirthPatel27 6 років тому

    Can I use the tip120 transistor