Cov txheej txheem:

Xauv PC Nrog RFID thiab Arduino Uno: 4 Cov Kauj Ruam
Xauv PC Nrog RFID thiab Arduino Uno: 4 Cov Kauj Ruam

Video: Xauv PC Nrog RFID thiab Arduino Uno: 4 Cov Kauj Ruam

Video: Xauv PC Nrog RFID thiab Arduino Uno: 4 Cov Kauj Ruam
Video: Рау сиаб хвв ной пож ниам деев хлуас 13.03.2018 2024, Kaum ib hlis
Anonim
Xauv PC Nrog RFID thiab Arduino Uno
Xauv PC Nrog RFID thiab Arduino Uno
Xauv PC Nrog RFID thiab Arduino Uno
Xauv PC Nrog RFID thiab Arduino Uno

Nov yog kuv thawj Kev Qhia. Yog li hauv txoj haujlwm no kuv yuav ua kom qhib koj lub PC nrog RFID & Arduino Uno uas feem ntau ntawm cov tswv cuab muaj tom qab ua qhov no dua koj yuav tsum tau hloov pauv ob peb qhov thiaj li yuav ua haujlwm zoo li lub rooj sib tham arduino ib txwm muaj. Yog li Cia Pib Pib:-

Kauj Ruam 1: Txuas RFID Scanner rau Arduino UNO

Txuas RFID Scanner rau Arduino UNO
Txuas RFID Scanner rau Arduino UNO

RFID Scanner muaj 8 Pins thiab peb xav tau 7 Pins los ntawm qhov ntawd

Arduino -------------- RFID Scanner

D9 --------------- Pib dua

D10 ---------------- SDA

D11 --------------- MOSI

D12 --------------- MISO

D13 --------------- SCK

GND -------------- NCO

3.3V ---------------- 3.3V

Tsis txhob hloov D11, D12, D13, Koj tuaj yeem Hloov D9, D10 uas yog SDA Thiab Rov Pib dua tab sis xav tau hloov pauv hauv cov cai kuj yog tus pin

Kauj ruam 2: Hloov Code thiab Uploading

Hloov Code thiab Uploading
Hloov Code thiab Uploading
Hloov Code thiab Uploading
Hloov Code thiab Uploading

Ua ntej Ntxiv MFRC522 Lub Tsev Qiv Ntawv rau Arduino IDE

MFRC522 LIbrary Rau Arduino IDE

Rub tawm lub tsev qiv ntawv thiab Luam tawm nws rau hauv cov ntawv qiv hauv Arduino Sketch Folder

Tam sim no Hloov Txoj Cai

Ua ntej nkag mus rau tus lej thiab tus lej UID rau koj UID tsis yog koj xav kom nkag mus tau zoo li hauv daim duab

kab ntawv tseem ceeb hauv daim duab yog ib qho uas koj yuav tsum tau hloov pauv kom koj daim npav ua haujlwm yog tias koj xav ntxiv ntau qhov chaw tso tus lej cim tseg qhov chaw ntxiv thiab lwm daim npav UID

Ej:-

content.substring (1) == "Card 1", "Card 2"

Hloov Keystrokes

Ua ntej mus rau hauv txoj cai rau

ncua (50);

buf [0] = 0;

buf [2] = 0x13; // Hloov tus lej 13 no mus rau ib qho hauv USBKeyScan. PDF cov ntaub ntawv tus yuam sij koj xav tau nias thaum daim npav luam theej duab

Serial.write (buf, 8);

releaseKey ();

yog tias koj xav nias ntau tus yuam sij tom qab ib leeg

theej cov cai thiab muab tso rau hauv qab no ua ntej ib qho hauv nqe lus

thiab tom qab ntawd hloov tus lej rau tus lej uas koj xav nias

tam sim no upload cov cai rau hauv Arduino uno Los ntawm xaiv pawg thawj coj raug thiab kho qhov chaw nres nkoj COM

Kauj Ruam 3: Txhim Kho Firmware ntawm Atmega16U2 ntawm Pawg Thawj Coj

Hloov kho qhov Firmware ntawm Atmega16U2 ntawm Pawg Thawj Coj
Hloov kho qhov Firmware ntawm Atmega16U2 ntawm Pawg Thawj Coj
Hloov kho qhov Firmware ntawm Atmega16U2 ntawm Pawg Thawj Coj
Hloov kho qhov Firmware ntawm Atmega16U2 ntawm Pawg Thawj Coj

Rub tawm thiab Nruab Software Atmel Flip 3.4.7 los ntawm Txuas Hauv Qab no

Atmel Flip 3.4.7 Software

Cov ntaub ntawv Firmware ua ntej tso jumper ntawm rov pib dua thiab hauv av thiab tshem nws zoo li hauv daim duab

Qhib Atmel Flip thiab xaiv cov ntaub ntawv firmware Arduino-Keyboard-0.3.hex los ntawm File Tab-> Load Hex File

Thiab

Xaiv Khiav

Tshem tawm Usb thiab ntsaws nws dua

Kauj ruam 4: Ua tiav

Tam sim no Luam theej duab daim npav uas koj tau ua haujlwm thiab sim nws

yog koj xav pom kuv li uas kuv tau ua hauv qab daim vis dis aus

thov txim rau video clarity

yog tias koj xav siv nws zoo ib yam li arduino koj yuav tsum tau khiav cov ntaub ntawv firmware hu ua arduino-usbserial-uno.hex thiab ua tiav

vam tias koj txaus siab rau txoj haujlwm no thiab yog tias koj muaj lus nug tsis txhob hnov qab tawm tswv yim

thiab ntawm no yog kuv li youtube channel txuas tsis txhob hnov qab sau npe hauv youtube

Akash World Youtube Channel

Pom zoo: