Cov txheej txheem:

BAAAA ---- BOT: 3 Kauj Ruam (nrog Duab)
BAAAA ---- BOT: 3 Kauj Ruam (nrog Duab)

Video: BAAAA ---- BOT: 3 Kauj Ruam (nrog Duab)

Video: BAAAA ---- BOT: 3 Kauj Ruam (nrog Duab)
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim
BAAAA ---- BOT tau
BAAAA ---- BOT tau
BAAAA ---- BOT tau
BAAAA ---- BOT tau

Nyob zoo! Nov yog cov lus qhia ntawm kev ua kom muaj txiaj ntsig ib nrab, twv yuav raug hu ntxim hlub yaj zoo li boe bot nrog ua haujlwm tsoo. Cov lus qhia no yuav ua haujlwm rau koj los ntawm cov txheej txheem ntawm kev ua lub bumpers, muab tag nrho cov cai rau koj thiab qhia me me ntawm txhua qhov zoo nkauj zoo nkauj!

Kauj ruam 1: Txoj Cai

Txoj Cai!
Txoj Cai!

Yog li cov cai yooj yim heev thiab ua siab ncaj yuav tsis coj koj ntau dua 2 teev kom nkag siab thiab nkag siab kom ua nws ntawm koj tus kheej. Tab sis! Rau cov uas tsuas yog xav pom cov cai thiab theej thiab muab nws tso rau hauv qhov yooj yim stamp editor program tom ntej no mus

Txoj Cai:

'********************************************************** *********************** 'Lub Npe: Luca DeFilippis

'Lub Npe - BoeBump.bs2

'Hnub tim - 28 Kaum Ib Hlis 2017

'Nqe lus piav qhia' Tsim lub cev tsoo uas ua rau muaj lus txib thaum nws tsoo qee yam 'kom tshem Boe Bot kom deb ntawm qhov teeb meem.

'{$ STAMP BS2}' {$ PBASIC 2.5}

**** Cov lus hauv qab no tsuas yog cov ntaub ntawv hais txog leej twg tau ua nws thiab pib ua haujlwm zoo li *******

'************************************************************************

'Code rau Pib Pib Pib Nres

'txoj cai no ua rau bot nres lossis pib thaum pib dua yog nias = zoo kom paub tseeb tias bot tsis ua haujlwm tus lej ntawm kev rub tawm program

'************************************************************************

temp VAR Byte 'cia ib ntus RunStatus DATA $ 00' sib txawv khaws cia hauv ROM

NYEEM RunStatus, temp 'Nyeem qhov sib txawv ntawm ROM temp = ~ temp' thim tus nqi 0 TO 1 LOS YOG 1 TO 0 WRITE RunStatus, temp 'Sau qhov sib txawv rov qab mus rau ROM YOG (temp> 0) THIAB KAWG' Txheeb xyuas yog tias tus nqi yog 1 'YOG Yog li xaus qhov program

'************************************************************************

'Pins Teeb

'************************************************************************

LMotor PIN 13 RMotor PIN 12

'************************************************************************

'Qhov teeb tsa tas li

'************************************************************************

LStop CON 750 RStop CON 750

'************************************************************************

'Txawv

'************************************************************************

X VAR Lo lus

'************************************************************************

'Txoj Haujlwm Tseem Ceeb

'************************************************************************

Ua

HIGH 1 'Qhib cathodes

Siab 2

Siab 3

QHOV 9

HIGH 10

HLO 11

DEBUG? IB 14,? IB 4, CR

YOG (IN14 = 1) THIAB (IN4 = 1) THIAB 'Tsis muaj kev sib cuag ntawm lub pob tw, sub Forward

DEBUG "Forward", CR 'debug kom pom dab tsi txav chaw hais kom ua

QAUV 1

LOW 2 'Qhib cathodes thiab nyem liab thiab xiav

LAWV 9

QHOV 10

GOSUB Forward

ELSEIF (IN14 = 0) THIAB (IN4 = 0) THIAB 'Sib cuag nrog ob lub foob pob, sub ObBump = thim rov qab mus rau sab xis

DEBUG "BothBump", CR

LOW 1 'ncua ntev ntawm ob lub teeb ntsuab

QAUV 3

LAWV 9

LOJ 11

GOSUB BothBump

ELSEIF (IN14 = 0) THIAB (IN4 = 1) THIAB 'Tiv tauj nrog lub nraub qaum sab laug, sub BumpRight = thim rov qab mus rau sab xis

DEBUG "BumpRight", CR

LOW 9 'txoj cai teeb yuav mus xiav sab laug yuav mus ntsuab

LOJ 11

TABSIS 200

GOSUB BumpRight

ELSEIF (IN14 = 1) THIAB (IN4 = 0) THIAB 'Tiv tauj nrog lub nraub qaum sab xis, sub BumpLeft = thim rov qab mus rau sab laug

DEBUG "BumpLeft", CR

LOW 1 'sab laug lub teeb yuav xiav txoj cai yuav mus ntsuab

QAUV 3

TABSIS 200

GOSUB BumpLeft

ENDIF

LOOP

Xaus 'Qhov Kev Pab Cuam Ua Ntej Ua Ntej Cov Txheej Txheem khiav los ntawm kev sib tsoo

'************************************************************************

'Cov txheej txheem

'************************************************************************

Forward: 'Forward rau 25 cm

'FREQOUT 6, 200, 1600' yeem xaiv cov tub ceev xwm lub tswb nrov rau ceeb toom e siab thiab e tiaj, qhov no ua rau qeeb qeeb thiab nyob ntsiag to

FREQOUT 6, 100, 800

Rau X = 1 txog 500

PULSOUT RMotor, 700

PULSOUT LMotor, 850

NQE

PAUV 20

Rov qab

'****************************************************

'Txoj cai kom thim rov qab thiab tig thaum ob lub pob tw raug tsoo

'****************************************************

Ob Lub Pob: 'REVERSE 20cm

Rau X = 1 txog 150

PULSOUT RMotor, 850

PULSOUT LMotor, 650

NQE

TABSIS 200

RAU X = 1 txog 200 'Qhib Sab laug 60 degrees

PULSOUT RMotor, 650

PULSOUT LMotor, 760

NQE

PAUV 20

Rov qab

'****************************************************

'Txoj cai kom thim rov qab thiab tig sab laug thaum txoj cai bumper raug tsoo

'****************************************************

BumpLeft: 'REVERSE 20cm

Rau X = 1 txog 150

PULSOUT RMotor, 850

PULSOUT LMotor, 650

NQE

TABSIS 200

RAU X = 1 txog 200 'Tig Txoj Cai 45 degrees

PULSOUT RMotor, 740

PULSOUT LMotor, 850

NQE

PAUV 20

Rov qab

'****************************************************

'Txoj cai kom thim rov qab thiab tig sab laug thaum txoj cai bumper raug tsoo

'****************************************************

BumpRight: 'REVERSE 20cm

Rau X = 1 txog 150

PULSOUT RMotor, 850

PULSOUT LMotor, 650

NQE

TABSIS 200

RAU X = 1 txog 200 'Qhib Sab laug 60 degrees

PULSOUT RMotor, 650

PULSOUT LMotor, 760

NQE

PAUV 20

Rov qab

'********************************************************

'Xaus Cov Txheej Txheem Sub

'********************************************************

Cov lus hais hauv txoj cai yuav tsum muab tswv yim rau koj tias txhua yam ua haujlwm li cas thiab vim li cas qee cov cai muaj nyob tab sis ntawm no mus piav qhia luv luv lawm

Yog li txoj hauv kev uas txoj cai no ua haujlwm zoo li no. Tus bot yuav khiav lub voj kab ntawm kev txheeb xyuas cov khoom nkag ntawm lub pob tw uas ua zoo li cov nyees khawm. Yog li thaum twg tsis muaj kev tshawb nrhiav (1, 1) cov txheej txheem xa mus tom ntej yuav khiav thiab tus bot yuav mus tom ntej. Lub tswv yim zoo ib yam no ua haujlwm nrog seb puas muaj sab laug, sab xis, lossis txawm tias pom ob lub bumper

Cov cathodes siv cov lus txib siab thiab qis kom pom lub teeb pom kev raws cov tswv yim los ntawm lub bumper. Lawv yuav tsum nyem xiav thiab liab zoo li lub tsheb tub ceev xwm thaum tsis tau tshawb pom qhov chaw thiab lawv yuav tsum tig lub teeb nraub qaum sab xis lossis sab xis kom tig ntsuab yog hais tias lub bumper muaj qhov pom. Cov txheej txheem hauv qab qhia tus bot kom rov qab thiab tig sab xis lossis sab laug raws li kev ntaus kom tsis txhob muaj teeb meem uas nws tau ntsib nrog. Qhov no ua haujlwm tau zoo tshwj xeeb hauv mazes vim tias tig yog lub ntsiab lus me me uas tus bot yuav tau ceev faj kom tsis txhob tig ntau dhau thiab tawm ntawm qhov tshawb

Txuas nrog rau cov txheej txheem xa mus rau tom ntej yog cov lus txib ua haujlwm pub rau lub suab kom xa mus thaum mus rau tom ntej. Cov zaus uas tau muab yuav tsum zoo li lub suab siren tub ceev xwm, yog li ntxiv rau qhov zoo nkauj ntawm kev muaj tub ceev xwm teeb

Nws yog tiag tiag! Tsis muaj dab tsi vwm dhau los nkag siab, Kuv vam tias qhov no muaj txiaj ntsig thiab ncaj nraim

Kauj ruam 2: Kev Tsim Kho

Kev Tsim Kho!
Kev Tsim Kho!
Kev Tsim Kho!
Kev Tsim Kho!
Kev Tsim Kho!
Kev Tsim Kho!

Koj yuav xav tau dab tsi:

61k tiv

2 10k resistors

23 xim cathodes

1 tus neeg hais lus (xaiv tau)

ib qho me me loj capacitor (tseem xaiv tau (rau tus hais lus!))

Ntau ntawm cov xov hlau

2 popsicle sticks

Aluminium ntawv ci

Cov ntawv me me

Kub nplaum

Daim kab xev

Cov Bumpers

Ok yog li cia pib nrog lub bumpers! Txhawm rau ua rau lawv koj yuav tsum tau siv cov ntawv ci txhuas, duab los qhia, xaim thiab kua nplaum kub los npog nws rau ntawm lub rooj tsavxwm.

1. Txiav tawm 2 daim duab duab plaub uas zoo ib yam li duab plaub thiab muab lawv tso rau hauv ib nrab

2. Kub kua nplaum 2 daim rau tib daim popsicle stick thiab tom qab ntawd kub kua nplaum rau lwm sab ntawm daim ntawv los rau lwm qhov sib cais popsicle lo.

3. Tam sim no koj yuav tsum tau quav txhuas cov ntawv ci rau hauv ib qho plaub fab uas loj txaus kom haum 2 ntawm txhua daim duab los qhia, muab daim ntawv ci rau ntawm daim ntawv los ntawm cov ntawv, lossis lwm tus neeg xyuas pib. Kuv tau siv cov ntaub qhwv.

4. Tam sim no nws yog ib qho tseem ceeb kom txuas 2 xov hlau rau txhua daim duab los qhia thiab xyuas kom lawv muaj kev sib txuas ruaj ntseg rau cov ntawv txhuas

Lawv yuav tsum saib qee yam zoo li thawj daim duab

5. Thaum kawg tam sim no koj yuav tsum txuas 4 xov hlau rau ntawm lub rooj tsavxwm. Ua li ntawd los ntawm kev txuas 2 rau Vss thiab ib qho mus rau txhua qhov chaw hauv kab thib 6, thiab ib qho nyob txhua qhov hauv kab 14.

Txhawm rau txuas lub pob tw rau lub bot, koj tuaj yeem ua qhov no ntau txoj hauv kev, Kuv ua nws los ntawm kev kaw cov bots pem hauv ntej thiab gluing tus pas rau daim kab xev ntawd.

Thiab qhov ntawd yog nws nrog kev sib dhos cov bumpers! Tam sim no yog teeb meem ntawm kev siv lawv tiag tiag!

Kev Txuas Txhua Yam

Tam sim no ntu tom ntej no nyuaj me ntsis los piav qhia tab sis kuv yuav sim kuv qhov zoo tshaj plaws kom ua tau nrog kev pab pom loj heev. Siv daim duab 3, 4, 5 txhawm rau ntsaws rau hauv cov khoom raws li koj pom lawv.

Yog li koj yuav xav ntxig cov cathodes ntawm sab xis ntawm lub rooj tsavxwm thiab ua raws 3 1k resistors rau txhua cathode uas yuav tshem tawm koj 6 1k resistors.

Thaum qhov no ua tiav koj yuav xav xaim av lossis vss mus rau tus lej thib 2 ntawm txhua tus cathode, xaim ntev tshaj plaws.

Qhov ntawd ua tiav cov cathodes, yog li qhov yuav tsum ua tom ntej yog txuas koj li 10k resistors los ntawm vdd mus rau qhov chaw koj tso 2 lub xov tooj cua txuas rau ntawm lub rooj tsavxwm.

Tom ntej no dhau los siv xov hlau thiab txuas tus pin 6 rau txoj cai bumper mus rau txoj cai tshaj 10k tus tiv thaiv thiab cov hlau thaiv.

Ua raws cov kauj ruam dhau los rau sab laug feem ntau 10k resistor.

Cov kauj ruam tom ntej no yog xaiv tau rau tus hais lus thiab yog txhawm rau txuas koj lub peev xwm me me rau tus pin 7 thiab dhau ntawm pawg thawj coj.

Tom qab ntawd koj yuav xav txuas tus neeg hais lus tsis zoo kawg rau lub capacitor thiab thaum kawg txuas qhov kawg mus rau VSS.

Qhov no yuav tsum xaus qhov thaiv thiab nco ntsoov siv daim duab 3, 4, 5 kom tau txais kev pab ntau ntxiv!

Kauj Ruam 3: THE BAAAAAA ------ Feature

Nrog rau muaj cov tub ceev xwm teeb thiab xaiv lub suab nrov tub ceev xwm. Koj BoeBot yuav yog huab tais ntawm txhua lwm tus los ntawm kev hnav khaub ncaws zoo li yaj!

Pom hauv lub npe duab, Kuv ua rau kuv zoo li ib yam!

Ua qhov no yog qhov yooj yim heev, txhua yam koj xav tau yog:

Puff npas

Daim npog qhov ncauj

1. Yooj yim nteg cov kab xev thiab ua kom ntseeg tau tias lawv txhua tus muaj kev sib txuas nrog cov nplaum nyob rau ntawm lawv kom lo rau cov pob puff

2. Txheej ntawm cov khoom nplaum nplaum.

3. Qhov no yog ib feem thaum koj txuas lub tsho plaub plaub rau lub bot, koj tuaj yeem ua qhov no ntau txoj hauv kev

Ntxiv daim kab xev rov qab mus rau qhov kawg ntawm qhov fluff thiab qhwv daim kab xev nyob ib ncig ntawm tus bot zoo li hlua

LOSSIS Daim kab xev hauv qab ntawm tus bot thiab kub kua nplaum qhov xoob xoob ntawm daim kab xev rau kab xev hauv qab ntawm tus bot

Kuv tau ua thawj qhov kev xaiv kom nkag tau sai dua thiab yooj yim dua rau pawg thawj coj yog tias muaj qee yam tsis raug!

Thiab qhov ntawd yog nws! Cia siab tias tam sim no koj Boe Bot yuav yog qhov zoo tshaj plaws hauv lub nroog caij nkoj nrog nws cov yam ntxwv zoo.