12/30/12

NXT 2.0 Instructions Categories BASH C Celestial Lego Various

Contact Home Search

LEGO Mindstorms NXT 2.0 instructions
Instructions for building the Shooterbot, Robogator, Color Sorter, and Alpha Rex.

Table of contents
Introduction Programming the NXT with Linux Compiling an NXC program Shooterbot 1. Driving base Building guide 2. Color detection Building guide 3. Shooter Building guide 4. Locate objects Building guide Robogator 1. Jaws Building guide 2. Eyes Building guide 3. Legs Building guide 4. Tail Building guide Color Sorter 1. Dispenser Building guide 2. Color detector Building guide 3. Sorting tray Building guide 4. Color catapult Building guide Alpha Rex 1. Legs Building guide 2. Arms Building guide 3. Head Building guide 4. Color sensor Building guide

Programming guide Programming guide Programming guide Programming guide Programming guide Programming guide Programming guide Programming guide Programming guide Programming guide Programming guide Programming guide Programming guide Programming guide Programming guide Programming guide

Test guide Test guide Test guide Test guide Test guide Test guide Test guide Test guide Test guide Test guide Test guide Test guide Test guide Test guide Test guide Test guide

Introduction
The instructions for building the four main LEGO Mindstorms NXT 2.0 models are distributed only on software that does not support Linux. The instructions are reproduced here. Programming the NXT with Linux The accompanying programs supplied here are written in NXC. NXC is a simple C-like programming language supported by NBC. NBC allows you to write NXT programs and download them to the NXT. This configuration guide for NBC on Linux is useful. Compiling an NXC program A typical command to compile and download an NXC program by USB would be

nc- -=s flnm.x b d Sub ieaenc

Shooterbot
Can you build and program a Shooterbot to guard your room while you are away? 1. Driving base
Building guide
arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 1/237

12/30/12

NXT 2.0 Instructions

Can you build a Shooterbot to move forward and then move back again?

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

2/237

12/30/12

NXT 2.0 Instructions

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

3/237

12/30/12

NXT 2.0 Instructions

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

4/237

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 5/237 .co.12/30/12 NXT 2.

co.uk/lego/nxt_2_instructions/#robogator_jaws_program 6/237 .12/30/12 NXT 2.0 Instructions arbitrarycreations.

12/30/12 NXT 2.co.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 7/237 .

12/30/12

NXT 2.0 Instructions

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

8/237

12/30/12

NXT 2.0 Instructions

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

9/237

12/30/12

NXT 2.0 Instructions

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

10/237

12/30/12

NXT 2.0 Instructions

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

11/237

x / hoebt1nc / Mv fradadte rvre / oe owr n hn ees.12/30/12 NXT 2.5.uk/lego/nxt_2_instructions/#robogator_jaws_program } 12/237 .Wi (00. ne OTB 7) at 20) / Bae / rk Of(U_C. f OTB) arbitrarycreations. nw OTB 7) at 20) / Rvrea 7%pwrfr2scns / ees t 5 oe o eod ORv(U_C.5.co. ts mi ( ak an ) { / Mv frada 7%pwrfr2scns / oe owr t 5 oe o eod OFd(U_C.Wi (00.0 Instructions Programming guide Can you program a Shooterbot to move forward on the test pad and then move in reverse to its start position? / sotro_.

Place the Shooterbot on the test pad and run the program.uk/lego/nxt_2_instructions/#robogator_jaws_program 13/237 .0 Instructions } Test guide Download your program. 2. Color detection Building guide Can you build a Shooterbot to test colors on the test pad? arbitrarycreations.co.12/30/12 NXT 2.

/ oiin / Ajs ti nme t si yu srae/bteypwr / dut hs ubr o ut or ufc atr oe #eieTR_IE15 dfn UNTM 70 ts mi ( ak an ) { ln t.x / hoebt2nc / Mv fradt terdln.0 Instructions Programming guide Can you program a Shooterbot to move forward.12/30/12 NXT 2.t. og 0 1 arbitrarycreations.tr aon. turn around.co.uk/lego/nxt_2_instructions/#robogator_jaws_program / Bigteclrsno o-ie / rn h oo esr nln 14/237 . find the red line.admv bc t tesat / oe owr o h e ie un rud n oe ak o h tr / psto. and then move back to its start position? / sotro_.

