Activities/Turtle Art/Using Turtle Art Sensors: Difference between revisions
Tonyforster (talk | contribs) |
Tonyforster (talk | contribs) |
||
| Line 679: | Line 679: | ||
[[File:Image clipping bellsend.png|200px]] | [[File:Image clipping bellsend.png|200px]] | ||
<i>sending laptop</i> | |||
In this case, the sending laptop is called 'tony'. To select its turtle, by its name, 'tony', plug a text block into the 'turtle' block rather than the normal number block. Load the Python block with the sine wave sample code [[File:Pythoncodeblock.jpg|50px]] and it sounds a 1 kHz tone when the received value is less than 3000. | In this case, the sending laptop is called 'tony'. To select its turtle, by its name, 'tony', plug a text block into the 'turtle' block rather than the normal number block. Load the Python block with the sine wave sample code [[File:Pythoncodeblock.jpg|50px]] and it sounds a 1 kHz tone when the received value is less than 3000. | ||
[[File:Image clipping bellreceive.png|200px]] | [[File:Image clipping bellreceive.png|200px]] | ||
<i>receiving laptop</i> | |||
It could be used to sound a remote alarm on a tank level etc. | It could be used to sound a remote alarm on a tank level etc. | ||