Cov txheej txheem:

RFID Qhov Rooj Xauv Lub Tshuab Nrog Arduino: 5 Kauj Ruam (nrog Duab)
RFID Qhov Rooj Xauv Lub Tshuab Nrog Arduino: 5 Kauj Ruam (nrog Duab)

Video: RFID Qhov Rooj Xauv Lub Tshuab Nrog Arduino: 5 Kauj Ruam (nrog Duab)

Video: RFID Qhov Rooj Xauv Lub Tshuab Nrog Arduino: 5 Kauj Ruam (nrog Duab)
Video: How I Made this Electric Car that can go Anywhere 2024, Hlis ntuj nqeg
Anonim
Image
Image
3D Luam & Sib Sau Cov Xauv Mechanism
3D Luam & Sib Sau Cov Xauv Mechanism

Hauv Cov Lus Qhia no, peb yuav txuas tus RC522 RFID sensor mus rau Arduino Uno txhawm rau txhawm rau ua kom RFID nkag mus tswj tau yooj yim kaw lub tshuab rau lub qhov rooj, tub rau khoom lossis txee. Siv lub ntsuas ntsuas no, koj yuav tuaj yeem siv daim npav RFID lossis daim npav txhawm rau xauv thiab qhib lub qhov rooj zawv zawg yam ntsuas phoo uas yooj yim tuaj yeem ntsia tau rau ntawm lub qhov rooj lossis tub rau khoom.

Cov txheej txheem ntsuas phoo hauv Phau Ntawv Qhia no yog 3D luam tawm, tab sis koj tuaj yeem siv ib qho uas muaj feem ntau muaj cov zawv zawg hom ntsuas phoo ib yam nkaus. Lub xauv tau ua haujlwm siv micro servo.

Cov lus qhia no xav tias koj tau ua haujlwm nrog Arduino micro-controller ua ntej thiab paub cov hauv paus ntawm kev ua haujlwm ntawm Arduino. Yog tias koj tsis ua, ua raws cov lus qhia txuas rau cov ntaub ntawv ntau ntxiv txog kev tsim thiab xa koj thawj daim duab.

Khoom siv

Txhawm rau tsim koj tus kheej RFID kev kaw lub tshuab, koj yuav xav tau cov hauv qab no:

  • Arduino Uno (lossis Lwm Yam) - Yuav Ntawm No
  • Arduino Power Supply - Yuav Ntawm No
  • RC522 RFID Sensor - Yuav Ntawm No
  • Breadboard & Jumpers rau Kev Xeem - Yuav Ntawm No
  • Micro Servo - Yuav Ntawm No
  • 2 x LEDs - Yuav Ntawm No
  • 2 x 220Ω Resistors - Yuav Ntawm No
  • 3D Tshuab Luam Ntawv & Filament (Yeem rau Xauv) - Qhov no Siv
  • Thawv lossis Vaj Tsev Rau Sensor & Electronics

Kauj Ruam 1: 3D Luam & Sib Sau Cov Xauv Mechanism

3D Luam & Sib Sau Cov Xauv Mechanism
3D Luam & Sib Sau Cov Xauv Mechanism

Ua ntej peb yuav sib dhos lub tshuab xauv, qhov no suav nrog 3D luam tawm zawv zawg xauv thiab lub micro servo nrog lub caj npab servo.

Koj kuj tseem tuaj yeem siv cov zawv zawg hom ntsuas phoo uas koj yuav xav tau txuas lub servo caj npab rau.

Lub kaw lus ntsuas phoo yog ua raws qhov ntsuas phoo xauv tsim los ntawm Sagittario uas kuv tau txo qis rau 65% ntawm qhov loj me.

Rub tawm 3D Luam Ntawv: RFID Xauv 3D Luam Ntawv

Kuv 3D luam cov ntawv txuas uas siv dawb PLA ntawm 185C thiab 20% ntxiv rau.

Tus txheej txheem thiab tus tuav tuav servo muaj lub qhov ntsia hlau kom tso cai rau koj yooj yim txuas nws rau hauv lub txee, txee lossis tub rau khoom. Koj kuj tseem tuaj yeem siv cov kua nplaum kub los yog daim kab xev ob tog los txuas nws tsawg dua.

Kauj Ruam 2: Sib Sau Cov Hluav Taws Xob

Sib dhos Cov Khoom Hluav Taws Xob
Sib dhos Cov Khoom Hluav Taws Xob
Sib dhos Cov Khoom Hluav Taws Xob
Sib dhos Cov Khoom Hluav Taws Xob
Sib dhos Cov Khoom Hluav Taws Xob
Sib dhos Cov Khoom Hluav Taws Xob

Txuas cov khoom siv hluav taws xob raws li qhia hauv kab lus. Kuv tau sib sau lawv mus rau ntawm lub khob cij ua ntej txhawm rau kuaj cov khoom thiab thauj tus lej ID rau ob daim ntawv cim npe uas kuv xav tso cai nkag mus.

LEDs ntsuab thiab liab tsis tas yuav tsum tau, lawv tsuas yog qhia qhov zoo uas lub cim npe tau nyeem kom raug thaum lub kaw lus nyob hauv tsev.

Kauj ruam 3: Upload Code

Cov ntawv piav qhia tag nrho thiab rub tawm txuas tuaj yeem pom ntawm no - Arduino Raws RFID Lock Mechanism Code

Qhov txuas tsuas yog rub tawm cov cai nyob ntawm no - RFID Lock Code

Ua ntej koj siv txoj cai, koj yuav tsum tau teeb tsa lub tsev qiv ntawv RFID uas tau ntim nrog cov cai hauv qhov rub tawm saum toj no.

Txoj cai tseem ceeb tos rau ib daim ntawv los luam tawm. Thaum ib daim ntawv raug txheeb xyuas, nws dhau qhov scanned ID mus rau txoj haujlwm uas tshawb xyuas yog tias lub cim cim cim tus lej ID nyob hauv ntau qhov kev lees paub cov cim npe thiab tom qab ntawd txawm hais tias muab kev nkag mus, ntsais ntsuab LED thiab qhib lossis kaw lub tshuab raws li lub xeev dhau los lossis tsis kam nkag mus thiab teeb liab liab LED.

Kauj Ruam 4: Ntxiv Tag

Txoj cai suav nrog kev tso tawm mus rau Serial monitor ntawm koj lub PC. Thaum koj xub ua nws, koj yuav tsum tau sau npe koj cov cim npe uas koj xav tau tso cai nkag mus rau. Qhov no yog ua tiav los ntawm kev tshuaj xyuas lub cim npe thiab sau daim npav ID uas qhia ntawm koj lub xov tooj. Tus lej no tuaj yeem raug ntxiv rau qhov accessGranted array txhawm rau txhawm rau nkag mus rau lub cim npe. Qhov loj ntawm cov array yuav tsum tau nce lossis txo kom haum.

Rov xa cov cai nrog kab ntawv tshiab thiab tam sim no koj yuav tsum tuaj yeem luam theej duab koj lub npe thiab nws yuav nyem ntsuab thiab xauv lossis xauv koj lub tshuab raws li lub xeev yav dhau los ntawm lub xauv.

Kauj Ruam 5: Txhim Kho Xauv

Txhim kho Xauv
Txhim kho Xauv
Txhim kho Xauv
Txhim kho Xauv

Txhawm rau ua kom lub xauv siv tau dua, kuv tau teeb nws rau hauv lub thawv yas/vaj tsev nrog LEDs pom nyob rau pem hauv ntej saum lub cheeb tsam sensor. Lub xauv tau muab tso rau sab hauv ntawm lub qhov rooj.

Yog tias koj xav ua kom lub kaw lus ruaj ntseg me ntsis ces koj yuav xav cais lub ntsuas qhov ntsuas ntawm Arduino thiab theej nce Arduino ntawm sab hauv ntawm lub qhov rooj ib yam. Nws yog qhov nyuaj dua los tsim cov teeb liab los ntawm lub ntsuas hluav taws xob mus rau Arduino dua li nws yog tsim dua PWM teeb liab mus rau servo kom qhib lub xauv.

Yog tias koj xav tau cov ntaub ntawv ntau ntxiv ntawm kev tsim cov txheej txheem ntsuas phoo thiab piav qhia ntxaws ntxaws ntawm cov cai, ua tib zoo saib tag nrho cov ntawv sau ntawm no - Arduino Raws RFID Qhov Rooj Xauv

Hmoov zoo nrog koj tsim!

Pom zoo: