Confusing stepper motor behavior

1

I am trying to control stepper motors for a 3D printer with a RAMPS 1.4 shield connected to an Arduino Mega 2560. I have uploaded Marlin firmware to the board and am currently using Pronterface to test the board's components.

At first, the stepper motors would not move at all when commanded. They would just slightly twitch and them hum, but not rotate. Then, I checked the wiring connections and ensured they were correct, but the problem persisted. Then, I measured the Vref of the stepper drivers, which was 0.79 Volts.

Based on my stepper motors, NEMA 17, the maximum Vref I calculated was 1.36 Volts. After adjusting the potentiometer screw the maximum amount, Vref is 1.19 Volts. Now, the motors WILL rotate when given the 0.1 and 1 command in Pronterface, but return to the twitch and whine behavior when given the 10 or 100 command. What is the cause of this? enter image description here

Ethan Guidry

Posted 2021-02-09T19:51:06.130

Reputation: 11

Please give us your calculations. There is a lot that you seem to be missing. e.g. the potentiometer doesn't adjust the voltage... – user77232 – 2021-02-10T15:57:40.307

I used the equation Vref = I_max * 8 * R_sense. For my stepper, I_max is 1.7 A, and on the driver, R_sense is 0.1 Ohms. – Ethan Guidry – 2021-02-10T20:23:42.640

I_max is 1.7 A at what voltage? – user77232 – 2021-02-10T22:09:37.967

Please iclude these details to question. As well as configured speed and acceleration settings (e.g. output of M503, btw. do you use Marlin?). Does the problem persist when you lower the max speed ?

– octopus8 – 2021-02-10T22:15:20.937

To user77232, I_max is 1.7A at 12V. To octopus8, I've attached a picture of my Marlin configuration.h file that shows the movement settings I've configured. I'll admit I'm a rookie where all this is concerned, so I'm not exactly sure of what I'm doing with these settings. Thank you! – Ethan Guidry – 2021-02-12T15:17:40.247

This could be caused by faulty stepper driver, stepper motor or connection between the stepper driver and the motor or between the stepper driver and the microcontroller. What stepper drivers are you using? I assume you bought all of these parts from China on Aliexpress or eBay or whatever. The connections on these boards can be noisy producing false signals between the microcontroller and the stepper driver. – MStarha – 2021-02-14T17:58:27.467

Answers

0

The described behaviour could happen if, e.g. X_STEP_PIN, X_DIR_PIN and X_ENABLE_PIN are not correctly mapped. I guess you will find them in pins_RAMPS_144.h. Make sure the correct file is used.

dotswe

Posted 2021-02-09T19:51:06.130

Reputation: 138