Cov txheej txheem:

UCL-IIoT-Strongbox Nrog RFID thiab LCD Screen (Nodered, MySQL): 5 Kauj Ruam
UCL-IIoT-Strongbox Nrog RFID thiab LCD Screen (Nodered, MySQL): 5 Kauj Ruam

Video: UCL-IIoT-Strongbox Nrog RFID thiab LCD Screen (Nodered, MySQL): 5 Kauj Ruam

Video: UCL-IIoT-Strongbox Nrog RFID thiab LCD Screen (Nodered, MySQL): 5 Kauj Ruam
Video: Археология в глобальном контексте 2024, Hlis ntuj nqeg
Anonim
UCL-IIoT-Strongbox Nrog RFID thiab LCD Screen (Nodered, MySQL)
UCL-IIoT-Strongbox Nrog RFID thiab LCD Screen (Nodered, MySQL)
UCL-IIoT-Strongbox Nrog RFID thiab LCD Screen (Nodered, MySQL)
UCL-IIoT-Strongbox Nrog RFID thiab LCD Screen (Nodered, MySQL)
UCL-IIoT-Strongbox Nrog RFID thiab LCD Screen (Nodered, MySQL)
UCL-IIoT-Strongbox Nrog RFID thiab LCD Screen (Nodered, MySQL)
UCL-IIoT-Strongbox Nrog RFID thiab LCD Screen (Nodered, MySQL)
UCL-IIoT-Strongbox Nrog RFID thiab LCD Screen (Nodered, MySQL)

Arduino project nrog RFID scanner thiab LCD

Taw qhia

Txhawm rau xaus peb chav kawm nrog cov tswj hwm micro, tshwj xeeb tshaj yog Arduino Mega uas peb tau siv. Peb tau ua lub luag haujlwm los ua qhov haujlwm uas suav nrog peb Arduino Mega, tsis yog qhov nws nyob ntawm peb los txiav txim siab seb yuav ua dab tsi nrog nws. Txij li thaum peb tsis muaj sijhawm ntau rau txoj haujlwm no, peb tau txiav txim siab siv lub tshuab luam ntawv RFID. Qhov no tau ua tiav ntau lab lub sijhawm dhau los, yog li peb txiav txim siab ntxiv LCD zaub rau nws. Uas ua rau txoj haujlwm no txawv me ntsis ntxiv. Txawm hais tias qhov no tau ua tiav ua ntej ib yam nkaus, peb txiav txim siab tias nws yuav lom zem dua.

Arduino project nrog datalogging Peb tau txiav txim siab txuas ntxiv los ntawm peb txoj haujlwm yav dhau los, tsuas yog lub sijhawm no peb yuav ntxiv cov ntawv teev npe. Peb tau txiav txim siab txij li peb luv lub sijhawm, peb tsuas yog siv tib txoj haujlwm ib yam li zaum kawg - txoj hauv kev no peb tuaj yeem tsom mus rau cov ntaub ntawv teev npe txij li nws yog ib feem ntawm peb cov chav kawm tshiab, Kev Lag Luam 4.0. Hauv txoj haujlwm no peb yuav siv Node-red, uas yog txoj hauv kev los sau cov ntaub ntawv los ntawm lub cuab yeej thiab nkag mus rau ntawm lub vev xaib. Txoj hauv kev txuas txhua yam no mus rau huab server yog qhov tseem ceeb ntawm Kev Lag Luam 4.0.

Nqe lus piav qhia

Thawj qhov peb tau ua yog tshawb xyuas yog tias peb muaj tag nrho cov khoom tsim nyog los ua qhov no muaj tseeb, hmoov zoo peb tau ua. Peb tau txiav txim siab tias tsis txhob ua nws lub qhov rooj xauv, zoo li koj ib txwm ua, peb txiav txim siab nws yuav tsum tau xauv rau lub thawv muaj zog lossis nyab xeeb yog tias koj xav tau. Txhawm rau ua qhov no, peb tau ua lub thawv ntoo, qhov no tau ua tiav nrog lub tshuab txiav laser. Peb tau laum thiab txiav tawm lub qhov thiab xws li rau cov khoom siv kom haum, qhov ntawd nws zoo li muaj tseeb thiab yooj yim dua los tswj hwm txhua yam peb cov xov hlau thiab zoo li no. Tom qab peb tau ua lub thawv npaj peb yooj yim muab tag nrho peb cov cuab yeej thiab cov xov hlau tso rau hauv, tsuas yog ntsaws thiab ua si hauv paus. Txij li thaum peb twb tau sim thiab txuas nws ua ntej. Thaum nws txhua qhov txuas nrog thiab teeb tsa, txhua yam koj yuav tsum tau ua yog npaj tus tswv qhov tseem ceeb. Qhov no tau ua tiav nrog lub hauv paus chiv keeb koj tau txais nrog koj li RFID lub tshuab luam ntawv, koj yooj yim ntsaws qhov program thiab nws yuav nug koj kom ua tus tswv tseem ceeb. Thaum ua tiav, koj tuaj yeem xaiv muab kev nkag mus rau lwm qhov tseem ceeb. Thaum koj muaj txhua tus yuam sij koj xav kom nkag mus rau koj lub thawv muaj zog, koj tsuas yog muaj kev teeb tsa nrog tus tswv tseem ceeb. Tam sim no thaum koj luam theej duab koj tus yuam sij, koj tuaj yeem pom ntawm lub vijtsam LCD seb puas yog, lossis koj puas tau nkag mus. Thaum koj tsis tau txheeb xyuas tus yuam sij twg, lub LCD qhia cov ntawv "Scan ID KEY". Thaum koj tshuaj xyuas tus yuam sij thiab koj tsis muaj kev nkag tau, nws qhia "Access Denied", lossis yog tias koj muaj kev nkag tau nws qhia "Access Granted". Qhov no yooj yim heev thiab koj ib txwm tuaj yeem sau qee yam sib txawv hauv cov cai, yog tias koj xav tau.