at TR_IE.co. f OTB) } Test guide Download your program. 3.12/30/12 NXT 2.5. Place the Shooterbot on the test pad and run the program.7) Wi (UNTM) Of(U_C. arbitrarycreations.5.uk/lego/nxt_2_instructions/#robogator_jaws_program 15/237 . nw OTB 7) utl(NU_ECLR= SNO_) ni IPTRDOO = ESR3. f OTB) / Mv bc t tesat / oe ak o h tr OFd(U_C. nw OTC 5.7) ORv(U_. Shooter Building guide Can you build the Shooterbot to shoot balls at objects? You will have to build the shooter on the front of your Shooterbot. nw OTB 7) at t 0. f OTB) / Tr 10dgest tergt / un 8 ere o h ih OFd(U_. t =Cretik(. 0 urnTc ) / Mv fradt terdln / oe owr o h e ie OFd(U_C.Wi (1-t) Of(U_C.0 Instructions / Bigteclrsno o-ie / rn h oo esr nln StesrooFl (3. ne OTB 5. eSnoClrul S) / Rcr tetm we tefradmvmn sat / eod h ie hn h owr oeet trs t =Cretik(./ Rcr tetm we tefradmvmn fnse 1 urnTc ) / eod h ie hn h owr oeet iihs Of(U_C.

co.12/30/12 NXT 2.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 16/237 .

co.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 17/237 .12/30/12 NXT 2.

co.0 Instructions arbitrarycreations.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 18/237 .

12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 19/237 .0 Instructions arbitrarycreations.

.

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 21/237 .12/30/12 NXT 2.co.

eSnoClre I_) at FAHDRTO ) StesrooNn (N3.Wi (LS_UAIN/2. eSnoClre I_) at FAHDRTO) StesrooGen(N3. n le ap StesrooRd (N3. / rv rud n ho hl hwn ifrn ooe ihs #eieBLES7 dfn ULT #eieFAHDRTO 30 dfn LS_UAIN 0 #eieTR_IE30 dfn UNTM 00 itblesrmiig=BLES n ult_eann ULT.co. e_lse = 0 e_lse+) { StesrooRd (N3.Wi (LS_UAIN.Wi (LS_UAIN. ts fahn_ihs( ak lsiglgt ) { itrdfahs n e_lse. eSnoClrle I_) at FAHDRTO) } / Idct ta n blesrmi / niae ht o ult ean fr(e_lse =1 rdfahs< 1.uk/lego/nxt_2_instructions/#robogator_jaws_program 22/237 . tplTss ) } ts sot( ak ho ) { wie(re hl tu) { / Cekwehrt fr able / hc hte o ie ult i (re= fr) f tu = ie { / Rstte'ieable'fa t fle / ee h fr ult lg o as fr =fle ie as. arbitrarycreations.rdfahs+ o rdfahs .12/30/12 NXT 2.Wi (LS_UAIN. eSnoClrre I_) at FAHDRTO) StesrooBu (N3.x / hoebt3nc / Dieaon adsotwiesoigdfeetclrdlgt.0 Instructions Programming guide Can you program Shooterbot to drive around and shoot while showing different colored lights? / sotro_. re. wie(ult_eann >0 hl blesrmiig ) { / Atraebtenterd gen adbu lms / lent ewe h e.Wi (LS_UAIN/2. eSnoClroe I_) at FAHDRTO ) } / So teporm / tp h rga SoAlak (. bo fr =fle ol ie as.

at 10) fr =tu. ne OTB 5. at 10) fr =tu. . arbitrarycreations. } Test guide Download the program. Wi (adm(UNTM).7) nw OTB 5. at Rno TR_IE) Of(U_C. Place the Shooterbot in the middle of the test pad and run the program. f OTB) Wi (00. } } } ts mv ( ak oe ) { wie(ult_eann >0 hl blesrmiig ) { / D arno tr / o adm un i ( = Rno () f 0 = adm 2) { / Lf tr / et un OFd(U_. ie re Wi (00.7) nw OTC 5. re. at 10) } } } ts mi ( ak an ) { / Mk teetsseeuesmlaeul atrmi ( i fnse / ae hs ak xct iutnosy fe an ) s iihd Peee (lsiglgt.7) ORv(U_.7) ORv(U_.mk mtrAd asnl 30dge rtto / o ie ae oo o ige 6 ere oain RttMtrx(U_. ie re Wi (00. ne OTC 5.30 0 fle tu) oaeooE OTA 5 6. Locate objects Building guide Can you build the Shooterbot to protect your room? You will have to add the Ultrasonic Sensor to your Shooterbot.uk/lego/nxt_2_instructions/#robogator_jaws_program 23/237 . at 10) } es le { / Rgttr / ih un OFd(U_.0 Instructions / Dceettenme o blesrmiig / ermn h ubr f ult eann blesrmiigult_eann-. Wi (adm(UNTM).12/30/12 NXT 2. at Rno TR_IE) Of(U_C. f OTB) Wi (00. / T fr. 4. oe.co.sot mv) rcds fahn_ihs ho.7. as.

pwr.12/30/12 NXT 2. / sotro_. / h bet os o oe wy #eieBLES7 dfn ULT #eieFAHDRTO 20 dfn LS_UAIN 0 #eieTRSOD4 dfn HEHL 0 #eieWRIGTM 40 dfn ANN_IE 00 #eiesattrigpwr OFd(U_.x / hoebt4nc / I a ojc i t coe sieawriglgtadte soti / f n bet s o ls. hn ann ih n hn ho f / teojc de ntmv aa.pwr.uk/lego/nxt_2_instructions/#robogator_jaws_program ts mi ( ak an ) 24/237 .0 Instructions Programming guide Can you program the Shooterbot to scan your room and detect objects? If an object is closer than 40cm. the Shooterbot should shine a warning light and then shoot if the object does not move away.ORv(U_. dfn tr_unn(oe) nw OTC oe) ne OTB oe) arbitrarycreations.co.

Wi (LS_UAIN.7. Jaws Building guide Can you build a robot with jaws that open and close? arbitrarycreations./ Sa frcoeojcs ni SnoU S) HEHL) / cn o ls bet Of(U_C. Wi (00./ So teporm tplTss ) / tp h rga } Test guide Download the program./ Gv mtrAtm t sot at 10) / ie oo ie o ho } StesrooGen(3. as./ Sttelm t so alcer eSnoClrre S) / e h ap o hw l-la wie(ult_eann >0 hl blesrmiig ) { sattrig(0. 0 urnTc ) wie(Cretik( -t)<WRIGTM) hl (urnTc ) 0 ANN_IE {/ Ei tewrig-afahn rdlm / mt h ann lsig e ap StesrooNn (3. re. eSnoClroe S) at FAHDRTO) StesrooRd (3.12/30/12 NXT 2.tu) etu 8 C_IE. RttMtrx(U_. eSnoClre S) at FAHDRTO) } i (esrS(4 <TRSOD f SnoU S) HEHL) { blesrmiigult_eann-.co. tr_unn 5) utl(esrS(4 <TRSOD.0 Instructions ts mi ( ak an ) { ln t.uk/lego/nxt_2_instructions/#robogator_jaws_program 25/237 .30 0 fle tu) / Sot oaeooE OTA 5 6. Robogator Can you build and program a Robogator that attacks objects and protects its territory? 1. Place the Shooterbot in the middle of the test pad and run the program./ Bigteutaoi sno o-ie eSnoLwpe S) / rn h lrsnc esr nln StesrooGen(3. Stesrosed(4. OT F ULT" re.Wi (LS_UAIN. ./ So trig f OTB) / tp unn t =Cretik(. og 0 itblesrmiig=BLES n ult_eann ULT.LDLN4 "U O BLES. / ho Wi (00./ Sttelm t so alcer eSnoClrre S) / e h ap o hw l-la } Of(U_C. at 70) SoAlak (./ So trig f OTB) / tp unn TxOt(.

12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 26/237 .0 Instructions arbitrarycreations.co.

uk/lego/nxt_2_instructions/#robogator_jaws_program 27/237 .co.0 Instructions arbitrarycreations.12/30/12 NXT 2.

0 Instructions arbitrarycreations.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 28/237 .co.

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 29/237 .12/30/12 NXT 2.co.

0 Instructions arbitrarycreations.12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 30/237 .

.

12/30/12 NXT 2.0 Instructions arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 32/237 .

12/30/12 NXT 2.0 Instructions arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 33/237 .

uk/lego/nxt_2_instructions/#robogator_jaws_program 34/237 .co.0 Instructions arbitrarycreations.12/30/12 NXT 2.

r__.0 Instructions Programming guide Can you program your robot to open and close its jaws? / rbgtr1nc / ooao_.x / Oe adcoetejw / pn n ls h as / Sml temtrrtto sedeeyti nme o mlieod / ape h oo oain pe vr hs ubr f ilscns #eieRTTO_APERSLTO 5 dfn OAINSML_EOUIN 0 / Teapoiae'ere prscn'rtto o mtrA / h prxmt dges e eod oain f oo ln dsa=0 og p_ . / r = oo oain on usge ln ta0 ta1 nind og __. ts mtrsedmntr( ak oo_pe_oio ) { ln mca0 mca1 / mc= mtrrtto cut og r__.12/30/12 NXT 2. arbitrarycreations. __.uk/lego/nxt_2_instructions/#robogator_jaws_program 35/237 .co.

r__ ooRttoCut OTA. r__ ooRttoCut OTA. p_ (r__ r__) 00 ta1 __) } } ts bt ( ak ie ) { wie(re hl tu) { / Asm tejw aecoe t bgnwt -oe te / sue h as r lsd o ei ih pn hm OFd(U_.uk/lego/nxt_2_instructions/#robogator_jaws_program 36/237 . / at OAINSML_EOUIN utl(0>dsa. at 10. Your Robogator jaws should open and close. utl(1 <dsa. __ urnTc ) Wi (OAINSML_EOUIN. oo_pe_oio) } Test guide Download and run the program.12/30/12 NXT 2. rcds bt. } } ts mi ( ak an ) { Peee (ie mtrsedmntr.co. eod h oain on n h ie mca1=Mtroainon (U_) ta1=Cretik(.0 Instructions wie(re hl tu) { / Rcr tertto cutadtetm / eod h oain on n h ie mca0=Mtroainon (U_) ta0=Cretik(./ Wi utltejw hv oee adaepatclysil ni 1 p_) / at ni h as ae pnd n r rcial tl Of(U_) f OTA. 2.4) Wi (0) ne OTA 0. Eyes Building guide Can you make your Robogator see objects and attack them if they get too close? arbitrarycreations. / Coetejw / ls h as ORv(U_. at RTTO_APERSLTO) / Aan rcr tertto cutadtetm / gi. __ urnTc ) / Cluaeteaeaertto rt oe ta tm itra / aclt h vrg oain ae vr ht ie nevl dsa=(mca1-mca0 *10)/(__ -ta0.4) Wi (0) / Wi >RTTO_APERSLTO nw OTA 0./ Rvrerttosaengtv ni -0 p_) / ees oain r eaie Of(U_) f OTA. at 10.

uk/lego/nxt_2_instructions/#robogator_jaws_program 37/237 .0 Instructions arbitrarycreations.co.12/30/12 NXT 2.

12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program { 38/237 .0 Instructions Programming guide Can you program your robot to bite when objects get too close? / rbgtr2nc / ooao_. ts mtrsedmntr( ak oo_pe_oio ) arbitrarycreations.x / Oe adcoetejw we ojcsaecoe / pn n ls h as hn bet r ls / Sml temtrrtto sedeeyti nme o mlieod / ape h oo oain pe vr hs ubr f ilscns #eieRTTO_APERSLTO 5 dfn OAINSML_EOUIN 0 / Bt ojcswihcm coe ta ti / ie bet hc oe lsr hn hs #eieTRSOD4 dfn HEHL 0 / Teapoiae'ere prscn'rtto o mtrA / h prxmt dges e eod oain f oo ln dsa=0 og p_ .

r__ ooRttoCut OTA. __./ Bigteutaoi sno o-ie eSnoLwpe S) / rn h lrsnc esr nln wie(re hl tu) { utl(esrS(4 <TRSOD./ Wi utltemtrsos ni 1 p_) / at ni h oo tp Of(U_) f OTA. r__ ooRttoCut OTA.uk/lego/nxt_2_instructions/#robogator_jaws_program 39/237 . 3. __ urnTc ) Wi (OAINSML_EOUIN. The Robogator's jaws should start biting./ Sa frcoeojcs ni SnoU S) HEHL) / cn o ls bet / Asm tejw aecoe t bgnwt -oe te / sue h as r lsd o ei ih pn hm OFd(U_. at 10. wie(re hl tu) { mca0=Mtroainon (U_) ta0=Cretik(.4) Wi (0) ne OTA 0. utl(1 <dsa. oo_pe_oio) } Test guide Download and run the program.co. __ urnTc ) dsa=(mca1-mca0 *10)/(__ -ta0. Move your hand towards the Robogator's eyes. / Coetejw / ls h as ORv(U_.0 Instructions { ln mca0 mca1 / mc= mtrrtto cut og r__. p_ (r__ r__) 00 ta1 __) } } ts bt ( ak ie ) { Stesrosed(4. at RTTO_APERSLTO) mca1=Mtroainon (U_) ta1=Cretik(. rcds bt. r__. Legs Building guide Can you build a robot that can walk? arbitrarycreations. at 10. / at OAINSML_EOUIN utl(0>dsa. Move your hand away and the Robogator should stop biting./ Rvrerttosaengtv ni -0 p_) / ees oain r eaie Of(U_) f OTA. } } ts mi ( ak an ) { Peee (ie mtrsedmntr. / r = oo oain on usge ln ta0 ta1 nind og __.12/30/12 NXT 2.4) Wi (0) / Wi >RTTO_APERSLTO nw OTA 0.

.

12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 41/237 .co.0 Instructions arbitrarycreations.

co.0 Instructions arbitrarycreations.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 42/237 .

0 Instructions arbitrarycreations.12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 43/237 .

12/30/12 NXT 2.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 44/237 .co.

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 45/237 .12/30/12 NXT 2.co.

12/30/12 NXT 2.0 Instructions arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 46/237 .

uk/lego/nxt_2_instructions/#robogator_jaws_program 47/237 .co.12/30/12 NXT 2.0 Instructions arbitrarycreations.

12/30/12 NXT 2.0 Instructions arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 48/237 .

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 49/237 .co.12/30/12 NXT 2.

0 Instructions arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 50/237 .12/30/12 NXT 2.

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 51/237 .co.12/30/12 NXT 2.

12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 52/237 .0 Instructions arbitrarycreations.

12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 53/237 .0 Instructions arbitrarycreations.

12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 54/237 .0 Instructions arbitrarycreations.

0 Instructions arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 55/237 .12/30/12 NXT 2.

uk/lego/nxt_2_instructions/#robogator_jaws_program 56/237 .12/30/12 NXT 2.co.0 Instructions arbitrarycreations.

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 57/237 .12/30/12 NXT 2.co.

uk/lego/nxt_2_instructions/#robogator_jaws_program 58/237 .0 Instructions arbitrarycreations.12/30/12 NXT 2.co.

12/30/12 NXT 2.co.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 59/237 .

12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 60/237 .0 Instructions arbitrarycreations.

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 61/237 .12/30/12 NXT 2.co.

co.uk/lego/nxt_2_instructions/#robogator_jaws_program 62/237 .0 Instructions arbitrarycreations.12/30/12 NXT 2.

.

uk/lego/nxt_2_instructions/#robogator_jaws_program 64/237 .0 Instructions arbitrarycreations.co.12/30/12 NXT 2.

co.12/30/12 NXT 2.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 65/237 .

.

0 Instructions arbitrarycreations.co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 67/237 .

12/30/12

NXT 2.0 Instructions

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

68/237

12/30/12

NXT 2.0 Instructions

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

69/237

12/30/12

NXT 2.0 Instructions

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

70/237

12/30/12

NXT 2.0 Instructions

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

71/237

12/30/12

NXT 2.0 Instructions

Programming guide

Can you program the Robogator to walk forward and start biting when objects get too close?
/ rbgtr3nc / ooao_.x / Oe adcoetejw adwl fradwe ojcsaecoe / pn n ls h as n ak owr hn bet r ls / Sml temtrrtto sedeeyti nme o mlieod / ape h oo oain pe vr hs ubr f ilscns #eieRTTO_APERSLTO 5 dfn OAINSML_EOUIN 0 / Bt ojcswihcm coe ta ti / ie bet hc oe lsr hn hs #eieTRSOD4 dfn HEHL 0 / Wl fradfru t ti mn seswe a ojc i coe / ak owr o p o hs ay tp hn n bet s ls #eieMXSESFRAD3 dfn A_TP_OWR / Teapoiae'ere prscn'rtto o mtrA / h prxmt dges e eod oain f oo ln dsa=0 og p_ ; ts mtrsedmntr( ak oo_pe_oio ) { ln mca0 mca1 / mc= mtrrtto cut og r__, r__; / r = oo oain on usge ln ta0 ta1 nind og __, __; wie(re hl tu) { mca0=Mtroainon (U_) ta0=Cretik(; r__ ooRttoCut OTA; __ urnTc ) Wi (OAINSML_EOUIN; at RTTO_APERSLTO) mca1=Mtroainon (U_) ta1=Cretik(; r__ ooRttoCut OTA; __ urnTc ) dsa=(mca1-mca0 *10)/(__ -ta0; p_ (r__ r__) 00 ta1 __) } } ts bt ( ak ie ) { wie(re hl tu) { utl(esrS(4 <TRSOD;/ Sa frcoeojcs ni SnoU S) HEHL) / cn o ls bet / Asm tejw aecoe t bgnwt / sue h as r lsd o ei ih OFd(U_,4) Wi (0) / Wi >RTTO_APERSLTO nw OTA 0; at 10; / at OAINSML_EOUIN utl(0>dsa;/ Wi utltemtrsos ni 1 p_) / at ni h oo tp Of(U_) f OTA; ORv(U_,4) Wi (0) ne OTA 0; at 10;

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

72/237

12/30/12

NXT 2.0 Instructions

ORv(U_,4) Wi (0) ne OTA 0; at 10; utl(1 <dsa;/ Rvrerttosaengtv ni -0 p_) / ees oain r eaie Of(U_) f OTA; } } ts wl ( ak ak ) { itses n tp; wie(re hl tu) { utl(esrS(4 <TRSOD;/ Sa frcoeojcs ni SnoU S) HEHL) / cn o ls bet / Wl fradwiea ojc i coe / ak owr hl n bet s ls ses=0 tp ; wie(esrS(4 <TRSOD& ses<MXSESFRAD hl SnoU S) HEHL & tp A_TP_OWR) { RttMtrx(U_C -0,30 0 tu,tu) oaeooE OTB, 10 6, , re re; ses+ 1 tp = ; } } } ts mi ( ak an ) { Stesrosed(4;/ Bigteutaoi sno o-ie eSnoLwpe S) / rn h lrsnc esr nln Peee (ie mtrsedmntr wl) rcds bt, oo_pe_oio, ak; }

Test guide

Download the program. Place your alligator on the test pad and run the program. 4. Tail
Building guide

Can you build the tail and add sensors to the Robogator so it knows where its legs are?

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

73/237

12/30/12

NXT 2.0 Instructions

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

74/237

co.uk/lego/nxt_2_instructions/#robogator_jaws_program 75/237 .0 Instructions arbitrarycreations.12/30/12 NXT 2.

12/30/12 NXT 2.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 76/237 .co.

co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 77/237 .0 Instructions arbitrarycreations.

co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 78/237 .0 Instructions arbitrarycreations.

co.0 Instructions arbitrarycreations.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 79/237 .

co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 80/237 .0 Instructions arbitrarycreations.

x / We a ojc i coe oe adcoetejw. and crawl back? / rbgtr4nc / ooao_. / adte mv bc / n hn oe ak / Sml temtrrtto sedeeyti nme o mlieod / ape h oo oain pe vr hs ubr f ilscns #eieRTTO_APERSLTO 5 dfn OAINSML_EOUIN 0 / Bt ojcswihcm coe ta ti / ie bet hc oe lsr hn hs #eieTRSOD6 dfn HEHL 0 / Wl fradfru t ti mn seswe a ojc i coe / ak owr o p o hs ay tp hn n bet s ls #eieMXSESFRAD3 dfn A_TP_OWR arbitrarycreations. bite.wl frad / hn n bet s ls: pn n ls h as ak owr.co.0 Instructions Programming guide Can you program Robogator to protect its territory: lunge forward.uk/lego/nxt_2_instructions/#robogator_jaws_program / Teapoiae'ere prscn'rtto o mtrA / h prxmt dges e eod oain f oo 81/237 .12/30/12 NXT 2.

uk/lego/nxt_2_instructions/#robogator_jaws_program 82/237 ./ Bigtetuhsnoso-ie eSnoTuh S) / rn h oc esr nln Stesroc (2.tu) oaeooE OTB. eSnoTuh S) arbitrarycreations.-0.co. at 10) wie(tp >0 hl ses ) { RttMtrx(U_C 9.-0) nw OTC 10. r__ ooRttoCut OTA. re re. 0 6. r__ ooRttoCut OTA.-0. Of(U_) RttMtr(U_. oaeoo OTB 10 5. OFd(U_. wie(esrS(4 <TRSOD& ses<MXSESFRAD hl SnoU S) HEHL & tp A_TP_OWR) { RttMtrx(U_C -0. r__. .4) Wi (0) / Wi >RTTO_APERSLTO nw OTA 0. } / Wl bc t teoiia psto / ak ak o h rgnl oiin Wi (00.1 tp = .-0) nw OTB 10.tu) oaeooE OTB. ses+ 1 tp = ./ Bigteutaoi sno o-ie eSnoLwpe S) / rn h lrsnc esr nln Stesroc (1. at 10./ Wi utltemtrsos ni 1 p_) / at ni h oo tp Of(U_) f OTA.30 0 tu. utl( = SNO_) ni 1 = ESR1./ Rvrerttosaengtv ni -0 p_) / ees oain r eaie Of(U_) f OTA. utl(1 <dsa. __ urnTc ) dsa=(mca1-mca0 *10)/(__ -ta0./ Sa frcoeojcs ni SnoU S) HEHL) / cn o ls bet / Asm tejw aecoe t bgnwt / sue h as r lsd o ei ih OFd(U_. ts mtrsedmntr( ak oo_pe_oio ) { ln mca0 mca1 / mc= mtrrtto cut og r__. at 10. __.4) Wi (0) ne OTA 0. ses. __ urnTc ) Wi (OAINSML_EOUIN. at RTTO_APERSLTO) mca1=Mtroainon (U_) ta1=Cretik(. tp. Of(U_) RttMtr(U_. 10 6. / Uetetuhsnost aintelg iiily / s h oc esr o lg h es ntal OFd(U_. . ORv(U_. / at OAINSML_EOUIN utl(0>dsa.12/30/12 NXT 2. / r = oo oain on usge ln ta0 ta1 nind og __. wie(re hl tu) { mca0=Mtroainon (U_) ta0=Cretik(.0 Instructions / Teapoiae'ere prscn'rtto o mtrA / h prxmt dges e eod oain f oo ln dsa=0 og p_ . } } } ts mi ( ak an ) { Stesrosed(4.4) f OTC. oaeoo OTC 10 5. wie(re hl tu) { / Wl fradwiea ojc i coe / ak owr hl n bet s ls ses=0 tp . p_ (r__ r__) 00 ta1 __) } } ts bt ( ak ie ) { wie(re hl tu) { utl(esrS(4 <TRSOD. utl( = SNO_) ni 1 = ESR2. } } ts wl ( ak ak ) { iti ses n .4) f OTB.30 0 tu. re re.

oo_pe_oio.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 83/237 . } Test guide Download the program. ak. Dispenser Building guide Can you build a dispenser that separates balls one by one? arbitrarycreations.0 Instructions Peee (ie mtrsedmntr wl) rcds bt. Place Robogator on the test pad and run the program.12/30/12 NXT 2. Color Sorter Can you build and program the Color Sorter to sort balls by color? 1.

uk/lego/nxt_2_instructions/#robogator_jaws_program 84/237 .0 Instructions arbitrarycreations.co.12/30/12 NXT 2.

0 Instructions arbitrarycreations.12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 85/237 .

uk/lego/nxt_2_instructions/#robogator_jaws_program 86/237 .0 Instructions arbitrarycreations.12/30/12 NXT 2.co.

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 87/237 .co.12/30/12 NXT 2.

.

.

uk/lego/nxt_2_instructions/#robogator_jaws_program 90/237 .co.0 Instructions arbitrarycreations.12/30/12 NXT 2.

co.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 91/237 .12/30/12 NXT 2.

co.12/30/12 NXT 2.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 92/237 .

uk/lego/nxt_2_instructions/#robogator_jaws_program 93/237 .12/30/12 NXT 2.co.0 Instructions arbitrarycreations.

.

uk/lego/nxt_2_instructions/#robogator_jaws_program 95/237 .12/30/12 NXT 2.co.0 Instructions arbitrarycreations.

12/30/12 NXT 2.co.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 96/237 .

0 Instructions arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 97/237 .12/30/12 NXT 2.

uk/lego/nxt_2_instructions/#robogator_jaws_program 98/237 .12/30/12 NXT 2.0 Instructions arbitrarycreations.co.

uk/lego/nxt_2_instructions/#robogator_jaws_program 99/237 .12/30/12 NXT 2.co.0 Instructions arbitrarycreations.

co.12/30/12 NXT 2.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 100/237 .

uk/lego/nxt_2_instructions/#robogator_jaws_program 101/237 .0 Instructions arbitrarycreations.co.12/30/12 NXT 2.

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 102/237 .12/30/12 NXT 2.co.

uk/lego/nxt_2_instructions/#robogator_jaws_program 103/237 .0 Instructions arbitrarycreations.co.12/30/12 NXT 2.

0 Instructions arbitrarycreations.co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 104/237 .

uk/lego/nxt_2_instructions/#robogator_jaws_program 105/237 .12/30/12 NXT 2.0 Instructions arbitrarycreations.co.

0 Instructions arbitrarycreations.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 106/237 .co.

0 Instructions arbitrarycreations.12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 107/237 .

co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 108/237 .0 Instructions arbitrarycreations.

co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 109/237 .0 Instructions arbitrarycreations.

uk/lego/nxt_2_instructions/#robogator_jaws_program 110/237 .0 Instructions arbitrarycreations.12/30/12 NXT 2.co.

12/30/12 NXT 2.0 Instructions arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 111/237 .

0 Instructions arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 112/237 .12/30/12 NXT 2.

uk/lego/nxt_2_instructions/#robogator_jaws_program 113/237 .co.0 Instructions arbitrarycreations.12/30/12 NXT 2.

12/30/12 NXT 2.co.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 114/237 .

0 Instructions arbitrarycreations.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 115/237 .co.

co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 116/237 .0 Instructions arbitrarycreations.

12/30/12 NXT 2.co.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 117/237 .

co.0 Instructions arbitrarycreations.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 118/237 .

0 Instructions arbitrarycreations.12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 119/237 .

uk/lego/nxt_2_instructions/#robogator_jaws_program 120/237 .co.0 Instructions arbitrarycreations.12/30/12 NXT 2.

co.12/30/12 NXT 2.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 121/237 .

uk/lego/nxt_2_instructions/#robogator_jaws_program 122/237 .12/30/12 NXT 2.co.0 Instructions arbitrarycreations.

uk/lego/nxt_2_instructions/#robogator_jaws_program 123/237 .co.0 Instructions arbitrarycreations.12/30/12 NXT 2.

uk/lego/nxt_2_instructions/#robogator_jaws_program 124/237 .0 Instructions arbitrarycreations.12/30/12 NXT 2.co.

12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 125/237 .0 Instructions arbitrarycreations.

co.12/30/12 NXT 2.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 126/237 .

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 127/237 .co.12/30/12 NXT 2.

.

uk/lego/nxt_2_instructions/#robogator_jaws_program 129/237 .12/30/12 NXT 2.0 Instructions arbitrarycreations.co.

co.uk/lego/nxt_2_instructions/#robogator_jaws_program 130/237 .12/30/12 NXT 2.0 Instructions arbitrarycreations.

12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 131/237 .0 Instructions arbitrarycreations.co.

co.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 132/237 .12/30/12 NXT 2.

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 133/237 .co.12/30/12 NXT 2.

at 10) } ts mi ( ak an ) { iti n .co. at 10) } / Dses oebl / ipne n al vi dses_al( od ipnebl ) { rstdsesr(.0 Instructions Programming guide Can you program the dispenser to tilt and dispense one ball at a time? / clrotr1nc / oosre_.70.x / Dses oebl a atm / ipne n al t ie / Tenme o blst b sre / h ubr f al o e otd #eieBLS4 dfn AL / Gttedsesri asadr psto / e h ipne n tnad oiin vi rstdsesr( od ee_ipne ) { ORv(U_. eSnoTuh S) i=0 . Wi (00.8) ne OTB 0.6.uk/lego/nxt_2_instructions/#robogator_jaws_program 134/237 . utl( = SNO_) ni 1 = ESR1. ee_ipne ) RttMtr(U_.12/30/12 NXT 2. ipnebl ) } } Test guide arbitrarycreations. oaeoo OTB 0 2) Wi (00. Of(U_) f OTB. / Bigtetligmcaimstuhsno o-ie / rn h itn ehns' oc esr nln Stesroc (1. wie(+ <BLS hl i+ AL) { dses_al(.

2.12/30/12 NXT 2.co. Color detector Building guide Can you build a color detector that can recognise the different ball colors? arbitrarycreations. Put a couple of balls in the dispenser and run the program.uk/lego/nxt_2_instructions/#robogator_jaws_program 135/237 . Place the Color Sorter in the middle of the test pad.0 Instructions Download your program.

co.uk/lego/nxt_2_instructions/#robogator_jaws_program 136/237 .0 Instructions arbitrarycreations.12/30/12 NXT 2.

Of(U_) f OTB.8) ne OTB 0. at 10) arbitrarycreations.0 Instructions Programming guide Can you make a program that can tell the difference between the colors of the balls? / clrotr2nc / oosre_.uk/lego/nxt_2_instructions/#robogator_jaws_program } 137/237 . Wi (00.x / Dses oebl a atm -dslyteclro ec bl / ipne n al t ie ipa h oo f ah al / Tenme o blst b sre / h ubr f al o e otd #eieBLS4 dfn AL / Gttedsesri asadr psto / e h ipne n tnad oiin vi rstdsesr( od ee_ipne ) { ORv(U_.12/30/12 NXT 2. utl( = SNO_) ni 1 = ESR1.co.

