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/
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??
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.
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. :)
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.
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!
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.
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!
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
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!
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
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?
@@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....
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?
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.
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/
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.
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
@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
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.
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....
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...
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...
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!)
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?
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.
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 ?
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/
Hey if I am inside how do I get out?
I'm going to try and fit this into our pool gate and use it as a (basic) lock for it!
Without using any external storage , how many cards / tags can be registered on the inbuilt memory ?
Hi. How I can add in this project also display ?
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??
Not a very optimal solution... RFID works only on almost touching distance. Unless you can train the cat somehow... xD
XSportSeeker,
I know it was a crazy idea. :) Just something I thought of there. lol
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.
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. :)
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.
Which Mosfet N did you use?
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!
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.
Hi. In this code also can add keypad and display to see card I'd and access or no entry . .
could someone tell the connecctions of the card scanner
Can this be used as a car entry alarm?...
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!
2n7004
dc supply
Thanks!
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
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!
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
maybe make a servo that presses the button when it is activated
Can anyone tell me the which Logic-level N channel Mosfet model is used in this project ?
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?
OK I got it now NeverMind...
Good day,
What is the length of the breadboard?
What if the rfid sensor board doesn't have sda? I have a vma405 and not a MFRC522
is it possible to use a mobile phone nfc?
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
you would need DC.
@@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....
What kind of 12v power supply did you use
You can yous a battery or conect to your computer
whats is code we programaiton?
What's the 12v power supply you used? Can you use a 9v battery?
I have the same question, how did you solve it?
Exactly what I need, raiding of our candy jar by people from other departments will soon end!
The 12v selinoide is a push and pull type?
Electromagnet of solenoide of CC due the job?
What model of mosfet and solenoid you use in this video? Pls reply my comments. ASAP
Use relay
Did this not work for anyone else? I followed and after scanning mastercard and another tag, the light stays solidly red.
Can i use a servo motor instead of a solonoid?
Too weak to lock a door, I would think.
Does it work with NFC tags?
We haven't tried, but it should do yes.
HI
In this code ,can use more than one tag to get access and open the lock?
The code would be easy to modify with an additional lock card, yes.
Thanks 😊
hello there..i have question...what should we do if we lost the card that means the key....can you help me..?
Same problem. Plss help us
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?
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.
Is it possible to replace the leds to led strips, if so how
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/
Can I use the same code but with arduino nano ???
Should work, yes, but be careful with wiring, I believe the nano runs at 3.3v?
Will this work with raspberry pi
Indeed it will! Try searching for RC552 and Raspberry Pi, there are several tutorials how to do different things with them!
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.
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
What code of the card????
Can I use transistor npn not mosfet
Yep, a transistor would work instead of a mosfet
Help Me God thank
Can you please add lcd display in this code
@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
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.
@@MakeUseOf no the arduino is working fine when connected to pc
@@kurunari5754 so how are you powering the arduino in this project?
@@MakeUseOf just like in the video
can this project change from lock to LCD, i mean do you know how?
i cant find the code , plz help me
gist.github.com/anonymous/5ec489385bcf1ac6e6efa789321aee81
What us the range of rfid s?
For the most part, touching distance
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....
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...
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...
I make this but i have a problem
I use 12v electric lock when lock open my arduino stuck then i restart it
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!)
Okay, it's not working. Frustrating! It constantly says "Mastercard wil be erased in 10 seconds
short circuit with pin 6
How do i delete card?
Locking down the liqueur cabinet :)
i neeed the code?
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
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?
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.
Your wipe and the blue led are on the same digital pin
I need the codes please
Pretty sure there's a link in the description...
HOW TO FREAKING INSTALL!? LACK OF EXPLANATION
www.makeuseof.com/tag/diy-smart-lock-arduino-rfid/
jezus christ
@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!
Can I use the tip120 transistor