Cov txheej txheem:

Arduino RFID Maze Game: 6 Kauj Ruam (nrog Duab)
Arduino RFID Maze Game: 6 Kauj Ruam (nrog Duab)

Video: Arduino RFID Maze Game: 6 Kauj Ruam (nrog Duab)

Video: Arduino RFID Maze Game: 6 Kauj Ruam (nrog Duab)
Video: Amazing arduino project 2024, Hlis ntuj nqeg
Anonim
Arduino RFID Maze Game
Arduino RFID Maze Game

Hnub no kuv yuav nthuav tawm qhov kuv muab tso ua ke me ntsis RFID tshawb nrhiav game rau Arduino. Cov cai thiab 3D cov ntaub ntawv luam tawm tau suav nrog, yog li xav ua kom koj tus kheej ua raws cov theem hauv qab no!

Kuv xav ua khoom ua si rau menyuam yaus, uas yuav muab kev paub ua lub cev thiab lub cev. Nrog rau cov cuab yeej no lawv tuaj yeem tshuaj xyuas cov khoom ib txwm muaj uas muaj daim npav RFID (daim npav npav, tsiaj, khaub ncaws, thiab lwm yam) thiab ua rau cov khoom no ua si ntau dua thiab muaj kev sib tham. Txhua lub sijhawm koj pom daim npav RFID tshiab, arduino tsim lub maze rau koj los daws. Ua kom tiav qhov tshawb nrhiav thiab koj yuav hnov lub suab nrov zoo siab los ntawm tus neeg hais lus piezo. Qhov ntau mazes koj daws tau, ntau lub suab paj nruag koj yuav tuaj yeem hnov!

Nov yog yam koj yuav xav tau rau txoj haujlwm no:

  • Arduino UAS
  • 1588AS LED Matrix,
  • 2 x 74HC595 hloov npe rau npe
  • 8 x 220 Ohm resistors
  • MFRC522 RFID module
  • RFID cim npe
  • 4 x loj laub khawm
  • 2 x xaim hlau xaim (rau pob khawm)
  • xov hlau, kab laug sab, perfboard thiab lwm yam.
  • 3D tshuab luam ntawv

Kuv qhia koj kom ua tiav txoj haujlwm ntawm lub khob cij ua ntej ua ntej sib dhos txhua yam ua ke.

Yog tias koj xav kom koj tus kheej mob siab rau tsim koj tus kheej tus lej tsav tsheb nrog kev hloov pauv rau npe koj kuj tsuas yog yuav qhov pheej yig heev MAX7219 LED Matrix uas muaj tib lub haujlwm ua hauv.

Kauj Ruam 1: LED Matrix

LED Matrix Cov
LED Matrix Cov
LED Matrix Cov
LED Matrix Cov
LED Matrix Cov
LED Matrix Cov
LED Matrix Cov
LED Matrix Cov

Peb yuav nthuav tawm qhov kev ua si ntawm 8x8 coj matrix, siv los ntawm ob 74HC595 hloov npe. Txog qhov no kuv siv cov lus qhia hauv qab no https://www.instructables.com/id/Arduino-88-Led-Matrix-Driver-With-2-74HC595-Shift-/. Koj tuaj yeem mus rau qhov ntawd cov lus qhia ntxaws ntxiv, tab sis kuv yuav piav qhia cov txheej txheem luv luv ntawm no.

Peb yuav siv peb tus pin ntawm arduino xa cov ntaub ntawv, moos thiab latch rau thawj qhov kev hloov pauv npe. Qhov hloov pauv thib ob yuav qhia lub moos thiab lub latch, tab sis peb yuav thaj los ntawm cov ntaub ntawv daisychained los ntawm thawj qhov kev hloov pauv rau npe. Peb tseem yuav txuas peb qhov hluav taws xob thiab hauv av rau ob qho ntawv sau npe. Peb tseem yuav rub khaws cov ntaub ntawv HIGH thiab kaw qhov tso tawm qis.

Tam sim no rau thaiv cov npe hloov pauv no mus rau LED matrix. Teem lub LED matrix nrog cov ntawv ntawm ib sab tig koj thiab tus pin tig mus rau sab saud. Cov pins tau suav nrog zoo li hauv daim duab 4. Hauv daim duab thib ob koj yuav pom qhov hloov pauv ntawm cov npe tso tawm yuav tsum txuas nrog cov pins ntawm koj tus lej.

Kauj ruam 2: Tus nyeem ntawv RFID

Tom ntej no yog RFID nyeem ntawv, ua tsaug nws yooj yim dua. Rub tawm thiab teeb tsa lub tsev qiv ntawv rau hauv koj li IDE los ntawm:

Txuas cov RFID pins hauv qab no rau cov no ntawm koj cov arduino:

  • RST/Rov Pib RST 9
  • SPI SS SDA (SS) 10
  • SPI OSI MOSI 11 / ICSP-4
  • SPI MISO MISO 12 / ICSP-1
  • SPI SCK SCK 13 / ICSP-3

Kauj Ruam 3: Cov Khawm

Peb yuav siv lub PULLUP ua haujlwm sab hauv ntawm Arduino yog li peb tsuas tuaj yeem txuas cov hloov pauv ncaj qha rau tus pin thiab tom qab ntawd mus rau hauv av. Koj tseem tuaj yeem ua rub tawm sab nraud zoo li hauv daim duab.

Kauj ruam 4: Txoj Cai

Rub tawm cov cai los ntawm saum toj no thiab saib ntawm txhua lub tabs. Cov pins siv tau piav qhia nyob rau sab saum toj ntawm txhua lub tab, hloov pauv kom haum rau tus pin uas koj txiav txim siab siv.. Upload nws rau koj arduino thiab sim qhov kev ua si!

Kauj ruam 5: Rooj plaub

Rooj plaub
Rooj plaub

Rub cov ntaub ntawv ob zaug hauv zip thiab xa nws mus rau qhov koj nyiam hloov pauv tus lej. Khiav nws hla lub tshuab luam ntawv 3D thiab koj yuav tsum muaj cov ntaub ntawv uas haum rau txhua yam ntawm koj cov khoom.

Muab txhua yam tso ua ke thiab haum rau hauv rooj plaub. Ua tib zoo khaws koj cov xov hlau kom luv li sai tau, vim tias qhov chaw muaj tsawg. Muab cov hinges ntawm rooj plaub ua ke thiab khiav me me hlau xaim hla lub qhov hauv lub hinges. Tom qab txuas ob sab, koj yuav tsum muaj cov khoom tiav.

Kuv vam tias koj nyiam nyeem txog qhov haujlwm no thiab thov txaus siab!

Kauj Ruam 6: Cov Khoom Ua tiav

Pom zoo: