Cov txheej txheem:

Whisky thiab Coke RFID Lock Box: 9 Kauj Ruam (nrog Duab)
Whisky thiab Coke RFID Lock Box: 9 Kauj Ruam (nrog Duab)

Video: Whisky thiab Coke RFID Lock Box: 9 Kauj Ruam (nrog Duab)

Video: Whisky thiab Coke RFID Lock Box: 9 Kauj Ruam (nrog Duab)
Video: One Bourbon, One Scotch, One Beer 2024, Kaum ib hlis
Anonim
Whisky thiab Coke RFID Lock Box
Whisky thiab Coke RFID Lock Box

Cov lus qhia no yuav qhia koj yuav ua li cas thiaj ua tau 3D luam tawm "Whisky and Coke" RFID Lock Box.

Kauj ruam 1: Intro

Image
Image

Ob peb xyoos dhau los, kuv tsev neeg tau ua qhov kev coj ua mus rau chav sib dhos sib txawv hauv lub nroog txhua lub caij Christmas. Txawm hais tias tsis tshua tau tawm ntawm chav nyob hauv lub sijhawm, lawv ib txwm nyuaj thiab lom zem. Kuv tsis tuaj yeem pab tab sis xav tsis thoob li cas lawv ua txhua qhov kev sib txawv sib txawv thiab hauv qhov haujlwm no kuv yuav qhia koj yuav ua li cas thiaj ua tau RFID lub thawv xauv zoo ib yam uas kuv tau pom hauv chav sib dhos. Nws zoo li hauv ntau chav sib dhos uas kuv tau nyob hauv, lawv tau siv RFID nti zais hauv qee yam uas tom qab ntawd yuav tsum tau muab tso rau hauv qee qhov chaw kom qhib lub qhov rooj zais lossis qhib lub thawv. Cov lus qhia no yuav qhia koj yuav ua li cas thiaj tsim tau lub npov dav dav uas koj tuaj yeem ntxiv cov lus sib dhos tshwj xeeb rau tom qab. Kuv tau xaiv ntxiv lub cim Coca-Cola thiab zais daim npav RFID hauv qab Jack Daniel lub raj mis me me, yog li cov cawv thiab coke ua ke. Kev tsim lub thawv tag nrho yuav ua tiav hauv Fusion 360 thiab 3D luam tawm hauv PLA. Kuv pom qhov kev sib tw nyab xeeb thiab nyab xeeb mus thiab vim tias lub npov no tuaj yeem siv tau yooj yim los khaws cov khoom muaj nqis Kuv txiav txim siab nkag mus rau nws.

Kauj Ruam 2: Cov Cheeb Tsam Xav Tau

Electronics
Electronics

Rau qhov haujlwm no, yuav tsum muaj cov hauv qab no:

  • Arduino Nano nrog USB cable Amazon
  • On/Off Hloov Amazon
  • Roj teeb 9V lossis 5V Lub Hwj Huam Fais Fab
  • 2 SG90 Servos Amazon
  • RC522 RFID Module Amazon
  • Yam tsawg kawg 2 cim npe RFID
  • Soldering hlau thiab khoom siv Amazon

Kev nthuav tawm: Cov kev sib txuas amazon saum toj no yog cov koom nrog sib txuas, lub ntsiab lus, tsis muaj tus nqi ntxiv rau koj, Kuv yuav khwv tau nyiaj ua haujlwm yog tias koj nyem dhau thiab ua kev yuav khoom.

Arduino Nano yog microcontroller board uas ua raws ATmega328. Nws muaj qhov ua haujlwm zoo ib yam li Arduino Uno tab sis muaj qhov hneev taw me me (18 x 45 mm) uas ua rau nws zoo rau cov haujlwm uas xav tau kom me dua qhov loj ib yam li kuv lub thawv ntim RFID.

Txog RFID kev ua haujlwm Kuv yuav siv MF RC522 uas yog kev sib xyaw nyeem thiab sau daim npav tau siv rau 13.56 MHz kev sib cuag tsis sib txuas. Nws yog qhov hluav taws xob qis, tus nqi qis ($ 1.6 ntawm AliExpress), thiab qhov me me uas tsis yog daim npav tiv tauj daim npav. Kuv yuav siv ob peb daim cim RFID los tswj lub xauv/qhib lub tshuab ntawm lub thawv.

Kauj ruam 3: Electronics

Tam sim no koj muaj txhua yam ntawm cov khoom xav tau, nws yog lub sijhawm pib ua haujlwm ntawm cov khoom siv hluav taws xob. Kuv yuav pom zoo ua ntej tsim lub Circuit Court ntawm lub khob cij, ua haujlwm Arduino Nano siv Arduino IDE (yuav piav qhia tom qab), thiab tom qab ntawd ib zaug txhua yam ua haujlwm tau zoo dua txhua yam ua ke ntawm daim txiag ntoo.

Arduino Nano tuaj yeem siv tau los ntawm USB chaw nres nkoj thaum ntsuas yog li lub roj teeb 9V thiab SW1 yuav tsis xav tau kom txog thaum kawg teeb tsa hauv lub thawv. SG90 cov kws tshaj lij xav tau lub zog ntau dua li koj yuav tau txais los ntawm onboard 5V tus tswj hwm lossis dhau USB, tab sis kuv tau pom lub thawv tseem ua haujlwm tau raug. Tom qab ntawd koj ib txwm tuaj yeem hloov kho mus rau lub roj teeb uas zoo dua lossis yog tias koj ua tau zoo nrog lub zog hluav taws xob sab nraud uas yuav yog txoj hauv kev zoo rau lub hwj chim lub xauv lub thawv.

Cov LED yog xaiv tau tab sis tuaj yeem ua pov thawj muaj txiaj ntsig thaum sim ntsuas koj lub thawv xauv.

Kauj ruam 4: Programming Arduino

Txhawm rau tswj kev nkag mus rau lub thawv, peb yuav tsum tau program Arduino Uno. Kuv hloov qhov Access Control piv txwv uas los nrog Arduino lub tsev qiv ntawv uas koj yuav xav tau los nruab ntawm no.

Tom qab teeb tsa lub tsev qiv ntawv (muaj ntau yam kev qhia yuav ua li cas hauv online), koj yuav tsum tau xa cov lej kuv tsim uas tau txuas nrog.

Kauj ruam 5: RFID Chip Control

RFID Chip Control
RFID Chip Control

Tom qab tus lej tau muab tso rau, peb yuav tsum tau sim nws siv peb ob daim npav RFID.

Tam sim ntawd tom qab rub tawm cov cai nyem rau nkag mus rau hauv lub ntsuas saib hauv Arduino IDE.

Luam theej duab daim npav RFID uas koj xav ua Tus Tswv Daim Npav (Ib txwm yuav qhib lub thawv thiab tuaj yeem ntxiv daim npav RFID ntxiv).

Tom qab ntawd luam theej duab RFID nti uas koj yuav siv los qhib lub thawv. Daim npav yuav raug sau rau EEPROM txhawm rau khaws cov ntaub ntawv txawm hais tias lub zog raug cycled.

Tom qab ntawd luam theej duab Master RFID daim npav ntxiv, qhov no yuav kaw lub thawv.

Kauj Ruam 6: Tsim 3D thiab Luam Ntawv

3D Tsim thiab Sau
3D Tsim thiab Sau
3D Tsim thiab Sau
3D Tsim thiab Sau

Tam sim no peb muaj cov qauv ua haujlwm ntawm cov khoom siv hluav taws xob thiab ua haujlwm rau Arduino Nano, peb tuaj yeem pib ua haujlwm ntawm kev tsim qauv thiab luam ntawv ntawm lub thawv thiab lub hau. Hmoov zoo, Kuv tau ua haujlwm hnyav rau koj txhua tus thiab tau tshaj tawm kuv cov qauv tsim ntawm Thingiverse ntawm no rau txhua tus neeg rub tawm. Yog tias koj tau xaiv los ua koj lub thawv tib yam li kuv li nrog Whisky thiab Coke ua ke, cov cim coca-cola tuaj yeem pom ntawm Thingiverse ntawm no.

Kauj Ruam 7: Nruab Cheebtsam

Nruab Cheebtsam
Nruab Cheebtsam

Hauv cov kauj ruam no, Kuv yuav taug kev koj los ntawm yuav ua li cas txhawm rau txhim kho cov khoom sib txuas thiab ua kom txhua yam sib dhos ua ke ntawm lub rooj tsav xwm tsab. Yog tias koj lub khob cij me me txaus kom haum rau hauv lub thawv ntawv, tom qab ntawv lub rooj tsav xwm thawj yog xaiv tau tab sis cov xov hlau yuav pom tseeb tsis muaj kev nyab xeeb.

Cov kauj ruam los sib sau ua ke:

1. Tshem kev txhawb nqa los ntawm 3D luam tawm

2. Ntxig rau SG90 servos rau hauv qhov qhib. Ntxig peb tus pin txuas txuas los ntawm servo mus rau hauv qab thiab nias haum rau servo rau hauv lub qhov. Nws yuav tsum nruj heev thiab nyuaj rau tshem tawm.

3. Ntxig lub RC522 RFID module rau hauv nruab nrab qhov chaw. Nws yuav tsum khawm ncaj nruab nrab thiab tsis txav mus los yooj yim.

4. Muab cov khoom siv hluav taws xob tso rau hauv lub thawv. Kuv siv qee cov velcro kom lawv txuas.

Kauj Ruam 8: Tshem Tawm RFID Chip

RFID Chip Tshem Tawm
RFID Chip Tshem Tawm

Nyob ntawm seb yam khoom twg koj xaiv los qhib koj lub npov nws yuav muaj txiaj ntsig zoo kom tshem nws tawm ntawm nws lub tsev loj cuj. Kuv siv lub hnab riam los txiav ib ncig ntawm ntug thiab tom qab ntawd qhib ib qho zoo li daim duab saum toj no. Tom qab ntawd kuv siv rab riam los ua tib zoo tshem nws tawm ntawm cov kua nplaum nws thiaj li tsuas yog rfid tivthaiv. Tom qab ntawd kuv tuaj yeem kaw nws yooj yim rau hauv qab ntawm kuv lub raj mis mini jack daniels. Epoxy kuj tseem tuaj yeem siv txuas rau nws tab sis txij li kuv yuav hloov pauv kuv cov khoom qhib tom qab yog li kuv xav tias kuv tsuas yog siv daim kab xev tam sim no.

Kauj Ruam 9: Sim Tawm Lub Thawv

Image
Image

Thaum pib ntawm cov vis dis aus kuv qhib lub thawv qhib los ntawm muab lub raj mis Jack Daniels tso rau saum. Nco tseg: Yog tias koj xav kom lub thawv kaw rau thaum pib koj yuav tsum hloov pauv servos pib txoj haujlwm hauv txoj cai. Kuv yuav cia koj xam qhov ntawd.

Ua tsaug rau kev nyeem ntawv!

Kev Nyab Xeeb thiab Kev Ruaj Ntseg
Kev Nyab Xeeb thiab Kev Ruaj Ntseg

Khiav Tawm Hauv Kev Nyab Xeeb thiab Kev Ruaj Ntseg

Pom zoo: