Cov txheej txheem:

Kev Ruaj Ntseg Ruaj Ntseg RFID: 3 Kauj Ruam
Kev Ruaj Ntseg Ruaj Ntseg RFID: 3 Kauj Ruam

Video: Kev Ruaj Ntseg Ruaj Ntseg RFID: 3 Kauj Ruam

Video: Kev Ruaj Ntseg Ruaj Ntseg RFID: 3 Kauj Ruam
Video: TSB ft. OPT - DRILL RU 3 (Official Video) #russiandrill 2024, Hlis ntuj nqeg
Anonim
Kev Nyab Xeeb Kev Nyab Xeeb RFID
Kev Nyab Xeeb Kev Nyab Xeeb RFID

Qhov no tsuas yog ntsuas yog tias daim npav rfid ua haujlwm rau thawj lub sijhawm

Khoom siv

Rfid daim npav nyeem ntawv Rfid tagRfid cardGreen ledRed led BreadboardJumper wiresBuzzerArduino uno

Kauj Ruam 1: Txuas Rfid Card Reader rau Arduino

Tus nyeem ntawv rfid muaj tus pin thiab qhov uas lawv txuas nrog 3.3v - 3.3vSck (lub moos txuas) - tus pin 13MOSI (Tus Tswv Qhia Tawm Qhua Hauv) - tus pin 11MISO (Tus Xaib Hauv Qhua Tawm) -pin 12RST -pin 9SDA (lossis SS) - tus pin 10GND -GNDIRQ - tsis txuas nrog

Kauj Ruam 2: Txuas Leds thiab Buzzer

Txuas Leds thiab Buzzer
Txuas Leds thiab Buzzer

Koj tuaj yeem txuas tus coj mus rau tus pin ntawm lub microcontroller ntxiv rau lub suab nrov tab sis lawv yuav muaj ib qho hauv av Kuv yuav siv tus pin4 rau lub buzzer thiab tus pin 6 thiab 7 rau liab thiab xiav coj raws

Kauj Ruam 3: Txoj Cai

Yuav tsum rub tawm MFRC522 lub tsev qiv ntawv, SPI lub tsev qiv ntawv twb tau hloov pauv nrog arduino Tus lej#suav nrog#suav nrog const int buzzer = 6; #define RST_PIN 9 // Configurable, saib raug tus qauv teeb tsa saum toj no#txhais SS_PIN 10 // Configurable, saib tus pin txheej txheem abovMFRC522 mfrc522 (SS_PIN, RST_PIN); // Tsim MFRC522 piv txwv. String read_rfid; // Ntxiv pes tsawg qhov koj xav tau thiab tsis txhob hnov qab suav nrog UID. String ok_rfid_1 = "89189c99"; // Qhov no yog rau kuv daim npav RFID tseem ceeb. ua. Qhov kuv yuav siv los qhib kuv lub PC. Kuj tseem tuaj yeem siv los kaw nws yog tias koj xav tau. String ok_rfid_2 = "29d93594"; // Qhov no yog rau RFID Keyfob. ua. Shutdown Keyfob. Tsis advisable li. Tsuas yog kaw koj lub PC ib txwm.int led_lock = 7; // Rau Card.int led_lock2 = 6; // Rau Keyfob./* * Initialize. */ int noteDurations = {4, 8, 8, 4, 4, 4, 4, 4}; void setup () {pinMode (buzzer, OUTPUT); Serial.begin (9600); // Pib kev sib txuas lus txuas nrog lub PC

Pom zoo: