﻿<phyphox xmlns="http://phyphox.org/xml" xmlns:editor="http://phyphox.org/editor/xml" version="1.7" editor:version="1.0" locale="en">
    <title>Damped simple pendulum</title>
    <category>Mechanics</category>
    <color>00ff00</color>
    <description>This experiment shows how the oscillations of a simple pendulum are damped over time.</description>
    <translations>
        <translation locale="de">
            <title>Schaukel (y)</title>
            <category>Mechanik</category>
            <description>
Misst die Periodendauer, die Frequenz und die Winkelauslenkung indem das Smartphone als Schaukel benutzt wird.

Dieses Experiment nutzt das Gyroskop um die Pendelbewegung zu erfassen und berechnet hieraus die Schwingungsperiode T. Der Nutzer muss die Länge des Pendels eingeben, so dass phyphox die Höhe und die Elongation berechnen kann.

Weitere Details:
Die Schwingungsperiode wird durch eine Autokorrelation jeder Komponente des Gyroskop-Vektors ermittelt. In der Summe aller drei Autokorrelationen wird dann nach dem ersten Maximum nach dem für Autokorrelationen üblichen Maximum bei dt = 0 gesucht. Hierzu wird der erste Zeitpunkt t0 ermittelt, bei welchem das Signal unter Null fällt. Unter der Annahme, dass die Autokorrelation periodisch um Null schwingt, wird das Maximum dann im Intervall 3x t0 bis 5x t0 gesucht.
</description>
            <string original="position">Winkelauslenkung</string>
            <string original="Angle (x-Axis)">Winkelauslenkung</string>
            <string original="angle (°)">Winkel (°)</string>
        </translation>
    </translations>
    <data-containers>
        <container size="0" static="false">gyr_time</container>
        <container size="1" static="false">length</container>
        <container size="125" static="false">autocorrelation_t</container>
        <container size="125" static="false">autocorrelation_t (1)</container>
        <container size="1" static="false">mass</container>
        <container size="0" static="false">time differentiate</container>
        <container size="0" static="false">angle differentiate_y</container>
        <container size="0" static="false">offset angle_y</container>
        <container size="0" static="false">max</container>
        <container size="0" static="false">min</container>
        <container size="0" static="false">abs</container>
        <container size="0" static="false">abs (1)</container>
        <container size="0" static="false">sum</container>
        <container size="0" static="false">center angle_y</container>
        <container size="500" static="false">offset_y</container>
        <container size="0" static="false">angle_y</container>
        <container size="0" static="false">degree_y</container>
        <container size="5000" static="false">out</container>
        <container size="5000" static="false">out (1)</container>
        <container size="0" static="false">x</container>
    </data-containers>
    <input>
        <sensor editor:uuid="101" editor:posx="100" editor:posy="250" rate="50" average="false" type="gyroscope">
            <output component="x">x</output>
            <output component="t">gyr_time</output>
        </sensor>
    </input>
    <output>
    </output>
    <analysis sleep="0"  onUserInput="false">
        <differentiate editor:uuid="149" editor:posx="410.95001220703125" editor:posy="67.95000076293945">
            <input as="in" clear="false">gyr_time</input>
            <output as="out">time differentiate</output>
        </differentiate>
        <multiply editor:uuid="150" editor:posx="660.9375" editor:posy="120.9375">
            <input as="factor" clear="false">time differentiate</input>
            <input as="factor" clear="false">x</input>
            <output as="product">angle differentiate_y</output>
        </multiply>
        <integrate editor:uuid="151" editor:posx="849.9375" editor:posy="256.9375">
            <input as="in" clear="false">angle differentiate_y</input>
            <output as="out">offset angle_y</output>
        </integrate>
        <max editor:uuid="152" editor:posx="884" editor:posy="416.9375" multiple="false">
            <input as="y" clear="false">offset angle_y</input>
            <output as="max">max</output>
        </max>
        <min editor:uuid="153" editor:posx="1063" editor:posy="125.9375" multiple="false">
            <input as="y" clear="false">offset angle_y</input>
            <output as="min">min</output>
        </min>
        <abs editor:uuid="154" editor:posx="1173.9375" editor:posy="453.9375">
            <input as="value" clear="false">max</input>
            <output as="abs">abs</output>
        </abs>
        <abs editor:uuid="155" editor:posx="1389.9375" editor:posy="246.9375">
            <input as="value" clear="false">min</input>
            <output as="abs">abs (1)</output>
        </abs>
        <add editor:uuid="156" editor:posx="1511" editor:posy="448">
            <input as="summand" clear="false">abs</input>
            <input as="summand" clear="false">abs (1)</input>
            <output as="sum">sum</output>
        </add>
        <divide editor:uuid="157" editor:posx="1743.9375" editor:posy="561.9375">
            <input as="dividend" clear="false">sum</input>
            <input as="divisor" type="value">2</input>
            <output as="quotient">center angle_y</output>
        </divide>
        <subtract editor:uuid="158" editor:posx="1848" editor:posy="760.9375">
            <input as="minuend" clear="false">max</input>
            <input as="subtrahend" clear="false">center angle_y</input>
            <output as="difference">offset_y</output>
        </subtract>
        <subtract editor:uuid="159" editor:posx="1978" editor:posy="416">
            <input as="minuend" clear="false">offset angle_y</input>
            <input as="subtrahend" clear="false">offset_y</input>
            <output as="difference">angle_y</output>
        </subtract>
        <formula editor:uuid="181" editor:posx="2191.875" editor:posy="726.609375" formula="sin([1])">
            <input as="in" clear="false">angle_y</input>
            <output as="out" clear="false">out</output>
        </formula>
        <formula editor:uuid="182" editor:posx="2207.421875" editor:posy="882.03125" formula="1-cos([1])">
            <input as="in" clear="false">angle_y</input>
            <output as="out" clear="false">out (1)</output>
        </formula>
        <multiply editor:uuid="160" editor:posx="2315" editor:posy="563.9500160217285">
            <input as="factor" clear="false">angle_y</input>
            <input as="factor" type="value">57.2958</input>
            <output as="product">degree_y</output>
        </multiply>
    </analysis>
    <views>
        <view label="position">
            <graph editor:uuid="167" editor:posx="2712.949951171875" editor:posy="228.95001602172852" label="Angle (x-Axis)" aspectRatio="3" style="lines" lineWidth="1" color="ff7e22" partialUpdate="false" history="1" labelX="t (s)" labelY="angle (°)" labelZ="" unitX="" unitY="" unitZ="" logX="false" logY="false" logZ="false" xPrecision="3" yPrecision="3" zPrecision="3" scaleMinX="auto" scaleMaxX="auto" scaleMinY="auto" scaleMaxY="auto" scaleMinZ="auto" scaleMaxZ="auto" minX="0" maxX="0" minY="0" maxY="0" minZ="0" maxZ="0"  mapWidth="0"       >
                <input axis="x">gyr_time</input>
                <input axis="y">degree_y</input>
            </graph>
            <graph editor:uuid="174" editor:posx="2536.5" editor:posy="788.4375" label="Position" aspectRatio="1" style="lines" lineWidth="1" color="ff7e22" partialUpdate="false" history="1" labelX="x" labelY="y" labelZ="" unitX="" unitY="" unitZ="" logX="false" logY="false" logZ="false" xPrecision="3" yPrecision="3" zPrecision="3" scaleMinX="extend" scaleMaxX="extend" scaleMinY="extend" scaleMaxY="extend" scaleMinZ="auto" scaleMaxZ="auto" minX="0" maxX="0" minY="0" maxY="0" minZ="0" maxZ="0"  mapWidth="0"       >
                <input axis="x">out</input>
                <input axis="y">out (1)</input>
            </graph>
        </view>
        <view label="phase space">
            <graph editor:uuid="207" editor:posx="1307.3125" editor:posy="783.109375" label="phase space" aspectRatio="1" style="lines" lineWidth="1" color="ff7e22" partialUpdate="false" history="1" labelX="theta" labelY="omega" labelZ="" unitX="" unitY="" unitZ="" logX="false" logY="false" logZ="false" xPrecision="3" yPrecision="3" zPrecision="3" scaleMinX="extend" scaleMaxX="extend" scaleMinY="extend" scaleMaxY="extend" scaleMinZ="auto" scaleMaxZ="auto" minX="0" maxX="0" minY="0" maxY="0" minZ="0" maxZ="0"  mapWidth="0"       >
                <input axis="x">angle_y</input>
                <input axis="y">x</input>
            </graph>
        </view>
    </views>
    <export>
        <set name="Angle">
            <data name="Time (s)">gyr_time</data>
            <data name="Angle (y-Axis)">degree_y</data>
        </set>
        <set name="Raw Data">
            <data name="Time (s)">gyr_time</data>
        </set>
        <set name="Result History">
        </set>
    </export>
</phyphox>
