Cov txheej txheem:

Kev Nyab Xeeb Tseem Ceeb: 6 Cov Kauj Ruam (nrog Duab)
Kev Nyab Xeeb Tseem Ceeb: 6 Cov Kauj Ruam (nrog Duab)

Video: Kev Nyab Xeeb Tseem Ceeb: 6 Cov Kauj Ruam (nrog Duab)

Video: Kev Nyab Xeeb Tseem Ceeb: 6 Cov Kauj Ruam (nrog Duab)
Video: Yasmi - Txiv Nraug Ntsuag ft. JN Vang (Music Video) 2024, Hlis ntuj nqeg
Anonim
Image
Image
Npaj Cov Khoom Siv
Npaj Cov Khoom Siv

Thaum nruab hnub, kuv tsis tshua nqa kuv tus yuam sij tawm, tab sis qhov no ua rau nyuaj thaum kuv niam tawm hauv tsev. Los ntawm tsis muaj lwm txoj kev xaiv, kuv niam yuav tsum tso tus yuam sij sab hauv lub txee ib sab ntawm lub qhov rooj, uas tsis muaj kev lees paub tias tus yuam sij muaj kev nyab xeeb lossis tsis yog. Los ntawm kev muaj tus yuam sij xauv, tus uas tawm hauv tsev tuaj yeem tso tus yuam sij hauv lub thawv no kom tiv thaiv lwm tus los ntawm kev nyiag tus yuam sij yam tsis muaj kev tiv thaiv. Vim tias kuv niam yuav nyob hauv tsev ua ntej noj hmo lossis tom qab noj hmo, kuv yuav tsum paub seb kuv puas yuav tsum tau nrhiav yam khoom noj lossis tsis noj. Qhov no yog qhov laj thawj yog vim li cas lub xauv luam tawm "Tau Txais Khoom Noj".

Kauj Ruam 1: Npaj Cov Khoom Siv

Arduino Leonardo (Arduino) Cov.

Matrix Keypad 4x4 (Amazon)

LCD 16 x 2 (Amazon)

Micro Arduino Servo Tsav SG90 (Amazon)

Jumper Wires Txiv neej rau Poj Niam (Amazon)

Jumper Wires Txiv neej rau Txiv neej (Amazon)

Laser Txiav 3D Luam Ntawv Case x1 (15x20x12cm)

Daim kab xev / av nplaum

Ntoo Nplaum

Charger

Breadboard / Vuam Phom

Kauj ruam 2: Code

Code
Code
Code
Code
Code
Code

Code

1. Rub tawm 4 qhov system los ntawm lub tsev qiv ntawv.

2. Nco ntsoov tshaj tawm tus pin servo li 4 (txhua tus lej tshwj tsis yog 2 lossis 3: ob qho tib si yuav tsis ua haujlwm yog LCD nyob hauv SDA thiab SCL).

3. Cov kab thiab kab sib txawv yog cov pins sib txawv, yog li nco ntsoov tshaj tawm qhov tseeb.

4. Teem tus kheej passcode rau lub xauv.

5. "resetLocker" txhais tau tias thaum lub kaw lus tig rov qab mus rau keeb kwm: LCD luam tawm "Tau Qee Cov Khoom Noj" thiab "Pin", thiab servo tig mus rau 40 degrees, uas xauv lub thawv (qib kawm nyob ntawm qhov sib txawv servo lossis txoj haujlwm ntawm servo tsav).

6. "unlockdoor" ua haujlwm yog tias tus neeg siv nkag mus rau tus lej nkag mus raug, ua rau servo tig mus rau 110 degree (qhib) thiab LCD luam "dhau". Ntawm qhov tod tes, LCD yuav luam tawm "Tsis raug! Sim dua”yog tias tus lej cim tsis raug.

7. Los ntawm nias "*", cov neeg siv tuaj yeem tshem tus password uas lawv nkag mus; los ntawm nias "#", lub tshuab tuaj yeem tshawb xyuas tus lej cim.

Kauj ruam 3: Circuit Court

Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit

1. Txuas rau txhua lub xov hlau hauv cov pins tshaj tawm rau coding ntu.

2. Paub txog qhov zoo thiab qhov tsis zoo electrode lossis lwm yam khoom tuaj yeem tawg (cov hluav taws xob zoo: 5V, cov hluav taws xob tsis zoo: GND).

3. Yog lub khob cij nyob hauv qhov chaw loj, siv rab phom vuam txuas los txuas cov xov hlau ua ke. Txhawm rau kom ua haujlwm hauv Circuit Court, xyuas kom cov xov hlau tsis kub hnyiab, thiab cov kab laug sab nyob ib puag ncig cov xov hlau (Cov lus qhia rau kev siv vuam: Siv rab phom vuam kom sov cov xov hlau, muab tso rau hauv cov laug kom nws yaj kom txog thaum cov kua nyob ib puag ncig. cov xov hlau, tom qab ntawd tshem rab phom vuam thiab cov laug).

4. Siv lub thawv ntawv: tus pin 6-13 yuav tsum yog tus tuav, tus pin 4 yog rau servo, LCD's SCL thiab SDA txuas rau ob tus pin ntawm sab laug. Qhov zoo thiab tsis zoo electrode ntawm ob qho tib si servo thiab LCD yuav tsum yog qhov zoo thiab tsis zoo ib feem ntawm lub khob cij, tom qab ntawd siv ob lub xov hlau txuas los txuas qhov ntawm lub khob cij rau 5V thiab GND.

5. Siv rab phom welding: tus pin 6-13 yuav tsum yog tus tuav, tus pin 4 yog rau servo, LCD tus SCL thiab SDA txuas rau ob tus pin ntawm sab laug. Qhov hluav taws xob tsis zoo ntawm ob qho kev pabcuam thiab LCD yuav tsum yog ob qhov ntawm GND, tab sis tsuas muaj ib qho 5V qhov, uas txhais tau tias qhov hluav taws xob zoo ntawm ob qho kev pabcuam thiab LCD yuav tsum tau ua ke siv cov laug thiab lawv txuas ob ntawm cov xov hlau rau cev 5v.

Kauj Ruam 4: Sab Nraud: Laser Cut Box

Sab nrauv: Laser Cut Box
Sab nrauv: Laser Cut Box
Sab nrauv: Laser Cut Box
Sab nrauv: Laser Cut Box

1. Kos lub laser txiav lub thawv rau qhov ntsuas phoo tseem ceeb, suav nrog 2 15x20cm daim rau sab saum toj thiab hauv qab, 2 20x12cm daim rau pem hauv ntej thiab nraub qaum, thiab 2 15x12cm daim rau ob sab. (Lub vev xaib no muaj rau kev kho lub thawv rau laser txiav)

2. Nco ntsoov suav nrog 2x1cm lub qhov rooj, 7x2.5cm LCD qhov, lub qhov taub 2.5x0.5cm, thiab 3.5 cm txoj kab uas hla lub voj voog rau qhib lub thawv.

3. Nrhiav lub tshuab luam ntawv laser kom luam tawm daim ntawm rooj plaub.

4. Siv cov kua nplaum ntoo los sib dhos ua ke ntawm rooj plaub.

Kauj Ruam 5: Sib sau ua ke

Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke
Sib sau ua ke

1. Ua kom tiav daim ntawm laser txiav ua ke thiab tsim ib lub thawv.

2. Yuav tsum muaj cov khoom ntxiv rau kev tsim lub thawv, uas yog kev sib txuas ntawm lub hau thiab lub cev ntawm rooj plaub. Los ntawm gluing peb daim ntawv los ntawm lawv, lub thawv yuav tuaj yeem qhib thiab kaw hauv txoj hauv kev nyab xeeb dua thiab yooj yim dua (nco ntsoov lo rau tsuas yog ob sab luv tshaj plaws ntawm daim ntawv thiab khaws qhov nruab nrab qhov txav tau lossis lwm tus neeg siv tsis tuaj yeem qhib. lossis kaw rooj plaub).

3. Cov keypad yuav tsum hla lub qhov nyob rau sab laug pem hauv ntej thiab ntsaws lawv rau hauv tus pin uas raug.

4. Muab lub LCD tso rau hauv lub qhov rau saum kom lub vijtsam tig rau tus neeg siv.

5. Tig daim rau lwm sab thiab sim npaj qhov chaw tom qab.

6. Khaws daim ntawv Leonardo Arduino nyob nruab nrab ntawm daim ntawv kom muaj qhov nrug deb tshaj plaws rau lwm txoj kev txuas xov hlau, tom qab ntawd xyuas kom cov xov hlau tau ntsaws rau hauv.

7. Ntsuas qhov kev ncua deb ntawm servo kom lub xauv tuaj yeem hla lub qhov nyob ntawm sab kom tso cai rau xauv ruaj khov. Yog tias qhov chaw pabcuam tsis raug, lub xauv yuav tsis ua haujlwm lossis cov servo yuav poob qis.

8. Siv daim av nplaum lossis daim kab xev los lo lub charger ntawm sab hauv ntawm lub npov thiab txuas lub charger rau Arduino board, cia lub tshuab ua haujlwm.

9. Kaw cov xaim yog xav tau (rau qhov zoo nkauj sab hauv thiab yooj yim qhib thiab kaw qhov nyab xeeb).

Kauj Ruam 6: Yuav Ua Li Cas

Yuav Ua Li Cas Ua Haujlwm
Yuav Ua Li Cas Ua Haujlwm
Yuav Ua Li Cas Ua Haujlwm
Yuav Ua Li Cas Ua Haujlwm
Yuav Ua Li Cas Ua Haujlwm
Yuav Ua Li Cas Ua Haujlwm

1. Tso cov yuam sij sab hauv lub qhov (tawm hauv tsev).

2. Nias "*" txhawm rau tshem tus password, thiab nias "#" txhawm rau txheeb xyuas tus lej cim (LCD).

3. Yog tus passcode tsis raug, lub xauv yuav tsis qhib; yog tias tus lej passcode raug, lub xauv yuav qhib (servo).

4. Tshem tus yuam sij los ntawm kev nkag mus rau tus password kom raug (nkag mus hauv tsev).

Pom zoo: