Cov txheej txheem:

RFID Arduino Uno Relay Hloov, Nrog I2C Zaub: 4 Cov Kauj Ruam
RFID Arduino Uno Relay Hloov, Nrog I2C Zaub: 4 Cov Kauj Ruam

Video: RFID Arduino Uno Relay Hloov, Nrog I2C Zaub: 4 Cov Kauj Ruam

Video: RFID Arduino Uno Relay Hloov, Nrog I2C Zaub: 4 Cov Kauj Ruam
Video: Arduino Project : How to work RFID module with 5V relay? 2024, Kaum ib hlis
Anonim
RFID Arduino Uno Relay Hloov, Nrog I2C Zaub
RFID Arduino Uno Relay Hloov, Nrog I2C Zaub

Nyob zoo, qhov no yog kuv thawj qhov haujlwm, kuv lub npe yog Oskar thiab kuv yog 13. Txoj haujlwm no ua haujlwm nrog I2C zaub, tsis yog ib qho zoo li qub

Kauj Ruam 1: Sau Cov Khoom Uas Xav Tau

Sau Yam Yuav Tsum Tau Ua
Sau Yam Yuav Tsum Tau Ua

Rau qhov haujlwm no, koj yuav xav tau:

-Arduino Ib

-I2C Zaub (Tsis xav tau tiag tiag, tab sis nws zoo dua nrog nws)

-Reelay

-MFRC522 RFID nyeem ntawv

-RFID Cards / NFC qhib lub xov tooj

Kauj ruam 2: Kev sib txuas

Kev sib txuas
Kev sib txuas

Txhua qhov kev sib txuas:

I2C zaub:

GND, VCC mus rau Arduino GND thiab 5V

SDA mus rau tus pin A4

SCL mus rau tus pin A5

RFID nyeem ntawv:

SDA pin 10

SCK to pin 13

MOSI to pin 11

MISO to pin 12

IRQ tsis txuas nrog txhua qhov chaw

GND rau Arduino GND

RST tsis txuas nrog txhua qhov chaw

3.3V rau 3.3V tus pin ntawm Arduino

Tshaj tawm:

"-" mus rau GND

"+" mus rau Arduino 5V tus pin

S mus rau tus pin 7

Tias 's tag nrho

Kauj ruam 3: Code

Image
Image

Rau txhua qhov no ua haujlwm, Kuv suav nrog cov cai siv los ua txoj haujlwm no.

Lus Askiv version:

Qhov no yog.ino cov ntaub ntawv, txhais tau tias yuav qhib nrog Arduino IDE

Kauj ruam 4: Nws yog

Koj tau ua tiav, tam sim no kuv yuav sau qee qhov kev siv nthuav rau qhov no:

RFID Lub teeb hloov

RFID Qhov rooj xauv

RFID Tsheb Killswitch

RFID Tswj Kev Nyab Xeeb

RFID tswj qhov hluav taws xob

Pom zoo: