
DataWires
Presentation
•
Other
•
9th - 12th Grade
•
Practice Problem
•
Medium
Jennifer Bertke
Used 2+ times
FREE Resource
10 Slides • 4 Questions
1
By Sanjay and Arvind Seshan
INTERMEDIATE PROGRAMMING
LESSON
DATA WIRES
2
Data Wires
A Data Wire allows you to take an output from one programming block and input
it into another.
COPYTIGHT © 2015 EV3LESSONS.COM, LAST EDIT 7/06/2016
2
Input
Output
3
Multiple Choice
Why are data wires important? or useful?
Data wires are essential for watering plants and plants are thirsty. Just listen to them.
Data wires allow you to repeat one programming block over and over again in 2 horzontal rows.
Data wires allow you to take an output from one programming block and input it in another.
4
Data Wire Types
COPYTIGHT © 2015 EV3LESSONS.COM, LAST EDIT 7/06/2016
3
Data Type
Input
Output
Output Data Wire
Logic
True or False
Numeric
Number
Text
Text
Numeric
Array
Logic Array
Images from EV3 Help
5
Multiple Choice
Logic that can only have two outputs is also known as what?
Irish
binary
decimal
boolincoln
6
Automatic Data Wire Conversions
COPYTIGHT © 2015 EV3LESSONS.COM, LAST EDIT 7/06/2016
4
From Data Type
To Data Type
Output/Result
Logic
Numeric
False = 0, True = 1
Logic
Text
False = “0”, True = “1”
Logic
Logic Array
Array with one element
Logic
Numeric Array
Array with one element (0 or 1)
Numeric
Text
Text that represents a number
Numeric
Numeric Array
Array with one element
Logic Array
Numeric Array
Same size array with all elements equal to 0 or 1
Content from EV3 Help
These conversions are automatically performed in the programming blocks. For
example, you are allowed to connect a numeric value (like what color a sensor sees) to a
text value (on a display block).
7
Fill in the Blank
How are data type conversions completed in Ev3 programming?
8
How to Create a Data Wire
The block with the output must be
placed before the block with the input
The input and the output must be the
same data type or one that can be
automatically converted (see slides 4
and 5)
1. Click on the output on the block
2. Hold and drag the wire.
3. Move the icon into the correct input
and then let go of the mouse
COPYTIGHT © 2015 EV3LESSONS.COM, LAST EDIT 7/06/2016
5
1
2
3
Images from EV3 Help
9
Reorder
Reorder the following steps to create a data wire in the correct order
place the output block
place the input block
Click on the output on the block
Hold and drag the wire.
Move the icon into the correct input and then let go of the mouse
10
Sidebar: Display Block - Wired Mode
The Display Block can be used in wired
mode to display data from another block
to the screen.
For the challenge, you will need to display
a number on the screen. Pick Text Mode
🡪Grid from the bottom left corner of the
block.
To pick Wired Mode, click on the top right
corner of the Display Block and pick wired
COPYTIGHT © 2015 EV3LESSONS.COM, LAST EDIT 7/06/2016
6
11
Data Wires Challenge
CHALLENGE: Make your robot drive forward slowly over different colors. Have the
robot display the color the color sensor sees as it moves. Stop when you hit a
button on the brick.
STEP 1: Turn the motors on in a Steering Block and drive slowly forward
STEP 2:
◦ Inside a Loop, add a Color Sensor block.
◦ Add a Display Block in Wired, Text Grid Modes.
◦ Wire the Sensor Block’s output into the Display Block’s
text input (first input)
STEP 3: Exit the loop when a brick button is pressed
COPYTIGHT © 2015 EV3LESSONS.COM, LAST EDIT 7/06/2016
7
12
More Complex Wiring: Switches
COPYTIGHT © 2015 EV3LESSONS.COM, LAST EDIT 7/06/2016
9
A.
If you want to drag data wires out of
switches, you will need to change the
switch to tabbed view
A
B
B. Once you switch to tabbed view, you can
drag data wires out
C. Different options in the switch can
connect to the same wire
13
More Complex Wiring: Loops
You can connect wires both into and out of a loop like in the example below
COPYTIGHT © 2015 EV3LESSONS.COM, LAST EDIT 7/06/2016
10
• Note that the data coming out of the loop through the wire will only be the last pass
through the loop.
• In the example above, the color sensor is read twice in the loop. However, the data
wire will only have the second (and last) reading and that second reading will be
displayed.
Going
into the
loop
Going
out the
loop
14
Credits
◦ This tutorial was written by Sanjay and Arvind Seshan
◦ More lessons at www.ev3lessons.com
COPYTIGHT © 2015 EV3LESSONS.COM, LAST EDIT 7/06/2016
5
This work is licensed under a Creative Commons
Attribution-NonCommercial-ShareAlike 4.0 International License.
By Sanjay and Arvind Seshan
INTERMEDIATE PROGRAMMING
LESSON
DATA WIRES
Show answer
Auto Play
Slide 1 / 14
SLIDE
Similar Resources on Wayground
11 questions
Adaptations
Lesson
•
9th - 12th Grade
11 questions
Pythagorean Theorem
Lesson
•
9th - 12th Grade
11 questions
Intermolecular Forces
Lesson
•
9th - 12th Grade
11 questions
Social Media Marketing
Lesson
•
9th - 12th Grade
10 questions
Grammar 4A - ir + a + infinitive
Lesson
•
9th - 12th Grade
10 questions
Synthetic Division
Lesson
•
9th - 12th Grade
10 questions
Genetics Dihybrid Crosses
Lesson
•
9th - 12th Grade
10 questions
1B Adjectives
Lesson
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
5.P.1.3 Distance/Time Graphs
Quiz
•
5th Grade
10 questions
Fire Drill
Quiz
•
2nd - 5th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
15 questions
Hargrett House Quiz: Community & Service
Quiz
•
5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Other
12 questions
Digital Ethics Challenge
Quiz
•
10th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
10 questions
Exploring Basic Probability Concepts
Interactive video
•
6th - 10th Grade
32 questions
College Trivia
Quiz
•
9th - 12th Grade
18 questions
Informative or Argumentative essay
Quiz
•
5th Grade - University
20 questions
Women History Month
Quiz
•
6th - 12th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade