Cov txheej txheem:

Yuav Ua Li Cas Ntxiv Bumpers rau SUMOBOT: 9 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Ntxiv Bumpers rau SUMOBOT: 9 Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Ntxiv Bumpers rau SUMOBOT: 9 Kauj Ruam (nrog Duab)

Video: Yuav Ua Li Cas Ntxiv Bumpers rau SUMOBOT: 9 Kauj Ruam (nrog Duab)
Video: noj peb caug xeev khuam 2016 xyoo no part 5 2024, Kaum ib hlis
Anonim
Yuav Ua Li Cas Ntxiv Bumpers rau SUMOBOT
Yuav Ua Li Cas Ntxiv Bumpers rau SUMOBOT

qhov no ua li cas yog tias koj tuaj yeem ua kom yog li ntawd yog tias nws tsoo ib qho ntawm lub foob pob rau ntawm tus neeg hlau, nws yuav thim rov qab thiab tig los ntawm qhov khoom.

Kauj Ruam 1: Tau Koj Cov Khoom

yam uas koj xav tau los ua qhov no yog 3 Popsicle sticks, duab los qhia, kua nplaum kub, plaub xaim, thiab tinfoil.

cov khoom siv uas koj tuaj yeem siv tau yog daim kab xev npog yog tias koj xav tshem nws tom qab

Kauj Ruam 2: Txiav Popsicle's Up

rau qhov no koj coj Popsicle thiab txiav nws ib nrab nrog qee cov hlau txiav, lossis koj tuaj yeem sim ua kom tawg nws hauv ib nrab uas yuav tsis zoo li qub.

Kauj Ruam 3: Kuaj Ib Qho Cardboard

Kuaj Ib Qho Cardboard
Kuaj Ib Qho Cardboard

yog tias koj muaj daim kab xev qhwv, qhwv nws ib ncig ntawm tus ncej me, tom qab ntawd lo ib daim me me ntawm cov duab los qhia rau ob tug ncej.

Kauj Ruam 4: Kua nplaum Tinfoil ntawm Popsicle

Glue Tinfoil ntawm Popsicle
Glue Tinfoil ntawm Popsicle
Glue Tinfoil ntawm Popsicle
Glue Tinfoil ntawm Popsicle

qhwv ib co tinfoil ntawm ob lub xov hlau thiab lo rau ntawm qhov kawg ntawm Popsicle loj, thiab xyuas kom cov xov hlau txuas nrog hauv av.

ua tib yam nrog lwm tus popsicle thiab txuas nws nrog tus tiv thaiv

tam sim no txuas thawj popsicle thiab cov duab los qhia uas tau lo rau ntawm tus ncej.

Kauj Ruam 5: Glue Cardboard

Nplaum Cardboard
Nplaum Cardboard

coj ib daim me me ntawm daim duab los qhia thiab quav nws, ua ib sab ntawm nws mus rau nruab nrab ntawm ib qho popsicle, tom qab ntawd lwm qhov. tom qab ntawd lo cov kua nplaum uas tau tawg ib nrab ntawm qhov xaus ntawm 2 Popsicle, tom qab ntawd tom qab ntawd cov ntawv nplaum rau ntawm qhov kawg ntawm cov popsicles me

tom qab ntawd xyuas kom tseeb tias cov tinfoil ntawm lub popsicle thib ob tau ntsib thawj zaug kom thaum nws kov, nws ua zoo li lub pob tw thiab txav mus.

Kauj Ruam 6: (Tsis teb los tau) Txiav Cov Hluav Taws Xob kom teeb tsa lawv

(Tsis teb los tau) Txiav Cov Hluav Taws Xob los teeb tsa lawv
(Tsis teb los tau) Txiav Cov Hluav Taws Xob los teeb tsa lawv

yog tias koj xav tau, koj tuaj yeem txiav cov xov hlau kom ua rau lawv me dua thiab kom lawv saib zoo nkauj dua, koj tuaj yeem txiav lawv nrog cov xaim txiav rau qhov koj nyiam.

Kauj Ruam 7: Txoj Cai Nws Tus Kheej

'{$ STAMP BS2}

'{$ PBASIC 2.5}

temp VAR Byte RunStatus DATA $ 00

