Cov txheej txheem:

Wireless RFID Qhov Rooj Xauv Siv Nodemcu: 9 Kauj Ruam (nrog Duab)
Wireless RFID Qhov Rooj Xauv Siv Nodemcu: 9 Kauj Ruam (nrog Duab)

Video: Wireless RFID Qhov Rooj Xauv Siv Nodemcu: 9 Kauj Ruam (nrog Duab)

Video: Wireless RFID Qhov Rooj Xauv Siv Nodemcu: 9 Kauj Ruam (nrog Duab)
Video: How I Made this Electric Car that can go Anywhere 2024, Kaum ib hlis
Anonim
Wireless RFID Qhov Rooj Xauv Siv Nodemcu
Wireless RFID Qhov Rooj Xauv Siv Nodemcu

- Lub luag haujlwm tseem ceeb ---

Txoj haujlwm no tau tsim los ua ib feem ntawm Kev Sib Txuas Network hauv chav kawm ntawm Universidade ua Algarve hauv kev koom tes nrog kuv tus npoj yaig Luís Santos. Nws lub hom phiaj tseem ceeb yog los tswj kev nkag mus ntawm lub xauv hluav taws xob los ntawm wireless nrog kev siv RFID lossis daim npav lossis cov hlua tseem ceeb.

Txawm hais tias txoj haujlwm no tau tsim los ua haujlwm nrog lub qhov rooj kaw, nws tuaj yeem hloov kho tau yooj yim los txhawb txhua yam kev hloov pauv solenoid (qhov no yuav raug xa mus ntxiv thaum lub sijhawm qhia no).

- Tam sim no Version ---

Thawj qhov no yuav ua tiav nrog kev txhawb nqa ntawm tus neeg rau zaub mov thiab cov ntaub ntawv txt yooj yim. Hauv kev ua haujlwm yav tom ntej, yuav muaj kev sib txawv sib txawv uas haum rau cov kev xav tau sib txawv thiab nthuav qhia lwm txoj kev nyab xeeb dua.

- Ua Haujlwm Yav Tom Ntej ---

Thaum kuv pom qee lub sijhawm dawb kuv yuav sim hloov kho cov yam ntxwv hauv qab no:

  • Tus Thawj Saib Xyuas Tshwj Xeeb daim npav ntxiv rau lwm tus siv
  • Nkag mus rau cov ntaub ntawv los ntawm tus router USB txuas cia
  • Nkag mus rau cov ntaub ntawv nrog tus yuam sij binary yooj yim
  • Txuas lub xauv solenoid tiag tiag rau kev xa tawm thiab hloov kho Cov Lus Qhia nrog cov vis dis aus ua haujlwm
  • Txuas mus rau DBMS kom yooj yim tswj thiab saib xyuas ntau lub xauv thiab cov neeg siv
  • Ntxiv cov ntaub ntawv MicroSD hauv zos los khaws cov ntaub ntawv thaum muaj Wireless tsis muaj
  • Txuas los ntawm GSM GPRS Kev Sib Txuas Lus
  • Ua kom nws ua haujlwm nrog lub hnub ci vaj huam sib luag kom tsis muaj wireless kiag li

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

Cov cheebtsam xav tau rau txoj haujlwm no yog:

  • NodeMCU ESP8266 WIFI Development Board
  • DC 5V 1 Channel Relay Module
  • RC522 Chip IC Card Induction Module RFID Reader
  • RFID Daim Npav lossis Cov Rings Tseem Ceeb
  • Solenoid Hloov Qhov Rooj Xauv
  • Ib qho Diode los ntawm 1N4001-1N4007
  • Cov kab
  • Cov qhob cij

Ntxiv:

  • RGB 3 Xim Led Module 5050 lossis:

    Ib Liab LED thiab Green LED nrog los ntawm 220ohms resistor

  • 0.96 Nti 4Pin Xiav Daj IIC I2C OLED Display Module

Xav paub ntau ntxiv: NFC yog ib pawg hauv tsev neeg RFID thiab ua haujlwm zoo ib yam (13.56 MHz). RC522

Kauj Ruam 2: Txuas Nodemcu mus rau Wi-nkaus Network

Txuas Nodemcu mus rau Wi-nkaus Network
Txuas Nodemcu mus rau Wi-nkaus Network

Muaj twb tau qhia zoo uas tuaj yeem pab koj txuas NodeMCU rau ib qho 802.11 wireless tes hauj lwm. Qhov peb ua raws yog:

Txhim kho ESP8266 rau hauv Arduino IDE Tutorial los ntawm Mybotic

Nco tseg: Ceev faj tias tus pin teeb tsa ntawm NodeMCU txawv ntawm Arduino, thiab yog li, yog tias koj siv p.e: #define Led 5 tau txuas nrog D1 ntawm lub rooj tsavxwm, raws li nws tuaj yeem pom hauv daim duab saum toj no.

Ib qho kev daws teeb meem yog suav nrog lub tsev qiv ntawv uas twb tau koom nrog lub koom haum no. Peb tsuas ua raws daim duab los coj peb. Tom qab hauv qhov kev qhia no yuav muaj daim duab nrog txhua qhov kev sib txuas ua tiav.

Kauj Ruam 3: Txuas RFID Reader

Txuas tus RFID Reader
Txuas tus RFID Reader

Mus rau Kev Tswj Cov Tsev Qiv Ntawv … sab hauv suav nrog Lub Tsev Qiv Ntawv hauv qab Sketch hauv Cov Ntawv Qhia Bar.

Ntawm kab ntawv nrog "Lim koj tshawb fawb …" ntxig rau MFRC522 thiab xaiv rau nruab ib qho uas yog los ntawm GithubCommunity, nrog rau kev tsim Arduino RFID Library rau MFRC522 (SPI).

