Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all 12090 articles
Browse latest View live

Trouble getting dual Z end stops + steppers to work

$
0
0
I'm trying to enable dual Z endstops on my Folger Tech FT-5 printer. It's a cartesian setup with two Z steppers on opposite sides of the build platform that raise/lower the bed in tandem.

The dual stepper feature works, but my 2nd z endstop doesn't seem to do anything.

What I'm trying to do is have each z stepper home independently to compensate for either of them getting a bit higher/lower than the other.

This is what I've done so far.

I've commented out:

#define Z_DUAL_STEPPER_DRIVERS
#define Z_DUAL_ENDSTOPS

and have enabled:

#define USE_XMAX_PLUG

since I see:

#define Z2_USE_ENDSTOP _XMAX_

I'm running Marlin 1.1.0-RC6.

I may just have my head wrapped around this incorrectly.

M119 shows:

SENT: M119
READ: Reporting endstop status
READ: x_min: TRIGGERED
SENT: M105
READ: x_max: open
READ: y_min: TRIGGERED
READ: z_min: open
READ: z2_max: open
READ: ok

That makes sense as I have:

const bool X_MAX_ENDSTOP_INVERTING = true;

But I think what I really want to see is z2_min or something like that. Any advice on how to get this working appreciated.

Switching from repetier to marlin. How to do pin mapping?

$
0
0
Hello,

I'm trying to switch from repetier firmware to marlin in order to try out the mesh based bed correction.
There is however some things i have configured in repetier to which i cant find the marlin counterpart. Mostly its about remapping the pins.

Here's the parts of the repetier config i'm having trouble to replicate.

//move ymin to xmas so y min/max are free for use as uart with esp3d. This is a mirror of the default serial. Usb and wifi can be used at the same time.
#undef Y_MIN_PIN
#define Y_MIN_PIN ORIG_Z_MAX_PIN
#define BLUETOOTH_SERIAL  3
#define BLUETOOTH_BAUD  57600

//dual z steppers
#define FEATURE_TWO_ZSTEPPER 1
#define Z2_STEP_PIN   ORIG_E1_STEP_PIN
#define Z2_DIR_PIN    ORIG_E1_DIR_PIN
#define Z2_ENABLE_PIN ORIG_E1_ENABLE_PIN

//probe
#define Z_PROBE_PIN ORIG_X_MAX_PIN


Also im using a
#define FEATURE_CONTROLLER 11 (CONTROLLER_REPRAPDISCOUNT_GLCD) without built in sd card (the one from the wanhao i3)
with an sdramps on "aux-3" to provide sd support
#define SDSUPPORT 1
I also had to comment out some lines in ui.h to not disable sdramps when using glcd, not sure if i need to replicate that.
/*
#if FEATURE_CONTROLLER == CONTROLLER_SMARTRAMPS || FEATURE_CONTROLLER == CONTROLLER_GADGETS3D_SHIELD || FEATURE_CONTROLLER == CONTROLLER_BAM_DICE_DUE || (FEATURE_CONTROLLER == CONTROLLER_REPRAPDISCOUNT_GLCD && MOTHERBOARD != CONTROLLER_FELIX_DUE)
#undef SDCARDDETECT
#if MOTHERBOARD == 37
#define SDCARDDETECT ORIG_SDCARDDETECT
#else
#define SDCARDDETECT 49
#endif
#undef SDCARDDETECTINVERTED
#define SDCARDDETECTINVERTED 0
#undef SDSUPPORT
#define SDSUPPORT 1
#endif
*/



Thank you, any help would be appreciated.

Re: Auto Bed Leveling Setup issues - I don't understand :-(

$
0
0
Thanks again Obewan!

I looked in my post processing scripts and saw a G28 X0 in it but no change to the Y axis

I have added a G1 Y200 to the post so next time I print it SHOULD go to the proper position (for me anyway)

It's going to be a while before I print anything again (waiting for some legit PLA to come in) But I will let you know how it works!

Thanks Again!
Don W.

Re: Anyone know if a RUMBA, CoreXY and Marlin RC-8?

$
0
0
It is working nicely now. Had a few problems along the way including 2 bad stepper drivers.

1.1.0 RC8 Steppers Twitching Every Second

$
0
0
I'm having an odd issue after updating my firmware from 1.0.2 to 1.1.0-RC8 compiled under Arduino 1.8.1. Upon updating the firmware the first communication attempt is interrupted:

