

<?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/Utiliser_un_bouton_poussoir_avec_un_Arduino">
		<swivt:creationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2026-04-04T07:34:14+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/Utiliser_un_bouton_poussoir_avec_un_Arduino">
		<rdf:type rdf:resource="http://https://wikifab.org/wiki/Special:URIResolver/Category-3ATutorials"/>
		<rdfs:label>Utiliser un bouton poussoir avec un Arduino</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://wikifab.org/wiki/Special:ExportRDF/Utiliser_un_bouton_poussoir_avec_un_Arduino"/>
		<swivt:page rdf:resource="https://wikifab.org/wiki/Utiliser_un_bouton_poussoir_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">10</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">Le but de ce montage est de gérer une LED commandée par à un bouton. Ce montage va s’appuyer sur le montage « Allumer une LED ».</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:Introduction rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Il existe 2 types de boutons :
* Les interrupteurs qui maintiennent leur état. C’est-à-dire que l’on est pas obligé d’appuyer dessus pour qu’il reste ON ou OFF.
* Les boutons poussoirs qui reviennent automatiquement à leur état de base si l’on arrête d’appuyer dessus.</property:Introduction>
		<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">Utiliser_un_bouton_poussoir_avec_un_Arduino_Cablage-2.jpg</property:Main_Picture>
		<property:Material rdf:datatype="http://www.w3.org/2001/XMLSchema#string">* 1 Arduino
* 1 LED
* 1 résistance 220 Ohm (R1)
* 1 bouton
* 1 résistance 10kOhm (R2)
* 1 Breadboard
* Des fils de connexion</property:Material>
		<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 montage doit mettre en relation une LED entre une sortie du Arduino (On utilisera la sortie Digital 2) et le GND, un bouton poussoir entre une entrée du Arduino (On utilisera l’entrée Digital 3). On ajoute une résistance entre le 5V et l’entrée Digital 3.

On utilise les mêmes connexions pour l’ensemble LED et résistance que dans le montage « Allumer une LED ». Il est possible de remplacer cette ensemble LED + résistances par 1 LED pour plus de luminosité. Utiliser une LED sans résistance réduit sa durée de vie.

Lorsque le bouton poussoir est appuyé le Arduino verra le 0V sur l’entrée D3 et lorsque le bouton est relâché le Arduino verra 5V sur l’entrée D3.</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">On câble ensuite les liens vers le Arduino.</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Tout le montage se réalise sur la plaque prévu à cet effet (Breadboard). Comme nous avons plusieurs composants au même potentiel nous allons réaliser des colonnes avec ces différents potentiels :

* 1 colonne 5V avec la résistance R2
* 1 colonne pour l’entrée Digital 3 avec la résistance R2 et le bouton poussoir
* 1 colonne pour la sortie Digital 2 avec l’anode de la LED
* 1 colonne avec la cathode de la LED et la résistance R1
* 1 colonne GND avec la résistance R1 et le bouton poussoir</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Le programme doit allumer la LED branchée sur la sortie numérique 2 si il détecte un 1 sur l’entrée numérique 3 sinon elle éteint la LED.

 const int L1 = 2; // broche 2 du micro-contrôleur se nomme maintenant : L1
 const int BP = 3; // broche 3 du micro-contrôleur se nomme maintenant : BP
 
 void setup() //fonction d'initialisation de la carte
 {
 //contenu de l'initialisation
 pinMode(L1, OUTPUT); //L1 est une broche de sortie
 pinMode(BP, INPUT); // BP est une broche d'entree
 }
 
 void loop() //fonction principale, elle se répète (s’exécute) à l'infini
 {
 //contenu du programme
 int test = digitalRead(BP); // Lecture de l'entree BP et sockage du résultats dans test
 
 if(test==LOW) // Si test est à l'état bas
 {
 digitalWrite(L1, HIGH); // Allumer L1
 }
 else // Sinon
 {
 digitalWrite(L1, LOW); // Eteindre L1
 }
 }

Il reste à brancher le Arduino pour compiler le programme et le téléverser.</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Une fois terminé cela nous donne :

* Photo 1 : ON
* Photo 2 : OFF

'''Pour aller plus loin :'''
Il est possible de rendre autonome le montage en lui ajoutant un coupleur de pile. Il est aussi possible de modifier les séquences pour garder allumer après un appui et éteindre après un autre appui.</property:Step_Content>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Principe du montage</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Montage des composants sur la Breadboard</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Câblage de la Breadboard</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">Test</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-09T11:04:40Z</swivt:wikiPageModificationDate>
		<property:Modification_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2458826.9615741</property:Modification_date-23aux>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Utiliser un bouton poussoir 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">1</property:Favorites>
	</swivt:Subject>
	<swivt:Subject rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/CommentStreams-3A91c742c33d0faec9ca594e0826d11b11">
		<rdfs:label>CommentStreams:91c742c33d0faec9ca594e0826d11b11</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://wikifab.org/wiki/Special:ExportRDF/CommentStreams-3A91c742c33d0faec9ca594e0826d11b11"/>
		<swivt:page rdf:resource="https://wikifab.org/wiki/CommentStreams-3A91c742c33d0faec9ca594e0826d11b11"/>
		<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">91c742c33d0faec9ca594e0826d11b11</swivt:wikiPageSortKey>
		<property:Comment_on rdf:resource="&wiki;Utiliser_un_bouton_poussoir_avec_un_Arduino"/>
	</swivt:Subject>
	<swivt:Subject rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/CommentStreams-3AE9ff09eedcbfbcb69ad4aac1008fda68">
		<rdfs:label>Merci pour la leçon c'est bien fait</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://wikifab.org/wiki/Special:ExportRDF/CommentStreams-3AE9ff09eedcbfbcb69ad4aac1008fda68"/>
		<swivt:page rdf:resource="https://wikifab.org/wiki/CommentStreams-3AE9ff09eedcbfbcb69ad4aac1008fda68"/>
		<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">Merci pour la leçon c'est bien fait</swivt:wikiPageSortKey>
		<property:Comment_on rdf:resource="&wiki;Utiliser_un_bouton_poussoir_avec_un_Arduino"/>
	</swivt:Subject>
	<swivt:Subject rdf:about="http://https://wikifab.org/wiki/Special:URIResolver/CommentStreams-3AAfd51399a2e74a9b05d59160f5bb2370">
		<rdfs:label>merci</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://wikifab.org/wiki/Special:ExportRDF/CommentStreams-3AAfd51399a2e74a9b05d59160f5bb2370"/>
		<swivt:page rdf:resource="https://wikifab.org/wiki/CommentStreams-3AAfd51399a2e74a9b05d59160f5bb2370"/>
		<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">merci</swivt:wikiPageSortKey>
		<property:Comment_on rdf:resource="&wiki;Utiliser_un_bouton_poussoir_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-3AIntroduction" />
	<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-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>