Date post: | 12-Oct-2015 |
Category: |
Documents |
Upload: | musicaddict10101 |
View: | 34 times |
Download: | 0 times |
of 16
5/22/2018 1. Introduction to EV3 Programming
1/16
Introduction to EV3 Programmin
Movement BlocksAANA BANSAL
5/22/2018 1. Introduction to EV3 Programming
2/16
Lets make a Sandwich!
Robots are actually pretty dumb. When you give theminstructions, you have to be very specific and precise.
You have to specify things like distance and speed.
For example, you cant just say go forward. You have to say
Motor A travels at 75% speed for 3 seconds and Motor B travelsat 75% speed for 3 seconds.
5/22/2018 1. Introduction to EV3 Programming
3/16
Movement Blocks
All the blocks that actually do things.(Actuators)
All are under the green tab.
5/22/2018 1. Introduction to EV3 Programming
4/16
Run Program
This block goes at the beginning of every program. It tells the EV3brick to start reading the instructions here
5/22/2018 1. Introduction to EV3 Programming
5/16
Large Motor Block Runs 1 Large
Measurement Units
What units are you
using?
Seconds, degrees,
or rotations
Power
What percent of full power (100%)
should the motor move at?
To go backwards, use negative values.
Duration
How long should the
motor run?
Stopping
Do you want
motor to coabreak after it
Motor Port
Where is the motor
plugged in?
5/22/2018 1. Introduction to EV3 Programming
6/16
Medium Motor BlockRuns 1 Mediu
Motor Port
Where is the motorplugged in?
Power
What percent of full power (100%)
should the motor move at?
To go backwards, use negative
values.
Duration
How long should the
motor run?
Stopping
Do you wan
motor to cobreak after
Measurement UnitsWhat units are you
using?
Seconds, degrees,
or rotations
5/22/2018 1. Introduction to EV3 Programming
7/16
Challenge Time
Let start with a few simple exercises.
1. Program a large motor to go forward at full speed for 3 rotationsand then break.
2. Program a large motor to go backwards at 75% speed for 3seconds and then coast.
3. Program a medium motor to go forward at full speed for 720degrees and then break.
5/22/2018 1. Introduction to EV3 Programming
8/16
Move Tank Runs 2 LarMotor Port
Where are themotors plugged in?
Power
What percent of full power (100%)
should the motor move at?
To go backwards, use negative
values.
Duration
How long should the
motor run?
Stopping
Do you wan
motor to cobreak after
Measurement Units
What units are youusing?
Seconds, degrees,
or rotations
5/22/2018 1. Introduction to EV3 Programming
9/16
Move SteeringMotor Port
Where are themotors plugged in?
Power
What percent of full power (100%)
should the motors move at?
Duration
How long should the
motors run?
Stopping
Do you w
motors tobreak aft
Measurement UnitsWhat units are you
using?
Seconds, degrees,
or rotations
Steering
What direction should the robot
turn, and how much?
5/22/2018 1. Introduction to EV3 Programming
10/16
Challenge Time
A few more complicated exercises:
1. Program your robot to go straight for 5 motor rotations andthen break.
2. Program your robot to do a 90 degree turn left.
3. Program your robot to do a 180 degree turn right.
5/22/2018 1. Introduction to EV3 Programming
11/16
Sound
Source
What kind of sound is it? A file,
tone or note?Volume
How long is it?
Completion
How many time do you want
make the sound?
Once, more than once, until t
program ends
File NameIf you are using a file, w
called?
5/22/2018 1. Introduction to EV3 Programming
12/16
Challenge Time
1. Program your robot to snore 3 times.
2. Optional: Program your robot to play Hot Cross Buns(E5 D5 C5 E5 D5 C5 C5 C5 C5 C5 D5 D5 D5 D5 E5 D5 C5)
5/22/2018 1. Introduction to EV3 Programming
13/16
Display
Source
Text, shape, or imageClear Screen
Clear screen first?
CoordinatesWhere on the screen is the ima
File NameIf you are using a file, w
called?
5/22/2018 1. Introduction to EV3 Programming
14/16
Challenge Time
1. Program your robot to display your name.
2. Program your robot to give you a big smile.
3. Program your robot to give a warning sign.
5/22/2018 1. Introduction to EV3 Programming
15/16
Brick Status Light Changes the color of the B
On or OffColor
Red, Green, or Orange
Pulse or No Pulse
5/22/2018 1. Introduction to EV3 Programming
16/16
Challenge Time
1. Program your robot to show a Green LED
2. Program your robot to show a pulsing red LED