ࡱ> `b_U bjbjnn 4 aa9 +-JJNNNbbb8$b"+YYY*******$-/P*NYYYY*JJ*YvJN*Y*rY)TJ5*p0j)**0"+)z 09 05* 0N5*XYYYYYYY**YYY"+YYYY 0YYYYYYYYYB : ENGR 10 Robot Project Week 1 Programming Tasks 4.1.1 VEX Controller Initialization (Week #1): No Initializing is required, controllers have been used before. 4.1.2 Write your first program (Week #1): Goal: Learn how to enter a program into EasyC V6 Cortex from the provided documentation, and enter the test program shown in Figure 4. Plug a motor module (two wire) into Motor Port #1 (NOTE: the narrow slot on one side of the socket should match the thinner edge of the motor module connector). Enter the EasyC V6 Cortex test program shown in Figure 3. Build and download the program by clicking Build and download -> Build and download As soon as the download is completed, the motor should start to turn. You are now ready to write several exercise programs.  Figure 4. EasyC test program. This program makes the motor turns in one direction at full speed for 1 second, and then in the opposite direction for 1 second. 4.1.3 Write Three Practice Programs (Week #1): Practice program 1: Write a program that gradually increases the speed of the motor. The speed of the motor should go from 0 to the maximum speed within about 10 seconds. Practice program 2: Write a program that gradually increases the speed of the motor, and after it reaches the maximum speed, gradually reduces the speed and reverses the speed until the speed reaches the reverse maximum speed. After the motor reaches the reverse maximum speed, the speed should once again increase. In other words, your program should make the motor speed swing between the forward maximum and the reverse maximum speeds. Practice program 3: Write a program that makes the motor spin until the bumper switch (plugged it into port 1 of the Digital ports) is pressed. When the bumper is released, the motor starts spinning again but in the reverse direction. When the bumper switch is pushed again, the motor stops, and so on. 4.1.4 Check that motors are working (Week #1): Hook up each motor and servo to the controller Write a short program to turn the motors back and forth and to move the servo a specified number of degrees. Download to the controller and test that the motors and servo are working properly. If they dont turn, talk to your Professor. This will save you from having to take apart your robot later when you find out your motors dont work.      PAGE \* MERGEFORMAT 1 SetPWM (1,127) SetPWM (1, -127) X X 12U_`a P Q g q r    1 [ m w   ηηηηίηηo"jh2CJUaJmHnHu"jh CJUaJmHnHuhVOh ->*CJaJh_CJaJh2CJaJh DCJaJhVOh -CJaJhVOh -5CJaJh -CJaJh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ŕD?t#O87HʤV<-0Bϴ1 F{x\q8?%& IR& J1Tv@dZ|u%K2v@\UumДxW!II"+ $#*~AkXxX70S`ʑ<^nnn$?8_+HS(hMU G*@P`^MQm ϕP_i<Y$@OX#o뼯-kB_as<AyxuƈT!`[0ݭ{4s*1~J(怳\JN *EФF~-aA&$4 eϙ'[.KF+QCtQ(צ% h# PI"Дx8PI"Дx8PI"Дx8PI"Дx8PI"Дx8PI"Дx8PI"Дx8PI"Дx8PI"Дx8PI"Дx8PI"Дx8zD·C oX>.袹H(MX$E@[`i8sWP٤Q!oްiߠtAY`H hcO1mG]GXe)*8f&r~/'ڧd`YG9^%>Й*>Ǵ n~!˸\A3jt<E"Lϴ8Δ+J,&7وܲ Pǔgjspٷ:8 )c an>૘(*4>ſ!ɻ&x63юR췡7)İ$${н%(ڇUf;<MC&IU@Y [^:߶8 ݙ_7 f S!$TFoိC!> x~ (by=nuoUǮF]PnQh *poÅ?ٓq`IollF,|c!-~(\jռyWu|8ew1#@V[RRrС¸[T "$*>;x /^+  h I& )9s句…3<.`gv\Ne *fS*DSB@۾@P@?@.\>Q0,& Ux 6;I%͑1O@H@M:#6666666666666666666666666666666666666666666666666hH6666666666666666666666666666666666666666666666666666666666666666662 0@P`p2( 0@P`p 0@P`p 0@P`p 0@P`p 0@P`p 0@P`p8XV~ 0@ 0@ 0@ 0@ 0@ 0@ 0@ 0@ 0@ 0@ 0@ 0@ 0@ 0@ OJPJQJ_HmH nH sH tH L`L  -Normal$CJOJPJQJ_HaJmH sH tH DA D Default Paragraph FontRiR 0 Table Normal4 l4a (k ( 0No List HH  -0 Balloon TextCJOJQJ^JaJR/R  -0Balloon Text CharCJOJPJQJ^JaJ44  -0Header  H$F/!F  -0 Header CharCJOJPJQJ^JaJ4 @24  -0Footer  H$F/AF  -0 Footer CharCJOJPJQJ^JaJPK![Content_Types].xmlN0EH-J@%ǎǢ|ș$زULTB l,3;rØJB+$G]7O٭Vc:E3v@P~Ds |w< "$&),    "$&),/ :  ***-   t  $&-!P@f@2 (  \  3 "? b  C "? \  3 "? b   C "? (   b   3 #"  b   3 #"  B S  ?      mt   t2.&tq#t wat   t \st!9 ; < > ? A B D E c d t}9 ; < > ? A B D E c d 33agr8 9 E ` d agr8 9 E ` d G4~5iB MH}?iiph88^8`OJQJo(hHh^`OJQJ^Jo(hHoh  ^ `OJQJo(hHh  ^ `OJQJo(hHhxx^x`OJQJ^Jo(hHohHH^H`OJQJo(hHh^`OJQJo(hHh^`OJQJ^Jo(hHoh^`OJQJo(hHh^`OJQJo(hHh^`OJQJ^Jo(hHohp^p`OJQJo(hHh@ ^@ `OJQJo(hHh^`OJQJ^Jo(hHoh^`OJQJo(hHh^`OJQJo(hHh^`OJQJ^Jo(hHohP^P`OJQJo(hHh ^`hH.h ^`hH.h pLp^p`LhH.h @ @ ^@ `hH.h ^`hH.h L^`LhH.h ^`hH.h ^`hH.h PLP^P`LhH.h ^`hH.^`o(.808^8`0o(..808^8`0o(... 808^8`0o( .... ^`o( ..... ^`o( ...... `^``o(....... `^``o(........G4MH?ii5iB                            CH4S_zficPU2|^ Dv -eY9 ; @ @UnknownG*Cx Times New Roman5Symbol3.*Cx Arial7.*@Calibri5..[`)Tahoma?= .Cx Courier New;WingdingsA$BCambria Math"1hƴƴ`f!05 a  2QHP $P -2!xxЀ: Anagnos Ken Youssefi    Oh+'0\   $ 0<DLTAnagnosNormalKen Youssefi2Microsoft Office Word@@tg @tg ` ՜.+,0 hp   Microsoft5   Title  !"#$%&'()*+,-./012345789:;<=>?@ABCDEFGHIJKLMNPQRSTUVXYZ[\]^aRoot Entry F$0cData H1Table6&0WordDocument4 SummaryInformation(ODocumentSummaryInformation8WCompObjr  F Microsoft Word 97-2003 Document MSWordDocWord.Document.89q