<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Forum FS Generation - Programmation et langages, Algorithmique</title>
		<link>https://forums.futura-sciences.com/</link>
		<description><![CDATA[Tous les langages (C, C++, Perl, Python, Java, javascript, PHP, SQL, HTML, XML...), les logiciels utilisant des langages de script,... un problème pour concevoir un algorithme : c'est ici!]]></description>
		<language>fr</language>
		<lastBuildDate>Mon, 16 Nov 2026 07:06:58 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>15</ttl>
		<image>
			<url>https://forums.futura-sciences.com/images/SultanThemeVB4R/misc/rss.png</url>
			<title>Forum FS Generation - Programmation et langages, Algorithmique</title>
			<link>https://forums.futura-sciences.com/</link>
		</image>
		<item>
			<title><![CDATA[De l'Arduino]]></title>
			<link>https://forums.futura-sciences.com/programmation-langages-algorithmique/965241-de-larduino.html</link>
			<pubDate>Sun, 18 Oct 2026 14:23:01 GMT</pubDate>
			<description><![CDATA[Bonjour, 
Alors voila, j'ai décidé de remplacer la carte de commande de mon lave linge par de l'Arduino. 
Si quelqu'un avait la bonté de corriger, et d'ajouter la boucle de 100 cycles, je pourrais continuer le code. 
Je ne suis pas sûr que le...]]></description>
			<content:encoded><![CDATA[<div>Bonjour,<br />
Alors voila, j'ai décidé de remplacer la carte de commande de mon lave linge par de l'Arduino.<br />
Si quelqu'un avait la bonté de corriger, et d'ajouter la boucle de 100 cycles, je pourrais continuer le code.<br />
Je ne suis pas sûr que le remplissage doive être dans la première boucle.code]<br />
A votre bon coeur<br />
Merci<br />
Le code:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">[#define PIN_PRESS A1// Pressostat<br />
#define PIN_POMP A2// Pompe<br />
#define PIN_VID A3// Vidange<br />
#define PIN_EV A4 // EV<br />
#define PIN_MOT_A1 A5<br />
#define PIN_MOT_A2 A6<br />
#define PIN_MOT_B1 A7<br />
#define PIN_MOT_B2 A8<br />
<br />
void setup()<br />
{<br />
&nbsp; pinMode(PIN_PRESS, INPUT);<br />
&nbsp; pinMode(PIN_POMP, OUTPUT);<br />
&nbsp; pinMode(PIN_VID, OUTPUT);<br />
&nbsp; pinMode(PIN_EV, OUTPUT);<br />
&nbsp; pinMode(PIN_MOT_A1, OUTPUT);<br />
&nbsp; pinMode(PIN_MOT_A2, OUTPUT);<br />
&nbsp; pinMode(PIN_MOT_B1, OUTPUT);<br />
&nbsp; pinMode(PIN_MOT_B2, OUTPUT);<br />
&nbsp; digitalWrite(PIN_POMP, LOW);<br />
&nbsp; digitalWrite(PIN_VID, LOW);<br />
&nbsp; digitalWrite(PIN_EV, LOW);<br />
&nbsp; digitalWrite(PIN_MOT_A1, LOW);<br />
&nbsp; digitalWrite(PIN_MOT_A2, LOW);<br />
&nbsp; digitalWrite(PIN_MOT_B1, LOW);<br />
&nbsp; digitalWrite(PIN_MOT_B2, LOW);<br />
}<br />
<br />
void loop()<br />
{<br />
&nbsp; // 1 : Remplissage<br />
&nbsp;  if (PIN_PRESS == LOW) {<br />
&nbsp; &nbsp; digitalWrite(PIN_EV, HIGH);<br />
&nbsp; }<br />
&nbsp;  if (PIN_PRESS == HIGH) {<br />
&nbsp; &nbsp; digitalWrite(PIN_EV, LOW);<br />
&nbsp; }<br />
&nbsp; // Ici il faut démarrer une boucle de 100 cycles (lavage)<br />
&nbsp; // Sens horaire&nbsp;  <br />
&nbsp; }<br />
&nbsp; digitalWrite(MOT_MOT_A1, HIGH); //Sens horaire<br />
&nbsp; digitalWrite(MOT_MOT_A2, HIGH);<br />
&nbsp; delay( 25 ); // 1023*12 = environ 12.8s <br />
<br />
&nbsp; // a : phase repos ...<br />
&nbsp; &nbsp; digitalWrite(MOT_MOT_A1, LOW);<br />
&nbsp; &nbsp; digitalWrite(MOT_MOT_A2, LOW);<br />
&nbsp; &nbsp; delay(25);&nbsp; // 1023*12 = environ 12.8s<br />
&nbsp; }<br />
&nbsp; //Sens antihoraire<br />
&nbsp; &nbsp; digitalWrite(MOT_MOT_B1, HIGH); //Sens antihoraire<br />
&nbsp; digitalWrite(MOT_MOT_B2, HIGH);<br />
&nbsp; delay( 25 ); // 1023*12 = environ 12.8s <br />
<br />
&nbsp; &nbsp; // b : phase repos ...<br />
&nbsp; &nbsp; digitalWrite(MOT_MOT_B1, LOW);<br />
&nbsp; &nbsp; digitalWrite(MOT_MOT_B2, LOW);<br />
&nbsp; &nbsp; delay(25);&nbsp; // 1023*12 = environ 12.8s<br />
&nbsp; }<br />
<br />
}</code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="https://forums.futura-sciences.com/programmation-langages-algorithmique/">Programmation et langages, Algorithmique</category>
			<dc:creator>Henrix</dc:creator>
			<guid isPermaLink="true">https://forums.futura-sciences.com/programmation-langages-algorithmique/965241-de-larduino.html</guid>
		</item>
	</channel>
</rss>
