girls robotic camp. let’s begin meet and greet – camp leaders introduce themselves – students...

40
GIRLS Robotic Camp

Upload: piers-allen

Post on 14-Dec-2015

217 views

Category:

Documents


0 download

TRANSCRIPT

GIRLS Robotic Camp

Let’s Begin

• Meet and Greet– Camp leaders introduce themselves– Students introduce themselves

Overview of Workshop

• More Robotics• Application of Robotics• Computer Science• Review of Knowledge

Let’s Talk Robots

• Review from summer Robotics Camp– Overview of robots– Review logic and applying logic to computer

science– Discuss input and output– Explore robot parts and how those parts are used– Experiment with MindStorm Software and

components

Robot Components

• Your definition of a robot• How does a robot operate–What components does a robot need to

operate

• Reason for robots– Help Humans• Handle hazardous tasks• Perform repetitive tasks

Input, Output, Operation

• Conventional Input– Keyboard, Mouse–Microphone, Camera

• Robotic Input– Sensors• Push button• Ultrasonic • Color

Input, Output, Operation• Operation– Think arithmetic!

• Cognitive thinking (Use brain to solve problems)• Decision making• Problem solving• Manual operation– Write problems down on paper and try to solve

• Automatic operation– Calculator our robot– Enter calculation and provides annswer

Input, Output, Operation

• Conventional Output– Display, Speakers, Printer

• Robotic Output–Motions– Sounds– Display

Input, Output, Operation

• Robots really are computers themselves– Robots think input, output, and

operation

• Humans are the same– Think input, output, and operation

Summary• Short recap– Robot performs complex tasks– Robots need a power source and central

controller– Use sensors to gather information– Thinks input, output, and operation– Legs, arms, and wheels for movement

MindStorm

• Let’s open MindStorm kits and identify the parts

MindStorm• Using the MindStorm software

Create A New Program• You can create a new program or open a program you previously

created

• Once you have a name for your program, select go!

Let’s Begin Programming

Step One• Place block here

Identify Software Features

• Motion Features

– Active Port– Power– Direction– Duration• Rotation• Degrees• Time

– Steering– Brake or coast modes

Ports

• What are ports?– Cables connecting brain to components.

• A, B, C– Used for controlling motors.– Input picture here

• 1,2,3,4– Used for connect to the sensors.– Input picture here–We will learn more about these later.

Control The Direction

• Dragging the arrow left/right changes the direction that the robot will move.– This feature is only active when two motors are

selected.• It controls forward, backward, or stop.

Duration Of Activity

• Duration effects how long the block is active.• Types of Duration– Degrees– Unlimited– Time– Rotation

Mindstorm Sensors

Touch Sensor

Ultrasonic Sensor

• Can tell distance to an object

Color Sensor

Time Sensor

Sound Sensor

Light Sensor

Rotation Sensor

Motion

Break And Review

• What have we learned?• Navigating Mindstorm Interface– Identify the different features of MindStorm NXT– What are the different features?– How does each feature operate?

Programming: Using Loops

• Loop is used to do things over and over• You can do things forever, or a certain number of

times• You drag actions into the loop and that is what gets

done

Loop

• Example: Play sound over and over

Programming: Switch Statement

• Switch Statements are for making decision• For example, we might want to move forward if

the button is pressed, and move backwards if not.

Switch Statement• Here we have a loop with a switch statement inside.• You drag actions inside the switch statement. • The Move Action on top is what to do if the button is

pressed.• The Move Action on the bottom is what happens if the

button is not pressed

Review

• Robot Input – Touch Sensor

• Pressed• Released• Bumped

– Color Sensor• ROYGBIV• Light or Dark

– Ultrasonic Sensor• Determining Distance• Near or Far

• Programming Inputs– Wires

Review

• Robot Output– Display

• Text• Picture

– Sounds– Color lamp– Motors

• Programming Block Output– Wires

Review

• Motion– How does power of the motors affect the bot?

• Distance• Speed• Steering

– How do we steer?• By rotating one motor faster than the other.• How do we turn sharper?

Review

• Rotation– Three types of rotation

• Degrees• Rotations

• Time

1 Rotation is equivalent to 360 degrees.– How many degrees would be in 3 rotations?

• Time • Infinite• Seconds

Review

• Operation– Loop

• Repetition• Unlimited• Limited

– Switch• Logic

• True or False• If this then that,• Or else this then that

Review

• Math– Adding– Subtracting– Multiplication– Division

• Variable– 5x + 20 + 55= 15– X=?

Review

• Compare– Equal To• 12=12

– Greater Than• 24>7

– Less Than• 2<3