Cov txheej txheem:

Arduino RFID Unlock Mac (Linux thiab Yeej): 3 Kauj Ruam
Arduino RFID Unlock Mac (Linux thiab Yeej): 3 Kauj Ruam

Video: Arduino RFID Unlock Mac (Linux thiab Yeej): 3 Kauj Ruam

Video: Arduino RFID Unlock Mac (Linux thiab Yeej): 3 Kauj Ruam
Video: Unlock your Mac/PC with Arduino RFID Card 2024, Kaum ib hlis
Anonim
Arduino RFID Unlock Mac (Linux thiab Yeej)
Arduino RFID Unlock Mac (Linux thiab Yeej)

Kuv muaj macbook pro, Kuv kuj tseem muaj tus lej zais loj ntawm kuv lub macbook. Thaum lub mac mus nres, Kuv sau daim ntawv hla dhau los qhib lub kaw lus. Hauv ib hnub ib txwm kuv suav tus lej zais ib yam zoo li 100 zaug. Tam sim no kuv tau pom qhov kev daws teeb meem! RFID TAG!

Kuv siv Arduino micro, thiab daim npav RFID cim npe rau qhib kuv lub khoos phis tawj los ntawm keychain.

Ua raws li kuv Cov Lus Qhia, thiab UNLOK koj lub khoos phis tawj yam tsis kov keyboard.

Khoom siv

Arduino Micro (Tuam Tshoj) lossis Arduino Leonardo

RFID Shield RC-522

3.3 qhov ntsuas hluav taws xob

Cov qhob cij

Cov neeg dhia

Kauj Ruam 1: Txuas Cov Khoos Phis Tawj

Image
Image
Txuas Cov Khoom Kho Vajtse
Txuas Cov Khoom Kho Vajtse
Txuas Cov Khoom Kho Vajtse
Txuas Cov Khoom Kho Vajtse

Rau qhov haujlwm no koj siv Arduino/Genuino Leonardo ntawm pro micro. Yog vim li cas yog implicit ntawm qhov project. Thaum koj siv rfid lossis ze rau Arduino, nws xa cov ntawv ntawm koj tus lej nkag mus rau koj li kab ke. Koj lub computer nyeem atmega32u4 zoo li cov keyboard. Hauv cov cai ntawm Arduino muaj koj tus lej cim kab ke. Tus password no yuav raug sau rau ntawm qhov screen thaum koj nthuav qhia TAG. Vim li no, kev sib txuas rau RFID RC-522 ntawm Cov Lus Qhia no haum rau Arduino Leonardo lossis Arduino Micro (Tuam Tshoj). Ua raws cov txheej txheem thiab pom daim duab. Txuas txhua tus pin. Ua tib zoo mloog txuas 3.3V tus pin ntawm RFID daim thaiv rau qhov ntsuas hluav taws xob. Koj tuaj yeem hlawv daim ntaub thaiv.

Koj tseem tuaj yeem siv Arduino Pro micro 3.3V, yam tsis muaj kev ntsuas hluav taws xob.

1 ZPO 10

2 TSI SCK1

3 MOSI MOSI 1

4 MISO MISO1

5 IRQ *

6 GND GND

7 RST Pib dua

8 +3.3V Volt regulator 3.3V

Kauj ruam 2: Upload Code

Rub tawm Txoj Cai
Rub tawm Txoj Cai
Rub tawm Txoj Cai
Rub tawm Txoj Cai

Ua ntej xa cov cai, sau koj daim npav TAG, thiab teeb tsa lub tsev qiv ntawv MFRC522 los ntawm kev siv

Tom qab qhov no txuas Arduino rau lub khoos phis tawj, thiab xa cov cai hauv cov ntawv.

Kauj Ruam 3: Sim Txoj Cai

Sim Txoj Cai
Sim Txoj Cai

Zoo! Nws yog lub sijhawm sim! Qhib Text Editor, thiab txuas koj Arduino rau lub khoos phis tawj. Sim ua kom ze rau koj TAG rau tus nyeem ntawv RFID. Yog tias txhua yam ua tau zoo, koj tuaj yeem pom koj tus password rau ntawm cov ntawv sau. Nws ua haujlwm?!

Pom zoo: