educatenxt navigation accuracy 4 poles challenge programming the edubot before trialing on the...

19
EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

Upload: khalil-bostwick

Post on 15-Jan-2016

213 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Navigation Accuracy4 Poles Challenge

Programming the EduBot before trialing on the course

Page 2: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

How far am I going?Work out how far one “rotation” takes the robot.

Place a small mark on the bottom of the wheel.

Go forward one rotation.

Measure this distance

Page 3: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Checking using Circumference

One rotation is equal to the circumference of the wheel.

To measure the circumference, find the radius.

Circumference = 2 x π x radius

Substitute into the formula:

C = 2 x 3.14 x radius

C = distance of one rotation

Page 4: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Start

rC 2

Using Distance of a Rotation

How many rotations does it take to get to the corner?You may need to use decimals (eg. 3.5 rotations).

Page 5: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Now to get around the corner…

Page 6: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Another CalculationAssuming a pivot turn – one motor only – for

right wheel

Right wheel forward only

Page 7: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Another CalculationHow many rotations to get to Point A?

AA quarter turn

Right wheel forward only

Page 8: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Calculate Quarter-turn Distance

Circumference (C = 2πr)

divided by 4

Program in a left turn for your robot.

How many rotations is this for the right motor?

Page 9: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Good luck with the dotted (outside) line on the 4 Poles Course.

Try and program the EduBot for the whole dotted line course before trialing.

How far around the course did the EduBot go?

Page 10: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Start

At this point, a wide turn needs to be taken – and the programming gets

interesting!

Now for the Dashed Course…

Page 11: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

28cm

28cm

120cm

120cm

In order to take the wide arch, the two wheels have to travel at a different velocity.

The steering slider in a Move Block is limited to 10 radius of curve turn.

A NEW PROGRAMMING TRICK IS REQUIRED

for more accurate curve turning

Page 12: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Before the programming tricks…Which set of wheels will create a turning circle with

the biggest radius?

The arrows’ lengths represent power.

A B

Answer

A – the closer the power of the two motors, the wider the turning arc

Page 13: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Programming a Curved TurnTwo ways

Split task Wait for time

Page 14: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Split TaskAllows two tasks to operate at the same time.

In this case, two Move blocks representing two separate motors.

Two forms of BranchingClick and drag from the starting point.

Midway in the program – click and drag while the Shift key is pressed.

Page 15: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Split Task (continued)Things to note:

Motor B and C have different powers.

2 different motors – B and C – both going forward

Duration is time (not rotations) – can you suggest why?

Try both and see.

Page 16: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Wait for timeTwo separate Move Blocks

(with different motors selected)

Have different powers

Second Curve Turn Technique

and are set to duration unlimited

Page 17: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Wait for Time (continued)

A “Wait for Time” block is added, and time for the curve turn selected.

You can begin accurate curve turning.

Choose your method.

Page 18: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT

Good luck with the dashed (inside) line on the 4 Poles Course!

Page 19: EducateNXT Navigation Accuracy 4 Poles Challenge Programming the EduBot before trialing on the course

EducateNXT