DIY RFID Smart Lock with Arduino

  Переглядів 120,672

MakeUseOf

MakeUseOf

7 років тому

Read the tutorial at www.makeuseof.com/tag/diy-smar...
**************************************************************
What’s MakeUseOf? Technology, simplified.
The MakeUseOf blog covers all types of technology, including advice for all the popular operating systems and gadgets on the market, and tips for your browsing, social media and gaming habits.
We’re also keen to help you personally make more of your time using technology, so we include a lot about personal productivity, finance, smart home tech, entertainment and more.
Plus, we’re always running giveaways and finding great deals we can share with you. So keep an eye out for them! Plenty of our readers have won iPhones, tablets and more through our giveaways.
So FOLLOW US on your favourite social media sites and get MakeUseOf.com into your RSS feeds. And come say hi in the comments of our posts anytime! We’d love to meet you!
Website: www.makeuseof.com/
RSS: feeds.feedburner.com/makeuseof
iTunes App Store: itunes.apple.com/us/app/makeu...
Google Play: play.google.com/store/apps/de...
Deals: deals.makeuseof.com/
Latest Giveaway: makeuseof.com/giveaway
Twitter: / makeuseof
Facebook: / makeuseof
Pinterest: / makeuseof
Instagram: / makeuseof
LinkedIn: / makeuseof.com
Google+: plus.google.com/+makeuseof