30. eSnoTuh S) / Bigteclrsno o-ie / rn h oo esr nln StesrooFl (3. 3. Wi (00. alclr YLO" bek ra. bek ra. odbl ) so_oo (. Nmu (0 LDLN3 BLS-(-). AL i1) rstdsesr(. C_IE. / Bigtetligmcaimstuhsno o-ie / rn h itn ehns' oc esr nln Stesroc (1. Run the program. ee_ipne ) la_al(. hwclr ) dses_al(. alclr BU" bek ra. alclr NN" bek ra. } / So tebl clr / hw h al oo TxOt(0 LDLN3 bl_oo.6.30.} / Gtabl it tedsesrso / e al no h ipne lt vi la_al( od odbl ) { RttMtr(U_. wie(+ <BLS hl i+ AL) { / So tenme o blslf t sr / hw h ubr f al et o ot TxOt(. at 10) } vi dses_al( od ipnebl ) { RttMtr(U_. Place the Color Sorter in the middle of the test pad. cs IPTRDOO: ae NU_ECLR bl_oo ="E" alclr RD. cs IPTYLOCLR ae NU_ELWOO: bl_oo ="ELW. Bls eann: .tu) etu 3. oaeoo OTB 0 6) Wi (00. C_IE. tig alclr " sic (ESR3 wth SNO_) { cs IPTBUCLR ae NU_LEOO: bl_oo ="LE. at 10) } ts mi ( ak an ) { iti n . uOt 5. at 10) } vi so_oo ( od hwclr ) { srn bl_oo =". oaeoo OTB 0 6) Wi (00. eSnoClrul S) i=0 . re. Sorting tray . ipnebl ) } } Test guide Download your program. dfut eal: bl_oo ="OE.6.LDLN1 "al rmiig " tu) etu 0 C_IE. cs IPTGENOO: ae NU_RECLR bl_oo ="RE" alclr GEN. bek ra. alclr re.

