12
EducateNXT Robot Sumo

Robot Sumo

  • Upload
    moke

  • View
    75

  • Download
    0

Embed Size (px)

DESCRIPTION

Robot Sumo. What is Sumo?. “ Sumo is a competitive contact sport where a wrestler ( rikishi ) attempts to force another wrestler out of a circular ring ( dohyō ) or to touch the ground with anything other than the soles of the feet.”. - PowerPoint PPT Presentation

Citation preview

Page 1: Robot Sumo

EducateNXT

Robot Sumo

Page 2: Robot Sumo

EducateNXT

What is Sumo?

“Sumo is a competitive contact sport where a wrestler (rikishi) attempts to force another wrestler out of a circular ring (dohyō) or to touch the ground with anything other than the soles of the feet.”

Photo and definition from Wikipedia http://en.wikipedia.org/wiki/Sumo, accessed 22/1/10

Page 3: Robot Sumo

EducateNXT

What is Robot Sumo?

A robot attempts to push another robot out of the dohyō (ring) or knock the other robot over. To win, a robot must also stay within the dohyō.

Page 4: Robot Sumo

EducateNXT

The Doyho

Page 5: Robot Sumo

EducateNXT

A simple remote controlTo begin the NXT Sumo experience, build a simple remote control for the EduBot.

An example one is shown – don’t make it complicated!

Page 6: Robot Sumo

EducateNXT

Beginning Programming

Wait for Touch Sensor in Port 1 to be pressed.

Turn motors on.

Wait for Touch Sensor in Port 1 to be released.

Turn motors off.

Repeat (loop)

Programming starts with a flowchart.Flowcharts are used by programmers to represent possible steps and scenarios in actual programs.

The following flowchart is designed to program the EduBot to move forward when the Remote Control Touch sensor in Port

1 is pressed and stop when it is pressed again.

Page 7: Robot Sumo

EducateNXT

Turning the Flow Chart into a program

Wait for Touch Sensor in Port 1 to be pressed.

Turn motors on.

Wait for Touch Sensor in Port 1 to be released.

Turn motors off.

Repeat (loop)

Page 8: Robot Sumo

EducateNXT

A similar program can be written for each individual motor.

Control both motors . . .

The remote control will be able to turn the Robot when only one

touch sensor is pressed (ie. only one motor activates).

Touch Sensor 1 controls left motor.

Touch Sensor 2 controls right motor.

Page 9: Robot Sumo

EducateNXT

Control both motors . . .

Wait for Touch

Sensor Port 1 to be

pressed.

Turn left motor on.

Wait for Touch

Sensor Port 1 to be

released.

Turn left motor off.

Repeat

Touch Sensor 1 controls left motor.

Touch Sensor 2 controls right motor.

Wait for Touch

Sensor Port 2 to be

pressed.

Turn right motor on.

Wait for Touch

Sensor Port .

Turn right motor off.

Repeat

Flowchart for controlling different motors with individual Touch Sensors

Page 10: Robot Sumo

EducateNXT

Quick refresh on parallel tasking

Both the left and right controllers need to work at the same time, so we will need to “parallel task.”

This requires creating a separate branch in NXT-G.

Page 11: Robot Sumo

EducateNXT

Control both motors . . .Fill in the blanks in your program.

Off to the dohyō to test your program and begin battle. Answers revealed when mouse clicked.

Page 12: Robot Sumo

EducateNXT

lobmeyera
Why is this blank?