SuperHouseTV #7: Control door locks with RFID and Arduino

  Переглядів 80,724

SuperHouseTV

SuperHouseTV

11 років тому

* www.superhouse.tv/episodes
Now that I've modified the Lockwood Nexion door lock on my workshop for Arduino control, the next step is to add an RFID reader near the door so that I can scan the RFID chip implanted in my arm to unlock the door. Learn how RFID works, and how I connected a Freetronics EtherTen (Arduino compatible) to an RFID reader.

КОМЕНТАРІ: 48
@Qtronik
@Qtronik 10 років тому
Don't forget to continue putting your home automatisation in your playlist! I watch and rewatch all episode and share it alot! But searching through UKposts is not a lazy thing lol. Your ideas are amazing! Keep going!
@SuperHouseTV
@SuperHouseTV 11 років тому
Amal! I'm honoured, thanks for commenting. Here in Australia at least it turned out to be easier to get implantable chips following the ISO standard, basically because vets don't implant anything else. From what I've seen it's really only the USA that has such a mess of implantable technologies for the reasons you mentioned: elsewhere in the world vets only need 1 reader to cover all implantable tag types.
@sebastianandersson4932
@sebastianandersson4932 8 років тому
Wow this is really great! Been watching some episodes and been learning tons. You have so much knowledge with this, I am each day trying to proceed into doing more advanced controlling with the arduino uno. Really looking forward seeing more of your videos, a huge thank you for uploading this! I can really tell that you love it! Warm regards Sebastian from Sweden
@aaabatry
@aaabatry 10 років тому
how rich must this guy be!!??! You seem very intelligent.. I am a Sydney high-school student, and I must say after subscribing to you and watching your videos, I honestly look up to you. Great work!!
@pauldusa
@pauldusa 5 років тому
2018 almost 2019, I see you have been busy in those 5 yrs,, well Thanks for all you share with everyone. I'm learning your information to do a super house too, I'm ok with the hardware electronic & the Arduino, I just have to learn the Mptt stuff.... Have Fun..
@josephmckee3549
@josephmckee3549 11 років тому
It's such a cool thing you're doing with your house! When I have my own I'll be following your example. Great tutorial and you've made it really interesting :)
@SuperHouseTV
@SuperHouseTV 11 років тому
There's a long historical back-story to why there are both 125 and 134.2KHz implantable tags, but the short version is that some of the first companies doing it (for pet use) in the USA chose to use 125KHz before the international standard of 134.2 was ratified. Other countries follow the standard exclusively so it's easy, but the US now has a mess of incompatible standard & non-standard systems so US veterinarians need to have multiple readers to cover all the common tag types
@SuperHouseTV
@SuperHouseTV 11 років тому
In the past I've fudged it by using a DS18B20 temperature sensor and using part of its address as the Ethernet MAC, but that's not really the right way to do it. The chip I'm using now is the Microchip 24AA025E48. It's I2C, and very easy to use. I'll write up some detail about how to use it soon
@micheldeslandes4339
@micheldeslandes4339 5 років тому
Hi Jonathan, I love your channel and I love your videos. I would like to add some information for your viewers who are thinking of implementing a system like this, though. The 125KHz system (EM4100?) that you used only implements identification and not authentication so any RFID chips that are used as keys can be copied in a fraction of a second by a reader that can get within a few centimeters of the key. Good technology to track shirts in a store or to identify a lost dog. Not so good for locks and (semi)-secure systems. Any RFID system that needs to be even mildly secure will implement some sort of challenge/password (or CHAP) authentication. Systems such as the DESFIRE tags or, if cost is a major concern, even just a MIFARE Classic tag (which has been hacked but you can still get cheap Chinese tags which have the holes plugged). These all work on the 13.56MHz frequency though. Not that it matters. Just to be clear; the difference between identification and authentication is that in "identification" the key will always answer "My name is Jonathan" when asked, "What's your name?" (will always send the same identification code). So it's very easy for a concealed reader to know the identity of the chip and to clone it. An authenticated system will kind of answer "I will encrypt my name with our shared encryption password and tell you the encrypted form". If the reader does not have the shared encryption password, the answer will not permit cloning. Kudos to you and all you hard work. I wish I could do all the things you do but I've only tinkered with some of them.
@amalgraafstra
@amalgraafstra 11 років тому
Nice vid! Didn't the original British IFF use a passive radar reflector method to detect friendly aircraft? I don't believe they started with a separate coded transmitter... maybe that came later. The difficulty with an omni-directional challenge/response transmission would have been that they could not tell where the friendly response was coming from, so it would not work when there was a mix of aircraft in the general area (general meaning several kilometers range kinda general).
@SuperHouseTV
@SuperHouseTV 11 років тому
They experimented with passive radar reflectors for identification as early as 1938, but it didn't work well enough to be practical. It was too dependent on the angle of reflection, etc. The system called "IFF Mark I" was an active reflector system first used at the end of 1939, but it wasn't very reliable either. They switched to a multi-frequency system called "IFF Mark II" in 1940, which ran at 42.9MHz, 86.7MHz, and 200MHz.
@pccustom403
@pccustom403 7 років тому
u are god damn genius pal
@SuperHouseTV
@SuperHouseTV 11 років тому
I have a pan/tilt servo mount right here on my desk connected to an Arduino, because I've been working on a satellite tracking antenna. I'm in the process of building a satellite ground station so I can talk to ArduSat, a Cubesat that I helped design that will be launched in August. What you're describing with motor control isn't specific to cameras: just look for info on controlling AC motors. You could use a triac, or even relays if you want to go low-tech
@SuperHouseTV
@SuperHouseTV 11 років тому
Interesting, thanks for the clarification. I'm sure modern IFF has grown into a much more powerful tool, far beyond what was originally required in WWII as just a "don't shoot down *this* particular blip on the radar screen" indication.
@bobblack2643
@bobblack2643 9 років тому
I want to add to this project by accessing a database on the sd card and using it as a one time entry door lock. if the tag is used I want it changed to allow me to view its status and not be used again. until I reset the value... Is this possible to write additional data to an existing entry of a file.
@SuperHouseTV
@SuperHouseTV 11 років тому
I think I'd need to see details of your circuit to be able to provide any help. Perhaps you could post about it in the Freetronics Forum. I can't put the forum URL here in a UKposts comment, but if you search for it you'll find it easily
@paulham
@paulham 11 років тому
Have you done anything about making pan and tilt security cameras work using a Arduino? I need something that can control 2 24ac motors (forward/reverse) for the pan and tilt, and 2 5vdc motors ((zoom in/out & focus in/out). Any ideas? Paul
@SweetModsTV
@SweetModsTV 11 років тому
what if every door in the house would have that, you would need arduino boards for EVERY door? or can you make 1 board and have a couple channels of the signals?
@micahnightwolf
@micahnightwolf 9 років тому
Quick question. Why would you use two separate Etherten units to control the reader and the lock? I would think that just one unit by itself could easily read the tag, authenticate it with the server, and open the door, and that would be more cost-effective. Having two endpoints in the same location, and both doing closely related tasks seems a bit redundant. You do it however you want, but to me it's just more cable, more network traffic, and an extra Arduino that could be put to work doing something else.
@gametechish
@gametechish 9 років тому
He did this because he already had the EtherTen running the program for the lock and since he had another one and didn't want to redo his door lock so he made a new one another reason why might be because the EtherTen might not be able to handle that much code
@mounia6237
@mounia6237 8 років тому
Hello :D I'm working on a similar project based on controlling a door lock using a chip card , and im using Arduino, so i'll have to use a serial communication between the smart card reader and the arduino. Im still a student and i really need some help ! thanyou !!
@paulham
@paulham 11 років тому
Hey, I took your advise and used Triac's to control the AC motors. I also used Optocouplers. I have a problem which seems like the circuit is sticking in one place and keeping the motors spinning regardless if the joystick has been centered, Only way to get it working again is to reset. not sure if its software or hardware. any ideas?
@TechDoctorTV
@TechDoctorTV 5 років тому
Jon, Could you not had put the transmitter for the door lock & the RFID reader on one EtherTEN, or am I missing something?
@PC.Paynes
@PC.Paynes 9 років тому
Hello, i have watched alot of your videos and have decided to start making some projects myself. But i haven't found any code etc that will work.I have the arduino uno rev3 with a RFID RC522 reader, and a 2 channel relay board. Eventually i will add a keypad also. I want to create a lock for my gate, where once the tag or code is entered it turns the relay on which will disarm the electronic lock for 5 seconds then rearm the relay. Would you be able to send me some code please so i can get this working and learn from the code. As i haven't used an arduino before. i Have got a rasp pi which i have got to work over web interface but don't know where to start with this. Id really appreciate it if you could spare some time to help thank you.
@lumbermike
@lumbermike 9 років тому
Great video, pal!
@lumbermike
@lumbermike 9 років тому
Also, it sounds like you're talking about a full-duplex rfid system...correct? If I have my head on straight, I think there's a system called half-duplex. Where the reader, when something triggers it, pulses the signal, then waits for a response. Where as full-duplex is constantly emitting its magnetic field. Again- great video!
@SuperHouseTV
@SuperHouseTV 8 років тому
Mike Wasiukiewicz The system I'm using is half-duplex, because the tag is passive. There's no stored power source in the tag, so it only powers up and responds when it's energised by a properly tuned field from a reader.
@lumbermike
@lumbermike 8 років тому
Great! Thanks for clearing that up for me!
@thomasrobin
@thomasrobin 6 років тому
Where can I find the server side Scripts? The part where you recive the tag code and look it up in a database, Check for rules and issue the unlock command
@nfedyashev
@nfedyashev 11 років тому
thanks for the video! You mentioned that 134.2kHz frequency is used as an international standard for implantable RFID. I'm a bit stuck :) The only implantable RFID tag that I could find dangerousthings. com is 125kHz. Is it illegal? Why this subtle difference frequencies is so important that you decided to go for 134.2kHz tag?
@blackkissi
@blackkissi 10 років тому
how many ehtherten's do you have in your home? It seems like you have embedded them all over your house :P
@robertpoynton9923
@robertpoynton9923 5 років тому
I want to do this but for my car. I want to use an arduino with Bluetooth to detect my phone then unlock and use an implantable rfid as the backup if my phone is flat.
@SuperHouseTV
@SuperHouseTV 11 років тому
There's a somewhat comical Catch-22 situation in Australia regarding the legality of implanting tags in humans, because of conflicting regulations relating to both the TGA (the Therapeutic Goods Administration, basically our equivalent of the FDA) and ACMA (the Australian Communications and Media Authority, our equivalent of the FCC). I'll probably cover that in the next SuperHouse episode, which will be a special on implantable RFID for those who don't mind seeing blood
@3adelz90
@3adelz90 10 років тому
Well am a bit confused about RFID tags. how do you assign different tags ?
@SuperHouseTV
@SuperHouseTV 10 років тому
Each tag has a fixed identification number in it, and when it's scanned it returns its ID. It's then up to the reader to decide what to do with that ID: for example, it could look up the ID in a list to see if it's authorised. If it's in the list, it unlocks the door. If not, it doesn't do anything.
@geertvancompernolle2586
@geertvancompernolle2586 8 років тому
Any chance you can/will share the type of electronic microscope you're using to solder small components and an approximate price indication?
@SuperHouseTV
@SuperHouseTV 8 років тому
Geert Vancompernolle I bought it second hand for $170 (I think, it's been a few years) and there's no brand on it. If you search somewhere like eBay for "stereo zoom microscope" you'll find a heap of options, but something to be careful of is to avoid ones that have a very high magnification. Ideally you want one that's something like 7x to 20x adjustable. The problem is that as you zoom in (higher magnification) you see less of the area of the board, which can make it very hard to work. I leave mine zoomed out as much as possible (7x) almost all the time. It's very rare for me to want to zoom in more, usually I wish I could zoom out even further to maybe 4x and see more of the board at once.
@geertvancompernolle2586
@geertvancompernolle2586 8 років тому
SuperHouseTV most interesting to read that too big a magnification is not good at all. I was not aware of this, I thought the opposite... Thanks for this useful piece of information!
@amalgraafstra
@amalgraafstra 11 років тому
That's why I didn't even bother with the animal ISO standard and went with the EM4102 (now EM4200) 125khz chipset, and don't sell any animal ISO standard tags on Dangerous Things The animal tracking (specifically pet tags) market is a big mess mostly due to the fact there wasn't a standard for such a long time, and many companies got into the game with their own proprietary products. This means readers are also non-standard... so it's easier to just go with 125khz EM4200 and be done with it.
@Tonsley202
@Tonsley202 10 років тому
Why didn't you use the same Arduino for the door lock to control the RFID system. Seems to me like you would have saved some money.
@TeroPihlaja
@TeroPihlaja 11 років тому
What is this MAC Address chip your using?
@ManuStaufi
@ManuStaufi 11 років тому
Did you implement an RFID-Chip in your arm?!
@amirulsyahmi5085
@amirulsyahmi5085 8 років тому
can you give me this coding link.please
@mercurichinc
@mercurichinc 7 років тому
sound fun.Let's do it
@devinator19
@devinator19 9 років тому
so in a way RFID is like wireless charging
@SCABCToolsSRL
@SCABCToolsSRL 10 років тому
Is not better if you use just one arduino mega + ethernet shield (hwo will be connected to a wireless router), for all house and make a software in processing for android also for android smartphone, you can avoid to use rfid + Ethernet. If you steel want to use rfid, you can buy a cheaper stand alone reader, and you can connect the NO contact from rfid access control to the digital arduino mega pin.
@nickname7152
@nickname7152 6 років тому
RFID readers is kinda dangerous to use in open areas (Forexample main door of your house etc). You can hack (realy) most of readers that on wall with professional walkie talkies. I strongly suggest test your reader with one of professional one before mount it. You can see one example walkie talkie link to hack RFID reader. All you have to do is touch RFID reader surface with your professional walkie talkie antenna then hit the talk button. Then RFID reader will accept this action as successful card reading (or higher frequency causing short circuit or something like that on reader and let it open the door). Did not tried it with your way (with arduino) but you can open almost all doors with this method which is directly connected to control computer (software side) and door lock mechanism (hardware side). Example device link : www.ebay.co.uk/itm/MOTOROLA-DP3400-DIGITAL-UHF-RADIO-MOTOTRBO-PROFESSIONAL-SERIES-WALKIE-TALKIE-/382242194391
@876beauty
@876beauty 9 років тому
surgical implant :O
SuperHouse #26: Make your own home automation light switches
36:42
SuperHouseTV
Переглядів 98 тис.
First Look: RC522 RFID Reader/Writer ($4 on eBay)
18:35
Julian Ilett
Переглядів 1 млн
Thinking About Getting an Arduino? Watch This
11:40
MakeUseOf
Переглядів 2 млн
SuperHouseTV #13: Connecting security sensors to Arduino
26:34
SuperHouseTV
Переглядів 104 тис.
The Cheapest Microcontroller? Getting started with the 10 cent Puya PY32.
21:36
Zach of All Trades
Переглядів 4,9 тис.
Arduino Garden Controller - Automatic Watering and Data Logging
9:13
Practical Engineering
Переглядів 3,1 млн
Simmerstats: The genius old tech that controls your stovetop
36:31
Technology Connections
Переглядів 602 тис.
SuperHouseTV #9: DIY Power-over-Ethernet (PoE) for Foscam IP cameras
23:54
Home Automation Hangout 2024-02-04
2:38:43
SuperHouseTV
Переглядів 2,5 тис.
UFO Propulsion discovered?  NASA Engineer unveils Antigravity Drive!!
19:46
The Angry Astronaut
Переглядів 137 тис.
GOOGLE СДЕЛАЛИ НЕВОЗМОЖНОЕ! Это круче любого Samsung, Apple и Xiaomi…
13:16
Thebox - о технике и гаджетах
Переглядів 67 тис.
ИГРОВОЙ ПК c WILDBERRIES за 40 тысяч рублей
30:17
Ремонтяш
Переглядів 465 тис.