EV3 Using Port View
Scroll down to find instructions for :
To measure a distance to have the robot move:
USING PORT VIEW
1. Learn how to retrieve and use data from your sensors and motors
2. Learn how to use Port View on the EV3 Brick
3. Learn some examples of when and where Port View would be useful
4. Try to solve some common problems using Port View
WHY DO YOU NEED SENSOR DATA?
Sensor data can be….
• Used to help program more easily (no more guess and check!!)
• Used to help program more accurately
• Used to debug code as well as build issues
PORT VIEW is an easy way to access SENSOR DATA!
This is the Port View screen. The rounded rectangles across the top represent the motor ports. The rounded rectangles across the bottom represent the sensor ports. In this photo, sensor port #1 is selected. There is nothing plugged into that port, so there is no reading.
Use the up/down/left/right buttons on the brick to select which port you would like to select.
In this photo, sensor port #3 is selected. The icon indicates that the light sensor is plugged in and it currently shows a reading of zero.
You can see that there is a sensor plugged into port #4, but we can't tell what type of sensor it is until we select the tab for that port. whatever it is, it is showing a reading of 83.
Across the top, we can see that there are motors plugged into ports A, B and C, but not D. They are showing readings of zero, so that means that they have not rotated at all since the port view was last reset.
To measure a distance to have the robot move:
Open Port View
Place a point on the robot ( I use the tail) on your start position.
Gently ROLL your robot so that the tail is at the end point of the distance you want. ** Make sure the wheels are not sliding and that they are rolling.**
Look to see how many degrees the wheels turned. If you were rolling the robot straight, the number of degrees for both motors should be the same - or at least very close.
If you got two different numbers, choose one of the numbers or a number midway between the two numbers to use in your MOVEMENT block in your program.
You can select different modes for port readings. For example, you can set a motor port to give you readings in either rotations or degrees depending on which you are using to enter into the programs you are writing.
ON COMPUTER PORT VIEW
You can view the current sensor/motor readings on the computer when the robot is connected.
The readings will appear at the top of the programming canvas as shown below
To see a more detailed view of the sensors (Brick Dashboard) you can click on the brick icon with the green dot
BRICK DASHBOARD
The Brick Dashboard
view shows you the
connections more
visually.
You can also click on the
sensor reading to
change the measured quantity.
SOME PROBLEMS YOU CAN SOLVE WITH PORT VIEW