Drive a square using gyroscope (Lego Dance)
From wikiluntti
Introduction
The dancing area of Robotic dance is large, and thus a reliable method to drive geometrical forms is needed. This exercise is to drive a square. We show two different methods.
Theory

The plan: We use two different methods.
- Drive using gyroscope but turn using simple steering block without gyro.
- Drive and turn using gyro. This method requires variables, but is still rather easy.



The code: Quite easy, only a few coding blocks is needed.
Exercises
- Turn one more time such that the ending and starting direction is the same.
- Make a larger square.
- Make the robot end at the exact starting position.
- Drive faster or slower.
- Check the meaning of c variable. Make it smaller or larger.
- Drive a pentagon and hexagon.
- Drive a spiral
- Attach a pen to the robot and use LOGO drawing.
References
The Instructors
The course is held in Finnish, though English guidance is possible. The instructors are Markku Leino and Zwenkka Pietilä.
This course is supported by Meet and Code. The course is made in collaboration with Robotiikka- ja tiedekasvatus ry.