

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF[
	<!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
	<!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
	<!ENTITY owl 'http://www.w3.org/2002/07/owl#'>
	<!ENTITY swivt 'http://semantic-mediawiki.org/swivt/1.0#'>
	<!ENTITY wiki 'http://https://wikifab.org/wiki/Special:URIResolver/'>
	<!ENTITY category 'http://https://wikifab.org/wiki/Special:URIResolver/Category-3A'>
	<!ENTITY property 'http://https://wikifab.org/wiki/Special:URIResolver/Property-3A'>
	<!ENTITY wikiurl 'https://wikifab.org/wiki/'>
]>

<rdf:RDF
	xmlns:rdf="&rdf;"
	xmlns:rdfs="&rdfs;"
	xmlns:owl ="&owl;"
	xmlns:swivt="&swivt;"
	xmlns:wiki="&wiki;"
	xmlns:category="&category;"
	xmlns:property="&property;">

	<owl:Ontology rdf:about="https://wikifab.org/wiki/Special:ExportRDF/Détecteur_de_présence_avec_un_Arduino">
		<swivt:creationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2026-05-24T02:33:49+02:00</swivt:creationDate>
		<owl:imports rdf:resource="http://semantic-mediawiki.org/swivt/1.0"/>
	</owl:Ontology>
	<swivt:Subject rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Détecteur_de_présence_avec_un_Arduino">
		<rdf:type rdf:resource="http://https://wikifab.org/wiki/Special:URIResolver/Category-3ATutorials"/>
		<rdfs:label>Détecteur de présence avec un Arduino</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://wikifab.org/wiki/Special:ExportRDF/Détecteur_de_présence_avec_un_Arduino"/>
		<swivt:page rdf:resource="https://wikifab.org/wiki/Détecteur_de_présence_avec_un_Arduino"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</swivt:wikiNamespace>
		<swivt:wikiPageContentLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">fr</swivt:wikiPageContentLanguage>
		<property:Area rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Electronics</property:Area>
		<property:Complete rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Published</property:Complete>
		<property:Cost rdf:datatype="http://www.w3.org/2001/XMLSchema#double">15</property:Cost>
		<property:Currency rdf:datatype="http://www.w3.org/2001/XMLSchema#string">EUR (€)</property:Currency>
		<property:Description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Créer un détecteur de présence qui allumera une LED en cas de passage de personne. Le montage sera basé sur le capteur de distance à ultrason que l’on utilisera sous forme de seuil. On partira donc du principe que le montage sera installé à un point fixe et que l’on détecte le passage devant le capteur (Comme c’est le cas dans un couloir par exemple).</property:Description>
		<property:Difficulty rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Easy</property:Difficulty>
		<property:Duration rdf:datatype="http://www.w3.org/2001/XMLSchema#double">20</property:Duration>
		<property:Duration-2Dtype rdf:datatype="http://www.w3.org/2001/XMLSchema#string">minute(s)</property:Duration-2Dtype>
		<property:IsTranslation rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">false</property:IsTranslation>
		<property:Language rdf:datatype="http://www.w3.org/2001/XMLSchema#string">fr</property:Language>
		<property:Licences rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Attribution (CC BY)</property:Licences>
		<property:Main_Picture rdf:datatype="http://www.w3.org/2001/XMLSchema#string">D_tecteur_de_pr_sence_avec_un_Arduino_ON1.jpg</property:Main_Picture>
		<property:Material rdf:datatype="http://www.w3.org/2001/XMLSchema#string">* Un Arduino
* Un câble USB
* Un capteur de distance à ultrason
* Une LED et sa résistance
* Une Breadboard
* Des fils de connexions</property:Material>
		<property:Notes rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Ce tuto est basé sur le post suivant : http://forum.snootlab.com/viewtopic.php?f=38&amp;t=649</property:Notes>
		<property:SourceLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">none</property:SourceLanguage>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Le programme utilise la librairie Ultrasonic. Il faut donc l’installer, c’est-à-dire la copier dans votre répertoire Mes documents / Arduino / librairies.

Le programme va paramétrer le module ultrason grâce au commande de la librairie (Pour plus d’info http://wiki.tetrasys-design.net/HCSR04Ultrasonic), ensuite il compare à une valeur enregistrer si il détecte un objet ou une personne à moins de cette distance on allume la LED sinon on l’éteint.

 #include 
 
 const int Trig = 12;     // pin "Trig" du HC-SR04 connectée à pin 13 de l'Arduino
 const int Echo = 13;     // pin "Echo" du HC-SR04 connectée à pin 12 de l'Arduino
 
 const int LED = 1; // pin connecté à la LED + resistance
 
 const int green = 10;   // LEDs reliées aux pins de l'Arduino via une résistance
 const int yellow = 11;  // de 150 Ohms.
 const int red = 12;
 
 long cm;                // variable pour stocker la distance de l'objet en cm
 
 Ultrasonic HCSR04(Trig,Echo);
 
 void setup()
 {
   pinMode(LED, OUTPUT);
 }
 
 void loop()
 {
 
   cm = HCSR04.convert(HCSR04.timing(), 1);
 
   if(cm &gt; 0 &amp;&amp; cm &lt; 20)          // Il y a une présence   {     digitalWrite(LED, HIGH); // Allumer la LED     delay(10); // Temps de traitement   }   else if(cm &gt;= 20)  // Il n'y a pas de présence
   {
     digitalWrite(LED, LOW); // Eteindre la LED
     delay(10); // Temps de traitement
   }
 }</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Ce montage se basera sur le câblage du capteur ci-contre en lui ajoutant un ensemble LED + résistance sur la Pin Digital 1.

* Digital 12 (Arduino) → Trig (Ultrason)
* Digital 13 (Arduino) → Echo ( Ultrason)
* 5V (Arduino) → VCC (Ultrason)
* GND (Arduino) → GND (Ultrason)
* Digital 1 (Arduino) → LED (Anode)
* LED (cathode) → Résistance
* GND (Arduino) → Résistance</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Il reste à brancher le Arduino pour compiler le programme et le téléviser.

Une fois terminé cela nous donne :

* ON : photo 1
* OFF : photo 2</property:Step_Content>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Câblage</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Programmation</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Compiler le programme</property:Step_Title>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Arduino</property:Tags>
		<property:Type rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Creation</property:Type>
		<swivt:wikiPageModificationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2019-12-09T10:31:40Z</swivt:wikiPageModificationDate>
		<property:Modification_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2458826.9386574</property:Modification_date-23aux>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Détecteur de présence avec un Arduino</swivt:wikiPageSortKey>
		<property:Comments rdf:datatype="http://www.w3.org/2001/XMLSchema#double">3</property:Comments>
		<property:Page_creator rdf:resource="&wiki;Utilisateur-3ALetmeknow"/>
		<property:I_did_it rdf:datatype="http://www.w3.org/2001/XMLSchema#double">1</property:I_did_it>
		<property:Favorites rdf:datatype="http://www.w3.org/2001/XMLSchema#double">11</property:Favorites>
	</swivt:Subject>
	<swivt:Subject rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/CommentStreams-3A1443318ccf22c0b535610768a5c0ee9f">
		<rdfs:label>CommentStreams:1443318ccf22c0b535610768a5c0ee9f</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://wikifab.org/wiki/Special:ExportRDF/CommentStreams-3A1443318ccf22c0b535610768a5c0ee9f"/>
		<swivt:page rdf:resource="https://wikifab.org/wiki/CommentStreams-3A1443318ccf22c0b535610768a5c0ee9f"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">844</swivt:wikiNamespace>
		<swivt:wikiPageContentLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">fr</swivt:wikiPageContentLanguage>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">1443318ccf22c0b535610768a5c0ee9f</swivt:wikiPageSortKey>
		<property:Comment_on rdf:resource="&wiki;Détecteur_de_présence_avec_un_Arduino"/>
	</swivt:Subject>
	<swivt:Subject rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/CommentStreams-3AAb013d66973b5ed91008ba9389b36497">
		<rdfs:label>CommentStreams:Ab013d66973b5ed91008ba9389b36497</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://wikifab.org/wiki/Special:ExportRDF/CommentStreams-3AAb013d66973b5ed91008ba9389b36497"/>
		<swivt:page rdf:resource="https://wikifab.org/wiki/CommentStreams-3AAb013d66973b5ed91008ba9389b36497"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">844</swivt:wikiNamespace>
		<swivt:wikiPageContentLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">fr</swivt:wikiPageContentLanguage>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Ab013d66973b5ed91008ba9389b36497</swivt:wikiPageSortKey>
		<property:Comment_on rdf:resource="&wiki;Détecteur_de_présence_avec_un_Arduino"/>
	</swivt:Subject>
	<swivt:Subject rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/CommentStreams-3AA108c77c176cf5fbd0f230a00682274a">
		<rdfs:label>probleme de code</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://wikifab.org/wiki/Special:ExportRDF/CommentStreams-3AA108c77c176cf5fbd0f230a00682274a"/>
		<swivt:page rdf:resource="https://wikifab.org/wiki/CommentStreams-3AA108c77c176cf5fbd0f230a00682274a"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">844</swivt:wikiNamespace>
		<swivt:wikiPageContentLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">fr</swivt:wikiPageContentLanguage>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">probleme de code</swivt:wikiPageSortKey>
		<property:Comment_on rdf:resource="&wiki;Détecteur_de_présence_avec_un_Arduino"/>
	</swivt:Subject>
	<owl:ObjectProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AComment_on">
		<rdfs:label>Comment on</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://wikifab.org/wiki/Special:ExportRDF/Attribut-3AComment_on"/>
		<swivt:page rdf:resource="https://wikifab.org/wiki/Attribut-3AComment_on"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">102</swivt:wikiNamespace>
		<swivt:wikiPageContentLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">fr</swivt:wikiPageContentLanguage>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Comment on</swivt:wikiPageSortKey>
	</owl:ObjectProperty>
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#creationDate" />
	<owl:Class rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Category-3ATutorials" />
	<owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#page" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiNamespace" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageContentLanguage" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AArea" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AComplete" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ACost" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ACurrency" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ADescription" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ADifficulty" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ADuration" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ADuration-2Dtype" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AIsTranslation" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ALanguage" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ALicences" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AMain_Picture" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AMaterial" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ANotes" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ASourceLanguage" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AStep_Content" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AStep_Title" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3ATags" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AType" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AModification_date-23aux" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AComments" />
	<owl:ObjectProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3APage_creator" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AI_did_it" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/Property-3AFavorites" />
	<!-- Created by Semantic MediaWiki, https://www.semantic-mediawiki.org/ -->
</rdf:RDF>