- Nyeem Ntawv RFID ---

Yog tias koj xav ntsuas tus nyeem ntawv RFID, mus rau Piv Txwv hauv Cov Ntaub Ntawv hauv Cov Ntawv Qhia Bar thiab tshawb rau MFRC522 thiab xaiv ReadNUID los sim nws.

Kauj Ruam 4: Teeb tsa Lub Hauv Paus Teeb

Teeb tsa Lub Hauv Paus Kev Teeb tsa
Teeb tsa Lub Hauv Paus Kev Teeb tsa

Ua ntej, peb yuav sib dhos lub hauv paus teeb tsa raws li daim duab qhia chaw hauv qab no (yog tias koj nyem rau ntawm daim duab muaj cov ntaub ntawv ntxiv txog tus pin teeb).

Tom qab ntawd, txuas NodeMCU thiab qhib Arduino IDE thiab luam cov cai hauv qab no.

Tsis txhob hnov qab hloov tus ssid thiab tus password rau qhov ntawm koj lub network, thiab koj lub server chaw nyob ntawm tus lej.

Kauj Ruam 5: Tsim Txt Cov Ntaub Ntawv Nrog Daim Npav ID

Tsim Txt Cov Ntaub Ntawv Nrog Daim Npav ID
Tsim Txt Cov Ntaub Ntawv Nrog Daim Npav ID

Yog tias koj twb tau sim cov kauj ruam dhau los, nws yuav tsis tshwm sim dab tsi thaum koj sim ua kom ze rau daim npav rau tus nyeem ntawv RFID. Yog lawm! Koj tseem yuav tsum tau ntxiv daim npav koj xav tau rau koj lub server (yuav muaj lwm txoj hauv kev yav tom ntej uas tsis tau pom dua).

Ua ntej tshaj, koj yuav tsum muaj koj li server thiab khiav. Tsim cov ntaub ntawv.txt nyob txhua qhov chaw koj xav tau thiab qhib Serial Console ntawm koj Arduino IDE. Khiav cov cai thiab theej tus RFID MAC chaw nyob uas tau nthuav tawm, muab nws tso rau hauv. Txt cov ntaub ntawv thiab nyem Enter, yog li ntawd ib txwm muaj kab tsis muaj qhov kawg thaum kawg. Txuag cov ntaub ntawv.txt thiab sim nws dua.

Tam sim no nws yuav tsum ua haujlwm, koj tsis tas yuav rov pib dua NodeMCU lossis rov pib dua lub server.

Qhov ON LED xim uas los nrog kev xa tawm feem ntau yog xim liab thiab yog li, yog tias lub xauv qhib, nws yuav tsum ci liab. Ntawm qhov kev hloov pauv ntxiv peb yuav sim hloov qhov LED no kom muaj xwm txheej liab tas mus li thiab xwm txheej ntsuab yam tsis tas yuav siv cov chaw nres nkoj ntxiv ntawm NodeMCU pawg thawj coj.

Nco tseg: tsis txhob hnov qab hloov daim nplaub tshev qhov chaw nyob ntawm url sab hauv cov cai.

Kauj Ruam 6: Txuas Txuas Txuas mus rau Solenoid Hloov

Txuas Txuas Txuas mus rau Solenoid Hloov
Txuas Txuas Txuas mus rau Solenoid Hloov

Ua tib zoo saib, cov kauj ruam no tseem ceeb

Solenoid keyboards yog tab sis coils uas nrog tam sim no tsim cov hlau nplaum uas rub lossis thawb lub piston. Tej zaum lawv yuav los zoo li qub solenoid li qub, xauv qhov rooj, hloov, thiab lwm yam …

Yam koj yuav tsum tau ua kom zoo yog ob kauj ruam:

  • Txuas koj lub zog siv hluav taws xob thiab hloov hluav taws xob solenoid mus rau kev xa khoom kom raug, raws li tau hais los saum no;
  • Txuas lub diode nruab nrab ntawm ob tus pin ntawm koj lub solenoid hloov rau kev tiv thaiv Circuit Court.

Kauj Ruam 7: Ntxiv: Ntxiv RGB Leds

Ntxiv: Ntxiv RGB Leds
Ntxiv: Ntxiv RGB Leds

Tsuas yog ua raws daim duab kab lus saum toj no thiab tsis txhob hnov qab ntxiv 220 ohms resistor ntawm qhov anode thiab hauv av.

Yog tias lub teeb pom kev dhau lossis ci dhau, koj tuaj yeem hloov tus nqi ntawm tus tiv thaiv (tsuas yog tsis txhob dhia ntawm 220 ohms resistor rau 1M ohm resistor thiab ua piv txwv nrog qhov tsis meej pem).

Kauj Ruam 8: Ntxiv: Ntxiv OLED Screen

Ntxiv: Ntxiv OLED Screen
Ntxiv: Ntxiv OLED Screen

Raws li ua ntej, koj tsuas yog yuav tsum ua raws li daim duab qhia chaw tshiab ntawm daim duab saum toj no thiab cov cai hauv qab no.

Lub hom phiaj yav tom ntej ntawm lub vijtsam OLED tsis yog ua kom yooj yim dua RGB ua haujlwm, tab sis tso cai rau kev qhia ntxiv rau tus neeg siv yog xav tau.

Kauj ruam 9: Kawg Configuration

Image
Image
Kawg Configuration
Kawg Configuration

Saum toj no nws tuaj yeem pom txoj haujlwm no ua haujlwm txawm tias muaj vis dis aus thiab ob peb daim duab, ua haujlwm nrog cov lej tiav, suav nrog cov khoom ntxiv.

Pom zoo: