Activities/TurtleArt/Tutorials/Turtle Sensors Tutorial gci2012: Difference between revisions
Tonyforster (talk | contribs) No edit summary |
Tonyforster (talk | contribs) |
||
| Line 26: | Line 26: | ||
===Hands on Example: Graphing the Loudness of Your Voice=== | ===Hands on Example: Graphing the Loudness of Your Voice=== | ||
1. Start Turtle Art. | 1. Start Turtle Art. | ||
2. Put a pen up block, after start. | 2. Put a pen up block, after start. | ||
3. Then have a x/y block. In the x spot put a blue left block, which can be found under the screen symbol. In the y spot have a 0 block. | 3. Then have a x/y block. In the x spot put a blue left block, which can be found under the screen symbol. In the y spot have a 0 block. | ||
4. A pen down block should follow. | 4. A pen down block should follow. | ||
5. Next comes the repeat block. Connect a width block to it. The width block is found under the screen symbol as well. | 5. Next comes the repeat block. Connect a width block to it. The width block is found under the screen symbol as well. | ||
6. Inside the repeat put another x/y block. In the x input connect a xcor block which can be found under the turtle. In the y input connect a loudness | |||
block that can be found under the wire symbol. | |||
7. Then have a blank block. This block can be found under the repeat symbol. | |||
8. Connect yet another x/y block. In the x input connect a + block. This block will be found under the 123+-= symbol.For the top value on the + block connect a xcor block. For the bottom value connect a number block with a 1. | |||
9. For the y value on the x/y block connect s ycor block. Your blocks should look like this: | |||
| Line 52: | Line 52: | ||
10. Test your sensor. Hit start and talk to your computer. Your graph should look something like this: | |||
===How to Build a Sensor=== | ===How to Build a Sensor=== | ||