READ: echo: Last Updated: 2016-12-06 12:00 | Author: (none, default config)
READ: Compiled: Jan 13 2017
READ: echo: Free Memory: 3740  PlannerBufferBytes: 1200
READ: echo:Hardcoded Default Settings Loaded
READ: echo:Steps per unit:
READ: echo:  M92 X80.00 Y80.00 Z4000.00 E902.29
READ: echo:Maximum feedrates (mm/s):
READ: echo:  M203 X300.00 Y300.00 Z5.00 E25.00
READ: echo:Maximum Acceleration (mm/s2):
READ: echo:  M201 X1000 Y1000 Z5 E10000
READ: echo:Accelerations: P=printing, R=retract and T=travel
READ: echo:  M204 P500.00 R500.00 T500.00
READ: echo:Advanced variables: S=Min feedrate (mm/s), T=Min travel feedrate (mm/s), B=minimum segment time (ms), X=maximum XY jerk (mm/s),  Z=maximum Z jerk (mm/s),  E=maximum E jerk (mm/s)
READ: echo:  M205 S0.00 T0.00 B20000 X20.00 Y20.00 Z0.40 E5.00
READ: echo:Home offset (mm)
READ: echo:  M206 X0.00 Y0.00 Z0.00
READ: echo:PID settings:
READ: echo:  M301 P22.20 I1.08 D114.00
READ: echo:Filament settings: Disabled
READ: echo:  M200 D3.00
READ: echo:  M200 D0
READ: echo:Z-Probe Offset (mm):
READ: echo:  M851 Z-2.50
  Testing plaintext communication protocol...
  Testing binary communication protocol...
  Testing alternate communication protocols...
READ: echo:SD init fail
READ: ok
WARNING: CRC mismatch detected
READ: 
  Attempting RTS reset and trying again...
  Connection failed.

The next attempt at connecting is always successful.

Even before connecting, both Z steppers and the X stepper make periodic clicking sounds every 1 second. The affected steppers make a clicking sound but don't appear to be moving. The extruder stepper and the X stepper are unaffected. When I try homing any axis, the stepper motor being commanded will start to home but will be interrupted by the periodic 1 second issue which interrupts the homing and causes the motor to stop and then start moving a tiny bit every second toward home.

I had no issues with my hardware and Marlin 1.0.2 so I'm curious if anyone else has run into this issue. I'm certain it's a firmware bug or configuration error because it was present on my previous RAMPS 1.4 setup which has been replaced with a RAMBo 1.3 board. I'm stumped :(

Re: Marlin Diamond Hotend

$
0
0
I'm configuring RC8 for the Diamond Hotend.

I compared it with "Marlin - The Diamond Hotend version".

Changes have to be done in the configuration.h file and in the pins_ramps.h (in the old version that was only pins.h) file.

The configuration.h is done.

I have problems with the pins-files.

The section in the old version looks like that:
#define E0_STEP_PIN 26
#define E0_DIR_PIN 28
#define E0_ENABLE_PIN 24

RC8 has a additional Pin for each stepper:
#define E0_STEP_PIN 26
#define E0_DIR_PIN 28
#define E0_ENABLE_PIN 24
#define E0_CS_PIN 42

What does the CS_pin do? What does it stand for? Google did not help.

Thx!

Re: 1.1.0 RC8 Steppers Twitching Every Second

$
0
0
For what it's worth I think I found the problem. In my configuration.h file I had the following three lines uncommented. I don't recall why but after commenting and disabling their function the twitching issue is gone and the motors move normally again.

#define ULTRA_LCD
#define SDSUPPORT
#define SD_CHECK_AND_RETRY

I'm not sure what the third option does, but that could explain the periodic nature of the issue/interrupt I was seeing.

Re: Marlin Diamond Hotend

$
0
0
CS is chip select... not used on standard stepper drivers.

From the code

#define X_CS_PIN 53
#define Y_CS_PIN 49
#define Z_CS_PIN 40
#define E0_CS_PIN 42
#define E1_CS_PIN 44

Non of these pins are used on a ramps board. (well they go to aux-2, and aux-3) not used normally.

Looking further threw the code I see

/**
* Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
*
* To use TMC2130 drivers in SPI mode, you'll also need the TMC2130 Arduino library
* (https://github.com/makertum/Trinamic_TMC2130).
*
* To use TMC2130 stepper drivers in SPI mode connect your SPI2130 pins to
* the hardware SPI interface on your board and define the required CS pins
* in your `pins_MYBOARD.h` file. (e.g., RAMPS 1.4 uses AUX3 pins `X_CS_PIN 53`, `Y_CS_PIN 49`, etc.).
*/

So these pins are used for SPI-configurable stepper drivers.

Bltouch problem with RC8 and MKS gen 1.4

$
0
0
Hello! I have some problems with RC8 and the bltouch as Z min endstop, hope you can help me. I have a MKS gen 1.4 board and I have no problems using a mechanical endstop in the z min port, it works as it should, when I enable the bltouch and the Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN both with the bltouch or the mechanical endstop attached in the zmin - port, I always have a triggered status after a M119 command when it should be open and an open when i manually trigger the mechanical endstop or the bltouch and this happen for any combination of true and false of these parameters Z_MIN_ENDSTOP_INVERTING and Z_MIN_PROBE_ENDSTOP_INVERTING . I tried Z_MIN_PROBE_ENDSTOP instead but the z min status was correct, the z probe status is always triggered (even if I didn't attach the probe to any other pin) so I think there is something that always give a triggered status enablig the bltouch option with my board even if there isn't a real trigger, maybe some wrong pinout? What do you think? I tried to use the ramps board as motherboard type, but it is the same.

Thank you!

Need help for some measure from a ramps+bltouch setup

$
0
0
Hello! In the process to find a problem with my setup, I need some results from a working ramps+bltouch setup (please write the marlin version you are using) for the following tests:

1) send the gcode M280 P0 S10 (this extends the bltouch pin) and send M119, what's the status of the z endstop?
2) send the gcode M280 P0 S90 (it raises the bltouch pin) and send M119, what's the status of the z endstop?
3) remove the bltouch 2 wire connector from the board and send the gcode M280 P0 S10, with a multimeter measure the voltage between the two pins, what is the measure?
4) The same after sending the gcode M280 P0 S90 .


It could help me immensely, thank you in advance!!!

too much extrusion - what to modify in configuration.h ?

$
0
0
Sorry for this simple question..
Have assembled a very nice coreXY printer
Had to modify the home- and max- parameters to get the movements right.

First print was okay but the extruder stepper seems to push to much filament.
It is making this clicking noise when the gear-wheel slips..
When i slow down the printing, the clicking gets less.

Don't know what nozzle size is currently mounted. Reduced the size to 0.1mm in Repetier Host. No change.

Should i play with the "89" in
#define DEFAULT_AXIS_STEPS_PER_UNIT   {XYZ_STEPS, XYZ_STEPS, Z_STEPS, 89} //XYZ_STEPS       E 84-95

What other lines might be worth a try ? I am new to Marlin :-/

ideas welcome.
I am tired now and have to shut down. Am dreaming that you light my day when i come back tomorrow :-)

Re: CoreXY and Max endstops

$
0
0
Sorry i am very tired now.
This is the config i am currently using for my new coreXY. x_max , y_max , z_min
(the z endstop is on the top and therefore the min because the build plate moves downwards)
#define INVERT_X_DIR true
#define INVERT_Y_DIR true
#define INVERT_Z_DIR false

#define X_HOME_DIR 1
#define Y_HOME_DIR 1
#define Z_HOME_DIR -1

//#define USE_XMIN_PLUG
//#define USE_YMIN_PLUG
#define USE_ZMIN_PLUG
#define USE_XMAX_PLUG
#define USE_YMAX_PLUG
//#define USE_ZMAX_PLUG

#define X_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Y_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.
#define Z_MAX_ENDSTOP_INVERTING false // set to true to invert the logic of the endstop.

#define X_MAX_POS 235 // 240 possible
#define Y_MAX_POS 245 // 250 possible
#define Z_MAX_POS 330

#define Z_STEPS (XYZ_FULL_STEPS_PER_ROTATION * XYZ_MICROSTEPS / 5)  // 5mm per rotation (this line is new)
#define DEFAULT_AXIS_STEPS_PER_UNIT   {XYZ_STEPS, XYZ_STEPS, Z_STEPS, 89} //XYZ_STEPS       E 84-95

Re: Bltouch problem with RC8 and MKS gen 1.4

$
0
0
Just to be clear: Is your BL-Touch in an error state? Because in the error state they report 'Triggered'. Also... One thing that can get them into the error state is not retracting the axis fast enough if you are doing double bump. The pin tries to re-assert itself but it doesn't have the room to fully deploy. Another thing that can cause errors with the BL-Touch is trying to probe too slow. We are working on some fixes for that but right now you don't want to probe super slow with a BL-Touch.

Re: too much extrusion - what to modify in configuration.h ?

$
0
0
Yes... It is the 89 number you want to change. But.... When you change it, be sure to do an M502 to load the 'default configuration.h setup' and then an M500.

You should be able to measure how much it extrudes when you say extrude 10mm. If it extrudes 15mm, you would want to change the 89 number to 89*10/15 which would be 59.

Re: Bltouch problem with RC8 and MKS gen 1.4

$
0
0
No, after the power on it does its selftest and expand and retract the pin freely and doesn't blink so I think it's fine. I did a simple test using a mechanical endstop instead of the bltouch (leaving marlin with the bltouch option) and the m119 command always gave me a triggered status on the zmin when I didn't push the trigger and also even if I changed the logic in marlin, it was always triggered. If I compile with fixed probe option with the same mechanical endstop I have a correct behaviour of open if not pushed and triggered if pushed so there is something strange in marlin with my board when using the bltouch option (maybe)

Re: Marlin Diamond Hotend

$
0
0
Thx, that worked. I commented those out. Now I'm able to use a expander board on aux-2.

Re: Z axis will not respond to homing command (Mendel90)

Re: too much extrusion - what to modify in configuration.h ?

$
0
0
You also need to set the correct nozzle size in the slicer so it can calculate the correct extrusion, standard size supplied with most printers would be 0.4

Re: Z axis will not respond to homing command (Mendel90)

$
0
0
Cos 4*60 is usually too fast for nema17's fitted with M5 threaded rods with a step/mm of 4000, motors just sit and squeel at you

Re: Trouble getting dual Z end stops + steppers to work

$
0
0
I don't have answers for you yet, but I have just started investigating how to implement dual end stops too.
Viewing all 12090 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>