Steppers Wont move

Hi all,

Im making a 3D printer with a Mega 2350 and Ramps 1,4

The code i use is the marlin firmware.

When i try to move a Xyz the stepper motors make a "screaming" noise and wont move, i have the wires correct and tryed different drivers and change voltage, but it still wont move.
Im working on this problem for over 5days now and i cant finde it. Please help me

(sorry for my bad english im dutch and my writing overall is really bad)

Greatings Mika Leeflang

Are all the parameters sensible for your mechanical setup?

Have you tried driving a single motor directly using something like the AccelStepper library? That would
verify the hardware without the complexity of the Marlin firmware, allowing you to localize the problem.

Splitting debugging/commisioning into small steps is normally faster than just hoping it all works first time and then getting stuck.

Prove the motor is OK by measuring the windings
Prove the motor driver works directly using AccelStepper or similar
Prove all the other outputs / motors of the Ramps board one at a time with example sketches.
Only then start to think about using more complex software on the thing.

You always want to be in a situation where you can say where the fault must be.

These links may help

Stepper Motor Basics
Simple Stepper Code

...R

Hi all,

Im making a robot arm for work (https://www.instructables.com/id/Build-a-Giant-3D-Printed-Robot-Arm/)
But the servo wont move if tried changing the code a bit but it still wont move. So does any of you maby have a solution for this?

I was thinking of just putting in the signal wire and feed it 5V manualy.

I hope some of you can help me im just a beginner in programming

Thank you

Mika L

post your code and maybe some more info about the hardware, is the servo attached to the arm already or are you trying it separately before?

hi,

i use the arduino mega 2560 with marlin software

this is a error code

void servo_init()
{
#if (NUM_SERVOS >= 1) && defined(SERVO0_PIN) && (SERVO0_PIN > -1)
servos[0].attach(SERVO0_PIN);
#endif
#if (NUM_SERVOS >= 2) && defined(SERVO1_PIN) && (SERVO1_PIN > -1)
servos[1].attach(SERVO1_PIN);
#endif
#if (NUM_SERVOS >= 3) && defined(SERVO2_PIN) && (SERVO2_PIN > -1)
servos[2].attach(SERVO2_PIN);
#endif
#if (NUM_SERVOS >= 4) && defined(SERVO3_PIN) && (SERVO3_PIN > -1)
servos[3].attach(SERVO3_PIN);
#endif
#if (NUM_SERVOS >= 5)
#error “TODO: enter initalisation code for more servos”
#endif

// Set position of Servo Endstops that are defined
#ifdef SERVO_ENDSTOPS
for(int8_t i = 0; i < 3; i++)
{
if(servo_endstops > -1) {
servos[servo_endstops].write(servo_endstop_angles[i * 2 + 1]);
* }*
* }*

the motoros are good, if tested these on my old board

Did you use the same "settings" that your old board used for the steps etc. ?

Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

  1. Servos use lots of power. 1A is barely enough for the smallest servo out there, robotics servos often
    need a lot more current. If you don't provide adequate power it won't work or it will keep reseting.

Arduino 5V pin is not for powering servos of any size.

  1. Download the servo sweep example and try that, once the servo power issues have been checked.

  2. Common all grounds.

mikaleefl:
the motoros are good, if tested these on my old board

Well that's a start on the list I gave...

Prove the motor driver works directly using AccelStepper or similar
If tested these also these are older drivers wich i also have used sometimes

Prove all the other outputs / motors of the Ramps board one at a time with example sketches.
How can i test these?

And thanks for the servo tip now it works!!