Robasics

23
FLL Robasics getting started with simple EV3 robotics

description

Intro talk for middle school kids on how to begin using the Lego Mindstorm robotics kit.

Transcript of Robasics

Page 1: Robasics

FLL Robasicsgetting started with simple EV3 robotics

Page 2: Robasics

Robotics

● the branch of technology that deals with the design, construction, operation, and application of robots

Page 3: Robasics

Our “Base” Robot

Assumption: We’re all beginners at● How Robotics Works (in general)● Lego Mindstorm EV3 (specifically)

So let’s start simple...

Page 4: Robasics

Our “Base” Robot

● Pretty close to the one given in the instructions that came with the EV3 kit

● 2 motors (one per wheel)● 2 sensors

○ gyro (upper left in this photo)○ color sensor (will see later)

Page 5: Robasics

The undercarriage

● Note the location of the color sensor

● This is importanto We will learn why later

Page 6: Robasics

“Base” Robot

● Starting with the same robot we cano share programs, sub-programso learn the basic concepts

● We cannoto develop full mission plans

Page 7: Robasics

Final Robot

● Robot will need additions / changeso additional motors for arms, etco additional sensors

● Mission plans will dictateo what your robot looks likeo consequently, your programs

Page 8: Robasics

Getting Started

● Get the Mindstorm software installed● Add the gyro.ev3b block

o Not in the Home Editiono But a free download (google it)o tools -> block import

● Programming model is graphical

Page 9: Robasics

Connect your robot

● Connect via bluetooth if possible

● once connected, look at the motors and sensors connected

Page 10: Robasics

First Program!

What does it do?

Page 11: Robasics

Right face!

What does this do?What is this 0.62 business?

Page 12: Robasics

Regular Quadrilateral

What about this?

Page 13: Robasics

Dead Reckoning

● We have a block that can control the motors of the wheels in a natural wayo turn +/- 100%o power 0-100%o rotations or seconds

● We can chain these together as long as we like!

● Great, we’re done, right? :-)o Nope! We have to deal with the evil of error

Page 14: Robasics

Why did this program fail?

Page 15: Robasics

Sensors

● Gyroscope lets us trade “0.62” for something more natural, more robust

● Gyro tells us the change in angle, which is what we wanted anyway…

● But how do we use it?

Page 16: Robasics

Gyro “turn around” example...

353?

on until

Page 17: Robasics

Better Regular Quadrilateral

Page 18: Robasics

Other sensors

● Gyro is not perfecto Helps avoid errors though

● Other sensors help in similar ways● Color sensor lets us “see” landmarks

o Stop on color, follow edge● We use multiple sensors to manage error...

Page 19: Robasics

Simple color sensor program

Page 20: Robasics

Calibration

The color sensor requires calibration… ● So black reports as “0”● And white reports as “100”● Otherwise hard to pick “good” numbers

Page 21: Robasics

This is the prog to calibrate color:

Page 22: Robasics

Pitfall!

● Sharing programs is great!● But they are hardwired,

expecting specific motors on specific {A,B,C,D}.

● And sensors on specific {1,2,3,4}.

● Common copy/paste failure.

Page 23: Robasics

Original color calibration:

What’s wrong?