Professional Documents
Culture Documents
Activity 3.1.1 Inputs Outputs VEX V5 Principles of Engineering
Activity 3.1.1 Inputs Outputs VEX V5 Principles of Engineering
ENGINEERING
Activity 3.1.1
If you are doing this activity away from the classroom, jump to
the flexible path DL: Activity 3.1.1 Inputs and Outputs.
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 1/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
INTRODUCTION
Robots behave similarly to humans when they sense their world through inputs of
physical touch, ambient light intensity, or distance to a solid object. The robot
processor translates these inputs and activates a response (output) such as
triggering a motor or light emitter. Robotic or artificial sensing might help an
individual with tasks that would be otherwise difficult or impossible. For example, a
robot positioned inside a fuel pipeline uses ultrasonic sensors to assess the
structural integrity of the pipeline without subjecting a human to this volatile
environment. Another device uses a 3D camera input to track the hand movement
of a sign language signer and converts the movement into text or voice.
EQUIPMENT
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 2/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
RESOURCES
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 3/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
Procedure
In this activity, you will use the VEXcode® V5 software to monitor inputs and control
outputs. This way you can test the behavior of components before you write a program
and use the testbed, shown in Figure 1, as a troubleshooting tool for analyzing program
performance.
1 Form groups of four and get your group’s VEX® POE Kit under the direction of
the teacher.
2 Within your four-student group, form two teams: Team A and Team B.
Note: Are you working in Team A or Team B? You will need to recall this
later, so note your team in the space provided:
3 Construct the VEX testbed. You can find supporting documents in the VEX
and VEXcode section of the General Student Resources.
Team A will construct the VEX Testbed without the optical sensor .
Team B will construct the VEX Testbed without the distance sensor and
servo motor.
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 4/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
Note: Step 16 of the VEX Testbed requires a 1x5 Bar. This is not supplied
in the kit and must be cut from a 1x25 Bar. Please consult with your
teacher to obtain a 1x5 Bar.
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 5/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 6/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
Note: You can download the following presentation from the Resources.
Motors
Let’s first explore the motors on your testbed. In the VEX V5 Smart Motor, the motor’s
gears are contained inside a gear cartridge with a gear ratio of 18:1.
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 7/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
With this VEX V5 Smart Motor, you can control the motor’s direction, speed,
acceleration, position, and torque. The VEX V5 Smart Motor provides feedback to the
VEX V5 Brain about many variables, including position, velocity, current, voltage,
power, torque, efficiency, and temperature.
5 Make sure the battery and motors are connected to the brain. To power the
brain on, press the Power button on the brain.
6 Tap the Devices button to see a list of all the devices connected to the brain.
7 Select port 1.
8 To run the motor, tap the blue right arrow one time.
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 8/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
9 Press the blue right arrow until the motor is running between 130–140 rpm.
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 9/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
Reflection Questions
In general, what is happening to the values for Revolutions
and Degrees as the motor continues to spin?
What is the input in this system? The output?
What is the relationship between Revolutions and Degrees?
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 10/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
11 To reset the values for revolutions and degrees, press one of the values.
Reflection Question: Predict what happens when you select the left
arrow, instead of the right arrow, to start the motor.
Then, try it out! Did it behave as you predicted? Don’t forget to stop the
motor and reset the values when you are done.
The way you see and experience things in the world is different
from the way a computer senses the same things. Some things
you observe have degrees of difference to describe them, such
as a fuel tank. There are many ways to describe the amount
—"full", "half-full", "20% full", "three-quarters", "almost empty", and
many more. A fuel gauge is an example of analog data. Other
Figure 7. Example Gas
examples of analog data are quantities like sound, time, and Gauge
acceleration.
In contrast, computers use discrete data, also referred to as digital data. Digital
input quantities jump from one value to another without representing the values in
between. A light switch represents discrete, digital data; it is either on or off. Imagine
how inconvenient it would be if the level of fuel in the tank was represented discretely,
either full or empty with no values in between.
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 11/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
There are many types of analog and digital input sensors. It is important to understand
the type of sensor you are using so you can use the correct type of data (analog or
digital) at the correct time.
3-Wire Sensors
12 Make sure all the sensors are connected to the brain. If necessary, power the
brain on by pressing the Power button on the brain.
Note: If you are still in the Motor view, press the Power button on
the brain to return to the Devices menu.
13 On the brain display, tap Devices, then tap the 3-wire ports button. You
will see a list of the sensors that are connected to the 3-wire ports A through
H on the brain.
14 Watch the values on the screen as you press the limit switch.
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 12/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
a Digital
b Analog
Ch k A
The 3-wire ports are set to analog by default so they can use any information
they receive from the sensors. The limit switch sends two values to represent
pressed or not pressed. However, you can change the port to digital to see
the values when the incoming sensor looks for digital information.
15 Tap the port D icon to see it switch from Analog Input to Digital Input.
16 Watch the values on the screen as you press the bumper switch in both the
analog and digital settings.
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 13/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
a Analog
b Digital
Ch k A
17 Watch the values on the screen in the analog and digital settings as you rotate
the wheel connected to the potentiometer. If you feel resistance, stop and
rotate it in the opposite direction.
Important: Do not force the potentiometer past the stop points. Doing
so will break the potentiometer.
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 14/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
a Analog
b Digital
Ch k A
A sensor can create unexpected results if not properly used as analog or
digital. For example, all of the 3-wire sensors send information to the brain and
will be interpreted differently based on what the brain expects.
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 15/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
Smart Sensors
3-wire sensors are either digital or analog in the way that they send information.
Alternatively, smart sensors can process the data as it is being collected and instantly
provide a variety of data to the brain. These smart sensors can simultaneously collect
both digital and analog data.
18 To begin exploring the smart sensors, select the option provided for your
team.
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 16/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
Need Help?
Team A: Smart Sensor Exploration
ETHICAL SCENARIO
Jay’s father-in-law is blind and has a service dog that helps with his day-
to-day navigation. However, the dog is unable to help him avoid low-
hanging objects. Jay has an idea to develop a headset that provides a
mechanical nudge on a person’s ear when an ultrasonic sensor detects
something within a certain range. While he is sure this device can help
his father-in-law, preliminary studies indicate that the device will be
expensive to produce and requires materials that may be difficult to
source. What should Jay do?
19 After you complete the smart sensor exploration, think about some of the
sensors you interact with routinely, such as automatic doors and water
faucets. What kind of sensor data—analog or digital—do those tend to collect
and why?
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 17/18
1/5/23, 7:01 PM Activity 3.1.1 Inputs and Outputs (VEX V5)
CONCLUSION
2 Describe observed behaviors where the sensors did not respond as you
would predict.
3 Think about if the several motors and sensors were incorporated into one
robotic system. Make a graphic organizer showing which of the following
devices in the system would be input and which would be output.
a. Motors
b. Optical Sensor
c. Distance Sensor
d. Bumper Switch
e. LED
f. Servo
g. Limit Switch
h. Potentiometer
https://pltw.read.inkling.com/a/b/605a57613e7d45b4810fbab1c37b7dde/p/0e33a58a3ccf4a3fa8e180a18db2366c 18/18