<?xml version="1.0" encoding="ISO-8859-1"?>

<hotpot-jmatch-file>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <rdf:Description rdf:about="">
    <dc:creator>iMINT</dc:creator>
    <dc:title>Ermittlung der Herzfrequenz</dc:title>
  </rdf:Description>
</rdf:RDF><version>6</version>

<data>
<title>Ermittlung der Herzfrequenz</title>

<timer><seconds>60</seconds><include-timer>0</include-timer></timer>

<reading>
<include-reading>0</include-reading>
<reading-title></reading-title>
<reading-text></reading-text>

</reading>

<matching-exercise>
<default-right-item>W&amp;#x00E4;hle die richtige Reihenfolge</default-right-item>

<pair>
<left-item><text>1. Schritt</text>
<fixed>1</fixed>
</left-item>
<right-item><text>Variablen f&amp;#x00FC;r die Messung festlegen
---------------------------------------------------
long zeit=0; 
int wert=0;
int schwelle=650;
long abstand=0;</text>
<fixed>0</fixed>
</right-item></pair>

<pair>
<left-item><text>2. Schritt</text>
<fixed>1</fixed>
</left-item>
<right-item><text>Arduino f&amp;#x00FC;r die Messung einstellen
--------------------------------------------------
void setup() {	
  pinMode(A0,INPUT);
  pinMode(13,OUTPUT);
  Serial.begin(9600);
}</text>
<fixed>0</fixed>
</right-item></pair>

<pair>
<left-item><text>3. Schritt</text>
<fixed>1</fixed>
</left-item>
<right-item><text>Pulsschlag erkennen
------------------------------
void loop() {
// auf Spitze warten
while ( wert &lt; schwelle )
    wert=analogRead(A0);

// LED einschalten
  digitalWrite(13,HIGH);
</text>
<fixed>0</fixed>
</right-item></pair>

<pair>
<left-item><text>4. Schritt</text>
<fixed>1</fixed>
</left-item>
<right-item><text>Zeitdifferenz bestimmen und Uhr neu starten
----------------------------------------------------------------
  // Zeitdifferenz berechnen
  abstand=millis()-zeit;

  // Zeit merken
  zeit=millis();</text>
<fixed>0</fixed>
</right-item></pair>

<pair>
<left-item><text>5. Schritt</text>
<fixed>1</fixed>
</left-item>
<right-item><text>Puls berechnen und ausgeben
-------------------------------------------
// Plausibilit&amp;#x00E4;t pr&amp;#x00FC;fen und ausgeben
  if (abstand&amp;#x003E;400 &amp;#x0026;&amp;#x0026; abstand&amp;#x003C;2000) {
    Serial.print(&quot;Puls: &quot;);
    Serial.println(60000/abstand);
  } else 
    Serial.println(abstand);</text>
<fixed>0</fixed>
</right-item></pair>

<pair>
<left-item><text>6. Schritt</text>
<fixed>1</fixed>
</left-item>
<right-item><text>Auf den n&amp;#x00E4;chsten Puls warten
-------------------------------------------
 // auf Tal warten 
  while (wert&amp;#x003E;(schwelle-100))
    wert=analogRead(A0);
  
  // LED ausschalten
  digitalWrite(13,LOW);

}</text>
<fixed>0</fixed>
</right-item></pair>
</matching-exercise>
</data>

<hotpot-config-file>
<jmatch>
<exercise-subtitle>Programm zur Messung der Herzfrequenz</exercise-subtitle>
<instructions>Ordne die Programmbausteine in der richtigen Reihenfolge an!</instructions>
<next-ex-url>nextpage.htm</next-ex-url>
<send-email>0</send-email>
<show-limited-questions>0</show-limited-questions>
<questions-to-show>1</questions-to-show>
<shuffle-questions>0</shuffle-questions>
<separate-javascript-file>0</separate-javascript-file>
<next-caption>N&amp;#x00E4;chstes</next-caption>
<delete-caption>L&amp;#x00F6;schen</delete-caption>
<guess-correct>Super! Kopiere nun den Programmtext in die Arduino-Entwicklungsumgebung.</guess-correct>
<guess-incorrect>Das stimmt noch nicht ganz!</guess-incorrect>
</jmatch>

<global>
<your-score-is></your-score-is>
<correct-indicator>:-)</correct-indicator>
<incorrect-indicator>X</incorrect-indicator>
<process-for-rtl>0</process-for-rtl>
<include-scorm-12>0</include-scorm-12>
<times-up>Your time is over!</times-up>
<check-caption>&amp;#x00DC;berpr&amp;#x00FC;fen</check-caption>
<ok-caption>OK</ok-caption>
<next-ex-caption>=&amp;#x003E;</next-ex-caption>
<back-caption>&amp;#x003C;=</back-caption>
<contents-caption>Index</contents-caption>
<include-next-ex>1</include-next-ex>
<include-contents>1</include-contents>
<include-back>0</include-back>
<contents-url>contents.htm</contents-url>
<graphic-url></graphic-url>
<font-face>Geneva,Arial,sans-serif</font-face>
<font-size>small</font-size>
<page-bg-color>#C0C0C0</page-bg-color>
<title-color>#000000</title-color>
<ex-bg-color>#FFFFFF</ex-bg-color>
<text-color>#000000</text-color>
<link-color>#0000FF</link-color>
<vlink-color>#0000CC</vlink-color>
<nav-bar-color>#000000</nav-bar-color>
<formmail-url>http://yourserver.com/cgi-bin/FormMail.pl</formmail-url>
<email>you@yourserver.com</email>
<name-please>Please enter your name:</name-please>
<user-string-1>one</user-string-1>
<user-string-2>two</user-string-2>
<user-string-3>three</user-string-3>
<header-code></header-code>
</global>
</hotpot-config-file>
</hotpot-jmatch-file>
