Cov txheej txheem:

PC Sau Nrog Arduino thiab RFID/NFC Card: 4 Kauj Ruam
PC Sau Nrog Arduino thiab RFID/NFC Card: 4 Kauj Ruam

Video: PC Sau Nrog Arduino thiab RFID/NFC Card: 4 Kauj Ruam

Video: PC Sau Nrog Arduino thiab RFID/NFC Card: 4 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim
Image
Image
Cov Ntaub Ntawv thiab Cov Qauv
Cov Ntaub Ntawv thiab Cov Qauv

Nyob zoo sawv daws!

Muaj pes tsawg zaus koj tau los tsev tom qab hnub ua haujlwm ntev lossis tsev kawm ntawv nyuaj siab, koj puas mus tsev thiab xav so ntawm koj lub PC?

Yog li koj tau mus tsev, tig koj lub PC thiab koj tau txais lub vijtsam los ntaus koj tus password vim tias koj lub PC tsis muaj ntiv tes nyob hauv Windows Nyob zoo… uas yog qhov txaus siab.

Xav txog qhov ntawd es tsis txhob nkag mus rau tus lej nkag mus rub lub NFC nti me me ntawm koj lub hnab ris thiab hla nws hla tus nyeem ntawv thiab ua tiav, PC tau qhib thiab npaj ua si koj cov nkauj nyiam lossis koj cov yeeb yaj kiab ntawm Netflix.

Khoom siv

  • Tag NFC/RFID
  • Arduino Pro Micro / Arduino DUE / Arduino UNO nrog HID xauv
  • NFC/RFID nyeem ntawv RC522
  • Cov kab

Koj tuaj yeem yuav tag nrho cov khoom siv los ntawm amazon txuas ntawm Elegoo (yog tias koj siv ib qho arduino koj yuav tsum hloov kho nws los siv Keyboard lub tsev qiv ntawv): Txuas Elegoo

Kauj Ruam 1: Cov Ntaub Ntawv thiab Cov Qauv

Rau peb txoj haujlwm peb xav tau microcontroller nrog tus txheej txheem uas txhawb nqa HID (Tib Neeg Cov Khoom Siv Sib Txuas) raws li nws tuaj yeem ua rau lub PC ua cov khoom siv nkag (keyboard hauv qhov no).

Cov tswj hwm microcontrollers uas txhawb nqa HID chav kawm no yog cov nrog ATmega32U4 microprocessor, yog li koj tuaj yeem siv Arduino pro Micro, Arduino DUE, Arduino Leonardo lossis Arduino UNO tab sis yog tias koj xav tau qhib HID raws tu qauv los ntawm kev sau qhov tsim nyog bootloader rau nws.

Hauv phau ntawv qhia no kuv yuav tsis piav qhia yuav hloov kho Arduino UNO li cas tab sis yog tias koj saib hauv internet koj yuav pom ntau phau ntawv qhia.

Kuv yuav siv Arduino Due rau txoj haujlwm no.

Thawj qhov uas yuav tsum ua yog lub Circuit Court qhia hauv daim duab saum toj no, nws yog ib qho tseem ceeb heev uas yuav tsum hwm cov xim kom nyob hauv hom kev ua yuam kev thaum lub sijhawm sib dhos ua ntu zus koj tuaj yeem nkag siab tias lub cable twg tau txuas nrog tsis raug.

Pin 1 -> D10

Pin 2 -> D52

Pin 3 -> D51

Pin 4 -> D50

Pin 5 -> Tsis muaj dab tsi

Pin 6 -> GND

Pin 7 -> Pib dua

Pin 8 -> 3,3V

Kauj Ruam 2: Nruab Arduino DUE Drivers thiab Ntshuam Lub Tsev Qiv Ntawv

Nruab Arduino DUE Drivers thiab Ntshuam Lub Tsev Qiv Ntawv
Nruab Arduino DUE Drivers thiab Ntshuam Lub Tsev Qiv Ntawv

Ua ntej txuas ntxiv peb yuav tsum teeb tsa Arduino Due daim npav tsav tsheb thiab ntshuam lub tsev qiv ntawv uas yuav tso cai rau peb siv RFID / NFC nyeem ntawv.

Ua ntej qhib Arduino IDE, txuas peb Arduino Vim yog lub PC ntawm Lub Chaw Haujlwm Programming thiab xaiv pawg tswj hwm los ntawm cov ntawv qhia zaub mov tab thiab chaw nres nkoj COM. Yog tias koj tsis pom Arduino DUE hauv daim ntawv teev npe ntawm no kuv tso koj qhov txuas ntawm yuav ua li cas rau nruab cov tsav tsheb.

Yuav ua li cas rau nruab Arduino Due tsav tsheb

Thawj qhov uas yuav tsum tau ua yog ntshuam lub tsev qiv ntawv uas yuav tso cai rau peb nyeem cov ntawv NFC / RFID. Qhov tsev qiv ntawv hu ua MFRC522, thaum koj tau rub tawm cov ntawv zip yooj yim ntshuam nws mus rau Arduino IDE.

Yuav ua li cas rau nruab cov tsev qiv ntawv hauv Arduino IDE

Lwm cov kauj ruam yog txhawm rau import cov tsev qiv ntawv keyboard, uas yuav tso cai rau peb siv peb cov arduino ua cov keyboard hauv peb lub computer Tom qab rub tawm "Keyboard-Master" zip file thiab import nws zoo li koj tau ua nrog lub tsev qiv ntawv dhau los.

Kauj Ruam 3: Nyeem Tag Cov lej lej

Nyeem Tag Cov lej lej
Nyeem Tag Cov lej lej

Tom qab ntshuam lub tsev qiv ntawv nws yuav tsim nyog los tsim cov ntawv NFC twg uas yuav qhib rau nkag mus rau peb lub PC.

Yog li ua ntej tshaj plaws rub tawm "RFIDReadTag.zio" cov ntaub ntawv.

Tshem nws thiab qhib.ino cov ntaub ntawv, los ntawm qhov uas peb yuav tuaj yeem nyeem cov lej lej ntawm peb daim npav RFID / NFC.

Txuas Arduino mus rau qhov chaw nres nkoj lub cajmeem, qhov tseem ceeb.

Thauj qhov program ntawm Arduino thiab qhib qhov saib.

Tom qab ntawd hla NFC / RFID lossis nrog koj xav kom qhib koj lub PC thiab nyeem dab tsi tau sau rau hauv kab ntawv saib.

Txuag tus lej nb (ncig liab) ntawm daim ntawv hauv daim ntawv sau lossis sau rau hauv ib daim ntawv kom tom qab ntawd peb tuaj yeem teeb nws li tus lej nkag.

Kauj Ruam 4: Teem Hex Code thiab Lo lus zais hauv Qhov Kev Kawm Kawg

Teem Hex Code thiab Lo lus zais hauv Qhov Kev Kawm Kawg
Teem Hex Code thiab Lo lus zais hauv Qhov Kev Kawm Kawg
Teem Hex Code thiab Lo lus zais hauv Qhov Kev Kawm Kawg
Teem Hex Code thiab Lo lus zais hauv Qhov Kev Kawm Kawg
Teem Hex Code thiab Lo lus zais hauv Qhov Kev Kawm Kawg
Teem Hex Code thiab Lo lus zais hauv Qhov Kev Kawm Kawg

Kauj ruam kawg yog txhawm rau xa cov lej txiav txim thiab tus lej zais ntawm peb lub PC rau hauv qhov program arduino.

Peb yuav tsum teeb tsa qhov ntawd thaum tus nyeem ntawv rfid nyeem cov cai ntawm peb daim ntawv tom qab ntawd los ntawm cov keyboard lub tsev qiv ntawv sau tus password rau hauv phau ntawv sau ntawm peb lub khoos phis tawj.

Koj yuav tsum ua li cas rub tawm ArduinoAuthRFID.zip yog tias koj muaj windows 10 lossis ArduinoAuthRFID_Windows8 yog tias koj muaj windows 8 qhib qhov ino file. Next koj yuav tsum hloov daim teb xiav hauv daim duab nrog koj tus lej lej lej uas koj tau khaws tseg ua ntej thiab hauv daim teb liab tus password qhib lub PC. (Ntawm Windows 8 koj yuav tsum nias nkag ob zaug txhawm rau nkag mus rau tus lej password thaum nyob Windows 10 koj xav tau ib zaug xwb, Tus lej no tau npaj rau Windows8.1).

Tshaj tawm cov cai rau Arduino.

Unplug lub micorusb los ntawm arduino thiab txuas lub ntsaws rau qhov chaw nres nkoj ib txwm muaj (Saib Daim Duab), qhov Arduino chaw nres nkoj yuav tuaj yeem sau hauv PC ua cov keyboard.

Txij ntawm no mus, txhua yam koj yuav tsum tau ua yog sim txhua yam los ntawm kev tua lub PC thiab tig nws rov qab, ua rau nws qhib los ntawm nws!

Pom zoo: