engr 100 - robotics project. what is a robot? 1.a electro- mechanical system plus artificial...

26
ENGR 100 - Robotics Project

Upload: margaretmargaret-anna-gibbs

Post on 17-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

ENGR 100 - Robotics Project

Page 2: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

What is a Robot?

1. A Electro-Mechanical system Plus Artificial intelligence

2. Can do certain tasks that human like

Robot ArmHonda Asimo

Robot FishRobot Vacuum

Page 3: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Basic Component of Robot

Artificial Intelligence(software) Learning (Neuron network training) Motion control(output) Information analysis(input)

Physical Part(Hardware) Leg, Hand, Head spine

http://www.youtube.com/watch?v=Q3C5sc8b3xM

http://www.youtube.com/watch?v=eO9oseiCTdk

http://www.youtube.com/watch?v=9vRg64HX5gA

Page 4: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Project Objectives

The goals of this project are to: Basic computer programming.

Experience the design process.

Build a programmable robot.

Page 5: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Tasks

Three different tasks: Robotic Wheelchair, Car, The defender.

Three different programs:Program 1 - Robotic Wheelchair (do first!)Program 2 - CarProgram 3 – Dog/Cat. The defender (be

creative!)

Page 6: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Arena Layout

4 ft

4 ft

1 ft 1ft

2 ft

68”

8 ft

8 1/3 ft

Defender Free Zone

Page 7: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

This is the competition!

Page 8: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot
Page 9: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot
Page 10: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Scoring for performance grading

ExT

T

Pts

PtsScore )%(25)%(75 min

max

10 pts

10 pts

10 pts 10 pts

Base Pts – At some point before competition day, each team’s robot must complete the entire course.

Additional points each round - 20 pts for Wheel chair car, 20 pts for Car, and 20 pts for Defender.(build by NQC or your own sensor)

10 pts

Page 11: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Project flow

Know the project goals/requirements.

Learn RCX programming/Gather ideas for robot design.

Build a pathfinder.Test run.Final competition.

Page 12: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Rules (see handout for complete listing)

Robotic wheelchairs cannot be touched once competition has started.

Malfunctioning defenders and cars will be removed from the course.

Max robot dimensions at start of competition - 1 ft x 1 ft x 1 ft

Wheelchairs and cars sending messages will be disqualified. Defenders not limited.

Page 13: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Robot Basics -RCX

Command Brick

3 output3input5

programe

Page 14: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Robot Basics - Sensors & Motors

Input/Output PortsTouch sensorsLight sensorMotorsRCX signals

Tips -Use view mode to check light sensor.

Battery power affects speed of motors. Batteries run out fast! Don’t block

infrared sensor.

Page 15: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Robot basics – Programming

No matter what language you use, there are 3 basic control structures for organizing the programming commands: Sequential Repetition (Loops) Conditional

Page 16: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

SequentialSequential statements are defined

as a list of commands that are executed in order.

For example:Set Forward DirectionGo forward for 3 sStop

Page 17: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

RepetitionRepetition statements

allow for a series of commands to be repeated for a set number times.

For example:Repeat 3 timesSet forward directionMove forward for 3 sStopEnd Repeat

Page 18: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

ConditionalConditional statements allow for two

(or more) different sets of commands to be executed depending on a condition.

For example, If certain conditions are true - one set of

commands will be execute. Else if any (or all) are false - another set

of commands will be executed.

Page 19: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Example of Conditional StatementsFor example -

If the light is <50% Set Direction ForwardMove Forward for 3 sStop

Else If light is >= 50%Stop

End

Page 20: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Exercise

3 types of control structures Sequential, Repetition, Conditional

Which one above would work best for the following situations - Robotic wheelchair executes a left turn. Robot wheelchair backs up if it hits the

wall. Car moves back and forth across

crosswalk.

Page 21: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Programming Environment(Robotics Invention System 2.0 )

Graphical language

High level Drag in desired

function Upload the

program to RCX by IR signal

RCX

IR Com.

Page 22: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Features of RCX software

Multi-threaded language Different parts of the program execute at the same

time. Loops in main program interfere with subprogram.

Variables limited to 1 or 0 Use counter as variable. Not Quite C (NQC) language allows for more

variables.

Page 23: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Programming Environment(Not Quite C )

C based program

Allows more variable

Command list is provided

Text coding

Page 24: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

What are we going to do today?

1. Build your robot. inventory

2. Plan your project. Share your work

3. Learn how to build a robot and communicate with it~

Page 25: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

GearTransmission device

Angular velocity is the same

the bigger wheel will run faster

Smaller wheel will run slower

The torque and power from the motor is the constant

Smaller wheel will have higher surface force

R1=10

R2=1

Tongue=10

F1=1 F2=?F1*R1=Tongue

Page 26: ENGR 100 - Robotics Project. What is a Robot? 1.A Electro- Mechanical system Plus Artificial intelligence 2.Can do certain tasks that human like Robot

Gear

No Slip condition The tangential velocity is

a constant W*R is a constant W=angular velocity R=radius

5 10

W1=10

5*10=10*W2

10 5

W3=1

1*10=5*W4 W4=?W4=W5?W5*10=W6*5 W6=?

W5

W4

W6