Download - Προγραμματισμός του LEGO Mindstorm s NXT για το διαγωνισμό " Move the Ball !"

Transcript
Page 1: Προγραμματισμός του LEGO  Mindstorm s  NXT για το διαγωνισμό " Move the Ball !"

Ζαμπετάκης ΜιχαήλΑυτόνομοι Πράκτορες ΕΚΠ 413

2007

Page 2: Προγραμματισμός του LEGO  Mindstorm s  NXT για το διαγωνισμό " Move the Ball !"

The LEGO Mindstorms NXTNXT BrickServo MotorsUltrasonic SensorLight SensorSound SensorTouch SensorLEGO pieces

Variety of ProgrammingLanguages

Page 3: Προγραμματισμός του LEGO  Mindstorm s  NXT για το διαγωνισμό " Move the Ball !"

The ChallengeConstruct & Program a Robot that will:

Start from a certain pointGet the ballFollow the black lineFind the mountLeave BallGet out of the oval circle

Judging : 3 timesMinimum TimeTow categories

Page 4: Προγραμματισμός του LEGO  Mindstorm s  NXT για το διαγωνισμό " Move the Ball !"

My RobotDifferential Drive – 2 ServosClaw - 1 servoSensors – US, Light, Touch

Page 5: Προγραμματισμός του LEGO  Mindstorm s  NXT για το διαγωνισμό " Move the Ball !"

My CodeBegin

WaitGet Ticks

Search for the BallGo to Mount & Get the ballFind LineFollow LineSearch for the MountGo to Mount & Leave the ballGet out of the lineEnd

Calculate TicksPlay ToneWait

Page 6: Προγραμματισμός του LEGO  Mindstorm s  NXT για το διαγωνισμό " Move the Ball !"

The ResultsTotal Time:

Left : 31944ms left_video.aviRight : 31583ms right_video.aviAhead : 30546ms ahead_video.avi

Mean rime: 31357,66ms

2nd position“other languages category”

Page 7: Προγραμματισμός του LEGO  Mindstorm s  NXT για το διαγωνισμό " Move the Ball !"

Questions…

Ζαμπετάκης ΜιχαήλΑυτόνομοι Πράκτορες ΕΚΠ 413

2007