<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
<font style="" face="Tahoma">allo</font><font style="" face="Tahoma"> </font><font style="" face="Tahoma"><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px"><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">Enrico</span></span></font><font style="" face="Tahoma"> </font><font style="" face="Tahoma"><br></font><font style="" face="Tahoma"><br></font><font style="" face="Tahoma">il faut à la base télécharger pduino (se qui est déjà connu par la communauté arduino) et d'installer simple firmata sur ton arduino&nbsp; et d'ouvrir la patch arduino-test dans PD </font><font style="" face="Tahoma"><br></font><font style="" face="Tahoma">et à partir de là, tu peux contrôler ton arduino (et les stepper du même coup) par le biais de PD. Cependant&nbsp; le simple firmata est seulement fonctionnel sur le logiciel arduino 18 et pas plus récent. </font><font style="" face="Tahoma"><br></font><font style="" face="Tahoma">il y a aussi le fait que le programme est assez long et complexe (dans arduino) donc, quand il vient le temps de le modifier pour quelconque raison(ex: 2 détecteurs de distance qui ont besoin </font><font style="" face="Tahoma"><br></font><font style="" face="Tahoma">d'un code spécifique dans arduino pour fonctionner ensemble) c'est plus difficile de s'y repérer et de modifier la bonne partie.</font><font style="" face="Tahoma"><br></font><font style="" face="Tahoma"><br></font><font style="" face="Tahoma">tu peux aussi faire communiquer le arduino avec PD parle choix du bon port sériel dans PD, pour ma part, je m'y connais moins. je peux vérifier un peux plus tard dans la journée pour sa.</font><font style="" face="Tahoma"><br></font><font style="" face="Tahoma">il y a aussi des patchs d'aide sur internet.</font><font style="" face="Tahoma"><br></font><font style="" face="Tahoma"><br></font><font style="" face="Tahoma">emmanuelle</font><font style="" face="Tahoma"> </font><font style="" face="Tahoma"><br></font><font style="" face="Times New Roman"><br></font><br><div><hr id="stopSpelling">From: kinolab07@gmail.com<br>Date: Wed, 14 Sep 2011 14:43:52 -0500<br>To: pdmtl@lists.artengine.ca<br>Subject: [Pdmtl] Arduino + Stepper Motor<br><br>
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">Bonjour, je suis sur votre mailing liste depuis un moment et je suive tout les discussions.... en fait je vie en Colombie, mais c'est intéressant de voir ce que se passe a Montreal... surtout au-tour de PD...<div><br></div><div>Je vous explique mon problème a voir si quelqu'un peut m'aider..</div><div><br></div><div>En fait je cherche de piloter DEUX stepper motor chacun connectée a cet carte :&nbsp;<a href="http://ruggedcircuits.com/html/rugged_motor_driver.html" target="_blank">http://ruggedcircuits.com/html/rugged_motor_driver.html</a></div><div><br></div><div>Chaque moteur est piloté par 2 DIGITAL PIN pour la direction et 2 PWM PIN pour la puissance</div><div><br></div><div>dans ce link je vous envoyé un patch d'exemple qui travaill avel le STANDARD FIRMWARE de Arduino pour que soit reconnu par PD, il faut ouvrir la ou dit "<span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px">pd sending digital outs" et vous trouverais l'exemple du patch.</span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px"><br></span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px">Mon probleme est celui de faire un cycle qui puisse travailler sur cette sequence dex deux DIGITAL PIN :</span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px"><br></span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px">D1 &nbsp; - &nbsp; D2</span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px">0 &nbsp; &nbsp; - &nbsp; 1</span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px">1 &nbsp; &nbsp; - &nbsp; 1</span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px">1 &nbsp; &nbsp; - &nbsp; 0</span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px">0 &nbsp; &nbsp; - &nbsp; 0</span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px"><br></span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px">Dans le language de Arduino ce traduit par ca :</span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px"><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">void StepperHighSpeed::stepMotor(int thisStep)</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">{</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; if (this-&gt;pin_count == 2) {</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; switch (thisStep) {</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; case 0: /* 01 */</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; digitalWrite(motor_pin_1, LOW);</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; digitalWrite(motor_pin_2, HIGH);</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; break;</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; case 1: /* 11 */</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; digitalWrite(motor_pin_1, HIGH);</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; digitalWrite(motor_pin_2, HIGH);</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; break;</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; case 2: /* 10 */</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; digitalWrite(motor_pin_1, HIGH);</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; digitalWrite(motor_pin_2, LOW);</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; break;</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; case 3: /* 00 */</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; digitalWrite(motor_pin_1, LOW);</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; digitalWrite(motor_pin_2, LOW);</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; &nbsp; break;</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp; &nbsp; }</span><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">&nbsp;</span></span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px"><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span></span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px"><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span></span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px"><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">J'espere que ne soit pas trop compliquée....</span></span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px"><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span></span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px"><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">merci en avance pour votre aide..</span></span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px"><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span></span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px"><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">Enrico</span></span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px"><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)">KinoLab- Colombia</span></span></div><div><span class="ecxApple-style-span" style="color:rgb(51, 51, 51);font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:11px;line-height:15px"><span class="ecxApple-style-span" style="background-color:rgb(245, 245, 245)"><br></span></span></div><br>_______________________________________________
Pdmtl mailing list
Pdmtl@lists.artengine.ca
http://lists.artengine.ca/cgi-bin/mailman/listinfo/pdmtl</div>                                               </div></body>
</html>