Wiki

Reso-nance numérique | Arts et cultures libres

Outils du site


Panneau latéral

materiel:uln2003:accueil

Ceci est une ancienne révision du document !


Table des matières

ULN2003

StepperMotor LIB

#include <StepperMotor.h>
 
StepperMotor motor1(8,9,10,11);
StepperMotor motor2(4,5,6,7);
 
void setup(){
  Serial.begin(9600);
  motor1.setStepDuration(1);
  motor2.setStepDuration(1);
}
 
void loop(){
  motor1.step(1000);
  motor2.step(1000);
  delay(2000);
  motor1.step(-1000);
  motor2.step(-1000);
  delay(2000);
/home/resonancg/www/wiki/data/attic/materiel/uln2003/accueil.1521126006.txt.gz · Dernière modification: 2018/03/15 16:00 de resonance