Nov yog cov hauv qab no peb tau siv hauv peb qhov haujlwm:

  • RFID Scanner (3.3 V)
  • LCD Screen 16x2 (5 V)
  • Arduino Mega 2560 R3
  • 12 V DC Solenoid
  • 1x LED xiav
  • 1x Liab LED
  • 1x Ntsuab LED

Kauj Ruam 1: Daim Duab Fritzing

Fritzing Daim duab
Fritzing Daim duab

Nov yog daim duab qhia yuav ua li cas txuas cov khoom siv hauv peb qhov project

Kauj ruam 2: Txoj Cai

Nov yog tus lej rau txoj haujlwm:

Yog tias koj muaj teeb meem nrog kev txheeb xyuas koj tus lej ID tus lej;

Yog tias koj muaj teeb meem nrog kev txheeb xyuas koj tus yuam sij, Nws yuav yog vim koj li EEPROM puv. Qhov no txhais tau tias koj tsis muaj cov khoom pub dawb los siv rau koj tus lej ID. Koj yuav tsum tsuas yog tau txais qhov teeb meem no Yog tias koj tau siv koj li EEPROM ua ntej. Hauv peb cov cai peb muaj cov kauj ruam los so EEPROM, tab sis hmoov tsis nws tsis ua haujlwm raws li tau npaj tseg. Yog li koj yuav tsum siv Arduino lub EEPROM rov pib dua, nws nyob hauv lub tsev qiv ntawv tsis raug.

Vim tias peb tab tom siv Nodered, peb tau tawm tswv yim qee cov ntawv luam tawm hauv cov cai. Qhov no tsis muaj kev cuam tshuam rau txoj haujlwm, tab sis nws yuav tsis ua haujlwm nrog Nodered.

Kauj ruam 3: Saib ua ntej ntawm Txoj Haujlwm

Image
Image

Ntawm no koj tuaj yeem pom, yuav ua li cas ntxiv thiab tshem tawm daim ntawv

Ib qho ntawm cov cim npe yog tus yuam sij Master, nrog rau qhov no koj tuaj yeem hloov pauv pes tsawg daim ntawv koj xav kom nkag mus rau hauv lub thawv muaj zog.

Tshem ib daim ntawv, tib txoj kev koj ntxiv ib lossis.

Kauj ruam 4: Node-red

MySQL Database
MySQL Database

Thawj kauj ruam yog xam seb koj Arduino sib tham nrog koj lub pc li cas. Hauv peb qhov xwm txheej peb tsuas yog siv peb qhov chaw nres nkoj hauv peb lub pc, sib txuas lus nrog peb Arduino.

Node-liab coding

Hauv qhov-liab koj tuaj yeem rub tus lej chaw nres nkoj thaiv, qhov uas koj txheeb xyuas tus nqi baud thiab lwm yam koj qhov kev sib txuas lus.

Los ntawm no koj txuas koj li Arduino chaw nres nkoj rau cov haujlwm uas koj xav tau node-liab los ua. Koj rub lub luag haujlwm, qhov uas koj txhais lub luag haujlwm. Peb muaj ob txoj hauv kev ntawm kev ua haujlwm peb siv; Thawj qhov yog peb ncua kev xa ntawv los ntawm Arduino, yog li peb tsuas yog tau txais cov cim npe RFID. Tom qab ntawd peb siv qhov hloov pauv kom xa daim ntawv tso cai, tsis pom zoo lossis tsis paub ntawv (ceeb toom), txij li peb tau npaj ua ntej uas cov ntawv tau tso cai thiab tsis pom zoo hauv qhov hloov pauv. Yog tias daim ntawv tsis paub nws raug tsis lees paub thiab node-liab xa ntawv ceeb toom ntawd, nws yog daim ntawv tsis paub.

Peb lwm txoj hauv kev peb xa cov ntaub ntawv los ntawm RFID rau peb cov ntaub ntawv mySQL. Nco ntsoov tias koj yuav tsum tau ceev faj thaum nkag mus rau koj li mySQL database, txij li cov npe yuav tsum yog qhov tseeb, peb koj tsis tuaj yeem tau txais kev sib txuas.

Los ntawm no peb xa cov ntaub ntawv uas peb tau khaws cia hauv peb qhov chaw khaws ntaub ntawv mySQL thiab qhia lawv hauv ib lub rooj hauv lub node-liab dashboard. Koj tsuas yog yuav tsum txheeb xyuas lub rooj loj thiab zoo li no, siv HTML code. Peb muaj khawm hloov tshiab, yog li koj tuaj yeem pom cov cim npe tshiab tshaj plaws.

Kauj ruam 5: MySQL Database

Peb tab tom siv WAMPserver rau localhost peb mySQL database. Nov yog qhov uas peb khaws peb daim ntawv cim npe RFID thiab lub sijhawm, uas peb siv node-liab txhawm rau muab cov ntaub ntawv los ntawm peb Arduino thiab mySQL database.

Ib yam uas koj yuav tsum tau ua hauv mySQL yog txhais lub rooj nrog 2 kab, ib qho rau tus lej thiab lwm yam rau lub sijhawm cim.

Yuav ua li cas peb khaws cov ntaub ntawv los ntawm Arduino hauv node-liab tau piav qhia hauv ntu hais txog ntawm liab-liab.

Pom zoo: