Cov txheej txheem:

LEGO Arduino Sentry Turret: 9 Kauj Ruam
LEGO Arduino Sentry Turret: 9 Kauj Ruam

Video: LEGO Arduino Sentry Turret: 9 Kauj Ruam

Video: LEGO Arduino Sentry Turret: 9 Kauj Ruam
Video: There You Are 2024, Kaum ib hlis
Anonim
Image
Image
Soldering
Soldering

Cov lus qhia no yuav qhia koj ib qib zuj zus yuav ua li cas los tsim koj tus kheej (tsis ua kom tuag) xa tawm turret tawm ntawm LEGO daim, Arduino UNO Board, Bricktronics Shield, ob peb xov hlau thiab me ntsis txhuas. Nws muaj peev xwm ua haujlwm tsis siv neeg thiab chaw taws teeb tswj los ntawm kev siv IR sensor thiab chaw taws teeb.

Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau

Cov Cuab Yeej:

- 1x 220-240V soldering hlau

- 1x soldering hlau sawv

- 1x ntim ntawm cov kab laug sab laug

- 1x coil ntawm cov xaim hlau xaim

- 1x coil ntawm jumper hlau

- 1x hluav taws xob txiav

- 1x tsom iav tiv thaiv

Cov ntaub ntawv:

- 1x Arduino UNO pawg thawj coj saib

- 1x Bricktronics ntaub thaiv npog (Wayne & Layne)

- 1x 9-volt roj teeb

- 1x 9-volt tus tuav lub roj teeb

- 1x V5 Bricktronics ntaub thaiv npog mounting phaj (muaj los ntawm Wayne & Layne)

- 1x luv luv 25cm NXT/EV3 cable

- 1x Sparkfun IR chaw taws teeb

- 1x P/N IR Receiver Sensor TSOP38238

- 1x solderless mini breadboard (47 x 35 x 10mm)

- 2x 35 cm NXT/EV3 flexi cable

- 3x NXT txuas cable

- 3x M3 txiv ntoo

- 4x 7 mm

- 4x 1 nti hlau standoff

LEGO qhov chaw:

Daim nplaub tshev uas muaj cov ntaub ntawv PDF thiab-j.webp

Cov mos txwv siv rau lub foob pob yog Bionicle Zamor Sphere, Bricklink ID 54821. Tag nrho 7 lub tog raj kheej yuav tsum tau sau lub foob pob hluav taws nrog cov ntawv xov xwm txuas nrog.

Kauj Ruam 2: Tsim Lub Hauv Paus

Lego Digital Designer cov ntaub ntawv ntawm kev tsim tuaj yeem rub tawm hauv qab no. Txhawm rau qhib nws, koj yuav xav tau qhov hloov tshiab kawg ntawm Lego Digital Designer uas tuaj yeem rub tawm ntawm

Kauj Ruam 3: Tsim Lub Pob Shooter

Lego Digital Designer cov ntaub ntawv ntawm kev tsim tuaj yeem rub tawm hauv qab no. Txhawm rau qhib nws, koj yuav xav tau qhov hloov tshiab kawg ntawm Lego Digital Designer uas tuaj yeem rub tawm ntawm

Thaum siv lub FEMATURE REMOTE CONTROL, tshem tawm ob qho "Technic Beam 4 x 0.5 Liftarm" Los ntawm Lub Koob Yees Duab Shooer Yog li nws tuaj yeem tig rov qab!

Kauj ruam 4: Soldering

1. Txiav tawm 3 tus kheej cov hlua ntawm jumper hlau nrog cov xaim txiav. Txhua txoj hlua yuav tsum tsawg dua 20 centimeters.

2. Txiav ib nrab centimeter ntawm cov roj hmab ntawm ob sab ntawm cov hlua kom nthuav tawm cov khoom sib txuas. Ib qho piv txwv ntawm qhov kawg yuav tsum saib zoo li cas qhia saum toj no.

3. Ntxig ib qho ntawm qhov xaus ntawm txhua txoj hlua rau hauv peb lub qhov qhia los ntawm cov xub liab hauv thawj daim duab saum toj no. Muab cov kab no tso rau ntawm cov khoom siv uas nyob ib sab ntawm lawv qhia los ntawm cov xub xiav hauv daim duab thib ob saum toj no.

Kauj Ruam 5: Tso Tus Neeg Hlau Ua Ke

Muab Neeg Hlau Ua Ke Ua Ke
Muab Neeg Hlau Ua Ke Ua Ke
Muab Neeg Hlau Ua Ke Ua Ke
Muab Neeg Hlau Ua Ke Ua Ke
Muab Neeg Hlau Ua Ke Ua Ke
Muab Neeg Hlau Ua Ke Ua Ke

Txhua daim duab muaj tus lej nyob rau ntawm lub ces kaum sab saud uas sib raug rau cov hauv qab no:

1. Xaub lub roj teeb 9-volt sab hauv nws tus tuav mus rau hauv qab thaj tsam ntawm tus neeg hlau. Koj tuaj yeem ua qhov no los ntawm kev tshem tawm sab laug ntawm sab laug. Ua kom ntseeg tau tias cov xaim tau muab tso raws li qhia hauv daim duab kom nws tuaj yeem rub tawm thiab txuas nrog lub rooj tsav xwm lub zog hluav taws xob sab nraud ntsaws yam tsis muaj teeb meem.

2. Txuas lub pob tua phom los ntawm kab hauv qab thiab ntxig cov pob zeb tsaus nti "Technic Axle 4 nrog Nres" thiab 4 lub ntsej muag xiav "Technic Axle Pin", txhua tus txuas nrog "Technic Gear 40 Tooth", mus rau lub hauv paus NXT lub cev muaj zog.

3. Txuas Arduino UNO pawg thawj coj rau Bricktronics Shield Mounting phaj nrog 1-nti hlau sawv ntsug, 7 hli ntsia liaj qhov rooj thiab M3 txiv ntoo.

4. Txuas lub phaj txuas rau 5 tus pin xiav txuas nrog lub hauv paus xws li. Tom qab ntawd, tso "Technic Beam 3 x 5 Bent 90" thiab xim xim nyob rau sab saum toj ntawm tus pin kom lub phaj nyob hauv qhov chaw.

5. Xaub rau hauv daim ntawv qhia zaub mov los ntawm qhov sib txawv ntawm Bricktronics Shield thiab xim xim nyob tom qab ntawm tus neeg hlau.

Kauj Ruam 6: Txuas kab

Thaiv
Thaiv

Bricktronics Shield thiab NXT Hlau:

Lub Cev Muaj Zog 1 = Lub tshuab ntaus pob

Tsav 2 = Lub cev muaj zog

Sensor 1 = Sab tes xis kov sensor

Sensor 2 = Sab laug tes kov sensor

Sensor 3 = Xim xim

Sensor 4 = Ball shooter IR sensor

Daim duab qhia chaw rau kev tso cov xaim hluav taws xob txuas thiab 3 tus pin IR sensor tau qhia saum toj no. Cov xub qhia qhov twg txhua lub xaim tau ntxig rau hauv daim phiaj.

Kauj ruam 7: Programming

Daim nplaub tshev uas muaj cov ntaub ntawv Arduino rau ob qho tib si tsis siv neeg thiab chaw taws teeb tswj tau tuaj yeem rub tawm hauv qab no.

Yog tias koj siv Sparkfun IR chaw taws teeb, khawm HEX cov lej yog:

Tawm = 0x10EFD827

UA = 0x10EFF807

IB = 0x10EF7887

C = 0x10EF58A7

Up = 0x10EFA05F

Luas = 0x10EF10EF

Txoj cai = 0x10EF807F

Down = 0x10EF00FF

Center (lub voj voog) = 0x10EF20DF

Kauj Ruam 8: Yam Yuav Tsum Nco

- Tus neeg tua pob tsuas muaj peev xwm tig tau 90 degrees sab laug thiab sab xis los ntawm qhov chaw nws tus kheej.

- Yog tias tus neeg tua pob tsis tsoo lub ntsej muag lub ntsej muag, koj yuav xav txhawb lub zog lub hauv paus lub zog lossis hloov lub pob ntawm tus neeg tua hluav taws.

- Tus ntaus pob yuav tsum tau hloov kho tus kheej los ntawm kev txav nws nce lossis nqis.

- Tus neeg hlau tsis tuaj yeem ua haujlwm hauv qhov tsaus ntuj lossis lwm qhov chaw tsaus vim qhov xim xim. Qhov no tuaj yeem hla dhau los ntawm kev ua kom pom lub ntsej muag ci ci ncaj qha ntawm lub xim xim.

- Yog tias koj tau koom ua ke cov kev tswj chaw taws teeb, koj yuav tsum tshem tawm ib ntus xaim xaim xaim txuas ntawm digital 0 los ntawm lub khob cij me me kom tso ib qho haujlwm.

- Tus neeg ncaws pob qee zaum tuaj yeem daig, tab sis thaum kawg yuav tua tom qab ob peb zaug. Qhov no yuav tshwm sim vim tias lub pob raug kaw hauv cov ntawv xov xwm txuas lossis lub cav tsis muaj lub zog txaus.

Kauj ruam 9: Ua tiav

Ua tiav!
Ua tiav!

Nrog koj zoo siab! Koj tau ua tiav tsim koj tus kheej cov tub rog xa xov!

Yog tias koj muaj lus nug lossis lus qhia, xav tawm hauv lawv hauv cov lus!

Pom zoo: