Cov txheej txheem:

Kev Tuaj Koom Nrog Los Ntawm Kev Xa Cov Ntaub Ntawv RFID rau MySQL Server Siv Python Nrog Arduino: 6 Cov Kauj Ruam
Kev Tuaj Koom Nrog Los Ntawm Kev Xa Cov Ntaub Ntawv RFID rau MySQL Server Siv Python Nrog Arduino: 6 Cov Kauj Ruam

Video: Kev Tuaj Koom Nrog Los Ntawm Kev Xa Cov Ntaub Ntawv RFID rau MySQL Server Siv Python Nrog Arduino: 6 Cov Kauj Ruam

Video: Kev Tuaj Koom Nrog Los Ntawm Kev Xa Cov Ntaub Ntawv RFID rau MySQL Server Siv Python Nrog Arduino: 6 Cov Kauj Ruam
Video: Tseem Ev Lub Kawm - Koos Loos 2024, Kaum ib hlis
Anonim
Kev Tuaj Koom Nrog Los Ntawm Kev Xa Cov Ntaub Ntawv RFID rau MySQL Server Siv Python Nrog Arduino
Kev Tuaj Koom Nrog Los Ntawm Kev Xa Cov Ntaub Ntawv RFID rau MySQL Server Siv Python Nrog Arduino

Hauv Txoj Haujlwm no Kuv tau cuam tshuam RFID-RC522 nrog arduino thiab tom qab ntawd kuv tab tom xa cov ntaub ntawv ntawm RFID mus rau phpmyadmin database. Tsis zoo li peb cov phiaj xwm yav dhau los peb tsis tau siv ib qho kev tiv thaiv ethernet hauv qhov no, ntawm no peb tsuas yog nyeem cov ntaub ntawv xov xwm los ntawm arduino thiab tom qab ntawd thawb ntawd mus rau phpmyadmin los ntawm ib tus lej nab npawb. Yog li ntawm no peb cov cuab yeej txuas nrog PC kom nws tuaj yeem xa cov ntaub ntawv ua ntu zus, koj tseem tuaj yeem txuas cov cuab yeej rau raspberry pi kom ua txoj haujlwm no nqa tau.

Kauj Ruam 1: Siv Software:

Siv Software
Siv Software
Siv Software
Siv Software
Siv Software
Siv Software

Nov yog cov software peb tau siv rau txoj haujlwm no:

1. Arduino IDE: Koj tuaj yeem rub tawm qhov tseeb Arduino IDE los ntawm qhov txuas no:

www.arduino.cc/en/Main/Software

2. Kev teeb tsa XAMPP server: Ntawm no peb siv XAMPP server nws tuaj yeem siv tau ob qho tib si hauv lub qhov rais thiab Linux, tab sis kuv qhov lus pom yog tias yog koj nyob hauv Ubuntu (Txhua lub platform Linux) tom qab ntawd mus nrog LAMP. Tam sim no txij li peb nyob hauv windows yog li peb tau nyiam XAMPP server. Yog li koj tuaj yeem rub tawm XAMPP server los ntawm qhov txuas no.

Xwb ntawm no yog cov kauj ruam rau LAMP server:

1. Nruab Apache:

sudo apt-tau nruab apache2

2. Nruab MySQL:

sudo apt-tau nruab mysql-server

3. Nruab PHP:

sudo apt-tau nruab php5 libapache2-mod-php5

4. Restart Server:

sudo /etc/init.d/apache2 rov pib dua

5. Txheeb xyuas Apache https:// localhost/

koj yuav tau txais ib nplooj ntawv apache los ntawm nyem qhov txuas saum toj no yog tias koj tsis tau txais nws txhais tau tias muaj qee yam tsis raug nrog koj teeb tsa

Ntawm no peb tab tom siv PHPMYADMIN uas yog lub vev xaib sib tham ntawm MySQL server yog li rau kev txhim kho uas siv cov lus txib: sudo apt-get install phpmyadmin

3. Python IDLE: Raws li peb tab tom siv tus lej nab npawb los thawb cov ntaub ntawv mus rau phpmyadmin yog li koj yuav tsum rub tawm sej tsis ua haujlwm, koj tuaj yeem rub cov cuab yeej sej los ntawm qhov txuas no

sib nrug ntawm qhov ntawd koj tseem yuav xav tau qee lub tsev qiv ntawv kom nws ua haujlwm xws li pyserial thiab mysqldb. Yuav ua li cas rub tawm cov khoom no, Kuv tau npog hauv kuv cov vis dis aus thov saib tag nrho cov vis dis aus uas tau muab hauv qab no.

Kauj Ruam 2: Cov Khoom Siv:

Cheebtsam Siv
Cheebtsam Siv
Cheebtsam Siv
Cheebtsam Siv

1) Arduino UNO: Arduino Uno yog lub microcontroller board raws li ATmega328P (cov ntawv). Nws muaj 14 digital input/output pins (ntawm uas 6 tuaj yeem siv ua PWM tawm), 6 analog inputs, 16 MHz quartz siv lead ua, txuas USB, txuas lub hwj chim, ICSP header thiab khawm rov pib dua.

3) RFID RC522 Reader nrog Tag: Muaj cov pheej yig RFID cov qauv uas tuaj yeem nyeem thiab sau Mifare cov cim npe thiab raug muag ntawm ntau lub vev xaib khw, zoo li eBay thiab suav nrog ntau "cov khoom siv pib" niaj hnub no. Tsuas yog tshawb nrhiav RFID-RC522 (MF-RC522). Lub microcontroller thiab daim npav nyeem ntawv siv SPI rau kev sib txuas lus (nti txhawb I2C thiab UART cov txheej txheem tab sis tsis tau ua tiav ntawm lub tsev qiv ntawv). Daim npav nyeem ntawv thiab cov cim npe sib tham siv 13.56MHz lub tshuab hluav taws xob.

Kauj Ruam 3: Daim Duab Circuit:

Daim duab kos duab
Daim duab kos duab

Circuit Diagram ntawm qhov haujlwm no tau muab rau saum toj no.

Koj yuav tsum txuas ethernet daim thaiv ua ntej raws li tau hais hauv daim duab saum toj no koj yuav tsum ua kom txuas rfid hauv qab no yog qhov txuas txuas rau arduino thiab rfid nyeem ntawv

RFID-RC522 Arduino UNO Arduino Mega

RST9 9

SDA (SS) 4/10 4/53

TIAB SA 11 51

TIAB SA 1250

SIB 13 52

VCC 3.3 v 3.3v

GND GND GND

IRQ tsis txuas nrog

Kauj ruam 4: Tsev qiv ntawv:

Koj yuav tsum teeb tsa ib lub tsev qiv ntawv rau rfid rc522. Koj tuaj yeem tau txais lub tsev qiv ntawv los ntawm qhov txuas no

Kauj ruam 5: Code

Koj tuaj yeem tau txais cov cai los ntawm qhov txuas github no

Kauj Ruam 6: Yees Duab:

Kev piav qhia tag nrho Txoj Haujlwm tau muab rau hauv cov vis dis aus saum toj no

Yog tias koj muaj kev tsis ntseeg txog txoj haujlwm no thov tawm lus rau peb hauv qab no. Thiab yog tias koj xav kawm paub ntau ntxiv txog kev teeb tsa kab ke koj tuaj yeem mus ntsib peb tus youtube channel

Thov mus saib thiab nyiam peb Facebook nplooj ntawv rau hloov tshiab tas li.

Ua tsaug & Ua tsaug, Embedotronics yees

Pom zoo: