<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>shelly &#8211; MagicManu</title>
	<atom:link href="https://www.magicmanu.com/tag/shelly/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.magicmanu.com</link>
	<description>Mes tutos de bricolage</description>
	<lastBuildDate>Thu, 22 Feb 2024 18:49:27 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.magicmanu.com/wp-content/uploads/2019/03/Photo-Profil-2017-carre-150x150.jpg</url>
	<title>shelly &#8211; MagicManu</title>
	<link>https://www.magicmanu.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Une notification pour vous rappeler de fermer la porte avec Shelly DW2</title>
		<link>https://www.magicmanu.com/test-produit/2023/12/une-notification-pour-vous-rappeler-de-fermer-la-porte-avec-shelly-dw2/</link>
					<comments>https://www.magicmanu.com/test-produit/2023/12/une-notification-pour-vous-rappeler-de-fermer-la-porte-avec-shelly-dw2/#respond</comments>
		
		<dc:creator><![CDATA[Manu]]></dc:creator>
		<pubDate>Mon, 11 Dec 2023 16:53:43 +0000</pubDate>
				<category><![CDATA[Domotique]]></category>
		<category><![CDATA[Test produit]]></category>
		<category><![CDATA[capteur]]></category>
		<category><![CDATA[dw2]]></category>
		<category><![CDATA[fenetre]]></category>
		<category><![CDATA[porte]]></category>
		<category><![CDATA[shelly]]></category>
		<guid isPermaLink="false">https://www.magicmanu.com/?p=272107327</guid>

					<description><![CDATA[Ça vous arrive d&#8217;oublier de fermer une porte ou une fenêtre ? Si oui je vais vous expliquer comme recevoir une notification sur votre téléphone]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Ça vous arrive d&rsquo;oublier de fermer une porte ou une fenêtre ? Si oui je vais vous expliquer comme recevoir une notification sur votre téléphone à une heure donnée !<br>Pour cela je vais utiliser le Shelly DW2, un détecteur d’ouverture de porte et de fenêtre, connecté, et avec des tas de fonctionnalités ! (Capteur de température, de lumière, de vibration…)</p>


<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><a href="https://www.magicmanu.com/test-produit/2023/12/une-notification-pour-vous-rappeler-de-fermer-la-porte-avec-shelly-dw2/"><img decoding="async" src="https://i.ytimg.com/vi/MsnzbCIPhi4/maxresdefault.jpg" alt="YouTube Video"></a><br /> <a href="https://youtu.be/MsnzbCIPhi4" target="_blank">Lire cette vidéo sur YouTube</a>.<br /><figcaption></figcaption></figure>


<p class="wp-block-paragraph">Plus d&rsquo;infos et achats sur le site officiel Shelly :<br><a href="https://www.shellyfrance.fr/shelly-door-window-sensor-2/" target="_blank" rel="noreferrer noopener">https://www.shellyfrance.fr/shelly-door-window-sensor-2/</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.magicmanu.com/test-produit/2023/12/une-notification-pour-vous-rappeler-de-fermer-la-porte-avec-shelly-dw2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Fabriquer une terrasse pour SPA gonflable, avec couvercle motorisé.</title>
		<link>https://www.magicmanu.com/maison/jardin/2020/08/fabriquer-une-terrasse-pour-spa-gonflable-avec-couvercle-motorise/</link>
					<comments>https://www.magicmanu.com/maison/jardin/2020/08/fabriquer-une-terrasse-pour-spa-gonflable-avec-couvercle-motorise/#comments</comments>
		
		<dc:creator><![CDATA[Manu]]></dc:creator>
		<pubDate>Wed, 12 Aug 2020 07:46:19 +0000</pubDate>
				<category><![CDATA[Créations en bois]]></category>
		<category><![CDATA[Jardin]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[jacuzzi]]></category>
		<category><![CDATA[shelly]]></category>
		<category><![CDATA[spa]]></category>
		<category><![CDATA[terrasse]]></category>
		<guid isPermaLink="false">https://www.magicmanu.com/?p=272105522</guid>

					<description><![CDATA[L&#8217;idée est venu au début du confinement : acheter un SPA gonflable mais faire quelque chose de sympa autour et le protéger (contre les griffes]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">L&rsquo;idée est venu au début du confinement : acheter un SPA gonflable mais faire quelque chose de sympa autour et le protéger (contre les griffes de chats par exemple !).<br>Je partage donc ma création avec vous, un terrasse de 11 m² surélevée, qui intègre un SPA gonflable 4 places de 1,8 m de diamètre.<br>Une trappe permet l&rsquo;accès à la commande du SPA (pompe, chauffage, bulles&#8230;)<br>Un couvercle coulissant le recouvre quand on ne s&rsquo;en sert pas, il est motorisé grâce à un moteur de portail, il est pilotable depuis un smartphone ou en commande vocale avec Alexa, tout comme les 4 spots le long du mur.</p>


<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><a href="https://www.magicmanu.com/maison/jardin/2020/08/fabriquer-une-terrasse-pour-spa-gonflable-avec-couvercle-motorise/"><img decoding="async" src="https://i.ytimg.com/vi/Uz2WKV5Tlnw/maxresdefault.jpg" alt="YouTube Video"></a><br /> <a href="https://youtu.be/Uz2WKV5Tlnw" target="_blank">Lire cette vidéo sur YouTube</a>.<br /><figcaption></figcaption></figure>


<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><a href="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200423_204657-scaled.jpg" target="_blank" rel="noopener"><img fetchpriority="high" decoding="async" width="1024" height="768" data-id="272105534" src="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200423_204657-1024x768.jpg" alt="" class="wp-image-272105534" srcset="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200423_204657-1024x768.jpg 1024w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200423_204657-300x225.jpg 300w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200423_204657-768x576.jpg 768w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200423_204657-1536x1152.jpg 1536w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200423_204657-2048x1536.jpg 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<figure class="wp-block-image size-large"><a href="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200502_160715-scaled.jpg" target="_blank" rel="noopener"><img decoding="async" width="1024" height="768" data-id="272105535" src="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200502_160715-1024x768.jpg" alt="" class="wp-image-272105535" srcset="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200502_160715-1024x768.jpg 1024w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200502_160715-300x225.jpg 300w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200502_160715-768x576.jpg 768w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200502_160715-1536x1152.jpg 1536w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200502_160715-2048x1536.jpg 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<figure class="wp-block-image size-large"><a href="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200505_085338-scaled.jpg" target="_blank" rel="noopener"><img decoding="async" width="1024" height="768" data-id="272105536" src="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200505_085338-1024x768.jpg" alt="" class="wp-image-272105536" srcset="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200505_085338-1024x768.jpg 1024w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200505_085338-300x225.jpg 300w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200505_085338-768x576.jpg 768w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200505_085338-1536x1152.jpg 1536w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200505_085338-2048x1536.jpg 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<figure class="wp-block-image size-large"><a href="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200520_223410-scaled.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" width="1024" height="715" data-id="272105537" src="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200520_223410-1024x715.jpg" alt="" class="wp-image-272105537" srcset="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200520_223410-1024x715.jpg 1024w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200520_223410-300x209.jpg 300w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200520_223410-768x536.jpg 768w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200520_223410-1536x1072.jpg 1536w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200520_223410-2048x1429.jpg 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a><figcaption class="wp-element-caption">bsh</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_103903-scaled.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" width="1024" height="768" data-id="272105538" src="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_103903-1024x768.jpg" alt="" class="wp-image-272105538" srcset="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_103903-1024x768.jpg 1024w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_103903-300x225.jpg 300w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_103903-768x576.jpg 768w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_103903-1536x1152.jpg 1536w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_103903-2048x1536.jpg 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<figure class="wp-block-image size-large"><a href="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_104652-scaled.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" width="1024" height="768" data-id="272105539" src="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_104652-1024x768.jpg" alt="" class="wp-image-272105539" srcset="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_104652-1024x768.jpg 1024w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_104652-300x225.jpg 300w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_104652-768x576.jpg 768w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_104652-1536x1152.jpg 1536w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_104652-2048x1536.jpg 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<figure class="wp-block-image size-large"><a href="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_224738-scaled.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" width="1024" height="768" data-id="272105540" src="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_224738-1024x768.jpg" alt="" class="wp-image-272105540" srcset="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_224738-1024x768.jpg 1024w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_224738-300x225.jpg 300w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_224738-768x576.jpg 768w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_224738-1536x1152.jpg 1536w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200711_224738-2048x1536.jpg 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<figure class="wp-block-image size-large"><a href="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200811_205056-scaled.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" width="1024" height="768" data-id="272105542" src="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200811_205056-1024x768.jpg" alt="" class="wp-image-272105542" srcset="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200811_205056-1024x768.jpg 1024w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200811_205056-300x225.jpg 300w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200811_205056-768x576.jpg 768w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200811_205056-1536x1152.jpg 1536w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200811_205056-2048x1536.jpg 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<figure class="wp-block-image size-large"><a href="https://www.magicmanu.com/wp-content/uploads/2020/08/SPA-215-scaled.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" width="1024" height="768" data-id="272105543" src="https://www.magicmanu.com/wp-content/uploads/2020/08/SPA-215-1024x768.jpg" alt="" class="wp-image-272105543" srcset="https://www.magicmanu.com/wp-content/uploads/2020/08/SPA-215-1024x768.jpg 1024w, https://www.magicmanu.com/wp-content/uploads/2020/08/SPA-215-300x225.jpg 300w, https://www.magicmanu.com/wp-content/uploads/2020/08/SPA-215-768x576.jpg 768w, https://www.magicmanu.com/wp-content/uploads/2020/08/SPA-215-1536x1152.jpg 1536w, https://www.magicmanu.com/wp-content/uploads/2020/08/SPA-215-2048x1536.jpg 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<figure class="wp-block-image size-large"><a href="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200810_231050-scaled.jpg" target="_blank" rel="noopener"><img loading="lazy" decoding="async" width="1024" height="768" data-id="272105541" src="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200810_231050-1024x768.jpg" alt="" class="wp-image-272105541" srcset="https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200810_231050-1024x768.jpg 1024w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200810_231050-300x225.jpg 300w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200810_231050-768x576.jpg 768w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200810_231050-1536x1152.jpg 1536w, https://www.magicmanu.com/wp-content/uploads/2020/08/IMG_20200810_231050-2048x1536.jpg 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>
</figure>



<p class="wp-block-paragraph"><strong>Matériel :</strong></p>



<ul class="wp-block-list">
<li><a href="https://www.oogarden.com/prod-33590-Lay-z-Spa-LED-Rond-TAHITI-gonflable-2-4-pers.html" target="_blank" rel="noreferrer noopener">SPA gonflable Lay-z-Spa LED Rond TAHITI 4 places</a></li>



<li><a href="https://www.leroymerlin.fr/v3/p/produits/poteau-bois-intermediaire-naturel-l-7-x-p-7-x-h-240-cm-e15268" target="_blank" rel="noreferrer noopener">15 poteaux en pin carré 7x7x240cms</a></li>



<li><a href="https://www.leroymerlin.fr/v3/p/produits/lambourde-pour-terrasse-bois-resineux-pin-vert-l-4-2-m-x-l-7-cm-x-ep-45-mm-e1501303384" target="_blank" rel="noreferrer noopener">10 lambourdes en pin vert classe 4 de 4,5x7x420cms</a></li>



<li><a href="https://www.leroymerlin.fr/v3/p/produits/planche-bois-kuhmo-2-pin-vert-l-240-x-l-14-5-cm-x-ep-27-mm-e1501092887" target="_blank" rel="noreferrer noopener">55 lames de terrasse Kuhmo 2 en pin de 14,5x240cms épaisseur 27mm</a> </li>



<li>3 panneaux bois occultant 28mm de 180x180cms </li>



<li><a href="https://www.leroymerlin.fr/v3/p/produits/100-vis-de-fixation-superwood-etanco-8x80-mm-e1401151338" target="_blank" rel="noreferrer noopener">100 vis de fixation Superwood ETANCO, 8&#215;80 mm</a> </li>



<li>500 vis Spax pour terrasse 5x60mm </li>



<li><a href="https://amzn.to/3LE8ECG" target="_blank" rel="noreferrer noopener">4 spots à enterrées Goodia LED chaud blanc IP68 3W</a> (lien rémunéré par Amazon)</li>



<li><a href="https://amzn.to/3lrqRsK" target="_blank" rel="noreferrer noopener">3 rails de portail épaisseur 3 mm longueur 3 mètres pour roue à gorge ronde 16 mm </a>(lien rémunéré par Amazon)</li>



<li><a href="https://amzn.to/406lEW4" target="_blank" rel="noreferrer noopener">4 roues de portail diamètre 60 mm </a>(lien rémunéré par Amazon)</li>



<li>Matériel électrique et électronique (Arduino, <a href="https://shop.shelly.cloud/shelly-2.5-ce-ul-wifi-smart-home-automation#54" target="_blank" rel="noreferrer noopener">Shelly</a>&#8230;), charnières, visserie, divers&#8230;</li>
</ul>



<p class="wp-block-paragraph"><strong>Outillage :</strong></p>



<ul class="wp-block-list">
<li>Perceuse à colonne </li>



<li>Scie à onglet </li>



<li>Visseuse </li>



<li>Défonceuse (spots) </li>



<li>Scie sauteuse </li>



<li>Scie sur table </li>



<li>Outillage à main</li>
</ul>



<p class="wp-block-paragraph"><strong>Durée de réalisation :</strong> environ 60H</p>



<p class="wp-block-paragraph"><strong>Coût total : </strong>environ 1200 € (Spa compris). Détail :<br>• 500 vis SPAX : 49.99 €<br>• 100 vis 8&#215;80 : 19.10 €<br>• 15 poteaux : 88.50 €<br>• 10 lambourdes : 119.00 €<br>• 55 lames de terrasse : 323.40 €<br>• 3 panneaux occultants : 41.70 €<br>• SPA : 309.00 €<br>• 4 roues (galets) : 39.96 €<br>• 3 rails : 29.97 €<br>• 4 spots : 68.99 €<br>• Divers : 100.00 €</p>



<p class="wp-block-paragraph"><strong>Plan : </strong></p>



<div class="wp-block-file"><a id="wp-block-file--media-3ee7d33e-a231-4c74-8c30-ec6e461b6b0f" href="https://www.magicmanu.com/wp-content/uploads/2020/08/Plan-terrasse-pour-SPA.pdf">Plan-terrasse-pour-SPA.pdf</a><a href="https://www.magicmanu.com/wp-content/uploads/2020/08/Plan-terrasse-pour-SPA.pdf" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-3ee7d33e-a231-4c74-8c30-ec6e461b6b0f">Télécharger</a></div>



<p class="wp-block-paragraph"><strong>Schéma électronique du couvercle :</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="724" src="https://www.magicmanu.com/wp-content/uploads/2020/08/Schema-1024x724.png" alt="" class="wp-image-272105526" srcset="https://www.magicmanu.com/wp-content/uploads/2020/08/Schema-1024x724.png 1024w, https://www.magicmanu.com/wp-content/uploads/2020/08/Schema-300x212.png 300w, https://www.magicmanu.com/wp-content/uploads/2020/08/Schema-768x543.png 768w, https://www.magicmanu.com/wp-content/uploads/2020/08/Schema-1536x1087.png 1536w, https://www.magicmanu.com/wp-content/uploads/2020/08/Schema-2048x1449.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<div class="wp-block-file"><a id="wp-block-file--media-8d6cc49e-3c97-4772-8009-c64ed8f809fa" href="https://www.magicmanu.com/wp-content/uploads/2020/08/Schema-de-cablage.pdf">Schema-de-cablage.pdf</a><a href="https://www.magicmanu.com/wp-content/uploads/2020/08/Schema-de-cablage.pdf" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-8d6cc49e-3c97-4772-8009-c64ed8f809fa">Télécharger</a></div>



<p class="wp-block-paragraph"><strong>Code Arduino du couvercle :</strong></p>



<p class="wp-block-paragraph"><a rel="noreferrer noopener" href="https://www.magicmanu.com/wp-content/uploads/2020/08/MotorSPA.zip" target="_blank">MotorSPA.zip</a></p>



<pre title="MotorSPA.ino" class="wp-block-code"><code lang="cpp" class="language-cpp line-numbers">/*
Resettable electronic circuit breaker for motorized hot tub cover
MagicManu 06/2020
https://www.magicmanu.com
*/

#define Current_sensor A0  // The ACS712 sensor analog input pin (-20A 0 +20A =&gt; 0 512 1024)
#define Potentiometer A2   // Potentiometer (0 to 1024)
#define ResetButton 12     // RaZ button
#define LedGreen 4         // Green LED ready
#define LedRed 6           // Red LED error
#define Relay 2            // Relay (HIGH = stop)

long TimeRef = 0;   // Time at the start of current is exceeds
int Cpt = 0;        // Number of millisecond of current is exceeds

boolean ButtonState;
float CurrentValue;
float PotenValue;
float RealCurrentValue;

boolean Exceeds = LOW;
boolean STOP = LOW;


void setup() {
 
  pinMode(Current_sensor, INPUT);
  pinMode(Potentiometer, INPUT);
  pinMode(ResetButton, INPUT_PULLUP);
  pinMode(LedGreen, OUTPUT);
  pinMode(LedRed, OUTPUT);
  pinMode(Relay, OUTPUT);

  digitalWrite(LedGreen, HIGH);
  digitalWrite(LedRed, LOW);
  digitalWrite(Relay, LOW);
}

void loop() {

  ButtonState  = digitalRead(ResetButton);
  CurrentValue = analogRead(Current_sensor);
  PotenValue   = analogRead(Potentiometer);

  // To convert 512-612 to 0-1024 (0A - 6A)
  RealCurrentValue = (CurrentValue - 512) * 10.24;

  // Current is exceeds
  if (RealCurrentValue &gt; PotenValue &amp;&amp; !Exceeds &amp;&amp; !STOP){
    TimeRef = millis();
    Exceeds = HIGH;
  }

  if (RealCurrentValue &lt; PotenValue){
    Exceeds = LOW;
  }


  Cpt = millis() - TimeRef;

  // 0,25 seconds : stop
  if (Exceeds &amp;&amp; Cpt &gt; 250){
    STOP = HIGH;
    digitalWrite(Relay, HIGH);
    digitalWrite(LedGreen, LOW);  
    digitalWrite(LedRed, HIGH);        
  }

  // 5 seconds : we can start
  if (STOP &amp;&amp; Cpt &gt; 5000){
    digitalWrite(LedGreen, HIGH); // Ready
    
    // Reset
    if (!ButtonState){
      STOP = LOW;
      digitalWrite(Relay, LOW);
      digitalWrite(LedRed, LOW);  
    }    
  }
}
</code></pre>



<p class="wp-block-paragraph"><em>Merci à Alex pour son aide sur la pose des dalles, la tranchée et la peinture du mur par exemple 😉</em></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.magicmanu.com/maison/jardin/2020/08/fabriquer-une-terrasse-pour-spa-gonflable-avec-couvercle-motorise/feed/</wfw:commentRss>
			<slash:comments>37</slash:comments>
		
		
			</item>
	</channel>
</rss>
