Activities/Turtle Art/Using Turtle Art Sensors: Difference between revisions
Tonyforster (talk | contribs) |
Tonyforster (talk | contribs) |
||
| Line 193: | Line 193: | ||
Save to the journal, then in Turtle Art, load the Pippy code [[File:TAPippyButton.svg]] into the Python Code Block [[File:Pythoncodeblock.jpg]]. When the Python Code Block is executed, the contents of the heap are placed on the clipboard. | Save to the journal, then in Turtle Art, load the Pippy code [[File:TAPippyButton.svg]] into the Python Code Block [[File:Pythoncodeblock.jpg]]. When the Python Code Block is executed, the contents of the heap are placed on the clipboard. | ||
For example, temperatures are logged and then copied to the clipboard. This builds on measuring with a thermistor and the XO1 previously. The temperature is measured and pushed to the heap, then a 5 second delay. This repeats 20 times. Then the contents of the heap are copied to the clipboard. | |||
[[File:Temp to clip.jpg]] | |||
TurtleArt can be run in Gnome on the XO. The data is then pasted to a Gnumeric spreadsheet. The data is converted text to columns, the leading '[' and trailing ']' are manually deleted, the data is graphed. (On the XO, the data, text to columns dialog boxes are off screen, <i>alt f alt f shift tab shift tab shift tab</i> allow nonversion of comma separated data. | |||
[[File:Sensor imported gnumeric.JPG|250px]] | [[File:Sensor imported gnumeric.JPG|250px]] | ||