lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/lecture_29_09_2011.pdfan essential element of the...

68
Mindstorms NXT • mindstorms.lego.com

Upload: others

Post on 13-Mar-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Mindstorms NXT• mindstorms.lego.com

Page 2: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

A3B99RO Robots: course organizationAt the beginning of the semester the students are divided

into small teams (2 to 3 students). Each team uses the basic set of the LEGO Mindstorms Education 9797, the set of the technical parts 9648 (additional passive components) and the network adapter 9833 (see Fig. 1). The teams design and complete the mobile robot with implemented control and program it to fulfill the specified and well-revisable tasks. Eventually, the teams prepare for the final competition with their robots directly fighting the opponents in activities attractive for broad audience.

Figure 1 Basic set of LEGO Mindstorms Education 9797, set of technical parts 9648 and the network adapter 9833

Page 3: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

An essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the robot is the central control unit known as LEGO ® NXT Intelligent Brick (see Figure 2) with a matrix display 100 x 64 pixels, 4 input ports for connection of the sensors, 3 output ports for connection of the motors, a speaker with 8kHz sampling frequency, having a possibility of Bluetooth wireless communications or an ability connecting to a USB 2.0 port. The intelligent brick and connected devices can be tested and partlycontrolled with the help of 4 buttons. Up to 3 servomotors can be connected to the LEGO ® NXT Intelligent brick which can be used as sensors for rotational speed measurement as well. The touch sensor, the light sensor (giving the robot an ability to “see” by measuring the intensity of the light and even recognizing different colors), the sound sensor or ultrasonic sensors (enabling the robot an orientation in the space, to find obstacles and to determine the distance from them) can be connected as well.

Figure 2 Intelligent LEGO ® NXT brick and connected sensors

Page 4: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Intelligent LEGO ® NXT brick

• Matrix display 100 x 64 pixels• USB 2.0 port• Bluetooth wireless communications• 4 input ports for connection of the sensors(1, 2, 3, 4)

• 3 output ports for connection of the motors(A, B, C)

• Loudspeaker with 8kHz sampling frequency

Page 5: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

NXT Brick Features

• 64K RAM, 256K Flash• 32-bit ARM7 microcontroller• 100 x 64 pixel LCD graphical display• Sound channel with 8-bit resolution• Bluetooth radio • Stores multiple programs

– Programs selectable using buttons

Page 6: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Ideas

• youtube.com• ...

Page 7: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Brick

• 4 sensor inputs• 3 sensor inputs / motor outputs • Programmable

Page 8: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 9: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 10: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 11: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Purchasing NXT Kits• Two options (same price; $250/kit)

– Standard commercial kit– Lego Education kit

• http://www.lego.com/eng/education/mindstorms/

• Advantages of education kiteducation kit– Includes rechargeable battery ($50 value)– Plastic box superior to cardboard– Extra touch sensor (2 total)

• Standard commercial kitcommercial kit– Includes NXT-G visual language

Page 12: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Interactive servomotor• may be used also as speedometer

Page 13: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 14: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Touch sensor• robot get touch

Page 15: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Ultrasonic sensor• enabling the robot an orientation in the space, to find obstacles and to determine the distance from them

Page 16: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Light sensor• giving the robot an ability to “see” by measuring the intensity of the light and even recognizing different colors

Page 17: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Acoustic sensor

• robot may to hear

Page 18: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

18

NXT Non-standard sensors: HiTechnic.com

Compass, Accellerometer, Gyroscope, Color, IRSeeker, …

Page 19: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Programming languages• NXT-G, NXC• leJOS NXJ

Page 20: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

20

LEGO Digital Designer ldd.lego.com

Page 21: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

LEGO® Digital Designer

http://ldd.lego.com/

Page 22: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Programming LEGO robots:1. NXT-G – The programming language was named according to the

programming language used by the LabVIEW program, developed by National Instruments, which is called only G. Abbreviation ”G“ comes from the fact that the programming language is graphical. Programs written in the NXT-G are thus built up of graphic blocks, with set up properties and subsequence, connected together. NXT-G is a joined product of LEGO and National Instruments and it is the basic programming tool for the LEGO MINDSTORMS NXT. The emphasis of the NXT-G is put on intuitiveness and simplicity of development environment including the programming process so that it can be used by primary school pupils with little experience in programming.

Page 23: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

2. NXC – This text language derived from C language runs in the BricxCC on the standard firmware LEGO Mindstorms. It is very comfortable for those who want to program in both the NXT-G and the NXC because they do not need to upload new firmware after each change in programming environment. Working with the language abbreviating the phrase ”Not Exactly C“ is very comfortable and a programmer understanding at least the basics in C language becomes quickly familiar with the environment due to the almost identical semantics. Another advantage is that it is a freeware application. A disadvantage consists in complicated debugging of the programs. Unlike the NXT-G it is a purely textual programming without any graphics .

Page 24: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

3. LeJOS-NXJ - The programming language distributed by Sourceforge is free and is available for Windows, Linux and MAC OS. Due to widespread expansion and knowledge of Java many users chose the LEGO MINDSTORMS LeJOS NXJ with its extensive libraries, which support interesting functions of the robot. The disadvantage is the necessity to change the firmware NXT which includes Java Virtual Machine replacing the standard LEGO firmware. LEGO firmware may be loaded into the NXT brick back using the LEGO software .

It depends on the students if they use one of recommended programming languages or use other ones (e.g. MATLAB toolbox developed at the University of Aachen (a product for users accustomed to programming in Matlab), RobotC (programming language based on C programming language), LeJOS OSEK (programming in ANSI C / C + +), or another one) .

Page 25: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

