Logo or turtle drawing: Difference between revisions

From wikiluntti
(Created page with "== Introduction == === Aim === == Robot == === Sensors === == Example Video == == Theory == == Exercises == Back to Mahtavaa Matematiikkaa 2020 File:Mahtav...")
 
No edit summary
Line 1: Line 1:
== Introduction ==  
== Introduction ==  
Drawing on a large paper using a robot is funny and involving. Use a large paper and try to stay on the paper. Logo programming is oldie but goodie.


=== Aim ===
=== Aim ===
Geometrical shapes, diameter of the circle, basic programming.
Center of gravity, steering.


== Robot ==  
== Robot ==  
Almost any robot will do. We use Asimov 2/ Verne robot with a pen attached to the front part of the robot.


=== Sensors ===  
=== Sensors ===  
No sensors is used, except the servo motor.


== Example  Video ==  
== Example  Video ==  


== Theory ==
== Theory ==
[[File:RotatingWheel.svg|thumb|The distance travelled by a rotating wheel is <math>2\pi r</math>.]]
Usually it is easier to code if the speed is lower. Use only speed 10 or 15. The Asimov/ Verne 2 robot turns exactly (about) 90 degrees when XXXXX
== Example Code ==


== Exercises ==
== Exercises ==


* Draw a square.
* Draw a house.
* Draw a giraffe.
* Note that the pen draws a wrong line when the robot rotates. How fix to that?
* Try to implement [[How to use gyroscope| gyroscope]] to better stay in the given direction.


Back to [[Mahtavaa Matematiikkaa 2020]]
Back to [[Mahtavaa Matematiikkaa 2020]]


[[File:Mahtavaa matematiikkaa.png|thumb]]
[[File:Mahtavaa matematiikkaa.png|thumb]]

Revision as of 10:10, 17 October 2020

Introduction

Drawing on a large paper using a robot is funny and involving. Use a large paper and try to stay on the paper. Logo programming is oldie but goodie.

Aim

Geometrical shapes, diameter of the circle, basic programming.

Center of gravity, steering.

Robot

Almost any robot will do. We use Asimov 2/ Verne robot with a pen attached to the front part of the robot.

Sensors

No sensors is used, except the servo motor.

Example Video

Theory

The distance travelled by a rotating wheel is .

Usually it is easier to code if the speed is lower. Use only speed 10 or 15. The Asimov/ Verne 2 robot turns exactly (about) 90 degrees when XXXXX


Example Code

Exercises

  • Draw a square.
  • Draw a house.
  • Draw a giraffe.
  • Note that the pen draws a wrong line when the robot rotates. How fix to that?
  • Try to implement gyroscope to better stay in the given direction.


Back to Mahtavaa Matematiikkaa 2020