|
@@ -0,0 +1,39 @@
|
|
1
|
+title: Blog
|
|
2
|
+post: Arduino RFID door lock
|
|
3
|
+date: 2019-06-20
|
|
4
|
+comments: true
|
|
5
|
+github: https://git.xythobuz.de/thomas/RFID-Door
|
|
6
|
+---
|
|
7
|
+
|
|
8
|
+## {{ page["post"] }}
|
|
9
|
+<!--%
|
|
10
|
+from datetime import datetime
|
|
11
|
+date = datetime.strptime(page["date"], "%Y-%m-%d").strftime("%B %d, %Y")
|
|
12
|
+print "*Posted at %s.*" % date
|
|
13
|
+%-->
|
|
14
|
+
|
|
15
|
+To avoid unwanted access to my old room, I saw the need to install some kind of additional door lock mechanism.
|
|
16
|
+After taking a look around my parts-bin, I've settled on an RFID-based solution.
|
|
17
|
+
|
|
18
|
+Luckily I still had a [serial RFID antenna from Conrad (TowiTek TWT2021)](https://www.conrad.com/p/rfid-antenna-towitek-twt2021-component-33-vdc-5-vdc-191553) lying around.
|
|
19
|
+It simply outputs the ID of a transponder in reach on a serial output with 9600 baud as ASCII string.
|
|
20
|
+
|
|
21
|
+Combined with a cheap [door-lock-solenoid from Amazon](https://www.amazon.de/gp/product/B00M2M3F74), a [relais-board](https://www.amazon.de/WINGONEER-KY-019-Relais-Shield-Arduino/dp/B06XHJ2PBJ) and a power-supply the project was basically completed.
|
|
22
|
+To easily allow opening the door from the inside, I've added a small push-button that triggers the solenoid to the door-handle.
|
|
23
|
+
|
|
24
|
+The code can be found [on my Gitea-Server](https://git.xythobuz.de/thomas/RFID-Door).
|
|
25
|
+
|
|
26
|
+<div class="lightgallery">
|
|
27
|
+ <a href="img/rfid_box.jpg">
|
|
28
|
+ <img src="img/rfid_box_small.jpg" alt="">
|
|
29
|
+ </a>
|
|
30
|
+ <a href="img/rfid_setup.jpg">
|
|
31
|
+ <img src="img/rfid_setup_small.jpg" alt="">
|
|
32
|
+ </a>
|
|
33
|
+ <a href="img/rfid_button.jpg">
|
|
34
|
+ <img src="img/rfid_button_small.jpg" alt="">
|
|
35
|
+ </a>
|
|
36
|
+ <a href="img/rfid_solenoid.jpg">
|
|
37
|
+ <img src="img/rfid_solenoid_small.jpg" alt="">
|
|
38
|
+ </a>
|
|
39
|
+</div>
|