NYEEM RunStatus, temp temp = ~ temp WRITE RunStatus, temp IF (temp> 0) THIAB KAWG '-------------- I/O Pins ----------- ------------- LMotor PIN 13 RMotor PIN 12 '-------------- Constants --------------- ------ LStop CON 750 RStop CON 750 '-------------- Variables --------------------- X VAR Lo Lus Hloov VAR Lo Lus '-------------- Txoj Haujlwm Tseem Ceeb -----------------------

Ua

GOSUB Forward

YOG (IN9 = 0) THIAB (IN10 = 0) THIAB HIGH 14 HIGH 3 GOSUB ReverseTurn PAUSE 50 LOW 14 LOW 3 ENDIF

YOG (IN9 = 0) THIAB HIGH 14 GOSUB ReverseTurnRight PAUSE 50 LOW 14 ENDIF YOG (IN10 = 0) THIAB HIGH 3 GOSUB ReverseTurnLeft PAUSE 50 LOW 3 ENDIF LOOP

KAWG

'********************************************************** ******* 'cov cai hauv qab no yog siv rau lub foob pob tawg' ********************************* **************************

'------------------------------------------------------- --- 'qhov no yog kom lub bumper yuav txav mus tom ntej' ------------------------------------ ---------------- Forward: FOR X = 0 To 25 'Forward for a little PULSOUT LMotor, 850 PULSOUT RMotor, 650 PAUSE 20 NEXT RETURN

'------------------------------------------------------- --- 'Qhov no yog thaum ob lub pob tw raug tsoo' -------------------------------------- -------------- Rov Qab: Rau X = 0 txog 25 'REVERSE 20cm PULSOUT LMotor, 850 PULSOUT RMotor, 650 PAUSE 20 NEXT FOR X = 0 txog 25' 650 PULSOUT RMotor, 850 PAUSE 20 NEXT FOR x = 0 txog 50 PULSOUT LMotor, 850 PULSOUT RMotor, 850 PAUSE 20 NEXT RETURN

'------------------------------------------------------- --- 'txoj cai no yog siv los thim rov qab thiab tig laug thaum txoj cai bumper raug tsoo' ------------------------------ ---------------------- ReverseTurnLeft: RAU X = 0 txog 25 'REVERSE 20cm PULSOUT LMotor, 850 PULSOUT RMotor, 650

PAUSE 20 NEXT rau X = 0 txog 25 'rov qab PULSOUT LMotor, 650 PULSOUT RMotor, 850 PAUSE 20 NEXT rau X = 0 txog 50' Tig Txoj Cai 45 degrees PULSOUT LMotor, LStop PULSOUT RMotor, 850 PAUSE 20 NEXT rov qab

'------------------------------------------------------- --- 'txoj cai no siv REVERSE THIAB tig sab xis thaum lub nraub qaum raug tsoo' ------------------------------ ---------------------- REVERSETurnRight: Rau X = 0 txog 25 'REVERSE 20cm PULSOUT LMotor, 850 PULSOUT RMotor, 650 PAUSE 20 NEXT FOR X = 0 txog 25 'rov qab PULSOUT LMotor, 650 PULSOUT RMotor, 850 PAUSE 20 NEXT RAU X = 0 txog 50' Qhib Sab laug 45 degrees PULSOUT LMotor, 650 PULSOUT RMotor, RStop PAUSE 20 NEXT RETURN

'********************************************************** ******* 'Xaus cov txheej txheem' ************************************** **************************

Kauj Ruam 8: Piav Qhia Txoj Cai

qhov chaws ntawd yog dab tsi, yog qhov nws qhia pom tias tus neeg hlau yuav ua raws li lub foob pob tawg, piv txwv li: tus lej "reverseturnleft" yog thaum lub tsoo tsoo raug tsoo thiab ua rau nws thim rov qab thiab tig laug.

"reverseturnright" yog thaum lub nraub qaum raug tsoo thiab ua rau nws thim rov qab thiab tig sab xis

"reverseboth" yog thaum ob lub bumpers raug tsoo thiab ua rau nws thim rov qab thiab tig mus rau lwm txoj kev.

cov ntsiab lus "qis" thiab "siab" tsuas yog muaj txiaj ntsig yog tias koj siv leds hauv koj tus neeg hlau, cov ntawd txhais tau tias qee lub teeb yuav qis, lossis mus siab.

Kauj Ruam 9: Cov Khoom Kawg

Khoom Kawg
Khoom Kawg
Khoom Kawg
Khoom Kawg

qhov khoom kawg yuav tsum saib me ntsis zoo li daim duab hauv qab no

Pom zoo: