Cov txheej txheem:

Obstacle-Zam Txim Minecraft Creeper Robot: 7 Kauj Ruam
Obstacle-Zam Txim Minecraft Creeper Robot: 7 Kauj Ruam

Video: Obstacle-Zam Txim Minecraft Creeper Robot: 7 Kauj Ruam

Video: Obstacle-Zam Txim Minecraft Creeper Robot: 7 Kauj Ruam
Video: Идеи YouTube видео для онлайн и местного бизнеса SEO-маркет... 2024, Hlis ntuj nqeg
Anonim
Obstacle-Zam Txim Minecraft Creeper Robot
Obstacle-Zam Txim Minecraft Creeper Robot

Tus neeg hlau no tau tsim los nkag rau Minecraft kev sib tw, Epilog Challenge IX thiab thawj zaug sau kev sib tw. Nws yog raws li ib ntawm cov neeg muaj suab npe tshaj Minecraft: Creeper. Tus neeg hlau no siv lub tshuab luam ntawv 3d, yog li koj yuav tsum tau nkag mus rau lub tshuab luam ntawv 3d los tsim nws.

** Kuv tus tub hnub nyoog 12 xyoos tsim tus neeg hlau thiab sib sau nws thiab sau tus nab npawb nab npawb, kuv tsuas yog pab me ntsis nrog kev khawb, nws kuj tau sau cov lus qhia no, tab sis nws yuav tsum siv kuv tus lej nyiaj vim tias muaj hnub nyoog tsawg kawg nkaus uas xav tau ntawm kev sib tw, yog li nws yog nws qhov project **.

Kauj Ruam 1: Nqi Khoom Siv (BOM)

Txhawm rau tsim tus neeg hlau no, koj yuav xav tau

-a ua tiav Raspberry Pi Zero teeb tsa (keyboard, nas, saib, tshiab teeb tsa ntawm raspbian, nkag tau internet) nrog cov pins soldered

-HC-SR04 Ultrasonic sensor

-2 2BYJ-48 stepper motors nrog ULN2003APG stepper lub cev muaj zog tsav tsheb

-11KΩ resistor

-12KΩ resistor

-Female thiab Txiv neej jumper xov hlau

-3d luam ntawv plhaub pluaj (cov ntaub ntawv hauv cov kauj ruam no)

-Hot Glue Gun

-qee tus pin ntxiv

-soldering hlau

-tiv thaiv

-roj teeb pob (nyiam dua squid)

-crazy lub log

Kauj Ruam 2: Ua Lub Tsheb Loj

Ua Lub Tsheb Npav
Ua Lub Tsheb Npav

Qhov no yog qhov yooj yim, txiav me ntsis ntawm protoboard (3 squares min) thiab muab ib co pins rau nws thiab nruab nrab ntawm lawv, tsho lub cheeb tsam soldered nrog kua nplaum kub kom tsis txhob luv. Koj yuav xav tau peb ntawm cov no los hloov lub khob cij thiab ua rau cov khoom siv hluav taws xob ntau dua.

Kauj ruam 3: Electronics

Electronics
Electronics

Yog tias koj tsis tuaj yeem pom tus tiv thaiv 'xim xim, sab laug resistor yog 2KΩ thiab sab xis yog 1KΩ. Thaum koj xav tau siv daim ntawv qhia zaub mov, siv lub npav fais fab hloov.

Kauj Ruam 4: Txhim Kho Cov Khoom Siv Hluav Taws Xob rau hauv Plhaub

Mounting Electronics rau hauv Plhaub
Mounting Electronics rau hauv Plhaub
Mounting Electronics rau hauv Plhaub
Mounting Electronics rau hauv Plhaub

Feem ntau, lub taub hau nyem rau hauv lub cev, tab sis yog nws tsis ua, koj yuav tsum tau xuab zeb me ntsis rau sab saum toj ntawm lub cev kom txog thaum lub taub hau nyem. Lub cev tso rau hauv lub hauv paus, tab sis nws xoob, yog li muab cov kua nplaum kub los tuav nws hauv qhov chaw. Lub cev tau qhib rau Pi Zero usb thiab hdmi chaw nres nkoj. Ntawm no koj muaj kev npaj los tso 2 tus tsav tsheb tsav tsheb ua ke thiab txuag chaw, tsuas yog qhov koj yuav tsum tau ua yog muab lawv tso rau ntawm kab rov tav thiab kub-nplaum lawv rau hauv cov yas (yog tias koj muaj lub tshuab luam ntawv 3d yog ib qho ntawm cov no) luam tawm mus tsis zoo, koj tuaj yeem txiav nws tawm nrog lub cuab yeej dremmel). Txhawm rau muab Pi Zero nyob rau hauv qhov chaw, koj yuav tsum tau siv qee qhov thiab tso lawv los ntawm lub pcb qhov ntawm pizero. Kub kua nplaum lub ulstrasonic sensor rau lub qhov muag qhov (luam tawm ua ntej). Txhawm rau kom haum rau hauv lub tshuab hluav taws xob stepper koj yuav tsum tau laum qee qhov ntsia hlau (lub axis muaj cov ntawv luam tawm). Txhim kho lub log vwm rau sab nraub qaum ntawm lub hauv paus nrog cov tuav pcb kom txog thaum nws nyob ntawm qib log. Txhim kho squid nyob rau sab saum toj ntawm ib sab tom qab ntawm lub hauv paus.

Kauj ruam 5: Programming

Koj yuav tsum qhib qhov hais kom ua sai sai hauv Raspbian (rau theem no koj xav tau kev siv internet ntawm koj Pi Zero) thiab ntaus ntawv: sudo pip3 nruab gpiozero hcsr04sensor yog tias koj tsis muaj pip nruab nws nruab.

Kauj Ruam 6: Koj Ua Tiav lawm

Koj Tiav lawm!
Koj Tiav lawm!

Yog tias koj xav mob siab rau pi no rau qhov no thiab tsuas yog qhov no (koj cov ntaub ntawv raspbian). Qhib qhov hais kom ua sai sai thiab ntaus:

sudo nano thiab/rc.local

Tom ntej no, nqes mus los ntawm txoj cai thiab ntxiv kab hauv qab no ua ntej tawm 0:

python3 /home/pi/Directory_where_the_program_is_stored/CreeperBot_Ultrasonic.py &

Ntawm no nws yog hauv kev nqis tes ua….

Kauj Ruam 7: Creeperbot hauv Kev Ua

Image
Image

Nws txhais tau tias, nws yog ntsuab thiab nws tsis muaj teeb meem ultrasonically

Pom zoo: