<?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.hatlab.fr/Special:URIResolver/'>
	<!ENTITY category 'http://https://wikifab.hatlab.fr/Special:URIResolver/Category-3A'>
	<!ENTITY property 'http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3A'>
	<!ENTITY wikiurl 'https://wikifab.hatlab.fr/'>
]>

<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.hatlab.fr/Special:ExportRDF/Comment_cr-C3-A9er_une_alarme_avec_notification_sur_mobile">
		<swivt:creationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2026-04-28T13:41:04+02:00</swivt:creationDate>
		<owl:imports rdf:resource="http://semantic-mediawiki.org/swivt/1.0"/>
	</owl:Ontology>
	<swivt:Subject rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Comment_cr-C3-A9er_une_alarme_avec_notification_sur_mobile">
		<rdf:type rdf:resource="http://https://wikifab.hatlab.fr/Special:URIResolver/Category-3ATutoriels"/>
		<rdfs:label>Comment créer une alarme avec notification sur mobile</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://wikifab.hatlab.fr/Special:ExportRDF/Comment_cr-C3-A9er_une_alarme_avec_notification_sur_mobile"/>
		<swivt:page rdf:resource="https://wikifab.hatlab.fr/Comment_cr-C3-A9er_une_alarme_avec_notification_sur_mobile"/>
		<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:resource="&wiki;Maison"/>
		<property:Area rdf:resource="&wiki;-C3-89lectronique"/>
		<property:Complete rdf:resource="&wiki;Cochez_cette_case_si_vous_consid-C3-A9rez_ce_tutoriel_termin-C3-A9"/>
		<property:Cost rdf:datatype="http://www.w3.org/2001/XMLSchema#double">5</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">Nous allons voir comment créer une alarme à détection de mouvement avec notifications push sur votre mobile pour moins de 5 €</property:Description>
		<property:Difficulty rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Facile</property:Difficulty>
		<property:Duration rdf:datatype="http://www.w3.org/2001/XMLSchema#double">10</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">Ce tutoriel explique comment envoyer des alarmes instantanéement sur votre téléphone avec IFTTH. Depuis, ce service est devenu payant.

Au fablab nous pouvons aussi montrer comment envoyer ces alarmes:

* par SMS (donc sans activer la Data sur le téléphone)
* par l'application Telegram
* par l'application Discord</property:Introduction>
		<property:Licences rdf:datatype="http://www.w3.org/2001/XMLSchema#string">GNU Free Hardware Designs</property:Licences>
		<property:Material rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Il vous faudra un nodeMcu, un capteur de mouvement, 3 fils Dupont et un cable micro-usb</property:Material>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">(Ajout par Sylvain - suite)
Voici un peu plus de détails sur la solution.

Le diagramme montre le circuit du HC-SR501.
L'encoche ou le petit rond visible sur le chip BSS0001 est du côté du pin "1".

Au milieu du côté opposé se trouvent les pin 12 et 13.
* pour la pin 13,  on peut se connecter sur les résistances R6, R7 ou sur la pin 13. La pin 13 reste le plus simple à mon avis.
* pour la pin 12, celle-ci est connectée directement sur une des  résistances variables. Si souder sur la pin 12 est difficile, il est possible d'utiliser une des 2 pattes de la résistance variable, ou même la partie métallique de la résistance. J'ai trouvé que le plus simple est de souder sur l'autre face du PCB, et de relier la capa avec une rallonge. Voir les photos.

En utilisant des "rallonges", la soudure est plus facile, et cela permet de rabattre la capa pour qu'elle ne dépasse pas du gabarit.</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">(Ajout par Sylvain)
L'association du nodemcu et du PIR HC-SR501 donne un capteur connecté très pratique et puissant.

Malheureusement, beaucoup constatent des faux positifs: de fausses alertes alors qu'il n'y a eu aucun changement devant le capteur. Cela semble provenir du rayonnement du wifi 2.4GHz qui perturbe le circuit du capteur. 

J'ai pu résoudre ça grâce à 2 solutions:

* De préférence, alimenter de préférence le PIR avec 5V comme prévu dans ses spécifications. La connexion sur le 3V3 n'est pas conforme. Sur le nodemcu LoLin v3, il existe un PIN "VV" qui convient.
* Et surtout: ajouter sur le circuit du PIR une "capa" entre les PIN 12 et 13 du chip BSS0001. C'est la solution miracle !

Voir en photo ce que cela donne.
Il est très difficile de souder la capa directement. Pour limiter se problème , j'ai commencé par souder de petits fils sur les pin. Les fils sont souples et peuvent être adaptés à la taille de la capa. j'ai ensuite soudé la capa sur ces "rallonges".

Il est préconisé une capa de 220nF. J'ai mis une 100nF qui fait le job avec succès sur mes capteurs.

L'idée vient du Forum:  [https://www.letscontrolit.com/forum/viewtopic.php?t=671#p13980 la solution de "chunter1"]. Merci à lui.

Sylvain</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">*Nom de votre réseau wifi
*Mot de passe (SSID de votre réseau wifi)
*Votre MakerIFTTT_Key (que vous avez récupéré à l'étape 3)</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">*Renseignez les champs en respectant les valeurs
*Enregistrez votre applet</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">*Si ce n'est déjà fait, téléchargez, installez et lancez Arduino IDE
*Allez dans Menu - Fichier - préférences. 
*Collez http://arduino.esp8266.com/stable/package_esp8266com_index.json dans le champ URL de gestionnaire
*Allez dans le menu Outils - Type de carte - Gestionnaire de carte. 
*Filtrez sur ESP, choisissez ESP8266 puis installez
*Allez dans le menu Outils - Type de carte
*Choisissez NodeMCU 1.0
*Choisissez le port (branchez et débranchez le NodeMCU pour voir le port)
*Créez un nouveau script (Fichier / Nouveau)</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">-Découpez et montez la boite.
Voici le fichier dxf qui vous permettra de découper une petite boite en MDF : 
https://www.sqylab.org/wp-content/uploads/2019/03/boite_alarme.zip

-Installez le nodeMCU et le capteur dans la boite
-Branchez le cable USB sur le NodeMCU et sur votre box ou un chargeur de téléphone
-Réglez la sensibilité et le délai (2 boutons oranges sur le capteur) au minimum (comme sur la photo)
-Le cavalier jaune sur le capteur doit être positionné sur les deux broches de droite (comme sur la photo)</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Ce sont les caractères après /use/
disponiblent sur https://ifttt.com/services/maker_webhooks/settings</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">IFTTT va recevoir la requête http envoyée par le NodeMCU
Créez-vous un compte sur https://ifttt.com (gratuit)</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Voilà, votre alarme est prête à l’emploi !

Après 2 min (le temps de sortir), elle passe en mode surveillance et vous alertera par email en cas de mouvement.

Vous pouvez aussi installer l’appli mobile IFTTT et activer l’option "Receive notifications when this Applet runs" afin de recevoir une alerte plus rapidement.

Astuce : Vous pouvez aussi configurer votre applet IFTTT pour activer automatiquement le wifi de votre mobile quand vous arrivez chez vous.</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">https://www.sqylab.org/tutoriaux/alarme_sqylab.ino</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">vous avez juste 3 fils à connecter entre le capteur et le NodeMcu</property:Step_Content>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Cliquer sur Receive a web request</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Cliquer sur That</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Cliquer sur This</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Créer un compte IFTTT</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Créer une nouvelle applet</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Découper la boite</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Installer Arduino IDE</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Le cablage</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Nommer votre applet "alarme"</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Noter votre MakerIFTTT_Key</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Rechercher le service Gmail</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Rechercher le service webhooks</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Remplacer les valeurs wifi et MakerIFTTT_Key</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Renseigner les champs suivants</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Résolution des fausses alarmes (suite)</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Résoudre les faux positifs (fausses alarmes) du PIR HC-SR501</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Sélectionner "Send yourself an email"</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Télécharger et charger le code Arduino</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Téléverser le code vers le NodeMCU</property:Step_Title>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Fix</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">HC-SR501</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">PIR</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">alarme</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">carte-arduino</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">domotique</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">esp</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">nodemcu</property:Tags>
		<property:Tools rdf:datatype="http://www.w3.org/2001/XMLSchema#string">aucun si vous achetez des cables femelle-femelle. Sinon, il vous faudra un fer à souder.</property:Tools>
		<property:Type rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Création</property:Type>
		<swivt:wikiPageModificationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2023-09-04T19:54:29Z</swivt:wikiPageModificationDate>
		<property:Modification_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2460192.3295023</property:Modification_date-23aux>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Comment créer une alarme avec notification sur mobile</swivt:wikiPageSortKey>
	</swivt:Subject>
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#creationDate" />
	<owl:Class rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Category-3ATutoriels" />
	<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:ObjectProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AArea" />
	<owl:ObjectProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AComplete" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ACost" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ACurrency" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ADescription" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ADifficulty" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ADuration" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ADuration-2Dtype" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AIntroduction" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ALicences" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AMaterial" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AStep_Content" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AStep_Title" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ATags" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ATools" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AType" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AModification_date-23aux" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey" />
	<!-- Created by Semantic MediaWiki, https://www.semantic-mediawiki.org/ -->
</rdf:RDF>