Building guide Can you build a sorting tray that allows the Color Sorter to sort the four different colored balls into their own basket? .

12/30/12 NXT 2.0 Instructions arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 140/237 .

12/30/12 NXT 2.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 141/237 .co.

uk/lego/nxt_2_instructions/#robogator_jaws_program 142/237 .co.12/30/12 NXT 2.0 Instructions arbitrarycreations.

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 143/237 .12/30/12 NXT 2.co.

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 144/237 .12/30/12 NXT 2.co.

12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 145/237 .co.0 Instructions arbitrarycreations.

co.uk/lego/nxt_2_instructions/#robogator_jaws_program 146/237 .12/30/12 NXT 2.0 Instructions arbitrarycreations.

0 Instructions Programming guide Can you program the sorting tray to spin around and place balls of the same color in the same basket? / clrotr3nc / oosre_. / Gtabl it tedsesrso / e al no h ipne lt vi la_al( od odbl ) { arbitrarycreations.co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program Wi (00. bo rstbse_lg=fle ol ee_aktfa as.x / Paeblso tesm clri tesm bse / lc al f h ae oo n h ae akt / Asm teeaen blsrmiigatrti nme o rtis / sue hr r o al eann fe hs ubr f ere #eieRTIS2 dfn ERE / Rsttedsesn ta adtebse we teeaestt tu / ee h ipnig ry n h akt hn hs r e o re bo rstdsesrfa =fle ol ee_ipne_lg as. at 20) 147/237 .

at 10) } / So teclro tebl o teNTdsly / hw h oo f h al n h X ipa / Rtr tevleo teclro tebl t tecligts / eun h au f h oo f h al o h aln ak srn so_oo ( tig hwclr ) { srn bl_oo =".3. cs IPTRDOO: ae NU_ECLR bl_oo ="E" alclr RD.GEN BU / E. oaeoo OTC 0 8) }lei (alclr= "LE){ es f bl_oo = BU" RttMtr(U_.12/30/12 NXT 2. cs IPTGENOO: ae NU_RECLR bl_oo ="RE" alclr GEN. at 20) / Saeu teblsi tedsesr / hk p h al n h ipne RttMtr(U_. ELW RE. alclr YLO" bek ra.3. LE i (alclr= "ELW){ f bl_oo = YLO" RttMtr(U_.-0 40. bek ra. rstdsesrfa =fle ee_ipne_lg as. 0) Wi (0) at 50. }lei (alclr= "RE" { es f bl_oo = GEN) RttMtr(U_.co. 0. alclr re.-0 9) oaeoo OTC 3. Wi (0) at 50. alclr BU" bek ra.uk/lego/nxt_2_instructions/#robogator_jaws_program 148/237 . oaeoo OTB 9. rtr bl_oo.9. } vi dses_al( od ipnebl ) { RttMtr(U_.40. oaeoo OTB 9. alclr NN" bek ra.9) oaeoo OTC 0 0. } } } ts rstbse ( ak ee_akt ) { wie(re hl tu) arbitrarycreations.-0 30. tig alclr " sic (ESR3 wth SNO_) { cs IPTBUCLR ae NU_LEOO: bl_oo ="LE.tu) etu 3. utl( = SNO_) ni 1 = ESR1. oaeoo OTB 0 0) RttMtr(U_. } / So tebl clr / hw h al oo TxOt(0 LDLN3 bl_oo. cs IPTYLOCLR ae NU_ELWOO: bl_oo ="ELW. 6) Wi (00. bek ra.8) ne OTB 0.10. } } / Gttedsesri asadr psto / e h ipne n tnad oiin ts rstdsesr( ak ee_ipne ) { wie(re hl tu) { i (re= rstdsesrfa) f tu = ee_ipne_lg { / Gttedsesrit asadr psto uigtetuhsno / e h ipne no tnad oiin sn h oc esr ORv(U_. C_IE. eun alclr } vi ainbse (tigbl_oo) od lg_akt srn alclr { / RD YLO. dfut eal: bl_oo ="OE. Of(U_) f OTB.0 Instructions Wi (00.

/ ne h oc esr f t s e utl( = SNO_) ni 1 = ESR2.-0 3) oaeoo OTC 3. ipnebl ) } SoAlak (. } ainbse (alclr. Run the program. lg_akt bl_oo) dses_al(. eSnoClrul S) Satak(ee_akt. Place the Color Sorter in the middle of the test pad.uk/lego/nxt_2_instructions/#robogator_jaws_program 149/237 . Color catapult Building guide arbitrarycreations. ni fle = ee_ipne_lg & as = ee_aktfa) la_al(. utl( = SNO_) / Usttetuhsno i i i st ni 0 = ESR2. ee_aktfa re / Wi utltersttssaebt fnse / at ni h ee ak r oh iihd utl(as = rstdsesrfa & fle= rstbse_lg. srn bl_oo.co.3) nw OTC 0. } } } ts mi ( ak an ) { iti n . RttMtr(U_. Of(U_) f OTC.12/30/12 NXT 2. ee_ipne_lg re rstbse_lg=tu. wie(re hl tu) { / Certedsly / la h ipa Rstcen(.0 Instructions { i (re= rstbse_lg f tu = ee_aktfa) { / Gttebse it asadr psto uigtetuhsno / e h akt no tnad oiin sn h oc esr OFd(U_. tig alclr / Bigtetligmcaimstuhsno o-ie / rn h itn ehns' oc esr nln Stesroc (1. d o { / Rsttepstoso tedsesradtebsesi prle / ee h oiin f h ipne n h akt n aall rstdsesrfa =tu. eeSre ) i=0 . ** IIHD *" re. trTs rstbse) Satak(ee_ipne) trTs rstdsesr.LDLN3 "* FNSE **. eSnoTuh S) / Bigtesrigmcaimstuhsno o-ie / rn h otn ehns' oc esr nln Stesroc (2.tu) etu 0 C_IE. 4. tplTss ) } Test guide Download your program. 0./ Paeabl i tedsesrei so odbl ) / lc al n h ipne xt lt bl_oo =so_oo (. eSnoTuh S) / Bigteclrsno o-ie / rn h oo esr nln StesrooFl (3. rstbse_lg=fle ee_aktfa as. at 40) bek ra. Wi (00. alclr hwclr ) / Cekfrabl i tedsesrei so / hc o al n h ipne xt lt }wie(+ <RTIS& "OE = bl_oo) hl +i ERE & NN" = alclr i (NN"= bl_oo) f "OE = alclr { / Asm n blsaermiig / sue o al r eann TxOt(.

co.uk/lego/nxt_2_instructions/#robogator_jaws_program 150/237 .0 Instructions Can you build a color catapult that throws balls in different directions? arbitrarycreations.12/30/12 NXT 2.

.

uk/lego/nxt_2_instructions/#robogator_jaws_program 152/237 .12/30/12 NXT 2.co.0 Instructions arbitrarycreations.

.

uk/lego/nxt_2_instructions/#robogator_jaws_program 154/237 .12/30/12 NXT 2.co.0 Instructions arbitrarycreations.

co.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 155/237 .12/30/12 NXT 2.

12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 156/237 .0 Instructions arbitrarycreations.co.

co.uk/lego/nxt_2_instructions/#robogator_jaws_program 157/237 .12/30/12 NXT 2.0 Instructions arbitrarycreations.

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 158/237 .co.12/30/12 NXT 2.

0 Instructions arbitrarycreations.12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 159/237 .

/ Gtabl it tedsesrso / e al no h ipne lt vi la_al( od odbl ) { arbitrarycreations.x / Cukblso tesm clri tesm drcin / hc al f h ae oo n h ae ieto / Asm teeaen blsrmiigatrti nme o rtis / sue hr r o al eann fe hs ubr f ere #eieRTIS2 dfn ERE / Rsttedsesn ta adtectpl we teeaestt tu / ee h ipnig ry n h aaut hn hs r e o re bo rstdsesrfa =fle ol ee_ipne_lg as.co. at 20) 160/237 .12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program Wi (00.0 Instructions Programming guide Can you program the color catapult to throw balls of the same color in the same direction? / clrotr4nc / oosre_. bo rstctpl_lg=fle ol ee_aautfa as.

at 10) } / So teclro tebl o teNTdsly / hw h oo f h al n h X ipa / Rtr tevleo teclro tebl t tecligts / eun h au f h oo f h al o h aln ak srn so_oo ( tig hwclr ) { srn bl_oo =". C_IE. oaeoo OTB 0 0) RttMtr(U_.uk/lego/nxt_2_instructions/#robogator_jaws_program 161/237 .-0 30.GEN BU / E. 6) Wi (00. dfut eal: bl_oo ="OE. 0) Wi (0) at 50. cs IPTYLOCLR ae NU_ELWOO: bl_oo ="ELW. tig alclr " sic (ESR3 wth SNO_) { cs IPTBUCLR ae NU_LEOO: bl_oo ="LE.9) oaeoo OTC 0 0.-0 9) oaeoo OTC 3.0 Instructions Wi (00.40. oaeoo OTB 9. bek ra. alclr NN" bek ra. cs IPTRDOO: ae NU_ECLR bl_oo ="E" alclr RD. }lei (alclr= "ELW){ es f bl_oo = YLO" RttMtr(U_. utl( = SNO_) ni 1 = ESR1. Wi (0) at 50.-0 40. rtr bl_oo. alclr BU" bek ra. rstdsesrfa =fle ee_ipne_lg as. at 20) / Saeu teblsi tedsesr / hk p h al n h ipne RttMtr(U_.9. }lei (alclr= "LE){ es f bl_oo = BU" RttMtr(U_. cs IPTGENOO: ae NU_RECLR bl_oo ="RE" alclr GEN. bek ra.-0 4) oaeoo OTC 3.4) oaeoo OTC 0 5. alclr re.8) ne OTB 0.3. Of(U_) f OTB. 5.12/30/12 NXT 2. } } / Gttedsesri asadr psto / e h ipne n tnad oiin ts rstdsesr( ak ee_ipne ) { wie(re hl tu) { i (re= rstdsesrfa) f tu = ee_ipne_lg { / Gttedsesrit asadr psto uigtetuhsno / e h ipne no tnad oiin sn h oc esr ORv(U_. eun alclr } vi ainctpl (tigbl_oo) od lg_aaut srn alclr { / RD YLO. } / So tebl clr / hw h al oo TxOt(0 LDLN3 bl_oo. alclr YLO" bek ra. } } } ts rstctpl ( ak ee_aaut ) arbitrarycreations. }lei (alclr= "RE" { es f bl_oo = GEN) RttMtr(U_. } vi dses_al( od ipnebl ) { RttMtr(U_.3.co.tu) etu 3. ELW RE. LE i (alclr= "E" { f bl_oo = RD) RttMtr(U_. oaeoo OTB 9. 0.

eeSre ) i=0 . srn bl_oo. trTs rstctpl) Satak(ee_ipne) trTs rstdsesr. at 50. Of(U_) f OTC.LDLN3 "* FNSE **. ** IIHD *" re.-0.0 Instructions { wie(re hl tu) { i (re= rstctpl_lg f tu = ee_aautfa) { / Gttectpl it asadr psto uigtetuhsno / e h aaut no tnad oiin sn h oc esr OFd(U_.3. } } } ts mi ( ak an ) { iti n .co./ Mv bc utltetuhsno atvts nw OTC 3) / oe ak ni h oc esr ciae utl( = SNO_) ni 1 = ESR2. wie(re hl tu) { / Certedsly / la h ipa Rstcen(. oaeoo OTC 0 09) arbitrarycreations. Wi (00.3) / Usttetuhsno i i i stb mvn twr tefots nw OTC 0.12/30/12 NXT 2.-0) Wi (0) Of(U_) nw OTA 10. eSnoTuh S) / Bigtesrigmcaimstuhsno o-ie / rn h otn ehns' oc esr nln Stesroc (2. d o { / Rsttepstoso tedsesradtectpl i prle / ee h oiin f h ipne n h aaut n aall rstdsesrfa =tu. / lgt dutet o efc lgmn rstctpl_lg=fle ee_aautfa as.Wi (0) Of(U_) nw OTA 0) at 50. eSnoTuh S) / Bigteclrsno o-ie / rn h oo esr nln StesrooFl (3.3. oaeoo OTC 0 59) }lei (alclr= "LE){ es f bl_oo = BU" RttMtr(U_. lg_aaut bl_oo) / Fr tectpl / ie h aaut OFd(U_. ni fle = ee_ipne_lg & as = ee_aautfa) la_al(. / Mv tectpl bc oe t tefotsd. OFd(U_.10. alclr hwclr ) / Cekfrabl i tedsesrei so / hc o al n h ipne xt lt }wie(+ <RTIS& "OE = bl_oo) hl +i ERE & NN" = alclr i (NN"= bl_oo) f "OE = alclr { / Asm n blsaermiig / sue o al r eann TxOt(. } dses_al(. RttMtr(U_. ee_aautfa re / Wi utltersttssaebt fnse / at ni h ee ak r oh iihd utl(as = rstdsesrfa & fle= rstctpl_lg. f OTA.uk/lego/nxt_2_instructions/#robogator_jaws_program 162/237 .-0 1) / Asih ajsmn frpretainet oaeoo OTC 3. eSnoClrul S) Satak(ee_aaut.tu) etu 0 C_IE. tig alclr / Bigtetligmcaimstuhsno o-ie / rn h itn ehns' oc esr nln Stesroc (1.4+0. 5. OFd(U_. f OTA.rayfrrstigispsto / oe h aaut ak vr o h rn ie ed o eetn t oiin i (alclr= "RE" { f bl_oo = GEN) RttMtr(U_.9+0. ee_ipne_lg re rstctpl_lg=tu. at 40) bek ra. / ne h oc esr f t s e y oig oad h rn utl( = SNO_) ni 0 = ESR2./ Paeabl i tedsesrei so odbl ) / lc al n h ipne xt lt bl_oo =so_oo (. ipnebl ) ainctpl (alclr.

uk/lego/nxt_2_instructions/#robogator_jaws_program 163/237 . Legs Building guide Can you build a pair of legs that can walk? arbitrarycreations.12/30/12 NXT 2. tplTss ) } Test guide Download your program.co.0 Instructions } } SoAlak (. Place the Color Sorter in the middle of the test pad and make sure the axle is placed in the centre. Run the program. Alpha Rex Can you build and program the Alpha Rex to walk? 1.

0 Instructions arbitrarycreations.co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 164/237 .

0 Instructions arbitrarycreations.co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 165/237 .

uk/lego/nxt_2_instructions/#robogator_jaws_program 166/237 .12/30/12 NXT 2.0 Instructions arbitrarycreations.co.

.

uk/lego/nxt_2_instructions/#robogator_jaws_program 168/237 .12/30/12 NXT 2.0 Instructions arbitrarycreations.co.

co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 169/237 .0 Instructions arbitrarycreations.

.

12/30/12 NXT 2.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 171/237 .co.

co.0 Instructions arbitrarycreations.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 172/237 .

co.12/30/12 NXT 2.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 173/237 .

12/30/12

NXT 2.0 Instructions

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

174/237

12/30/12

NXT 2.0 Instructions

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

175/237

12/30/12

NXT 2.0 Instructions

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

176/237

12/30/12

NXT 2.0 Instructions

arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program

177/237

uk/lego/nxt_2_instructions/#robogator_jaws_program 178/237 .0 Instructions arbitrarycreations.co.12/30/12 NXT 2.

0 Instructions arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 179/237 .12/30/12 NXT 2.

0 Instructions arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 180/237 .12/30/12 NXT 2.

co.0 Instructions arbitrarycreations.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 181/237 .

uk/lego/nxt_2_instructions/#robogator_jaws_program 182/237 .12/30/12 NXT 2.co.0 Instructions arbitrarycreations.

0 Instructions arbitrarycreations.co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 183/237 .

uk/lego/nxt_2_instructions/#robogator_jaws_program 184/237 .12/30/12 NXT 2.co.0 Instructions arbitrarycreations.

uk/lego/nxt_2_instructions/#robogator_jaws_program 185/237 .0 Instructions arbitrarycreations.12/30/12 NXT 2.co.

.

.

12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 188/237 .0 Instructions arbitrarycreations.co.

0 Instructions arbitrarycreations.co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 189/237 .

12/30/12 NXT 2.0 Instructions arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 190/237 .

co.12/30/12 NXT 2.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 191/237 .

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 192/237 .12/30/12 NXT 2.co.

uk/lego/nxt_2_instructions/#robogator_jaws_program 193/237 .12/30/12 NXT 2.co.0 Instructions arbitrarycreations.

12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 194/237 .0 Instructions arbitrarycreations.co.

.

uk/lego/nxt_2_instructions/#robogator_jaws_program 196/237 .0 Instructions arbitrarycreations.co.12/30/12 NXT 2.

0 Instructions arbitrarycreations.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 197/237 .co.

0 Instructions arbitrarycreations.co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 198/237 .

12/30/12 NXT 2. / Tredrcin frwlig / he ietos o akn #eieIPAE 0 dfn NLC #eieFRAD 1 dfn OWRS #eieBCWRS2 dfn AKAD / Gttelg i asadr psto / e h es n tnad oiin / MtrB&tuhsno 1-.co.uk/lego/nxt_2_instructions/#robogator_jaws_program { 199/237 . n owrs n akad.lf lg / oo oc esr -> et e vi rstlg ( od ee_es ) arbitrarycreations. and then walk forwards and backwards? / apae_.adbcwrs / ak n lc.0 Instructions Programming guide Can you build a pair of legs that test walk in place.rgtlg / oo oc esr -> ih e / MtrC&tuhsno 2-.x / lhrx1nc / Wl i pae adfrad.

5) nw OTB 0.5) Wi (0) nw OTB 0. 0 urnTc ) sic (ieto) wth drcin { cs IPAE ae NLC: wie(urnTc ( -t <drto) hl Cretik ) 0 uain { OFd(U_.12/30/12 NXT 2. 0 ) } bek ra. nw OTC 7) } bek ra. f OTB) } ts mi ( ak an ) { / Bigtetuhsnoso-ie / rn h oc esr nln Stesroc (1.5) nw OTC 0./ Ptlf lgu oaeoo OTC 7. utl( = SNO_) ni 0 = ESR1. Of(U_) f OTB. at 20) wl (AKAD. Of(U_) f OTC.-0 10. 0 ) } bek ra. } OFd(U_. } OFd(U_.0 Instructions { i ( = SNO_) f 1 = ESR1 { OFd(U_. at 30.-0.7) OFd(U_.uk/lego/nxt_2_instructions/#robogator_jaws_program 200/237 . nw OTB 0. eSnoTuh S) eSnoTuh S) wl (NLC. ak BCWRS 00. ak IPAE 00. Of(U_) f OTB.0. 50) Wi (00. at 20) wl (OWRS 50) Wi (00.50) Wi (00. at 30. ee_es ) Wi (00. / u ih e on RttMtr(U_. cs FRAD: ae OWRS wie(urnTc ( -t <drto) hl Cretik ) 0 uain { OFdyc(U_C 5.Stesroc (2. utl( = SNO_) ni 1 = ESR2.4) / Ptrgtlgdw oaeoo OTB 0 5. utl( = SNO_) ni 1 = ESR1.7. 5) / u et e p t =Cretik(. 00. } Of(U_C. nind og uain { usge ln t. Of(U_) f OTC.co. } vi wl (n drcin usge ln drto) od ak it ieto. neSn OTB.5) Wi (0) nw OTC 0. at 20) } arbitrarycreations. nwSn OTB. ak FRAD. nind og 0 rstlg (. cs BCWRS ae AKAD: wie(urnTc ( -t <drto) hl Cretik ) 0 uain { ORvyc(U_C 5.0. at 20) RttMtr(U_. utl( = SNO_) ni 0 = ESR2. i ( = SNO_) f 1 = ESR2 { OFd(U_.

co.12/30/12 NXT 2. Arms Building guide Can you build the Alpha Rex with a pair of arms and moveable hands? arbitrarycreations. Place the Alpha Rex on the test pad. 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 201/237 . Run the program.0 Instructions Test guide Download the program.

uk/lego/nxt_2_instructions/#robogator_jaws_program 202/237 .co.12/30/12 NXT 2.0 Instructions arbitrarycreations.

co.uk/lego/nxt_2_instructions/#robogator_jaws_program 203/237 .0 Instructions arbitrarycreations.12/30/12 NXT 2.

uk/lego/nxt_2_instructions/#robogator_jaws_program 204/237 .12/30/12 NXT 2.0 Instructions arbitrarycreations.co.

12/30/12 NXT 2.0 Instructions arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 205/237 .

0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 206/237 .co.12/30/12 NXT 2.

co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 207/237 .0 Instructions arbitrarycreations.

12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 208/237 .0 Instructions arbitrarycreations.co.

co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 209/237 .0 Instructions arbitrarycreations.

.

uk/lego/nxt_2_instructions/#robogator_jaws_program 211/237 .co.0 Instructions arbitrarycreations.12/30/12 NXT 2.

12/30/12 NXT 2.0 Instructions arbitrarycreations.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 212/237 .

.

uk/lego/nxt_2_instructions/#robogator_jaws_program 214/237 .12/30/12 NXT 2.co.0 Instructions arbitrarycreations.

12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 215/237 .0 Instructions arbitrarycreations.co.

12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 216/237 .co.0 Instructions arbitrarycreations.

uk/lego/nxt_2_instructions/#robogator_jaws_program 217/237 .co.0 Instructions arbitrarycreations.12/30/12 NXT 2.

uk/lego/nxt_2_instructions/#robogator_jaws_program 218/237 .co.12/30/12 NXT 2.0 Instructions arbitrarycreations.

12/30/12 NXT 2.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 219/237 .co.

0 Instructions arbitrarycreations.12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 220/237 .

uk/lego/nxt_2_instructions/#robogator_jaws_program 221/237 .12/30/12 NXT 2.0 Instructions arbitrarycreations.co.

0 Instructions arbitrarycreations.12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 222/237 .

12/30/12 NXT 2.co.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 223/237 .

0 Instructions arbitrarycreations.co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 224/237 .

uk/lego/nxt_2_instructions/#robogator_jaws_program 225/237 .12/30/12 NXT 2.co.0 Instructions arbitrarycreations.

0 Instructions Programming guide Can you program the arms to move back and forth while the hands open and close? / apae_. Wi (00. Wi (00.uk/lego/nxt_2_instructions/#robogator_jaws_program 226/237 . / bc t cne / ak o etr RttMtr(U_.10 26) oaeoo OTA 0.10 26) oaeoo OTA 0.-0.x / lhrx2nc / Mv team bc adfrh / oe h rs ak n ot ts mi ( ak an ) { wie(re hl tu) { / tr rgt-oe lf hn / un ih pn et ad RttMtr(U_. 3. Head Building guide Can you build the Alpha Rex to see? You will have to build a head on it! arbitrarycreations. Run the program. *0.26) oaeoo OTA 10 *0.-0. at 10) } } Test guide Download the program.12/30/12 NXT 2. Place the Alpha Rex on the test pad.co. at 10) / tr lf -oe rgthn / un et pn ih ad RttMtr(U_.26) oaeoo OTA 10 *0. *0. / bc t cne / ak o etr RttMtr(U_.

12/30/12 NXT 2.co.uk/lego/nxt_2_instructions/#robogator_jaws_program 227/237 .0 Instructions arbitrarycreations.

uk/lego/nxt_2_instructions/#robogator_jaws_program 228/237 .0 Instructions arbitrarycreations.12/30/12 NXT 2.co.

0 Instructions arbitrarycreations.co.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 229/237 .

co.0 Instructions arbitrarycreations.12/30/12 NXT 2.uk/lego/nxt_2_instructions/#robogator_jaws_program 230/237 .

co.0 Instructions arbitrarycreations.uk/lego/nxt_2_instructions/#robogator_jaws_program 231/237 .12/30/12 NXT 2.

uk/lego/nxt_2_instructions/#robogator_jaws_program 232/237 .0 Instructions arbitrarycreations.12/30/12 NXT 2.co.

} OFd(U_. / u ih e on 233/237 . } OFd(U_. utl( = SNO_) ni 1 = ESR1. Of(U_) f OTB. at 30. Of(U_) f OTB.co.0 Instructions Programming guide Can you program the Alpha Rex to move forward when it sees an object? / apae_.12/30/12 NXT 2. nind og 0 arbitrarycreations. utl( = SNO_) ni 1 = ESR2.4) / Ptrgtlgdw oaeoo OTB 0 5. at 30. nind og uain { usge ln t.uk/lego/nxt_2_instructions/#robogator_jaws_program RttMtr(U_.7. } vi wl (n drcin usge ln drto) od ak it ieto.5) Wi (0) nw OTC 0.5) nw OTB 0.5) Wi (0) nw OTB 0. Of(U_) f OTC. utl( = SNO_) ni 0 = ESR2.rgtlg / oo oc esr -> ih e / MtrC&tuhsno 2-. i ( = SNO_) f 1 = ESR2 { OFd(U_.lf lg / oo oc esr -> et e vi rstlg ( od ee_es ) { i ( = SNO_) f 1 = ESR1 { OFd(U_. utl( = SNO_) ni 0 = ESR1.x / lhrx3nc / Mv fradwe a ojc i vsbe / oe owr hn n bet s iil / Wl fradwe ojcscm coe ta ti / ak owr hn bet oe lsr hn hs #eieTRSOD5 dfn HEHL 0 / Tredrcin frwlig / he ietos o akn #eieIPAE 0 dfn NLC #eieFRAD 1 dfn OWRS #eieBCWRS2 dfn AKAD / Gttelg i asadr psto / e h es n tnad oiin / MtrB&tuhsno 1-. Of(U_) f OTC.5) nw OTC 0.

Place the Alpha Rex on the test pad. bek ra. 5) / u et e p t =Cretik(./ Bigtetuhsnoso-ie eSnoTuh S) eSnoTuh S) / rn h oc esr nln Stesrosed(4. 4. cs BCWRS ae AKAD: ORvyc(U_C 5. nw OTC 5) utl(urnTc ( -t >drto) ni Cretik ) 0 uain./ Ptlf lgu oaeoo OTC 7. ee_es ) } ts mi ( ak an ) { Stesroc (1.-0 10. } Of(U_C. bek ra. Color sensor Building guide Can you make the Alpha Rex detect colors by adding the Color Sensor? .RttMtr(U_.-0. bek ra.Stesroc (2.0. nw OTB 0./ Bigteutaoi sno o-ie eSnoLwpe S) / rn h lrsnc esr nln rstlg (. ni SnoU S) HEHL) wl (OWRS 50) Wi (00. nwSn OTB. ak FRAD. 0 ) utl(urnTc ( -t >drto) ni Cretik ) 0 uain. 0 ) utl(urnTc ( -t >drto) ni Cretik ) 0 uain. 0 urnTc ) sic (ieto) wth drcin { cs IPAE ae NLC: OFd(U_. f OTB) rstlg (. wie(re hl tu) { utl(esrS(4 <TRSOD. / u ih e on RttMtr(U_. ee_es ) Wi (0) at 50. 00.0. at 20) } } Test guide Download the program.7. neSn OTB. Run the program.4) / Ptrgtlgdw oaeoo OTB 0 5.5) OFd(U_. cs FRAD: ae OWRS OFdyc(U_C 5.

uk/lego/nxt_2_instructions/#robogator_jaws_program #eieFRAD 1 dfn OWRS 235/237 .co.12/30/12 NXT 2.x / lhrx4nc / Akfragenbl / s o re al / TD Ueaviet akfragenbl we ncad / OO s oc o s o re al hn x ds / spotfrsudflso Lnx / upr o on ie n iu / Akfrabl we a ojc i coe ta ti / s o al hn n bet s lsr hn hs #eieTRSOD5 dfn HEHL 0 / Tredrcin frwlig / he ietos o akn #eieIPAE 0 dfn NLC arbitrarycreations. / apae_.0 Instructions Programming guide Can you program the Alpha Rex to ask for the green ball and then identify it? The Alpha Rex should identify and reject balls in other colors.

Of(U_) f OTC. 0 ) utl(urnTc ( -t >drto) ni Cretik ) 0 uain. cs FRAD: ae OWRS OFdyc(U_C 5. 5) / u et e p t =Cretik(. bek ra. } Of(U_C./ Ptlf lgu oaeoo OTC 7.7. i ( = SNO_) f 1 = ESR2 { OFd(U_.0.-0. } vi wl (n drcin usge ln drto) od ak it ieto. } OFd(U_.rgtlg / oo oc esr -> ih e / MtrC&tuhsno 2-. utl( = SNO_) ni 1 = ESR1. nind og uain { usge ln t.Stesroc (2./ Bigtetuhsnoso-ie eSnoTuh S) eSnoTuh S) / rn h oc esr nln Stesrosed(4.12/30/12 NXT 2.-0 10./ Bigteclrsno o-ie eSnoClrul S) / rn h oo esr nln arbitrarycreations. 0 urnTc ) sic (ieto) wth drcin { cs IPAE ae NLC: OFd(U_.co.5) nw OTB 0. at 30. Of(U_) f OTB.lf lg / oo oc esr -> et e vi rstlg ( od ee_es ) { i ( = SNO_) f 1 = ESR1 { OFd(U_. bek ra. Of(U_) f OTC.0.5) Wi (0) nw OTB 0. cs BCWRS ae AKAD: ORvyc(U_C 5.26) Wi (0) oaeoo OTA 10 *0.10 26) oaeoo OTA 0.5) Wi (0) nw OTC 0. at 30. nw OTB 0.-0. *0. } / Gttelg i asadr psto / e h es n tnad oiin / MtrB&tuhsno 1-. 0 ) utl(urnTc ( -t >drto) ni Cretik ) 0 uain. utl( = SNO_) ni 1 = ESR2. bek ra./ Bigteutaoi sno o-ie eSnoLwpe S) / rn h lrsnc esr nln StesrooFl (3. ee_es ) } ts mi ( ak an ) { Stesroc (1. nind og 0 RttMtr(U_.5) nw OTC 0. at 80. utl( = SNO_) ni 0 = ESR1. utl( = SNO_) ni 0 = ESR2. f OTB) rstlg (.5) OFd(U_. Of(U_) f OTB. neSn OTB. nwSn OTB. nw OTC 5) utl(urnTc ( -t >drto) ni Cretik ) 0 uain.uk/lego/nxt_2_instructions/#robogator_jaws_program 236/237 . / u ih e on RttMtr(U_. } OFd(U_. / bc t cne / ak o etr RttMtr(U_.4) / Ptrgtlgdw oaeoo OTB 0 5.0 Instructions #eieFRAD 1 dfn OWRS #eieBCWRS2 dfn AKAD vi do_al( od rpbl ) { RttMtr(U_.

rpbl ) } es le { / Mv frad / oe owr wl (OWRS 50) ak FRAD.LDLN1 " etu 0 C_IE. the Alpha Rex's hands should be closed and pointed forward (do this by turning the gear on the right side of its back).0 Instructions rstlg (. 00.50) ak BCWRS 00. at 10) } } Test guide Download the program.50) ak IPAE 00. as) / Wi utlabl i pae i tergthn / at ni al s lcd n h ih ad utl(NU_LCCLR! SNO_) ni IPTBAKOO = ESR3. as) TxOt(. re. / Rlaetebl / ees h al do_al(. / Do tebl / rp h al do_al(. etu 0 C_IE. ee_es ) Wi (0) at 50. ni SnoU S) HEHL) / Dslyamsae / ipa esg TxOt(. eeSre ) i (NU_RECLR= SNO_) f IPTGENOO = ESR3 { / D adne / o ac wl (NLC. arbitrarycreations. Run the program. } Wi (00. TxOt(. Place the Alpha Rex on the test pad. GV M A IE E " tu) . rpbl ) / Mv bc / oe ak wl (AKAD.co. * RE * . Before running the program.uk/lego/nxt_2_instructions/#robogator_jaws_program 237/237 . wie(re hl tu) { utl(esrS(4 <TRSOD. BL AL " fle.LDLN3 " **GEN** " fle.LDLN5 " etu 0 C_IE. Wi (00. at 20) Rstcen(. .12/30/12 NXT 2.

Sign up to vote on this title
UsefulNot useful