Arduino Based RFID Door Lock - Make Your Own

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ม.ค. 2020
  • In this video, I’ll be showing you how to build your own RFID door lock using an Arduino, an RFID sensor and a few other small components. This RFID lock will enable you to load a list of accepted tags to provide limited access through the door.
    For a detailed write-up on the build and further description of the code and the circuit diagram, have a look at the full build through this link - www.the-diy-life.com/arduino-...
    Parts List and Purchase Links:
    Arduino Uno - amzn.to/2XwmXAa
    Arduino Power Supply - amzn.to/2FJ8PcW
    Breadboard & Jumpers (Optional) - amzn.to/2sKI7Oj
    RC522 RFID Sensor - amzn.to/2vrQzD0
    Micro Servo - amzn.to/380rddp
    LEDs - amzn.to/3aJtEDg
    Resistors - amzn.to/2O4s0SU
    3D Printer & Filament (Optional for Lock) - amzn.to/2T07MgA
    If you’ve got any suggestions for Arduino projects or tutorials, let me know in the comments section below.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 471

  • @ShedOfDreams
    @ShedOfDreams 3 ปีที่แล้ว +8

    at last! thank you. too many people show unluck but never how to relock! Awesome. thank you. subscribed

  • @sanukarathnayake8910
    @sanukarathnayake8910 2 ปีที่แล้ว +8

    this is what i needed exactly to use my rfid and i searched many tutorials this is best and suitable. thanks a lot and keep it up!

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว +2

      Thanks Sanuka, glad it helped you out!

  • @DhruvDange1
    @DhruvDange1 3 ปีที่แล้ว +49

    This is exactly what i wanted! Thanks a lot for adding the access feature for certain specific cards! Amazing video

  • @angelix9760
    @angelix9760 2 ปีที่แล้ว +12

    Hi! I'm new to this and will be making this in the hopefully near future! If you could please make a video on the card itself and how to set your own ID code and make it yourself that would be amazing!

    • @lydian4454
      @lydian4454 ปีที่แล้ว +1

      Hey . Did you manage to do that?

  • @geogaddi84
    @geogaddi84 ปีที่แล้ว

    It works Great! Awesome instructions!

  • @FireBoyYT
    @FireBoyYT 3 ปีที่แล้ว +4

    You deserve a sub thank you alot!!

  • @theelectromaker6215
    @theelectromaker6215 3 ปีที่แล้ว +1

    thanks a lot it worked after a lot of try thank you once again !!!!!!!!!!!!!!!!!

  • @Abdelrahman_Hosny
    @Abdelrahman_Hosny ปีที่แล้ว

    Thank you
    This was very helpful

  • @yakinwissem8665
    @yakinwissem8665 2 ปีที่แล้ว

    Great video brother!
    I wanna program a turnstile gate, any idea where i can find more info or help or...? Am really lost and idk what to do or where i should start looking

  • @bluestratos1901
    @bluestratos1901 2 ปีที่แล้ว +7

    Code and 3d print files no longer available? I've started to tinker around with projects like these and would love to play with this, please help 🙏 🙂 scratch that I should've read the description better you sir are a Saint.

  • @sunnysideup2881
    @sunnysideup2881 2 ปีที่แล้ว +1

    nice project!

  • @TheDJCAMERO2012
    @TheDJCAMERO2012 3 ปีที่แล้ว +8

    I'm new to this. i have watched some instructional videos including yours. this one was perfect. from what i have picked up, I'm a little stumped here now. how would one go about adding a push button to this circuit to cycle the servo motor separate from the RFID reader control?

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว +2

      You'd just need to add a pushbutton onto one of the Arduinos digital inputs and add a condition to the main loop in the code to move the servo if the pushbutton is on or off. The Arduino can choose to override the RFID input.

    • @tromboneguy92
      @tromboneguy92 2 ปีที่แล้ว +1

      @@MichaelKlements could you also put a delay and re-lock the device after a set amount of time? I am looking at using this to keep my dog out but allow the cat to go through a door.

  • @lokidoki123
    @lokidoki123 4 ปีที่แล้ว

    a very helpful video
    very good.

  • @erickmarin
    @erickmarin 3 วันที่ผ่านมา

    hi! thank you so much for the tutorial, however im having trouble getting the serial monitor to read and show the numbers of my cards

  • @Chimel31
    @Chimel31 ปีที่แล้ว

    Great video. A different setup with 3 LEDs would be useful too, with the third LED flashing when something that is not a RFID tag is detected.

    • @MichaelKlements
      @MichaelKlements  ปีที่แล้ว +1

      I don't think the RFID sensor can detect anything other than an RFID tag, so anything that is an RFID tag that isn't registered flashes red but anything else will just go undetected.

    • @Chimel31
      @Chimel31 ปีที่แล้ว +1

      @@MichaelKlements Quite right, it would need a different setup with a presence sensor or something. I thought it could also help debug the setup, as I see that some people who tried it got zero LED or feedback, but then, there is no limit on improving this kind of setup, people who add a presence sensor would then want to add a camera to snap the unchipped intruder, then a buzzer to scare them away, etc. 😁

  • @PyroRob69
    @PyroRob69 3 ปีที่แล้ว +13

    I like your design. Have you considered adding a keypad to this? A concept in security is 'something you have - the RFID tag, and something you know - a passcode'

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว +5

      Thanks PyroRob69. Yes, a keypad would be a nice addition. You'd have to get rid of the LEDs then though as there aren't enough IO pins for both. There are only 6 spare and you'd need 8 for the keypad.

    • @PyroRob69
      @PyroRob69 3 ปีที่แล้ว +2

      @@MichaelKlements Unless the LCD was using I2C. Also, with the LCD, you could use single char's to do the same thing as your LED's do. You can place any char you want, in any place you want on that display.

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว +4

      Yes, an I2C LCD display would be a nice addition as well. You could then add the card/tag owners name to be displayed when a valid card/tag is read as well.

    • @PyroRob69
      @PyroRob69 3 ปีที่แล้ว +1

      @@MichaelKlements I have found two I2C devices that would allow you to use a standard keypad with. One already has a keypad library written for it, but the other would require you to use bit banging and the Wire library. On the upside, the one that requires the Wire library can handle 16 pins instead of just 8, therefore you could control both the keypad and the RFID scanner with one I2C adapter.

    • @PyroRob69
      @PyroRob69 3 ปีที่แล้ว

      Here is the one for 16 pins, and it uses the standard MCP23017 chip - www.amazon.com/Waveshare-MCP23017-Expansion-Interface-Expands/dp/B07P2H1NZG/
      The other that someone has already written a library for is www.amazon.com/gp/product/B01ICN5JB6/

  • @soggytoast3111
    @soggytoast3111 3 ปีที่แล้ว +3

    Hi, where did you get the metal arm to attach to the servo? Or did you make it yourself? If so, do you have any resources that you could point me towards for making one? Thanks, video was super helpful!

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว +4

      It's just a standard servo push-rod and ball from Hobbyking, they're used to actuate the control surfaces on RC aircraft. Glad it helped!

    • @soggytoast3111
      @soggytoast3111 3 ปีที่แล้ว +1

      @@MichaelKlements Thanks! New to this stuff so wasn't sure of the term.

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว +2

      No problem. You should be able to buy one off eBay, Hobbyking or a local hobby shop for quite cheap.

  • @sassoldat8260
    @sassoldat8260 3 ปีที่แล้ว +1

    Mejn you make good tutorials and its beatiful that you put the zip files and the code in the description can you make a video with the wemos d1 the homeautomation? I would like it to try it myself but im a beginner

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว

      I’ve never tried making anything with the Wemos D1, but I’ll look into it. On board WiFi would definitely make for some interesting home automation projects.

  • @kroome8
    @kroome8 3 ปีที่แล้ว +2

    great!!! thank you for posting...

  • @iyzy_8236
    @iyzy_8236 2 ปีที่แล้ว

    loved it i wish i could do this for my garden gate but i am a kid :(

  • @RDog1732
    @RDog1732 11 หลายเดือนก่อน

    I need to know how to get the medal rod to connect servo. Can You Add a Link? TY

  • @tayfourcontrols
    @tayfourcontrols 2 ปีที่แล้ว

    Thank you soo much

  • @ajaykalsi6007
    @ajaykalsi6007 3 ปีที่แล้ว +1

    I reccomend you make the samething but with a relay instead of servo

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว +1

      Thanks Ajay, I'll have a look at doing this in a future video.

  • @dorinsandu8012
    @dorinsandu8012 4 ปีที่แล้ว

    Hello Michael , I would like to use this for one of my private lockers. The thing is that I want just the RFID board to be visible and on the outside of the door. How can i make sure that once the battery runs out it will not lock itself and that's it? Can i do it somehow?

    • @MichaelKlements
      @MichaelKlements  4 ปีที่แล้ว +1

      I presume that it would be locked most of the time? Meaning that the battery would most likely run out while it is locked? You could either program in a voltage monitor which automatically unlocks and won’t re-lock if the battery gets low. Or a better option would be to put a tiny switch or push button on the outside as well which connects a backup battery when turned on. This backup battery only needs to be big enough to power up and unlock the door once. Some smart door locks which require power to actuate have small terminals for a 9V battery on the outside under a cover plate which can be accessed if the battery dies while locked.

  • @rednasky6252
    @rednasky6252 8 หลายเดือนก่อน

    How can I get the RFID.h library?

  • @advertaCS
    @advertaCS ปีที่แล้ว

    great project... is there any chanse to use this code for more than 44 tags... I need it for like 100 tags... your can work with maximum 44 tags

  • @filmproducentje
    @filmproducentje ปีที่แล้ว

    Hi, great video! But i have an issue with reading the card. I checked the wiring so many times, I bought six of those RC522's, and none of them work.
    When I connect the Arduino to the RC522 and open the Serial Monitor, I get the message:
    "Firmware Version: 0x92 = v2.0"
    When I unplug the RC522 and run the serial monitor, I get the message:
    "Firmware Version: 0x0 = (unknown)
    WARNING: Communication failure, is the MFRC522 properly connected?"
    So this means the connection between the Arduino and the RC522 works, but still, with 6 different RC522's, I get absolutely nothing out of it. Maybe the code is not relevant anymore? I don't know what to do, I've already struggled for three days with this problem...

  • @KitsuneBelle93
    @KitsuneBelle93 4 ปีที่แล้ว

    I'm wondering if I can use this to diy a pet door so it will lock when my cat goes near it? How close does the tag need to be to the sensor for it to read? And is there a way to make it so the lock stays open but when the tag is within a specific distance it will stay locked until the tag leaves the sensor range? Of course, making the locked position the default would also work if I put the tag on the dog, but that still leaves the question of how close it has to be to the sensor?

    • @MichaelKlements
      @MichaelKlements  4 ปีที่แล้ว

      Hi Elizabeth,
      You could certainly do what you’ve described with an RFID tag, but these particular ones need to be quite close to be read. Probably closer than what a pet would be able to get it unless you could figure out how to hang it so that it came within about 2-3cm from the read when the cat tries to go through the door. Different tags work on different frequencies and offer longer or shorter reading distances. The ones on credit cards for example need to be really close while ones used in vehicle tags can be read from around 5-10m away.

    • @KitsuneBelle93
      @KitsuneBelle93 4 ปีที่แล้ว

      @@MichaelKlements awesome! I was starting to lose hope after doing some more research (I don't have any kind of experiencewith this kind of thing, but I do research for a living so I'm pretty determined to figure it out lol), but I'll look into the other types you mentioned! Thanks!

  • @milicentt8465
    @milicentt8465 2 ปีที่แล้ว

    It finally worked, i just soldered the pins with the rfid module. Last question, is it okay to connect it with a 9volts external battery through DC?

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      Yes you can use a 9V battery, but it must be connected to the barrel jack on the Arduino so that it is regulated.

    • @milicentt8465
      @milicentt8465 2 ปีที่แล้ว

      @@MichaelKlements Thank you! is it always safe to use 9V battery and connect it to the barrel jack of the arduino? I sometimes worry that some components might burn. Sorry I am new to this.

    • @milicentt8465
      @milicentt8465 2 ปีที่แล้ว

      @@MichaelKlements And how would I know if it is not safe. I always worry that some parts such as led or rfid scanner would broke if I do a wrong power supply voltage.

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      As long as it's a 7-12V battery it'll be fine to connect to your Arduino's barrel jack. The Arduino regulates the voltage to 3.3V and 5V, just make sure that your sensor is connected to the correct supply voltage. Most (almost all) sensors that are made for tinkering with electronics are 5V compatible, there are however a few that run on 3.3V but will say so in the datasheet.

    • @milicentt8465
      @milicentt8465 2 ปีที่แล้ว +1

      @@MichaelKlements Update: I tried connecting to to a 9V through the arduino jack but weird stuff keeps happening. When I scan the rfid with access, the led lights keeps on flashing and servo motor keeps on moving. But all seems well if it is connected to the computer.

  • @Drip_Or_Slip
    @Drip_Or_Slip ปีที่แล้ว

    Can you make it read from a longer range?

  • @Rusty10speed
    @Rusty10speed ปีที่แล้ว

    When I open the Serial monitor and place the card near the scanner, nothing comes up as if the card isn't there. I'm using the cards that came with my RFID scanner and everything is hooked up correctly. Not sure why it isn't working.

  • @rockorbonk2713
    @rockorbonk2713 2 ปีที่แล้ว

    To who ever is using an arduino uno r3 and is experiencing problems with the card reader. Plug the rst pin which is on the sensor to the 5th pin on the arduino

  • @milicentt8465
    @milicentt8465 2 ปีที่แล้ว +1

    Hi again! I just bought a similar Rfid module, should the pins be soldered? It seems firm in the video, I tried to do this project and it did not work in my 1st try.

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      Yes it works best to solder them

    • @milicentt8465
      @milicentt8465 2 ปีที่แล้ว

      @@MichaelKlements Alright, thanks!

  • @veeraveeramachaneni8770
    @veeraveeramachaneni8770 2 ปีที่แล้ว

    I added the .ZIP to the library but it said it had no existing library. Can you please tell how to fix?

  • @onkarlalmenaria3283
    @onkarlalmenaria3283 ปีที่แล้ว

    Can you please tell me which RFID sketch we need to install from the library manager?

    • @onkarlalmenaria3283
      @onkarlalmenaria3283 ปีที่แล้ว

      Please tell me quickly. As I have to make it as early as possible.

  • @rab8338
    @rab8338 3 ปีที่แล้ว

    How easy would it be to add the 16*2 Lcd module as a visual improvement?

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว +2

      That should be quite easy to do, there is enough IO available. I’d maybe suggest an I2C oled display rather?

    • @rab8338
      @rab8338 3 ปีที่แล้ว

      @@MichaelKlements thanks, ill give it a try, looks more impressive than the lcd, great project.

    • @ms5452
      @ms5452 ปีที่แล้ว

      Hello im trying to add lcd i2c to the code but i couldn't can someone help me asap pls ?

  • @marijngrashoff30
    @marijngrashoff30 3 ปีที่แล้ว

    Because phones have they're own NFC tags can I make this work with my phone by just finding its tag and adding it as the verified tag?

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว +1

      There are a number of different RFID frequencies and protocols and they're not all compatible with one and other. You could probably find a sensor which would enable you to read NFC tags from your phone, but its quite unlikely that you'd be able to do that with this sensor.

  • @extrabuilder606
    @extrabuilder606 2 ปีที่แล้ว +1

    hi Micheal clementswhen I put the card in front of the rfid so that he reads it there is nothing happening help me please

  • @jonaslan5134
    @jonaslan5134 2 ปีที่แล้ว

    what Resistor did you used

  • @akhileshkodukula6463
    @akhileshkodukula6463 4 ปีที่แล้ว +1

    Can you tell me how to download the RFID library in Arduino IDE.

  • @rimmike
    @rimmike 2 ปีที่แล้ว

    Can you use this to access or download other cards info? Like there are cards with certain info on them. Like name etc

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      As far as I know, these sensors will only pick up the ID number of the tag.

  • @linde1670
    @linde1670 4 ปีที่แล้ว +1

    Hi, thanks for making this video. I have a question, the tag doesn't seem to work, and I'm pretty sure the wires are correct because I checked a lot. Also there is a light on the RFID sensor so I think that's connected good too. And the code doesn't give any errors. The LED's don't do anything, but I don't know if that is just because the tag isn't working. Maybe I am really stupid and there is something obvious I was supposed to change in the code or in the wires to adjust it for a reason I don't know. I'm still pretty new to arduino so I still really hope there is an obvious solution. Hope you have time to help.

    • @MichaelKlements
      @MichaelKlements  4 ปีที่แล้ว +2

      Hi Linde,
      You shouldn't need to change anything in the code if you've wired it as per the diagram and you're using the same component. The LEDs should come on sequentially like in the video when you power it up, if this isn't happening then you've either got wiring problems to the LEDs or the SPI communication to the RFID sensor is failing - most likely because it's not connected correctly. Also try opening up the Serial monitor, does it display "Place card/tag near reader...", indicating that it's run through the setup function?

    • @linde1670
      @linde1670 4 ปีที่แล้ว +1

      @@MichaelKlements Hi, I think the hardware is now correct, because when I open the SerialNumberRead he does recognise my tag and I can read the serial number. But then when I open the serial monitor in the final code, and I scan my tag it doesn't seem to recognise it at all. I am still a beginner so if there is an obvious thing I was suppossed to do that you didn't say I had to change in the code, I probably haven't done it. The only thing I now have changed are the serial numbers to grant acces to and I have added the library. Any idea why he does recognise the tag in the SerialNumberRead but not in the final RFID code? I also don't get a green LED light and nothing moves or happenes when I scan the tag.

    • @phoenixtrimpe961
      @phoenixtrimpe961 3 ปีที่แล้ว +1

      @@linde1670 Me to, can you help please

    • @linde1670
      @linde1670 3 ปีที่แล้ว +1

      @@phoenixtrimpe961 It still didn't work, I don't know what is wrong, I kind of gave up, I will look at it again next week, if I find something I'll let you know

    • @bhw_msq
      @bhw_msq 2 ปีที่แล้ว

      @@linde1670 This was the exact same problem I too encounter .If you find out any solution let me know . I am too new to arduino

  • @endrijon9518
    @endrijon9518 2 ปีที่แล้ว

    Do i need 2 RFID sensors for both sides of the room (for example getting in my room and then closing the door the sensor would be outside)

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว +1

      You would usually just add a pushbutton to lock/unlock the door from the inside, unless you have a reason to restrict access in both directions.

    • @endrijon9518
      @endrijon9518 2 ปีที่แล้ว

      @@MichaelKlements thanks

  • @Totalrandomness2011
    @Totalrandomness2011 3 ปีที่แล้ว

    Where did you get the metal bar to connect the lock to the actuator?

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว

      It’s just an RC aircraft pushrod from and old aeroplane. They’re often on RC cars, boats, aeroplanes or helicopters.

    • @RDog1732
      @RDog1732 11 หลายเดือนก่อน

      @@MichaelKlements HELP

  • @archiehaigh4796
    @archiehaigh4796 3 ปีที่แล้ว

    Hi, I just wanted to ask. I am building this lock soon but I wanted to know how you set the servo miter in the code to automatically lock after 3 secs. Thanks.

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว +1

      You'd need to make a few changes. Add a 3 second delay to the code after the servo opening movement, then move the servo to the closed position again. And you'd need to remove the logic which closes the lock on a tag read so that it only opens the lock.

    • @archiehaigh4796
      @archiehaigh4796 3 ปีที่แล้ว

      @@MichaelKlements hi, thanks. I am rubbish with programming, is there any way that you could send me the code with the 3 second delay. Thank you.

    • @archiehaigh4796
      @archiehaigh4796 3 ปีที่แล้ว

      I am building this rfid lock and I cannot code. Sorry for any inconvenience

    • @archiehaigh4796
      @archiehaigh4796 3 ปีที่แล้ว

      @@MichaelKlements I am building the lock tomorrow. I just don’t know hoe to change the code?

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว

      You'll need to be able to do some programming to build this, it's not just a plug and play solution. You'll need to edit the code to add your cards/tags and adjust servo set points etc..

  • @ardhimudaariska6572
    @ardhimudaariska6572 3 ปีที่แล้ว +1

    how to access the lock from the other side of the door? like locking or unlocking from the inside

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว +1

      It depends on whether you want it to be secure on the inside as well. Most places would just have a push button on the inside to open the lock again. This lock stays open until you scan the tag again and then locks. So you lock and unlock it from the outside.

  • @MTaha-vd7yk
    @MTaha-vd7yk 3 ปีที่แล้ว

    Br the rfid reader is upside down in the diagram can you correct it and send it too me

  • @Adermayer
    @Adermayer ปีที่แล้ว

    Can also open with Apple Watch or iphone?

  • @raflinsundjojo536
    @raflinsundjojo536 ปีที่แล้ว

    i was wondering, what library do you use for the RFID?

    • @MichaelKlements
      @MichaelKlements  ปีที่แล้ว

      The library is packaged with the code download

    • @teddosftw
      @teddosftw ปีที่แล้ว

      @@MichaelKlements what code download?

  • @MitoFLMW
    @MitoFLMW ปีที่แล้ว

    how can you make it when it detects, it opens. but when the detection ended it closes back automatically ?

  • @eggxecution
    @eggxecution ปีที่แล้ว +1

    I leave my mark here:
    I did not use this code but use this video as a reference

  • @riofloramaep.4200
    @riofloramaep.4200 ปีที่แล้ว

    Can you give me of what does do i put or on how i connect may arduino kit ?

  • @DoeRayMe
    @DoeRayMe 5 หลายเดือนก่อน

    Are the leds necessary and is there a premade lock design like the one used that could just be loaded onto the build plate? Also what kind of filament would be recommended? This is for a school project so if anybody has answers that would be great if you could share them 🫶 thank you

  • @tylerradichel8551
    @tylerradichel8551 2 ปีที่แล้ว

    Hey Michael. The video has been pretty helpful but I am still confused. I wired the whole thing exactly how you have it and ran the exact same code. The LEDs go through their start-up flash sequence and then the Serial Monitor displays the Place Card message, yet when I place my card near the reader, nothing happens. I am using the same tags that came with the reader, and the reader is the exact same one you have. I ordered it through the link in the description. I just bought the reader yesterday so it is not old or anything, and it should be working properly. Please help! I also emailed you.

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      This is most likely a communication issue between the RFID sensor and your Arduino. Check the wiring between the two - the LEDs and text being displayed are independent of the communication link so will be displayed regardless of whether the Arduino was able to connect with the sensor or not.

    • @tylerradichel8551
      @tylerradichel8551 2 ปีที่แล้ว +1

      @@MichaelKlements I’ve checked the wiring, and required the whole circuit, 4-5 times now and it still doesn’t work.

    • @tylerradichel8551
      @tylerradichel8551 2 ปีที่แล้ว

      Rewired*
      L

    • @rockorbonk2713
      @rockorbonk2713 2 ปีที่แล้ว

      @@tylerradichel8551 if you are using an arduino uno, plug the rsp pin on the 5th pin on the arduino. And place the led pin on like the 3rd or 7th pin

    • @saharavo8819
      @saharavo8819 ปีที่แล้ว

      @@rockorbonk2713 what's a rsp pin?

  • @gametutorialshk
    @gametutorialshk 3 ปีที่แล้ว +1

    can i use RFID PN532 for this operation ?

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว +1

      You can use the PN532 for the same type of project, but you'd need to change the code and the library used.

    • @gametutorialshk
      @gametutorialshk 3 ปีที่แล้ว

      @@MichaelKlements ok , ty so much !

  • @student-lb3xh
    @student-lb3xh 11 หลายเดือนก่อน

    Communication failure is the MFRC522 connected properly how to fix this error

  • @jackngrill1758
    @jackngrill1758 ปีที่แล้ว

    will it require for another library for arduino?

  • @ravimoonen
    @ravimoonen 3 ปีที่แล้ว

    Thx for the video, mine gives an error....
    'class MFRC522' has no member named 'PCD_Init'
    what have i done wrong?

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว

      Have you used the same library I've used?

  • @tofii12345
    @tofii12345 2 ปีที่แล้ว

    Can u help me please I’m getting an error code for the rfid part iv done everything I’m supposed I just can’t figure out why it won’t work I plug it all in the rfid chip thing lights up an nothing happends then I try to upload an it saying failed any help or suggestions would be amazing

  • @gerymanuel747
    @gerymanuel747 2 ปีที่แล้ว

    How to connect it with battery in case black out occurs?

  • @timlehnhardt6980
    @timlehnhardt6980 2 ปีที่แล้ว

    Hello can you upload please the code because youtube make an update and now you cant read the descripton thanks!

  • @davide_sr3701
    @davide_sr3701 2 ปีที่แล้ว

    Whats the name of the arm thath connects the servo to the look

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      It's an RC aircraft pushrod or servo connection rod.

  • @Shalfatk01
    @Shalfatk01 2 ปีที่แล้ว

    Do have every card it unique code, or can you set you custome code to those cards?

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว +1

      Each card has a unique ID. There is a way to reflash their ID numbers, but it is quite complicated. It’s preferred to be able to identify which of the cards unlocked the system.

  • @nisheshfernando4352
    @nisheshfernando4352 2 ปีที่แล้ว +1

    can i use a 9v battery?

  • @panteliscyberrr7530
    @panteliscyberrr7530 7 หลายเดือนก่อน

    Don't need it Arduino code or already had it?

  • @nishtafernando4077
    @nishtafernando4077 2 ปีที่แล้ว

    Hello, i dont know which rfid library im supposed to include, do i need to change the code?

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      The rfid library is bundled with the sketch download, you just need to paste it into your Arduino IDE's libraries folder.

  • @michaelcw6792
    @michaelcw6792 6 หลายเดือนก่อน

    How would I replace the servo for an
    Electromagnetic

    • @MichaelKlements
      @MichaelKlements  6 หลายเดือนก่อน

      You would need to add a relay to switch the circuit on and off.

  • @gaboo1037
    @gaboo1037 3 ปีที่แล้ว

    Place card/tag near reader...

  • @bryanagunghalim9022
    @bryanagunghalim9022 3 ปีที่แล้ว

    Hi sir, I have done all of the wiring properly but in the serial monitor it only shows 'Place card/tag near reader...' when I'm literally placing my card on the sensor. Is the problem on the card or the hardware that I am using?

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว

      Are you using a card or tag which came with the reader? Not all cards operate on the same frequency and are able to be read by all readers.

    • @bryanagunghalim9022
      @bryanagunghalim9022 3 ปีที่แล้ว

      @@MichaelKlements yes i am using the card and tag that came with the reader, i have even tried using other card hoping that it would work but it still doesn't read the card

  • @rlalbn9545
    @rlalbn9545 ปีที่แล้ว

    do i need to download a library for this to work?

    • @MichaelKlements
      @MichaelKlements  ปีที่แล้ว

      The library is packaged with the code download from my blog

  • @durvankurchavan6997
    @durvankurchavan6997 2 ปีที่แล้ว

    What ohm of resistor u used

  • @santiagovelasco966
    @santiagovelasco966 2 ปีที่แล้ว

    I am new to all of this (arduino) and I am trying to get it to work I have checked the connections and download the code 3 times even copied it by hand once but i cant find nothing wrong. Is there a change in the code or the wiring required?thx.

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      There are a number of reasons why this might not be working. What part is not working? Are you getting text on your serial monitor? Are the LEDs coming on?

    • @russiancat340
      @russiancat340 2 ปีที่แล้ว

      For me the problem is that I have an error when I try to put the code in through the the zip thing. It says library doesn’t contain valid library

  • @MrTheprudentone
    @MrTheprudentone 2 ปีที่แล้ว

    Is there a way to adapt this for two door locks on two doors.

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      Yeah you could use the same Arduino to open two locks with the same RFID card or different locks depending on which card is used.

  • @imsreehari
    @imsreehari 2 ปีที่แล้ว +2

    You didn’t mention the value of the resistors.What is the value?

    • @flxssy
      @flxssy ปีที่แล้ว +1

      220

  • @breathe4912
    @breathe4912 2 ปีที่แล้ว

    Can the tag be strong enough to unlock if the key is 5 feet away?

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      Not with these tags or readers but you get other RFID sensors that'll work a couple of meters away.

  • @shepherdmukamo7948
    @shepherdmukamo7948 2 ปีที่แล้ว

    How does the system identify the cards. Does the cards have a code in them

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      Each card has a digital "ID" which is identified by the tag reader.

  • @alvin.p191
    @alvin.p191 3 ปีที่แล้ว

    Is there any different between arduino uno?
    And also if I used different arduino can the code be use?
    The arduino in your link has sold out, I’m not sure if i found the same one.

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว

      Generally speaking, all Arduino Uno's are made to the same specification, so should be compatible with each other. Some companies do add or remove features, but the pin numbers, layout and general functionality should be the same.
      Yes, you can use a different Arduino, just make sure that it still has enough IO pins and operates at the same voltage.
      Thank you, I've updated the link to one which is still available.

    • @alvin.p191
      @alvin.p191 3 ปีที่แล้ว

      @@MichaelKlements hi thanks for your reply, do you have the schematic diagram of this circuit? I'm doing this as my school project, but I don't know how to create a schematic diagram.

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว

      I haven't gotten around to drawing up a schematic, I've only done the breadboard layout. You could probably put something together quite quickly using Fritzing

  • @jakeclearwater8065
    @jakeclearwater8065 ปีที่แล้ว +1

    Any updated links for code, doesnt work for me

  • @techprime2795
    @techprime2795 2 ปีที่แล้ว

    Can you please give a link for download the RFID library

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      It's linked in the video description, bundled with the code download.

    • @techprime2795
      @techprime2795 2 ปีที่แล้ว

      @@MichaelKlements Thank you

  • @bradenpryor7442
    @bradenpryor7442 2 ปีที่แล้ว

    i downloaded your code but when i try and run it, it says, "(library file) RFID/RFID.h:22:10: fatal error: 'SoftwareSerial.h' file not found
    #include ".

  • @odinconnor-randomvideos5267
    @odinconnor-randomvideos5267 2 ปีที่แล้ว +1

    Nice video, a piezo sounder would have been even better

  • @jesuszamora8408
    @jesuszamora8408 3 ปีที่แล้ว

    hello Michael i have been trying to do this project but i only keep getting the place card/tag near reader message.
    The card and tag came with the kit I have the elegoo mega2560.how can i solve this problem pls reply.

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว

      Hi Jesus,
      If you're not getting any response on the serial monitor then there's most likely a communication problem with the reader. Check your connections again and make sure that they're connected to the correct pins. Is the LED on the reader coming on?

    • @jesuszamora8408
      @jesuszamora8408 3 ปีที่แล้ว

      @@MichaelKlements yes

  • @gibsonnowak9017
    @gibsonnowak9017 3 ปีที่แล้ว +1

    ok got it

  • @emmanuellldejarme5659
    @emmanuellldejarme5659 10 หลายเดือนก่อน

    where can i download the library

  • @maxstechlab
    @maxstechlab 3 ปีที่แล้ว +1

    can i replace the servo with a relay

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว

      Yes, you'll just use a regular digital output rather than a PWM output.

  • @jack_kappus37
    @jack_kappus37 3 ปีที่แล้ว

    Is there a way to do this on the Arduino Mega 2560 R3?

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว +1

      Yes, you can use the code and pin layout as in this example. You'll just be wasting the additional IO on the Mega.

  • @jovenianomadrid9565
    @jovenianomadrid9565 3 ปีที่แล้ว

    I triedy RFID card but can't work properly access denied.

  • @aaazam9718
    @aaazam9718 3 ปีที่แล้ว

    Sir, what simulation software did you used?

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว

      I'm not sure what you mean by simulation software. If you're talking about the schematic, the basic layout was done in Tinkercad, but the RFID sensor was added in as it isn't available in Tinkercad. All of the coding and text feedback is done in the Arduino IDE.

    • @aaazam9718
      @aaazam9718 3 ปีที่แล้ว

      @@MichaelKlements Tinkercad. Is it free, Sir. I tried finding the rfid model but could not found it.

    • @aaazam9718
      @aaazam9718 3 ปีที่แล้ว

      @@MichaelKlements Sir, how did you added in the rfid if there is no model for it in Tinkercad?

  • @ahmedmaruf7213
    @ahmedmaruf7213 2 ปีที่แล้ว

    hi, i want to develop the locking system in the laptop trolley for our college . So, department get update who's are using it and what time they are using it. So is it possible to do with our stuff ID card. Thanks

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      If you can find an RFID module that works with your staff ID card then you could probably make something similar. Some RFID systems are open source and some aren't.

    • @ahmedmaruf7213
      @ahmedmaruf7213 2 ปีที่แล้ว

      @@MichaelKlements how about the implementing tracking or update in the system

  • @joshsarka6358
    @joshsarka6358 ปีที่แล้ว

    WHERE DO WE FIND THE SERIAL NUMBER FOR OUR RFID?

  • @theheado5562
    @theheado5562 ปีที่แล้ว

    I can not install the .ZIP Library. It says multiple files found in the zip file top level.

  • @chimichangacom6198
    @chimichangacom6198 2 ปีที่แล้ว

    How I can edit your stl file to solidwork?

  • @Richie_
    @Richie_ ปีที่แล้ว

    I get this error when uploading sketch.
    exit status 1
    'class RFID' has no member named 'findCard'; did you mean 'isCard'?

    • @MichaelKlements
      @MichaelKlements  ปีที่แล้ว +1

      You need to use the RFID library that is bundled with the code, not a different one.

    • @Richie_
      @Richie_ ปีที่แล้ว

      @@MichaelKlements I have that library

  • @rabbippfx
    @rabbippfx 3 ปีที่แล้ว

    if there is a component failure, then how to open the door?? There should be a bypass system ! Can you help?

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว

      You could add a key-lock or a keypad with a code to bypass the rfid lock if you’d like

  • @bernardovaladas5497
    @bernardovaladas5497 2 ปีที่แล้ว

    Hi,
    After uploading the library and paste the code in arduino ide, I opened the serial monitor to add the tag and find the card number but it say´s "Place card/tag near reader.." and after putting the card near the rfid sensor nothing appears on the screen.... What I can do ?

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      There’s either a fault with communication from the reader or the card isn’t able to be read by the reader.

    • @mshoo_t
      @mshoo_t 2 ปีที่แล้ว

      You should try to plug your RFID-scanner otherwise in. Just turn it to 180. It worked for me

  • @eriondibrani587
    @eriondibrani587 2 ปีที่แล้ว

    In the cards is any number or just opened by colors??

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      The cards each have a unique identification number.

    • @eriondibrani587
      @eriondibrani587 2 ปีที่แล้ว

      @@MichaelKlements thank you bro

  • @davide_sr3701
    @davide_sr3701 2 ปีที่แล้ว

    what do you feed everything with?

    • @MichaelKlements
      @MichaelKlements  2 ปีที่แล้ว

      With 12V through the Arduino's power input

  • @supermarcman
    @supermarcman 2 ปีที่แล้ว

    libraries\RFID\RFID.cpp.o (symbol from plugin): In function `RFID::RFID(int, int)':
    (.text+0x0): multiple definition of `RFID::RFID(int, int)
    How do i fix?

  • @engineerjasminethesteamgal3961
    @engineerjasminethesteamgal3961 ปีที่แล้ว

    Can you send the link for the axel used for the lock? The Piece on Video 1:48

  • @wenhanpro123
    @wenhanpro123 3 ปีที่แล้ว

    Hi Nice video ! subscribed! but i got a question, ( is the rfid.h & rfid.cpp file coded by you ? or I can download it anywhere also. if its codded by u , can u do some //comments for me to understand better )

    • @MichaelKlements
      @MichaelKlements  3 ปีที่แล้ว

      Thanks Wenhan Xiao! No it wasn't coded by me, there are some credits in the top of the library which list the source, creator and rework done to it. I agree, it's not very well commented, so it's difficult to make changes or adjustments to.