Activities/Turtle Art/Sensors

From Sugar Labs

Jump to: navigation, search
english | español | HowTo [ID# 46902] 


The Sensors Palette (red)

examples (4)

Image:TA-kbexample.png

Image:TA-myfunc-example.png Image:TA-status-zero.png

descriptions (4)

Image:TA-querykb.svgquery for keyboard inputresults stored in keyboard block
Image:TA-keyboard.svgkeyboard inputholds results of query-keyboard block
Image:TAMyblock.svg user-definable code This block runs code found in the tamyblock.py module found in the Journal and editable in Pippy. Use the load Pippy button Image:TAPippyButton.svg on the Save/Load toolbar to load your custom module. The block changes appearance once Python code is loaded. Image:TA-python-code-loaded.svg
Image:TA-myfunc.pngmy functiona programmable block: add your own math equation in the block, e.g., sin(x)
Image:TA-hres.svghorizontal sizethe canvas width
Image:TA-vres.svgvertical sizethe canvas height
Image:TA-push.svgpush push value onto FILO (first-in last-out) heap
Image:TA-pop.svgpop pop value off FILO
Image:TA-showheap.svgshow heap show FILO in status block at bottom of canvas
Image:TA-emptyheap.svgempty heap empty FILO

These additional blocks are available in the experimental version of Turtle Art

Image:TA-volume.svg volume microphone input volume
Image:TA-pitch.svg pitch microphone input pitch
Image:TA-voltage.svg voltage (OLPC XO-1 only)
Image:TA-resistance.svg resistance (OLPC XO-1 only)

More details on how to use the sensors can be found in Tony Forster's blog and on the Measure Activity page.

Personal tools
Sugar
Teams
Projects
Local Labs
Google Translations
Using the Wiki