Cov txheej txheem:

TfCD: RFID Qhov Rooj Teeb: 7 Kauj Ruam (nrog Duab)
TfCD: RFID Qhov Rooj Teeb: 7 Kauj Ruam (nrog Duab)

Video: TfCD: RFID Qhov Rooj Teeb: 7 Kauj Ruam (nrog Duab)

Video: TfCD: RFID Qhov Rooj Teeb: 7 Kauj Ruam (nrog Duab)
Video: NFC Leather Bracelet Waterproof Test! 2024, Hlis ntuj nqeg
Anonim
TfCD: RFID Qhov Rooj Teeb
TfCD: RFID Qhov Rooj Teeb

Cov lus qhia no yuav pab tsim kho RFID tswj lub qhov rooj teeb, uas yuav pab tsuas yog cov neeg raug hauv kev qhib koj lub qhov rooj.

Lub hom phiaj ntawm tsab ntawv no yog pab cov neeg siv qhib lub qhov rooj thaum nws tsaus ntuj sab nraum los ntawm kev muab lub teeb pom kev saum toj no, qhia lub qhov rooj tuav thiab qhov tseem ceeb.

Cov txiaj ntsig ntawm kev siv RFID (Kev Txheeb Ze Xov Tooj Cua) yog tias daim ntawv (hauv qhov no ib qho yooj yim keychain) tsis xav tau lub zog sab nraud, tab sis tuaj yeem siv tsis tau thiab yog li ntawd ib txwm siv.

Kev siv RFID hauv cov khoom siv hauv tsev yog qhov muaj tseeb, vim tias thev naus laus zis tau pheej yig dua thiab muaj ntau dua.

Kev tsis lees paub: cov lus qhia no txhawj xeeb txog kev tsim qauv ua haujlwm uas tuaj yeem sim ntawm qhov chaw. Txawm li cas los xij, rau kev teeb tsa ruaj khov hauv qhov hnyav dua, sab nraud, ib puag ncig, yuav tsum tau ntsuas kev tiv thaiv ntxiv.

Lwm qhov tsis lees paub: xav txog kev nyab xeeb ntawm koj lub tsev ua ntej txhim kho cov qauv no rau koj lub qhov rooj. Peb tsis muaj lub luag haujlwm rau txhua yam tsis zoo tshwm sim los ntawm lub tswv yim no, peb tsuas yog xav txhawb nqa.

Kauj Ruam 1: Sau Cov Khoom

Sau Cov Xeem
Sau Cov Xeem

Txhawm rau kom muaj peev xwm rov ua qhov no RFID qhov rooj teeb, cov hauv qab no xav tau:

  1. Ib pawg Arduino (qhov teeb meem no siv UNO. Txawm li cas los xij, lwm yam kev hloov pauv kuj yuav siv tau)
  2. Cov qhob cij
  3. RC522 RFID pawg thawj coj saib
  4. RFID tag
  5. txiv neej USB A rau txiv neej USB B txuas
  6. Thaiv
  7. Txiv neej rau Txiv neej cables
  8. 10 Watt Hwj chim LED
  9. 2N5088 transistor (NPN)
  10. Pins rau RFID board
  11. D44H8G transistor (NPN)
  12. 0.5 Ohm, 5 Watt resistor
  13. 10K tiv thaiv
  14. 230V/12V converter ntsaws
  15. (Tseem tsis tau qhia hauv daim duab) 9 Volt roj teeb (tsuas yog rau kev sim)

Cov Cuab Yeej:

  • Khoos phis tawj nrog Arduino IDE teeb tsa.
  • Soldering Hlau thiab tin
  • Pliers / Hlau strippers.
  • Daim kab xev

Kauj Ruam 2: Soldering Pins ntawm RFID Board

Soldering Pins ntawm RFID Board
Soldering Pins ntawm RFID Board

Peb lub rooj tsav xwm RFID tsis tuaj nrog cov txiv neej txuas, yog li cov no yuav tsum tau muab muag rau. Yog tias koj lub rooj tsav xwm muaj cov txiv neej txuas txuas, koj tuaj yeem hla cov kauj ruam no.

