Top Banner
Some Robotic STEM Ideas Craig Shelden [email protected] 202-251-7578 Science and Engineering Festival
44

Some Robotic STEM Ideas Craig Shelden [email protected] 202-251-7578 Science and Engineering Festival.

Dec 16, 2015

Download

Documents

Jan Branscomb
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Some Robotic STEM Ideas

Craig [email protected]

202-251-7578

Science and Engineering Festival

Page 2: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Robot Connections with STEM

Combines disciplines• Engineering• Math• Technology• Scientific Method

Makes abstract ideas real.

Page 3: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

3

Thoughts on Programming

Clear Problem Statement

Pseudocode Draw out what’s being attempted Words First.

Program – Test – Program – Test ---> Repeat

Value of default settings… ? Make things easier to program… Make students think through every block they program

Approaches vary with goals and Team choices

Page 4: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

WeDo Programming

Page 5: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Sailor Max

Basic boat movement

Basic boat movement with sound effects

basic_boat.wedoboat_sounds.wedo

Page 6: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

WeDo – Complex Capability with Sailor Max

storm.wedo

Motion and sound with tilt sensor

Motion and sound with tilt triggered by proximity sensor

Page 7: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

WeDo – NXT-G ConnectionSimilar: • Syntax• Coloring• Left – to – right

program flow

Page 8: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

NXT-G Simple Area Measurement

Given a circle… How to measure its area using a robot?

Circumference = 2πr

Area = π r2

r

Pause Here…

Page 9: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

NXT-G Simple Area Measurement

Given a circle… How to measure its area using a robot?

Circumference = 2πr

Area = π r2

One approach might be to:• measure all the way around

the circle• calculate the radius• calculate the area

Area = C2/(4 π)

r

Page 10: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

One Circle Measuring Solution

Page 11: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

NXT-G Simple Area Measurement

Given a circle… How to measure its area using a robot?Other ways….

Circumference = 2πr

Area = π r2

r

Are there other ways?

Page 12: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

NXT-G Simple Area Measurement

Given a circle… How to measure its area using a robot?Other ways….

Circumference = 2πr

Area = π r2

Cross on a diameter and determine measurement….

r

Page 13: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

NXT-G Complex Robotic Behavior - Sumo

Page 14: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Consider This Program Architecture

Define Variables

Monitor Sensor # 1 Variable # 1Monitor Sensor # 2 Variable # 2

Act

Record desired data

Act (Values) Act

See one of the sumo programs

Page 15: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Subsumptive Programming Architecture

Source: Brooks: A Robust Layered Control System for a Mobile Robothttp://people.csail.mit.edu/brooks/papers/AIM-864.pdf

See one of the sumo programs

Page 16: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

NXT-G – Data Collection and AnalysisArea Measurement

Page 17: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

NXT-G – Data Collection and AnalysisArea Measurement

How to measure the perimeter and area of an arbitrary closed shape?

Pause Here…

Page 18: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

NXT-G – Data Collection and AnalysisArea Measurement

How to measure the perimeter and area of an arbitrary closed shape?

Consider Descartes’ method:

Could we do this by driving a robot around the shape?

From Area the Easy Way

INSTRUCTIONS

1. Beginning with any vertex, list the coordinates of the vertices in order, moving counter-clockwise around the polygon. List the first pair again at the end.

2. Find the diagonal products from left to right.

3. Find the diagonal products from right to left.

4. Sum each column of products.5. Find their difference and divide by

2.

This is the polygon’s area.

Page 19: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

NXT-G – Data Collection and AnalysisArea Measurement

Need to generate (x, y) pairs as the robot follows the line around…

But unlike the plotted curve, the robot does not know what the next pair will be.

Need to find a way to remember the last point and calculate the next one.

Just a little trigonometry…

and a compass.

Inspired by Area the Easy Way

(X old, Y old)

North

Distance

(X new, Y new)

Heading

ΔX

ΔY

X new = X old + ΔX

Y new = Y old + ΔY

ΔX = Dist *Sine (Hdg)

ΔY = Dist *Cosine (Hdg)

Page 20: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

NXT-G – Data Collection and AnalysisArea Measurement

Need to generate (x, y) pairs as the robot follows the line around…

But unlike the plotted curve, the robot does not know what the next pair will be.

Need to find a way to remember the last point and calculate the next one.

Just a little trigonometry…

and a compass.

Inspired by Area the Easy Way

(X new, Y new)

Distance

(X old, Y old)

North

Heading

ΔX

ΔY

X new = X old + ΔX

Y new = Y old + ΔY

ΔX = Dist *Sine (Hdg)

ΔY = Dist *Cosine (Hdg)

Sine and cosine provide positive and negative factors that scale the sides of the right triangle.

Page 21: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

NXT-G – Data Collection and AnalysisArea Measurement

Show development of the path as the robot follows along the orange curve.

Inspired by Area the Easy Way

X new = X old + ΔX

Y new = Y old + ΔY

ΔX = Dist *Sine (Hdg)

ΔY = Dist *Cosine (Hdg)

Sine and cosine provide positive and negative factors that scale the sides of the right triangle.

Page 22: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

NXT-G – Data Collection and AnalysisArea Measurement

Show development of the path as the robot follows along the orange curve.

Inspired by Area the Easy Way

X new = X old + ΔX

Y new = Y old + ΔY

ΔX = Dist *Sine (Hdg)

ΔY = Dist *Cosine (Hdg)

Sine and cosine provide positive and negative factors that scale the sides of the right triangle.

ΔX

ΔY

Page 23: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

(X1, Y1)

(X0, Y0)

North

ΔX

ΔY

(X2, Y2)

NXT-G – Data Collection and AnalysisArea Measurement

Example path showing generated (x, y) pairs as the robot follows the line around.

Inspired by Area the Easy Way

X new = X old + ΔX

Y new = Y old + ΔY

ΔX = Dist *Sine (Hdg)

ΔY = Dist *Cosine (Hdg)

Sine and cosine provide positive and negative factors that scale the sides of the right triangle.

Page 24: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

(X1, Y1)

(X0, Y0)

North

ΔX

ΔY

(X2, Y2)

(X3, Y3) (X4, Y4)

(X5, Y5)

NXT-G – Data Collection and AnalysisArea Measurement

Example path showing generated (x, y) pairs as the robot follows the line around.

Inspired by Area the Easy Way

X new = X old + ΔX

Y new = Y old + ΔY

ΔX = Dist *Sine (Hdg)

ΔY = Dist *Cosine (Hdg)

Sine and cosine provide positive and negative factors that scale the sides of the right triangle.

Page 25: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

NXT-G – Data Collection and AnalysisArea Measurement – two plots

Circle with Distance = 1 inch

Inspired by Area the Easy Way

Rectangle with Distance = 1 inch

Page 26: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

NXT-G – Data Collection and AnalysisArea Measurement – two plots

Circle with Distance = 1 inch

Inspired by Area the Easy Way

Rectangle with Distance = 1 inch

Red arrows indicate error accumulated through each run.

Page 27: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Mapping with More Sensors

Page 28: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Mapping with More Sensors

Page 29: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

NXT-G – Data Collection and AnalysisPendulum Motion

Page 30: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

30

Data Logging

See Pendulum Program pendulum.rbtx

Page 31: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Application• Measuring period of a pendulum

common exercise for students

• Period = 2π √(L/g)

84 ½ inches 12 ½ inches

Page 32: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Pendulum Data

84 ½ inches

Ultrasonic sensor

Page 33: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Pendulum Data

84 ½ inches

Ultrasonic sensor

Page 34: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Pendulum Data

84 ½ inches

Light sensor

Page 35: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Pendulum Data

84 ½ inches

Light sensor

Page 36: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Pendulum Data

84 ½ inches

Acceleration sensor

Page 37: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Pendulum Data

84 ½ inches

Acceleration sensor

Page 38: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Pendulum Relationships

Page 39: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Pendulum Relationships

Maximum Negative Acceleration

Maximum Light

Minimum Ultrasonic Range

Page 40: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

40

Math Excursion

See Pendulum Program pendulum.rbtx

Lower the sample Frequency to

Something near thePendulum period.

Page 41: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

41

Simple Data Logging

See Pendulum Program pendulum.rbtx

Page 42: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

50

Thoughts on Programming

Clear Problem Statement

Pseudocode Draw out what’s being attempted Words First.

Program – Test – Program – Test ---> Repeat

Value of default settings… ? Make things easier to program… Make students think through every block they program

Approaches vary with goals and Team choices

Page 43: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Robot Connections with STEM

Combines disciplines• Engineering• Math• Technology• Scientific Method

Makes abstract ideas real.

Page 44: Some Robotic STEM Ideas Craig Shelden craig.shelden@comcast.net 202-251-7578 Science and Engineering Festival.

Some Robotic STEM Ideas

Craig [email protected]

202-251-7578

Science and Engineering Festival