These tutorials will teach you all you need to know about the gyro and how to use it to make your robots more accurate. The links below are to a website created by BuilderDude35.
Introduction to EV3 Programming
1. Introduction to The Gyro Sensor
Introduction to the Gyro Sensor and Programming the Gyro Sensor
A1: Watch the videos to remind yourself about the gyro sensor.
A2: Watch the video regarding some issues with the gyro sensor.
2. Steps to improve the Accuracy of Gyro Sensor
1. When turning on the EV3 with the Gyro Sensor attached, be sure that it is absolutely still until you hear the final sound.
2. Check Port View for the Gyro Sensor and confirm that it is at zero and not drifting. Drift is when the Gyro sensor angle values are changing, but the robot is not moving.
3. If the robot shows drift in Port View, then unplug the Gyro Sensor cable from the EV3 Brick and GENTLY (without movement) plug it back in. You can do this while in Port View.
A1: Show Mr. Merrill that you can find the Gyro Sensor in Port View and that the Gyro does not have drift.
3.Driving Straight Using the Gyro
A1: Create and run a program DriveStraight.ev3 to drive straight across the competition table and stop 10cm from the wall. The program must display the degrees read from the gyro sensor on the EV3 Brick.
Using the Gyro to Drive Straight
A2: {Video} Create and run the program GyroStraight.ev3. Again, be sure that the program displays the degrees read from the gyro sensor on the EV3 Brick and stops when it is 10cm from a wall. Notice the action of the robot. In order for this program to work we must fine tune the scale value used in the math block.
A3: Fine tune GyroStraight.ev3 to make your robot travel in a straight line across the competition table. The first step is to set the scale value to zero and run the program. Notice the values displayed the EV3 Brick. Remember, your scale value must be the opposite sign of the final value displayed on the EV3 Brick. Start changing the scale value until the robot drives straight and consistently displays the value of zero on the EV3 Brick as it drives. It may display another number, but it must return to zero. The robot must be close to the target line when it stops. Try tapping the robot gently on its side while it drives. The value on the brick will change. However, if the program is correct, the value will return to zero. Ask Mr. Merrill where to run the robot.
A1: {Video} Create and run the program GyroFollowing.ev3 presented in the video. Be sure to set the angle value to zero degrees and the power value for both motors to 50% and stops when it is 10cm from the wall. Again, be sure to modify the program displays the degrees read from the gyro sensor on the EV3 Brick. Run the robot on the same field as the previous activity.
A2: Modify the program so that the power of both motors is 75% and run it again to see the difference (if any).
A3: Under Construction