Txuas cov txuas sib txuas uas siv cov hlau txuas thiab cov hlau phom raws li qhia hauv daim duab saum toj no txhawm rau txhawm rau txuas txhua tus pin mus rau qhov sib cais ntawm RFID board.

Kauj Ruam 3: Kev Tsim Kho Pawg Kuaj

Kev Tsim Kho Pawg Kuaj
Kev Tsim Kho Pawg Kuaj
Kev Tsim Kho Pawg Kuaj
Kev Tsim Kho Pawg Kuaj

Txhawm rau kom ntseeg tau tias cov khoom kawg yuav ua haujlwm tau zoo, thawj lub rooj sib tw xeem tau tsim los siv tag nrho cov khoom siv. Hloov chaw tam sim txuas tus 12 Volt fais fab mov, lub roj teeb 9 Volt tau siv.

Ob lub rooj tsav xwm lub cev nrog rau cov txheej txheem tau qhia saum toj no.

Schematic qhia tag nrho cov Circuit Court. Nyob rau sab laug sab saud RC522 lub rooj tsav xwm hauv tsev nyob. Saib xyuas thaum sib txuas, txij li cov pins siv ntawm Arduino nyob rau hauv qhov kev txiav txim sib txawv dua li ntawm RC522. Nyob rau sab xis sab xis, lub hwj chim txuas rau 12V txuas yog nyob. Cov khoom siv ntawm lub khob cij ua lub Circuit Court kom ntseeg tau tias muaj dej ntws ntws tas mus li los ntawm LED. Nco ntsoov tias tib yam tam sim no uas ntws los ntawm LED tseem yuav ntws los ntawm 0.5 Ohm resistor, lub ntsiab lus tias nws yuav tsum muaj peev xwm tuav tau qee lub zog. Peb siv 5W tus tiv thaiv, txij li thaum peb muaj cov dag no nyob ib puag ncig. Tsis tas li yuav tsum paub tias lub Circuit Court qhia pom ib txwm LED hloov pauv lub zog-LED.

Kauj Ruam 4: Kev Tsim Kho Txoj Cai

Vim yog qhov tshiab ntawm RC522, peb tau tawm tsam me ntsis kom pawg thawj coj saib xyuas ua haujlwm kom raug. Peb tau xaus siv RC522 lub tsev qiv ntawv, uas tuaj yeem rub tawm los ntawm no:

github.com/ljos/MFRC522

Tsis tas li, peb siv kev qhia online kom paub cov hauv paus ntawm pawg thawj coj saib thiab cov cai, cov lus qhia tuaj yeem pom ntawm no:

brainy-bits.com/blogs/tutorials/card-read…

Siv ob qhov txuas no, peb tswj hwm los tsim cov cai kom raug. Ua ntej, cov cai ua qee qhov teeb tsa thiab sim nrhiav RC522-board. Thaum qhov no ua tiav, cov cai yuav rov ua dua kom txog thaum cov npe raug nthuav tawm. Tom qab ntawv nws yuav nyeem cov ntaub ntawv tag thiab tswj tus lej. Raws li tus lej no, LED yuav ua haujlwm. Thaum cov lus qhia raug raug nthuav tawm, nws yuav maj mam qhib thiab ploj mus rau qhov tsaus dua tom qab 10 vib nas this. Yog tias daim ntawv qhia tsis raug raug nthuav tawm, LED yuav ntsais peb zaug.

Thaum siv cov cai no, nco ntsoov hloov pauv tus lej RFID hauv tus lej rau koj tus lej cim tus lej, vim tias tus lej yuav tsis ua haujlwm zoo.

Kauj Ruam 5: Siv Lub Hwj Huam LED

Soldering lub zog LED
Soldering lub zog LED

Txhawm rau kom muaj peev xwm tso lub hwj chim LED nyob saum lub qhov rooj thiab ua haujlwm tau zoo, cov xov hlau ntev yuav tsum txuas nrog ob qho tib si LED thiab tag nrho ntawm lub voj voog. Nrog rau qhov seem ntawm lub Circuit Court (Arduino, breadboard thiab RFID scanner) tau nyob ntawm ib sab ntawm lub qhov rooj, ob lub xov tooj (qhov zoo thiab qhov tsis zoo) ntawm kwv yees li 1.5 meters tau muab tso rau ntawm LED.

Thaum siv tshuaj yaj yeeb, ceev faj txog kev txuas kab txuas mus rau qhov kawg ntawm LED. Raws li LED yog lub diode, polarity yog qhov teeb meem thiab nws tsuas yog ua haujlwm thaum qhov zoo ntawm LED thiab qhov hluav taws xob zoo ntawm lub Circuit Court txuas nrog thiab rov ua dua.

Kauj Ruam 6: Tsim Cov Khoom Kawg

Txhim Kho Qhov Khoom Kawg
Txhim Kho Qhov Khoom Kawg
Txhim Kho Qhov Khoom Kawg
Txhim Kho Qhov Khoom Kawg
Txhim Kho Qhov Khoom Kawg
Txhim Kho Qhov Khoom Kawg
Txhim Kho Qhov Khoom Kawg
Txhim Kho Qhov Khoom Kawg

Siv daim kab xev qhov khoom kawg tau muab tso rau hauv nws qhov chaw raug. Feem ntau ntawm cov khoom siv hluav taws xob (daim ntawv qhia zaub mov, RFID scanner thiab Arduino) nyob sab laug ntawm lub qhov rooj, nkag tau yooj yim thiab yog li yooj yim hloov kho. Lub hwj chim-LED nyob ntawm lub qab nthab saum lub qhov rooj txhawm rau pab cov neeg siv kom qhib qhov rooj. RFID lub tshuab luam ntawv nyob ntawm qhov yooj yim siv qhov siab, tso cai ua kom nrawm thiab ua haujlwm tau zoo ntawm cov khoom. Thaum muab tso rau hauv Circuitry, ceev faj vim tias kev sib txuas yuav tawg. Nws yog qhov ntse los txheeb xyuas txhua yam ntawm cov khoom siv thiab lawv cov kev sib txuas thaum ua haujlwm txaus, ua kom ntseeg tau tias ua haujlwm tau zoo ua ntej kuaj ntxiv.

Kauj Ruam 7: Kuaj thiab Kuaj Qhov Khoom Kawg

Daim vis dis aus qhia saum toj no qhia txog qhov ua haujlwm kawg ntawm cov khoom.

Tus qauv qhia pom dab tsi tuaj yeem ua tiav siv tus nyeem ntawv RFID. Hauv qhov no, peb txiav txim siab tsuas yog qhib lub qhov rooj kom qhib tau yooj yim (xav txog tias tsis tas yuav nkag mus rau koj tus yuam sij hauv qhov tsaus ntuj dub dua ua tsaug rau lub teeb pom kev zoo, yuav tsis yog qhov xav tsis thoob?). Txawm li cas los xij, nws tawm chav txaus rau kev txhim kho yav tom ntej lossis ntxiv lwm yam khoom siv. Tom qab teeb tsa tus nyeem ntawv RFID, muaj ntau txoj hauv kev xaiv ntxiv. Ib tus tuaj yeem xav txog kev siv lub solenoid kaw lub qhov rooj, tsuas yog qhib los ntawm qhov raug RFID lossis. Los yog yuav ua li cas ntxiv ntau daim ntawv cim npe, ib qho rau txhua tus neeg hauv tsev neeg? Ib tus tuaj yeem ntxiv qhov kev txais tos tshwj xeeb rau txhua daim ntawv. Tsis tas li, ib tus tuaj yeem siv tus qauv no txhawm rau taug qab leej twg nyob hauv lub tsev, uas tuaj yeem ua rau muaj kev nyab xeeb ntxiv thaum muaj xwm txheej ceev. Raws li tau hais hauv qhov kev piav qhia, tus qauv hauv nws daim ntawv tam sim no tsis tuaj yeem tiv taus qhov hnyav, piv txwv li nag. Yog tias tsab ntawv yuav tsum tau siv rau hauv ib puag ncig sab nraum zoov, peb yuav pom zoo kom tsim cov casing zoo rau txhua qhov khoom siv.

Pom zoo: