Cov txheej txheem:

NFC Ntiv Nplhaib Box: 6 Kauj Ruam (nrog Duab)
NFC Ntiv Nplhaib Box: 6 Kauj Ruam (nrog Duab)

Video: NFC Ntiv Nplhaib Box: 6 Kauj Ruam (nrog Duab)

Video: NFC Ntiv Nplhaib Box: 6 Kauj Ruam (nrog Duab)
Video: How to setup NFC on iPhone. #nfc 2024, Kaum ib hlis
Anonim
NFC Ntiv Nplhaib Box
NFC Ntiv Nplhaib Box
NFC Ntiv Nplhaib Box
NFC Ntiv Nplhaib Box

Nyob zoo txhua tus! Zoo siab txais tos rau kuv thawj cov lus qhia! Kuv thov txim ua ntej rau kuv qib tsis zoo hauv Askiv Hauv phau ntawv qhia no ib qib zuj zus kuv yuav qhia koj li cas tsim kom yooj yim thiab pheej yig heev NFC Ring Lock Box!

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau

Ok ua ntej, lub tswv yim yog los tsim lub thawv xauv los ntawm sab hauv. Ntau qhov kev tsim qauv sib txawv tau piav qhia thiab yooj yim ua nrog Instructables tab sis kuv txiav txim siab los tsim kuv li. Tsis tas li kom tsis txhob siv ntau qhov chaw khaws cia. Kuv siv lub thawv ntoo tsis tiav vim tias koj tuaj yeem pleev xim thiab kho nws txawm li cas los xij koj xav tau. Muaj ntau lub thawv ntoo nyob ntawm no. Tab sis nws kim heev rau kuv yog li kuv tau mus ntawm no. Kev kaw qhov system kaw. Mine. Switch. RockerBattery thiab nws MicroUSB/USB cable. Kuv. Nws yuav tsum yog lub roj teeb 5V uas tuaj yeem them thiab xa hluav taws xob ib txhij. Arduino Nano thiab nws MiniUSB/USB cable. Pheej yig heev. Servo SG90. Pheej yig heev. PN532 Elechouse NFC. Zoo tshaj OneNFC RING txhawm rau qhib lub thawv. OfficialMicro USB Poj Niam rau USB Poj Niam Adapter. Zoo li qhov no. Thiab kom paub tseeb tias koj tseem yuav xav tau qee Cov Cuab Yeej Siv: 3 Tes, Ntsia Hlau, Driller, Cov cuab yeej soldering …

Kauj Ruam 2: Txuas NFC Reader/sau ntawv thiab Servo SG90 Tsav Tsheb mus rau Arduino Nano

Txuas NFC Nyeem Ntawv/sau ntawv thiab Servo SG90 Lub Cev rau Arduino Nano
Txuas NFC Nyeem Ntawv/sau ntawv thiab Servo SG90 Lub Cev rau Arduino Nano
Txuas NFC Nyeem Ntawv/sau ntawv thiab Servo SG90 Lub Cev rau Arduino Nano
Txuas NFC Nyeem Ntawv/sau ntawv thiab Servo SG90 Lub Cev rau Arduino Nano
Txuas NFC Nyeem Ntawv/sau ntawv thiab Servo SG90 Lub Cev rau Arduino Nano
Txuas NFC Nyeem Ntawv/sau ntawv thiab Servo SG90 Lub Cev rau Arduino Nano

Yog tias koj tau txais tib SERVO ib yam li kuv, 3 tus pin txuas nrog ua ke. Koj yuav tsum cais lawv ntawm lawv tus kheej ua ntej txuas ntxiv.

Txuas cov xaim liab mus rau 5V ntawm Arduino Nano. Connect cov dub rau hauv av GND. Connect cov xaim dawb mus rau Digital 3. For PN532 koj tuaj yeem nyeem qhov no tab sis kuv yuav qhia koj txhua yam koj xav paub kom nws ua haujlwm;) Ua ntej koj yuav tsum tso koj lub PN532 rau hauv hom I2C. Solder lub 4 tus pin txuas. VCC txuas rau 3.3V, hauv av rau hauv av, thiab Analog 5/SCL thiab Analog 4/SDA. Koj tsuas yog saib daim duab.

Kauj ruam 3: Software

Ua ntej koj yuav tsum rub tawm cov software los siv Arduino Nano. Thiab tom qab ntawd cov tsev qiv ntawv cov ntaub ntawv muab tso rau hauv koj phau ntawv tais ceev tseg hauv koj phau ntawv Arduino.

Tib yam koj yuav tsum tau hloov yog kab no:

yog (ringUid == "47d6b2b62880" || ringUid == "47c9b2b62880") {hloov nws nrog Uid ntawm koj daim ntawv NFC, NFC Ring …

Koj tuaj yeem tau txais Uid ntawm koj NFC Ring los ntawm kev ua haujlwm ntawm Arduino piv txwv kos duab hauv PN532 nplaub tshev hu ua ISO14443A_uid. nkag mus rau 2 UID. Upload cov duab kos mus rau Arduino Nano thiab sim nws.

Kauj Ruam 4: Npaj Lub Thawv

Npaj Lub Thawv
Npaj Lub Thawv
Npaj Lub Thawv
Npaj Lub Thawv
Npaj Lub Thawv
Npaj Lub Thawv

Kuv tau ua qee cov ntoo hlawv raws li koj pom kuv tau siv kuv tus cwj mem los kos cov duab sib txawv thiab kuv cov khoom siv txhawm rau txhawm rau hlawv ntoo me ntsis. Raum 2 qhov rau "sab nrauv sab nraud": lub zog ON/OFF thiab micro USB poj niam kom them roj teeb thiab kom nkag tau mus rau arduino thaum peb xav hloov daim duab kos lossis debug lub thawv. Paint nws thiab nws yuav luag tiav! Txhim kho lub kaw lus sab hauv.

Kauj Ruam 5: Muab Nws Txhua Qhov Ua Ke

Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke

Saib ntawm kuv daim duab, koj yuav tsum txuas txhua yam zoo li no. Tom qab ntsuas qhov kev nyeem ntawv nrug nrog PN532 pawg thawj coj, kuv paub tias ntoo ntawm lub nplhaib thiab PN532 loj heev, yog li kuv yuav tsum kos ntoo me ntsis kom txo qis ntoo qhov tuab. Thaum txhua yam zoo li ua haujlwm, nrhiav txoj haujlwm zoo rau SERVO thiab tom qab ntawd kho/nplaum txhua yam rau ntoo. Koj tuaj yeem ntxiv plexiglas los tiv thaiv Circuit Court yog tias koj xav tau.

Kauj ruam 6: Tiav lawm

Tiav lawm
Tiav lawm
Tiav lawm
Tiav lawm
Tiav lawm
Tiav lawm

Xav tias tawm tswv yim, nug cov lus nug.

Kuv yuav zoo siab los pab txhua tus neeg xav tau kev pab.

Ua tsaug rau: John McLear thiab Lokki

nfcring.com/

forum.nfcring.com/

Pom zoo: