Cov txheej txheem:

RFID NFC ARDUINO ACCESS CONTROL SYSTEM: 3 Kauj Ruam
RFID NFC ARDUINO ACCESS CONTROL SYSTEM: 3 Kauj Ruam

Video: RFID NFC ARDUINO ACCESS CONTROL SYSTEM: 3 Kauj Ruam

Video: RFID NFC ARDUINO ACCESS CONTROL SYSTEM: 3 Kauj Ruam
Video: PN532 RFID NFC Module with Arduino, How to use HSU UART, SPI, & I2C 2024, Hlis ntuj nqeg
Anonim
Image
Image
Yam Koj Xav Tau - Cheeb Tsam thiab Xov Tooj
Yam Koj Xav Tau - Cheeb Tsam thiab Xov Tooj

Qhov kuv xav tau yog lub kaw lus tswj kev nkag mus rau kuv lub chaw haujlwm.

Tag nrho txoj haujlwm yog yooj yim zoo nkauj los tsim.

Kuv muaj cov khoom seem Aduino Mega thiab daim thaiv thaiv Ethernet nyob hauv tsev, yog li, nrog ob peb yam ntxiv kuv tau tuaj yeem tsim kev tswj hwm nkag mus rau kuv lub chaw haujlwm. Nws siv NFC cim npe thiab mySql database los sau cov ntaub ntawv rau hauv lub rooj.

Qhov tseem ceeb, Arduino tos rau ib daim ntawv, tom qab ntawd nws yuav sim hu rau php lub vev xaib uas yuav tswj hwm kev xa cov ntaub ntawv mus rau hauv lub database. Txhawm rau ua qhov no, nws yuav tshawb xyuas ua ntej rau qhov muaj nyob ntawm daim ntawv rau hauv "cov neeg siv" cov lus ntawm "paub" cim npe. Cov lus muaj cov neeg siv tsis raug paub thiab lawv cov txheeb ze cim npe.

Yog tias lub cim npe tsis raug lees paub, Arduino yuav tsis kaw qhov nkag mus. Txwv tsis pub, nws yuav ntxig cov ntaub ntawv rau hauv lub rooj. Tam sim no, timestamp, id_tag, tuam txhab tuam txhab (chaw nyob), thiab tus ip raug kaw rau hauv lub rooj.

Kuv ntxiv ib qho lcd los ua kom yooj yim rau cov neeg siv. Thaum nkag mus tau sau tseg, lub teeb ntsuab yuav nyem rau ob peb feeb thiab lub suab nrov yuav ua suab nrov luv nrog nce suab. Lub lcd yuav qhia luv lus ok rau ob peb feeb.

Yog tias qee qhov teeb meem tshwm sim (raws li lan tsis ua haujlwm, lossis cov cim npe tsis paub), lub teeb liab yuav nyem dua, thiab lub suab ua si yuav muaj suab nrov zuj zus. Lub lcd tseem yuav qhia tawm cov lus yuam kev luv rau ob peb feeb.

Nrog ob peb lub khawm ntau dua, koj tuaj yeem tswj hwm los sau hom haujlwm: "Puas yog qhov nkag mus lossis tawm?!" (tab sis qhov no yuav raug tsim dua lwm lub sijhawm).

Kauj Ruam 1: Yam Koj Xav Tau - Cheeb Tsam thiab Kev Txuas Hluav Taws Xob

Yam Koj Xav Tau - Cheeb Tsam thiab Xov Tooj
Yam Koj Xav Tau - Cheeb Tsam thiab Xov Tooj
Yam Koj Xav Tau - Cheeb Tsam thiab Xov Tooj
Yam Koj Xav Tau - Cheeb Tsam thiab Xov Tooj

Ua ntej tshaj plaws, nws yog qhov phiaj xwm phiaj xwm phiaj xwm, yog li koj yuav xav tau lub vev xaib uas yuav xa cov ntaub ntawv.php. qhov no yog qhov chaws uas ua cov txheej txheem thov ntawm arduino thiab tswj cov ntaub ntawv.

Tsis tas li koj xav tau mysql database, qhov twg txhua qhov nkag mus yuav raug khaws cia.

Koj tuaj yeem tsim txhua yam hauv "server" hauv koj lub chaw haujlwm (tej zaum xampp yog qhov kev xaiv zoo thiab yooj yim) lossis yog tias koj muaj lub vev xaib+mysql db nws yuav zoo ib yam.

Ok, ntawm no yog daim nqi ntawm cov ntaub ntawv:

  • Arduino Mega 2560
  • Ethernet ntaub thaiv npog W5100
  • RF522 rfid lossis nyeem ntawv sib xws nrog 13, 56mhz 14333A cim npe
  • Zaub LCD 16x2 1602
  • piezo buzzer lossis lwm hom buzzer
  • Ib pawg ntawm cov xov hlau
  • Ob peb leds (ntsuab thiab liab) thiab 2 ntawm 2k resistances

Thiab, ok dua.. txog cov thaiv … Cov duab hais txog kev thaiv tsis yog qhov zoo tshaj plaws, tab sis nws tau piav qhia zoo dua rau hauv daim duab arduino txuas nrog hauv cov kauj ruam tom ntej.

Kauj ruam 2: Txoj Cai thiab Cov Ntawv Ntxiv

Code thiab Attachments
Code thiab Attachments
Code thiab Attachments
Code thiab Attachments

Thaum kawg, ntawm no muaj cov ntaub ntawv uas koj tab tom nrhiav.. Hauv qhov txuas koj yuav pom

timbrature.ino, uas yog daim duab coj los tso rau hauv Arduino Mega

Raws li tau hais ua ntej, txhua qhov kev sib txuas thiab kev xav txog lcd thiab RFID pawg thawj coj tau piav qhia rau hauv lub hauv paus ntawm.ino cov ntaub ntawv

  • rfid lib.zip, uas muaj lub tsev qiv ntawv rfid xav tau
  • timbratura.zip, (timbratura.php) cov ntaub ntawv no yog cov ntaub ntawv uas koj xav tau xa mus rau hauv koj lub vev xaib webserver. nkag mus rau mysql "nkag mus" rooj.

Kauj Ruam 3: Ua tiav: Xeem Txhua Yam - Daim vis dis aus ntawm Qhov Ua Haujlwm

Tam sim no koj tau npaj los saib cov vis dis aus dua. Nws hais txog yuav ua li cas tus nyeem ntawv ua haujlwm, txheeb xyuas daim ntawv thiab sau cov ntaub ntawv nkag mus rau lub database. Kuv vam tias daim vis dis aus yuav pom meej dua tam sim no piv rau thawj kauj ruam.

Pom zoo: