This program makes Larvy - LEGO SPIKE Prime larva robot move forward indefinitely! The movement of this robot is very interesting as it works like a caterpillar or larvae! The program works by repeating 3 movements every cycle of the loop:
- the front motor rotates for 90 degrees, rising or collapsing its wheels
- the large motor rotates for 90 degrees, contracting or expanding the robot
- the back motor rotates for 90 degrees, rising or collapsing its wheels
You may notice that every movement command does two things, or the same thing but a different direction. That is done using a variable that is either 1 or -1, and that gives the direction that the motors should move. This variable is also used to determine which motor should use full power and which shouldn't so that the robot doesn't break itself!
How to open?
Download- #b4lgwx
- 21 Jul 2020