Welcome! Log In Create A New Profile

Advanced

Axis don't move with Marlin, RAMPSTestCode moves them all

Posted by dstefanox 
Axis don't move with Marlin, RAMPSTestCode moves them all
June 07, 2020 12:03PM
I am trying to build 3d printer from scratch, recycling some components from old scanners and DVD drives. For X axis, I am using parts from old scanner combined with drawer slides.

Firmware that I use is Marlin bugfix 1.1.x. At one point, I was able to setup X axis to work as expected (controlling it from Printrun) and then I moved to setting other axes.
However, at some point all axis stopped moving and I was never able to restore previous situation where I had X axis working. I thought that I burned driver boards, so I was switching them,
also I got new RAMPS board, but all was the same. I even suspected to Arduino board (I am using Mega 2560), but then I tried RAMPSTestCode and it moves all axis without any problem.
When I put Marlin code and try to move X axis, I get high-pitched tone from motor and it does not move at all.
I tried typical things like checking endstops:
SENDING:M119
Reporting endstop status
x_min: open
y_min: open
z_min: open
M503 returns following:
SENDING:M503
echo:  G21    ; (mm)
echo:Filament settings: Disabled
echo:  M200 D3.00
echo:  M200 D0
echoconfused smileyteps per unit:
echo:  M92 X800.00 Y80.00 Z4000.00 E500.00
echo:Maximum feedrates (units/s):
echo:  M203 X300.00 Y300.00 Z5.00 E25.00
echo:Maximum Acceleration (units/s2):
echo:  M201 X3000 Y3000 Z100 E10000
echo:Acceleration (units/s2): P R T
echo:  M204 P3000.00 R3000.00 T3000.00
echo:Advanced: Q S T X Y Z E
echo:  M205 Q20000 S0.00 T0.00 X10.00 Y10.00 Z0.30 E5.00
echo:Home offset:
echo:  M206 X0.00 Y0.00 Z0.00
echotongue sticking out smileyID settings:
echo:  M301 P22.20 I1.08 D114.00

My conclusion is that hardware is OK, since Test code moves all axis without any problem, but some of Firmware setting must be wrong. Does anyone has any ideas what could be wrong here?
Re: Axis don't move with Marlin, RAMPSTestCode moves them all
June 08, 2020 08:54AM
Lets look at your numbers here

echo:  M92 X800.00 Y80.00 Z4000.00 E500.00


I would believe that the X800.00 is incorrect.

Though lets start with posting your configuration.h code to a share service like Google Drive and posting a link here.

Edited 1 time(s). Last edit at 06/08/2020 08:54AM by Roberts_Clif.


Electronics Technician / Computer Programmer
Re: Axis don't move with Marlin, RAMPSTestCode moves them all
June 08, 2020 11:55AM
Hi Roberts_Clif, thanks for your answer.
Regarding number 800, that was the value that I got experimentally while initially setting X axis, before things went wrong. For that value, X axis was moving pretty precisely, so I doubt that is the issue. Also I tried with smaller values (80), but it was still not working.
My configuration file is shared here:
configuration.h
I started from fresh copy of the Marlin firmware and changed just few values, so probably I am missing something else. I am looking forward for any suggestions.
Here is a short video how my axis moves with RAMPSTestCode, which should mean that components are not damaged:
video test run

Edited 1 time(s). Last edit at 06/08/2020 12:05PM by dstefanox.
Re: Axis don't move with Marlin, RAMPSTestCode moves them all
June 08, 2020 08:35PM
Well then have you installed the 3 jumpers under the Driver modules.

Ramps example Image




Electronics Technician / Computer Programmer
Re: Axis don't move with Marlin, RAMPSTestCode moves them all
June 09, 2020 05:29AM
I haven't installed any jumpers under driver modules. I will try today when I arrive back home.
Are jumpers treated differently in test code compared to Marlin? I ask because even without them test code moves axis just fine.
Re: Axis don't move with Marlin, RAMPSTestCode moves them all
June 09, 2020 05:45AM
Jumpers set micro stepping, without them movements are very rough
Re: Axis don't move with Marlin, RAMPSTestCode moves them all
June 10, 2020 01:49AM
I checked original Ramps 1.4 board (which I replaced while thinking it was broken), and on X axis it actually had all three jumpers set, so I moved them to new Ramps 1.5 board which I currently use.
And first positive result is there - it moves now!!!! Thanks guys for your support so far!

Now, I can notice two problems:
- Axis moves quite slower that it was before (also compared to running test code)
- Moving is not so smooth, there is a lot of vibration and noise

I tried 1/2 step setting, but it was not working (high pitched tone and no move). With 1/32 settings it moved as I described above.
Plan for today is to try 1/4, 1/8 and 1/6 settings just to see if it behaves better. If no results, I will try to switch to older Ramps 1.4 board, which was original working.
Any ideas what else I can try to make axis moving smother and faster?
Re: Axis don't move with Marlin, RAMPSTestCode moves them all
June 10, 2020 03:43PM
I do not know what drivers you have but it could be that.
At this time you should measure the V-Ref stepper motor voltage a good starting point would be mid range of about .5volts.

Stepper motor V-Ref adjustments.

Edited 1 time(s). Last edit at 06/10/2020 03:44PM by Roberts_Clif.


Electronics Technician / Computer Programmer
Sorry, only registered users may post in this forum.

Click here to login