Gyro sensor movement (Medium)
Using the gyro sensor, the robot will move in a series of motions to follow a square or avoid an obstacle.
The following steps explain how to attach the gyro sensor to our robot:
- First, take two axles which are three modules long with stops and attach them to the gyro sensor with bushings as shown in the following figure:
- Next, we will attach the gyro sensor to the two red stop bushings on the back of the robot. We can wire the gyro sensor to Port 4 on our EV3 brick.
How to do it...
Make the robot go forward, ...