КОМЕНТАРІ: 101
@Iumey
@Iumey 4 роки тому
I'm going to try and fit this into our pool gate and use it as a (basic) lock for it!
@aranguren12
@aranguren12 6 років тому
Good day, What is the length of the breadboard?
@raheels.1068
@raheels.1068 5 років тому
Hi. In this code also can add keypad and display to see card I'd and access or no entry . .
@BhairaviStudio
@BhairaviStudio 3 роки тому
Without using any external storage , how many cards / tags can be registered on the inbuilt memory ?
@md.sakibshahriar7810
@md.sakibshahriar7810 3 роки тому
Can anyone tell me the which Logic-level N channel Mosfet model is used in this project ?
@s7eleven8
@s7eleven8 10 місяців тому
Which Mosfet N did you use?
@user-wm3ip3rm9f
@user-wm3ip3rm9f 10 місяців тому
What kind of 12v power supply did you use
@TirthPatel27
@TirthPatel27 5 років тому
Can I use the tip120 transistor
@pawspark2087
@pawspark2087 5 років тому
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!
@nonymous1573
@nonymous1573 3 роки тому
What if the rfid sensor board doesn't have sda? I have a vma405 and not a MFRC522
@SherryEditzTM
@SherryEditzTM Рік тому
could someone tell the connecctions of the card scanner
@steveman1982
@steveman1982 4 роки тому
Exactly what I need, raiding of our candy jar by people from other departments will soon end!
@nonyourbuz5805
@nonyourbuz5805 3 роки тому
Can this be used as a car entry alarm?...
@cyn0_
@cyn0_ 5 років тому
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?
@janektamm4994
@janektamm4994 2 роки тому
is it possible to use a mobile phone nfc?
@PacoOtaktay
@PacoOtaktay 7 років тому
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 років тому
Not a very optimal solution... RFID works only on almost touching distance. Unless you can train the cat somehow... xD
@PacoOtaktay
@PacoOtaktay 7 років тому
XSportSeeker, I know it was a crazy idea. :) Just something I thought of there. lol
@XSpImmaLion
@XSpImmaLion 7 років тому
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 6 років тому
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.
@fitocs1940
@fitocs1940 Рік тому
whats is code we programaiton?
@ArrtusMusic
@ArrtusMusic 6 років тому
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 6 років тому
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!
@nomansaeed4511
@nomansaeed4511 6 років тому
Can you please add lcd display in this code
@raheels.1068
@raheels.1068 5 років тому
Hi. How I can add in this project also display ?
@jduchock
@jduchock 4 роки тому
Locking down the liqueur cabinet :)
@charantiruvuri8545
@charantiruvuri8545 5 років тому
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.
@Me0_0w
@Me0_0w 6 років тому
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!
@SuperSilver301
@SuperSilver301 6 років тому
2n7004
@SuperSilver301
@SuperSilver301 6 років тому
dc supply
@Me0_0w
@Me0_0w 6 років тому
Thanks!
@air21511
@air21511 3 роки тому
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 Рік тому
maybe make a servo that presses the button when it is activated
@abdullahattieh1054
@abdullahattieh1054 6 років тому
i neeed the code?
@AVVGCustomstudio
@AVVGCustomstudio 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 4 роки тому
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 4 роки тому
Hey if I am inside how do I get out?
@joefeghali8604
@joefeghali8604 5 років тому
How do i delete card?
@mdhazimosman
@mdhazimosman 6 років тому
What model of mosfet and solenoid you use in this video? Pls reply my comments. ASAP
@TelsctTelion
@TelsctTelion 4 роки тому
Use relay
@charlescrofts4436
@charlescrofts4436 10 місяців тому
Did this not work for anyone else? I followed and after scanning mastercard and another tag, the light stays solidly red.
@Eduardo-bp1fd
@Eduardo-bp1fd 5 років тому
What's the 12v power supply you used? Can you use a 9v battery?
@John-jk7po
@John-jk7po Рік тому
I have the same question, how did you solve it?
@isabellacespedesmaldonado1645
@isabellacespedesmaldonado1645 5 років тому
The 12v selinoide is a push and pull type?
@isabellacespedesmaldonado1645
@isabellacespedesmaldonado1645 5 років тому
Electromagnet of solenoide of CC due the job?
@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 Рік тому
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....
@stonynotdusty
@stonynotdusty 6 років тому
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 ukposts.info/have/v-deo/f4BepXyFhIuX24k.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.
@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.
@shubhampatil1146
@shubhampatil1146 5 років тому
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
@route-249
@route-249 5 років тому
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 5 років тому
OK I got it now NeverMind...
@revanthnemtoor3313
@revanthnemtoor3313 4 роки тому
Can i use a servo motor instead of a solonoid?
@MakeUseOf
@MakeUseOf 4 роки тому
Too weak to lock a door, I would think.
@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
@enderlemon890
@enderlemon890 3 роки тому
What code of the card????
@zillionpanic8065
@zillionpanic8065 5 років тому
Is it possible to replace the leds to led strips, if so how
@MakeUseOf
@MakeUseOf 5 років тому
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 5 років тому
Can I use the same code but with arduino nano ???
@MakeUseOf
@MakeUseOf 5 років тому
Should work, yes, but be careful with wiring, I believe the nano runs at 3.3v?
@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!)
@Kiiush
@Kiiush 2 роки тому
Does it work with NFC tags?
@MakeUseOf
@MakeUseOf 2 роки тому
We haven't tried, but it should do yes.
@kobe1506
@kobe1506 7 років тому
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!
@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
@muhammadakrom7020
@muhammadakrom7020 6 років тому
can this project change from lock to LCD, i mean do you know how?
@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...
@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
@ahmedatef6683
@ahmedatef6683 7 років тому
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 😊
@remconet
@remconet 6 років тому
Okay, it's not working. Frustrating! It constantly says "Mastercard wil be erased in 10 seconds
@SuperSilver301
@SuperSilver301 6 років тому
short circuit with pin 6
@dilansmith6665
@dilansmith6665 5 років тому
i cant find the code , plz help me
@MakeUseOf
@MakeUseOf 5 років тому
gist.github.com/anonymous/5ec489385bcf1ac6e6efa789321aee81
@AlRehmans
@AlRehmans 2 роки тому
Where is coding?
@kellyboy650
@kellyboy650 5 років тому
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 років тому
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 4 роки тому
Your wipe and the blue led are on the same digital pin
@shroogjan8424
@shroogjan8424 3 роки тому
I need the codes please
@MakeUseOf
@MakeUseOf 3 роки тому
Pretty sure there's a link in the description...
@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
@bray8949
@bray8949 5 років тому
HOW TO FREAKING INSTALL!? LACK OF EXPLANATION
@MakeUseOf
@MakeUseOf 5 років тому
www.makeuseof.com/tag/diy-smart-lock-arduino-rfid/
@enderlemon890
@enderlemon890 3 роки тому
jezus christ
@shoxced_1020
@shoxced_1020 Рік тому
@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!
RFID Locks are way too easy to "Hack"! Let me show you!
11:41
GreatScott!
Переглядів 1,3 млн
RFID DOOR LOCK -  with 3D printed case
15:12
Electronoobs
Переглядів 86 тис.
McDonald’s MCNUGGET PURSE?! #shorts
00:11
Lauren Godwin
Переглядів 23 млн
когда одна дома // EVA mash
00:51
EVA mash
Переглядів 5 млн
Їжа Закарпаття. Великий Гід.
1:00:29
Мiша Кацурiн
Переглядів 608 тис.
How to make RFID Light Switch 🤔💡
8:21
Fair Electro
Переглядів 9 тис.
Arduino Based RFID Door Lock  - Make Your Own
6:59
Michael Klements
Переглядів 317 тис.
PN532 RFID NFC Module with Arduino, How to use HSU UART, SPI, & I2C
14:16
Electronic Clinic
Переглядів 21 тис.
RASPBERRY PI - All  About controlling Relay Boards for Home Automation
15:05
How RFID Works and How To Make an Arduino based RFID Door Lock
7:59
How To Mechatronics
Переглядів 516 тис.
Make your own smart door lock!
5:04
Andrew Ong
Переглядів 588 тис.
Solenoid Door Lock Contol RFID Arduino
2:31
Maker 101
Переглядів 117 тис.
How to Make Arduino Security Access Lock | RFID MFRC522
8:47
Maker 101
Переглядів 143 тис.
Phone sees the future ! 📲🫣👽
0:38
BOGDANCHIKI
Переглядів 11 млн
''Бесплатные умные'' домофоны для глупых людей. За чей счет банкет?
12:48
Вадим Шегалов.Оккультные игры элиты
Переглядів 25 тис.