The tasks solved in the academic year 2009/10In the academic year 2009/10 the students solved two tasks:A) Follow the line – the aim was to build and program a robot that would independently, without any further assistance (e.g. control using voice, Bluetooth or other communication channels), pass along the black line marked on the mat as quickly as possible and stop at its end. The students do not know the path in advance, they know only the basic parameters of the runway and the total length of the line that is approximately 10 m. The line may be arbitrarily extended not crossing itself with a minimum curve radius 20 cm.

Page 26: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 27: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 28: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

B) Labyrinth – the aim of the second task was to build and program a robot that would pass through the maze from its beginning to its end as quickly as possible

The minimum distance between any two maze walls was about 40 cm. All maze walls were straight-line, 28 cm high, absent from any unforeseen bends and perpendicular to the bottom, i.e. there were no inclined walls. The total size of the maze was 330 x 160 cm

Page 29: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 30: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 31: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 32: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

The tasks solved in the academic year 2010/11In the academic year 2010/11 the students solved two different tasks:A) Avoiding objects while following the line – the aim was to build and program a robot that would pass along the black line marked on the paper board from the starting area to the finishing area as quickly as possible and stop at its end while avoiding obstacles (even touching them) placed anywhere on the line (see Fig. 8). The students again do not know the path in advance, they know only the basic parameters of the runway and the total length of the line that is between 1 and 10 m. The line may be arbitrarily extended not crossing itself with a minimum curve radius 20 cm.

Page 33: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 34: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 35: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

B) Sumo – the aim was to build and program a robot that would take part in the robotic wrestling tournament. A couple of opponents is competing on a circle playground (see Fig. 9). The task of the robot is to push the opponent out of the playground without leaving it itself. As soon as one opponent touches by any part of his body any place out of the playground he looses. A robot also looses if any of his parts falls down and is subsequently pushed out or the part touches the area outside the playground. The ground plan of the robot should fit in a square with the edge 25 cm, his height is not limited. After starting the match the robot may arbitrarily change his size and shape and turn over. The maximum weight of the robot is 1,5 kg. The playground is a circle laminated plate 1 m in diameter and the height of 18 mm that is circumscribed by a black line 2 cm wide. The rest of the circle is white. The spots for initial placement of the robot before starting the match are marked. Before starting the match the opponents are placed on the playground oriented with their backs each to another, each in the distance 10 cm from the middle of the playground. After a two-round competition in the groups of 6 teams competing each to the other best eleven teams advanced to the final contest.

Page 36: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 37: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 38: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 39: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 40: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Introduction to NXTG Programming

• Please go through Getting Started and Software Overview

Page 41: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

First NXT program: Go forward for 2 sec. and stop

• Let’s name the program first

• Click on Go >> button• You’ll see a

programming palette (canvas)

Page 42: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 43: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 44: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 45: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 46: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 47: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 48: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 49: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 50: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the
Page 51: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

First NXT program using SB1: Go forward for 2 sec. and stop

(2/3)• Click on Move button• Drag and drop the move block to

the canvas

Page 52: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

First NXT program using SB2: Go forward for 2 sec. and stop

(3/3)• Change parameters for the Move– Port– Direction– Steering– Power– Duration– Next Action

Block

Configuration Panel

Page 53: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

How to run your first program (1/2)

Page 54: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

How to run your 1st program (2/2)

• If “Found New Hardware” pops up, just follow the instruction

• Click on “Download” button• Recommended to un-plug the

cable from the Bot• Press the orange button 4 times

(Turn on, My files, Software files, Run your program entitled go2stop)

Page 55: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

How to rerun the program

• Check the program name on the LCD• Press the orange button just once again

Page 56: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

How to stop the program

• Gray button

Page 57: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

First NXT Program: Go forward for 2 sec. and stop (Review)

Page 58: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Do not forget:

• Save your programs• Meaningful file (program) names• Use comments

Page 59: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

2nd Program: ForwardBack

1. Go Forward 2 rotations2. Wait 3 seconds, then 3. Backward 1 rotation

Page 60: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Go Forward 2 rotations, Wait 3 seconds then Backward 1 rotation –

ForwardBack

Page 61: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Making Turns(Instructor Slide)

• Turn left

• Spin left

• Face left

Left wheel Right wheel

Left wheel Right wheel

Left wheel Right wheel

stop

stop

• Objective– Challenge the students to think about how a turn is made– Two ways to turn using one motor (demonstrate by turning with your leg)– Demonstrate advantage of turning by spinning

Page 62: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Making Turns

• Turn left

• Spin left

• Face left

Left wheel Right wheel

Left wheel Right wheel

Left wheel Right wheel

stop

stop

Page 63: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

• Forward 2 rotations, • Turn Left 90 Degrees, • and Forward 2 rotations

Turn90Left – Using a Motor Block!

Page 64: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Forward 2 rotations, Turn Left 90 Degrees, and Forward 2 rotations –

Turn90Left

Page 65: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

How do we make to turn 90 degrees?

• Timer?• Trial errors• Let’s do the math!!!

– Width of the robot: 14 cm– Diameter of the wheel: 5.5 cm– Perimeter of the wheel: 5.5 cm x pi = 17.27

Travel distance needed: (14 x 2 x pi) / 4 = 21.98 cm

Number of rotations needed?

21.98 / 17.27 = 1.272714 cm

Page 66: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Start-Light

• Locate the robot in the middle of the ring• Wait until the light sensor detects very

bright (lantern) light• Then start the robot to go forward• Stop after a second

Page 67: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the

Start-Light

Page 68: Lecture 29 09 2011 - cvut.czrbs.felk.cvut.cz/files/Lecture_29_09_2011.pdfAn essential element of the set LEGO Mindstorms Education 9797 and at the same time the ”brain“ of the