Cov txheej txheem:

Crabot: 6 Kauj Ruam (nrog Duab)
Crabot: 6 Kauj Ruam (nrog Duab)

Video: Crabot: 6 Kauj Ruam (nrog Duab)

Video: Crabot: 6 Kauj Ruam (nrog Duab)
Video: Dab neeg tu siab-Sib txeeb ntsuag poj niam 11/6/2023 2024, Kaum ib hlis
Anonim
Crabot
Crabot

Crabot yog txoj haujlwm tsim vaj tsev rau cov tib neeg uas xav kawm paub ntau ntxiv txog kev tsim hluav taws xob, Arduino coding, thiab neeg hlau. Nws tseem yog lub ntsiab lus rau kev sim ntxiv, txhim kho, thiab lom zem!

Kauj ruam 1: Tsim MBot

Tsim MBot
Tsim MBot

Thawj kauj ruam yog tsim mBot. Cov khoom siv tuaj yeem yuav ntawm Makeblock lub vev xaib, lossis tuaj yeem pom ntawm Amazon. Txog qhov haujlwm no, tawm ntawm qhov muab ultrasonic sensor, tab sis yog tias koj xav tsim tag nrho cov neeg hlau ua ntej thiab ua si ib puag ncig nrog nws, mus tom ntej! Nov yog qhov kuv tau ua! Yog xav paub ntxiv ntawm mBot mus ntsib lawv lub vev xaib.

Kauj Ruam 2: 3D Sau Txhua Daim

Download tau stl. cov ntaub ntawv ntawm tus claw thiab tus tuav servo, thiab xaiv cov xim filament rau txhua tus. Kuv tus claw yog xiav thiab kuv tus tuav yog dub, tab sis lawv tuaj yeem yog xim uas koj xav tau tiag tiag! Ua tus account Tinkercad yog tias koj tsis muaj, vim koj yuav xav tau yog tias koj yuav xav kho cov ntaub ntawv.

Qhib cov ntaub ntawv hauv Makerbot program, lossis lwm yam kev luam ntawv 3D koj muaj, thiab pib luam ntawv! Nws yuav tsum tsis siv sijhawm ntev dua ob teev, tag nrho.

*** Cov ntawv luam tawm tau tsim los ntawm kev tsim ua ntej los ntawm Jon Goitia (ua tsaug ntau ntau!), Leej twg ua tau yooj yim tshaj plaws-rau-ua tus claw kom tuav tau Red Bull. Kuv coj nws tus qauv thiab ua rau tus claw loj dua, tab sis yog tias koj xav kom koj tus neeg hlau tuav lub peev xwm ntawm Red Bull, mus tom ntej thiab siv nws tsim! (Kuj txheeb xyuas nws tus neeg hlau uas nws tau ua los ntawm kos, uas zoo nkauj heev!)

Kauj Ruam 3: Sib sau Claw

Sib dhos Claw
Sib dhos Claw

Ntsia tus claw mus rau servo siv cov ntsia hlau me thiab txhawb nqa.

** Tsis txhob siv cov ntsia hlau loj! Lawv tuaj yeem tsoo koj lub servo! **

Kuv siv cov ntsia liaj qhov rooj thiab tshuab ntxhua khaub ncaws raws li kev txhawb nqa tab sis koj tuaj yeem muaj tswv yim! Muaj ntau txoj hauv kev (tej zaum txoj hauv kev zoo dua) txhawm rau txhawm rau txhawm rau txhawm rau.

Kauj Ruam 4: Arduino Txuas: Servo thiab Ultrasonic Sensor

Arduino thaiv: Servo thiab Ultrasonic Sensor
Arduino thaiv: Servo thiab Ultrasonic Sensor
Arduino thaiv: Servo thiab Ultrasonic Sensor
Arduino thaiv: Servo thiab Ultrasonic Sensor
Arduino thaiv: Servo thiab Ultrasonic Sensor
Arduino thaiv: Servo thiab Ultrasonic Sensor

Kuv yuav kuv cov khoom siv Arduino Uno ntawm Amazon, tab sis cov khoom siv tsis suav nrog lub ntsuas hluav taws xob ultrasonic, yog li koj yuav tsum yuav qhov ntawd cais.

Txhawm rau teeb tsa cov thaiv koj yuav tsum xub tsim lub Circuit:

  • (Liab-- 5V rau +)
  • (Dub-- GND rau-)

Qhov no yuav ua kom lub zog tshuav ntawm lub khob cij thiab ua kom lub servo (claw) thiab lub ntsuas hluav taws xob ultrasonic ("qhov muag" ntawm tus neeg hlau) txuas nrog lub zog.

Txhawm rau txuas lub ultrasonic sensor:

  • (Luv Dub-- GND rau-)
  • (Dawb- Ncha mus rau 6)
  • (Ntsuab- Ua rau 5)
  • (Txiv kab ntxwv-- Vcc rau +)

Txhawm rau txuas servo:

  • (Dub-- rau-)
  • (Daj/Dawb- rau 2)
  • (Liab --- rau +)

** Cov xim ntawm cov xov hlau tsis muaj teeb meem ntau, tab sis feem ntau tib neeg lo ua GND dub thiab 5V liab. Tus so ntawm cov xov hlau tuaj yeem yog xim. **

Kauj ruam 5: Upload Code

Rub tawm Txoj Cai
Rub tawm Txoj Cai

Txuas Arduino Uno rau lub khoos phis tawj thiab rub tawm Arduino software. Thaum koj tau ua tiav qhov no, theej thiab muab cov cai tso rau hauv qhov program:

Nov yog txoj cai.

Thaum lub ntsuas hluav taws xob ultrasonic pom cov khoom 15 cm deb, nws qhib lub claw, tom qab ntawd kaw thiab tos txog 10 vib nas this, tom qab ntawd qhib thiab kaw dua. Cov lej no tuaj yeem hloov pauv hauv cov cai.

Kauj Ruam 6: Muaj Kev Lom Zem

Muaj Kev Lom Zem!
Muaj Kev Lom Zem!

Kauj ruam kawg yog kom muaj kev lom zem nrog nws!

Raws li qhov no yog kuv thawj qhov haujlwm tsim vaj tsev, tus qauv nyob deb ntawm qhov zoo tshaj plaws thiab tuaj yeem siv qhov txiaj ntsig tseem ceeb ntawm kev txhim kho. Txawm li cas los xij, nws yog qhov nyuaj uas ua rau nws lom zem thiab nthuav!

Yam los sim nrog tus neeg hlau no:

  • Sim ua kom cov neeg hlau nrog cov khoom thiab tos kom txog thaum claw qhib. Thaum nws ua tiav, siv cov chaw taws teeb tswj kom tsav nws mus thiab ntes cov khoom! Lob nws, Crabot!
  • Siv cov kab hauv qab teeb tsa ntawm mBot thiab sib koom ua ke txhawm rau txhawm rau nqa ib qho khoom thaum nyob ntawm chav kawm!
  • Sim hloov cov cai kom Crabot tuav cov khoom ntev dua lossis rub lawv sai dua!

Yog tias koj xav pom kuv cov txheej txheem los rau txoj haujlwm no, mus ntsib kuv nplooj ntawv google site.

Vam tias koj ua!

Pom zoo: