Hi everybody,
Can somebody help in problem with hammering noise in stepper motor and not moving X-axis?
Story about Mendel Prusa, and it is -
Sprinter latest version, with RAMPS 1.4, and Mega 2560 board.
Sprinter compiled by Arduino 1.0.1.
It was some bugs in compilation which was obvious:
In Sd2Card.cpp:
====================================
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include
#endif
====================================
In SdFile.cpp:
===================================
#if ARDUINO >= 100
size_t SdFile::write(uint8_t b)
#else
void SdFile::write(uint8_t b)
#endif
{
#if ARDUINO >= 100
return (size_t) write(&b, 1);
#else
write(&b, 1);
#endif
}
===================================
I also disable SD card support in Configuration.h
I confirm wiring 1.4 RAMPS is like RAMPS 1.3.
Then I upload firmware. Start REPRAP host – it barked with messages like “dude respond with error” “timeout” and reprap host was not functional (sometime I did see reading of a temperature, sometime I was able to switch on heater on a bed, but no movement on any motors). Searching Forums shows “Yep! This is a bug in reprap, but let fix it in ReplicatorG first”.
Ok – I download and configured “ReplicatorG” and started to work.
In control panel I was able to move X-axis and Z-axes. I Adjust current on driver of stepper motor board to make bed move with less sound, and also adjust current on Z-axis to move up and down without jumps and noise.
Here come the problem: X-axes is makes hammering noise and jumps left-right without horizontal movements.
To solve I tried:
- I swapped X-axes with Y-axis connectors to stepper motors – well after swapping hammering comes from Y-axis, and X-axis is moving perfectly.
- Then I swapped (from original configuration) stepper motor drivers – X-axis is still hammering with different drivers.
- I tried to adjust current on a stepper motor driver for X-axis without any success.
- I checked signal on driver – direction pin looks working. To see another signals looks like need to plug oscilloscope.
That four experiments shows that the problem not in motors wiring, and not in stepper motor drivers, but ether in-
a) In firmware (wrong executing G-codes ?)
b) In wiring from Mega 2650 to RAMPS 1.4 ( pin 54, 38?)
c) In ReplicatorG (wrong commands send to Mega 2650?)
Or may be somebody knows different reason for this?
Alex Dobrianski