Changes

Line 671: Line 671:     
===Remote door bell ===
 
===Remote door bell ===
Based on the previous door bell example, this sounds an alarm in one laptop when an electrical connection is made on another. The turtle's position is used to transmit the measured resistance to the second laptop. The Python block then sounds a 1 kHz tone.
+
Based on the previous door bell example, this sounds an alarm in one laptop when an electrical connection is made on another. The turtle's position is used to transmit the measured resistance to the second laptop.  
   −
[[File:Image clipping bellsend.png]]
+
[[File:Image clipping bellsend.png|200px]]
 +
 
 +
In this case, the sending laptop is called 'tony'. To select its turtle, by its name, 'tony', plug a text block into the 'turtle' rather than the normal number block. The Python block then sounds a 1 kHz tone when the received value is less than 3000.
 +
 
 +
[[File:Image clipping bellreceive.png|200px]]
    
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.
2,486

edits