<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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 : <a href="http://ruggedcircuits.com/html/rugged_motor_driver.html">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="Apple-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="Apple-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="Apple-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="Apple-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="Apple-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 - D2</span></div><div><span class="Apple-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 - 1</span></div><div><span class="Apple-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 - 1</span></div><div><span class="Apple-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 - 0</span></div><div><span class="Apple-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 - 0</span></div><div><span class="Apple-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="Apple-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="Apple-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; "><meta charset="utf-8"><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); ">void StepperHighSpeed::stepMotor(int thisStep)</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); ">{</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> if (this->pin_count == 2) {</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> switch (thisStep) {</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> case 0: /* 01 */</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> digitalWrite(motor_pin_1, LOW);</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> digitalWrite(motor_pin_2, HIGH);</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> break;</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> case 1: /* 11 */</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> digitalWrite(motor_pin_1, HIGH);</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> digitalWrite(motor_pin_2, HIGH);</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> break;</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> case 2: /* 10 */</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> digitalWrite(motor_pin_1, HIGH);</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> digitalWrite(motor_pin_2, LOW);</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> break;</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> case 3: /* 00 */</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> digitalWrite(motor_pin_1, LOW);</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> digitalWrite(motor_pin_2, LOW);</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> break;</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> }</span><span class="Apple-style-span" style="background-color: rgb(245, 245, 245); "> </span></span></div><div><span class="Apple-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="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span></span></div><div><span class="Apple-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="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span></span></div><div><span class="Apple-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="Apple-style-span" style="background-color: rgb(245, 245, 245); ">J'espere que ne soit pas trop compliquée....</span></span></div><div><span class="Apple-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="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span></span></div><div><span class="Apple-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="Apple-style-span" style="background-color: rgb(245, 245, 245); ">merci en avance pour votre aide..</span></span></div><div><span class="Apple-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="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span></span></div><div><span class="Apple-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="Apple-style-span" style="background-color: rgb(245, 245, 245); ">Enrico</span></span></div><div><span class="Apple-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="Apple-style-span" style="background-color: rgb(245, 245, 245); ">KinoLab- Colombia</span></span></div><div><span class="Apple-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="Apple-style-span" style="background-color: rgb(245, 245, 245); "><br></span></span></div><meta charset="utf-8"></body></html>