Hi Support,
I tried uploading this code to the Orion board , it seems the motor is vibrating and not spinning
#include “MeOrion.h”
#include <SoftwareSerial.h>
MeStepper stepper(PORT_1);
MeStepper stepper2(PORT_2);
void setup()
{
Serial.begin(9600);
// Change these to suit your stepper if you want
stepper.setMaxSpeed(1000);
stepper.setAcceleration(20000);
stepper2.setMaxSpeed(1000);
stepper2.setAcceleration(20000);
}
void loop()
{
if(Serial.available())
{
char a = Serial.read();
switch(a)
{
case ‘0’:
stepper.moveTo(0);
stepper2.moveTo(0);
break;
case ‘1’:
stepper.moveTo(200);
stepper2.moveTo(200);
break;
case ‘2’:
stepper.move(50);
stepper2.move(50);
break;
case ‘3’:
stepper.move(100);
stepper2.move(100);
break;
case ‘4’:
stepper.move(200);
stepper2.move(200);
break;
case ‘5’:
stepper.move(400);
stepper2.move(400);
break;
case ‘6’:
stepper.move(600);
stepper2.move(600);
break;
case ‘7’:
stepper.move(4000);
stepper2.move(4000);
break;
case ‘8’:
stepper.move(8000);
stepper2.move(8000);
break;
case ‘9’:
stepper.move(3200);
stepper2.move(3200);
break;
}
}
stepper.run();
stepper2.run();
}
I tried using the mblock to test the simple functionality also the same