
Scratch (Word Blocks) program to solve the M04 Transportation Journey mission
The program uses the motion sensor and control the motors of the robot.
- #hc0s5f
- 18 Oct 2022
The program uses the motion sensor and control the motors of the robot.
In this program, we present an "MY BLOCK" that follows a line presented as a yaw angle from the robot's starting position. If the program acts differently when tested again, then the most likely problem is the direction the robot is facing, when starting the program. Make sure to place the robot at the correct starting position with the correct facing direction, before every test.
This program was intended for and tested on the Gazon robot
This program makes the robot move in a straight line with the use of the LEGO MINDSTORMS Robot Inventor Motion sensor. It's developed with LEGO Education SPIKE App Word Blocks and uses a very simple algorithm for moving straight. When the robot moves slightly to the left or right align it face forward. Try to push the robot slightly. See what happens.
Scratch program to turn until reaching an angle with LEGO MINDSTORMS Robot Inventor Gyro Sensor.