Stepper motor and stepper driver making loud noise!


#1

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


Please help !


#2

Your speed is probably too fast or acceleration too fast. In mine the loud noise is the stepper skipping steps.


#3

I tried to reduce the speed it seems no use at all


#4

Hi Kenneth_Phang,

Please set the Microstep resolution to HHH have a try.
Besides, could you send the picture for the program again which you try on mBlock.

If still the issue after changed the Microstep resolution, please kindly take a video and send to tec-support@makeblock.com


#5

How do I set the micro step resolution ?


#6


#7

Hi Kenneth_Phang,

On the stepper motor driver, you can see the Microstep Resolution switches marked with 1,2,3. One side marked as H(High), the other side marked as L (Low), please pull all the switches to H side.

Speed 3000 is the maximum speed, is there still large noise when speed is 500 or 1000?


#8

The stepper motor doesn’t move now please help can I send back the motor and motor driver to u guys ?


#9

Hi Kenneth,

I have sent you an email just now.
Here from the picture you sent, you have set the Microstep resolution to LLL, could you please pull the white switches and set it to HHH. Then you may try following program (please make sure that you have provide enough power to Orion board to drive the motor):

Please kindly check above and reply to my email, thanks!


#10

Hi tech support,

I got it fixed. thanks for your help. Its the microstep resolution problem I set it to HHH from LLL


#11