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

Print stop on specific endstop hit (1 reply)

$
0
0
Hi all

Plotter project, running Marlin, 2560+ ramps etc

How can i stop the program when a specific endstop is hit
Which command/code should be used

Thx

Coolerooney

LINEAR_ADVANCE on bowden cause "pulsating" outer shell on some layers (no replies)

$
0
0
Issue reproduces with Marlin 1.1.9 and 2.0 builds. Gcode is generated by Cura 4.2.1.

When linear_advance (v1.5) is "off" (M900 K0) - everything is uniform and smooth, only corners are protruding as expected (same gcode, only M900 line is changed).

When linear_advance is on (2), I get these horizontal defects. My calibrated K-value is 2, I am getting same defects with K=1 as well as K=2. Position of defects is repeatable, so it is not random mechanics-caused underextrusion.

My setup uses a BMG Bowden extruder, A4988 drivers for Z and extruder with diode smoothers (X, Y are on TMC2209). I print the PETG with 245 °C, Perimeters at 50 mm/s, Gyroid Infill at 120 mm/s.
3D printer is Ghost4 (extruder is not stock), board is MKS_GEN_L.

I tried the following:

  • Removed diode smoothers on extruder and Z - no improvement.
  • It seems defect is somewhat connected to infill. Without infill print is nearly perfect. 50x50 box without infill prints perfectly, so it does not look like outer-wall speed-related. Reduced outer wall to 33 mm/s, infill to 100 mm/s (accelerations are also down 750->500, 1000->750), no improvement. Returned to A4988 on all axis - no improvement. Switched to 1/8 step on extruder (maybe it is step speed-related) - no improvement. Disabled infill before walls - no improvement.
  • Starting shooting time-lapses, and outer perimeter is extremely weird on some layers (see below), but not all. Position of weird layers is consistent, at the same place on every print.
  • Migrated configuration to latest Marlin 2.0. Enabled SQUARE_WAVE_STEPPING - no improvement. Gcode is uploaded here: [s.14.by] Also attached here.
    Marlin configuration files also attached in archive.
  • After inspecting larger parts printed before I enabled linear_advance (on large 100mm circular parts) - I also noticed this defect, more rare though and less pronounced.



Geeetech firmware (no replies)

$
0
0
Ok I have been struggling with this for about 2 weeks now and I had to step away from it to stop my brain overheating.

So I have a geeetech I3 pro B printer that ran with out a problem until I used the new cura update which totally scrambled its movement.

I downloaded the new marlin and used the I3 pro B profile which compiled and loaded fine.

With the help of a forum user on here called dust I went through all the basics of the code and ensured the everything is as it should be. (Many thanks to him for his advice and patience)

Now comes the issues

The z axis will raise but wont home.

The x axis emits a loud buzzing and homes but the motor continues to pull as if the end stop is not there.
The y axis is demonstrates a similar problem.

The LCD panel shows the axis positions but continually flashes with a question mark even when homed.

My experience with code is limited so any advice would be great

strange lines in RepRap Discount FULL GRAPHIC Smart Controller (no replies)

$
0
0
I have strange lines in the 128x64 display with Marlin 2.0.
I had also the problem with Marlin 1.9 but that I have solved with changing this rule:
  
 U8GLIB_ST7920_128X64_RRD u8g(0); // Number of stripes can be adjusted in ultralcd_st7920_u8glib_rrd.h with PAGE_HEIGHT              original line
 U8GLIB_ST7920_128X64_1X u8g(23,17,16); // Number of stripes can be adjusted in ultralcd_st7920_u8glib_rrd.h with PAGE_HEIGHT        changed line
I read on youtube that this was the solution : change first line into the second line.
These line where located in " ultralcd_impl_DOGM.h. "
In Marlin 2.0 didn't I have the file or I can find it.
Can anyone help me to solve this problem in Marlin 2.0

Marlin not compiling (6 replies)

$
0
0
Hi guys I downloaded Marlin.bugfix-2.0x a few days ago to use a new SKR v1.3 board, however it doesn't want to compile and upload. I also installed Atom, Platform.io and git. What happens is when I try to compile and upload Atom reports "Can not find Platformio project. (make sure it contains platformio.ini) or words to that effect. Platformio.ini is there in the marlin folder of course. Now because of this I have been using Marlin from the Bigtreetech folder and this compiles and uploads ok, but of course this is probably an older version and they do recommend downloading the latest version.I have now downloaded it a couple of times with the same result. The other thing that happens after trying to compile and upload is it seems to knock out communication with the COM port., i.e. is no longer recognized by windows. And then even the Bigtreetech Marlin will not then compile and upload , reports that it can't find the upload port. The only way I can find out of this is to copy firmware.bin from the Bigtreetech folder, paste it to the sd card on the pc insert it in the board reset the board. Then upload the Bigtree Marlin to the board again , which then over rights the firmware.bin as normal with FIRMWARE.CUR and date and time.

As i'm pretty new to this I'm not sure if its a bug in Marlin or not.

Rod

Edit oh I downloaded Marlin from Github.

compiling errors (1 reply)

$
0
0
Hi im not entirily new to 3d printing, but im new to firmware configuration. I want to change my firmware because i would like to have a 32 bit mainboard in my ender 3 pro. so I downloaded the skr mini e3 preconfigured firmware and only wanted to enable bl touch and then this happened.

sketch\src\HAL\HAL_AVR\u8g_com_HAL_AVR_sw_spi.cpp:65:20: fatal error: U8glib.h: No such file or directory

compilation terminated.

exit status 1
Fehler beim Kompilieren für das Board Arduino/Genuino Mega or Mega 2560.
what is wrong and how can i fix it?

Cannot invert endstop logic (1 reply)

$
0
0
Hello,

I recently started a CNC project and fried my original board. Ended up purchasing Bigtree Tech SKR V1.3. I was able to configure and upload marlin 2.0 firmware to the board without issue. Initially I sent M119 to check endstops and all are coming back as TRIGGERED. I went back to the firmware and inverted the logic and reuploaded. They are still coming back as triggered. Not sure what I'm missing....

Cannot do Z probe calibration (no replies)

$
0
0
Just got a Modix Big 60 V2 printer, put it together,

Trying to do the calibration.

Stuck at the probe calibration,

I am not able to move the z axis up but can only move it down.

Anyone has the same problem? (does not have to be the same machine I guess?)

Marlin Version 1.1.9B

Thanks.

Bespoke gcode (no replies)

$
0
0
I am creating a bespoke printer and need to create a custom gcode routine to create a print pattern, based upon passed parameters.
There are reasons why this cannot be done in the slicer.
I have created a routine gcode_G900() and added it to the despatch table

In this routine, I have a loop which creates other gcodes on the fly and then executes them.
I thought it easier in the short term, although more long winded, to created gcodes and use already tested routines.
I initially thought that I could enqueue them, but have failed there, so I stepped down into the code .
Although an experienced Arduino coder, I am still learning my way around the Marlin code so would welcome any help/suggestion/criticism of this code snippet.

The routine contains

set_bed_levelling_enabled(FALSE);

while (test condition){

create gode on the fly for the next x,y and z coordinates, creates the E value and insert them into string cmd

printer.parse(cmd);
gcode_get_destination();
prepare_move_to_destination();
idle();
}

Thanks in advance
Clive

Z axis stalling (2 replies)

$
0
0
I have built a bespoke printer which uses the standard twin NEMA 17 stepper driven lead screws for the z axis powered from a RAMPS 1.4 board
I can perform G28 and G29 commands and the machine behaves perfectly with all the axes moving smoothly.
However after a G28 and G29 I have troubles on the Z axis with a G0 command.
Both motors start moving correctly and then stall, juddering in a single position.

If it was not for the fact that the G28 and G29 operations work perfectly, I would have suspected a hardware problem, but I remain mystified.
Looking around the forum I have seen items about stalling and adjusting the drive current, but surely, if this were the problem then the G28 and G29 would not work smoothly.

Any help appreciated.

For my main printing I have a Prusa i3 Mk 3S and a Creality CR10s5 for the bigger stuff.

MKS SGEN_L TMC2130 Latest Marlin 2.0.X issue (no replies)

$
0
0
Hi, i've tried to compile the latest Marlin 2.0.X Bugfix however, when running M122 to check the TMC stepper drivers they spit out

Testing X connection... Error: All HIGH
Testing Y connection... Error: All HIGH
Testing Z connection... Error: All HIGH
Testing E connection... Error: All HIGH

I've ran previous versions and they work correctly. I've checked differences between a stable one and the latest version and I am suspecting this parameter has something to do with it:

#define X_CHAIN_POS 0 // 0 - Not chained, 1 - MCU MOSI connected, 2 - next in chain, ...

Could it be?

Marlin config: external temp. controller (no replies)

$
0
0
Hi,

I am making a huge size 3d printer and plan to use Marlin firmware (I have it on couple of made-by-me printers and I love it).
I also plan to use standalone PID Temperature controller+K Couple+SSR setup for my pellet extruder-hotend.
What I need is Marlin to ignore hotend temperature control. If you can quickly direct me (before I spend a days to find it), if there is a way to do it except a DUMMY_THERMISTOR? and what happens, when I put 0 for TEMP-SENSOR?

Thank you,
Z

// #Define Speaker does not disable buzzer (no replies)

$
0
0
Has anyone else noticed that commenting out # Define speaker does not disable the buzzer?

I found this on an Ender 5 with stock board.
Present in both Marlin 1.1.9 and Bugfix 1.1.x
This issue played havoc with my BLtouch on pin 27 until I scoped it and saw the buzzer was still sending beeps on pin 27.

Now I'm looking for a better way to disable buzzer on pin 27.... any ideas?

Thanks
Ray

Marlin 1.1.9 Compiling Error (no replies)

$
0
0
This has me pulling my hair out!
Trying to compile Marlin 1.1.9 and I continuously get an " 'DIO38_RPORT' was not declared in this scope" compiling error.
I get this error no matter what version I try to compile, 1.1.x or 1.1.x BUG FIX.
What am I missing?

Keeping track of currently executed Gcode command (no replies)

$
0
0
Hi, I am recording motor load data for a university project and I want to correlate the measured load with the Gcode commands.
Is there any straight forward way to get the currently executed Gcode command (or the number of finished commands/lines) via serial?
It would be enough to send a message (e.g. 'done') via serial, whenever a command is finished.

I am currently using the bugfix 2.0 branch and I am sending a serial message whenever a planner block is discarded. This works for most G commands, but some (G28) generate multiple planner blocks.

I still want to use the planner buffer (for jerk and to avoid short stops, etc.), otherwise i would just interleave M400 commands with my Gcode.

G29 randomly deploys probe after measurement taken (3 replies)

$
0
0
Have you guys noticed a behavior in Marlin where G29 randomly drops the Bltouch probe just after taking a measurement?

I have recorded it here...
[photos.google.com]

I don't think it's a BLtouch issue, it looks more like a false deploy command is sent to the probe then retracted.

I have also observed this on G28 command.

Thanks
Ray

Unified Bed Leveling - What am I doing wrong? (1 reply)

$
0
0
Hi,

Trying to get my first decent print in my newly built hypercube-alike printer.
Since it has a big bed (300 x 300) I'm using UBL (Unified bed leveling). I'm using a bltouch clone as Z sensor.
I've set an offset of X40 Y4 from the extruder to the bltouch tip.

Following the information from [marlinfw.org] this is what I did:

- Flashed the firmware and reset the board
- Issued M502 and M500
- G28 to home XY
- G29 P1 - The printer starts probing some areas but in a disordered way. Instead of doing sequential points it's traveling back and forth which makes the whole process to take longer. Also, the LCD mention that x/100 points are tested but it seems only 64 are tested (it stops at 64/100).
- G29 P3 T - I do it a couple of times, I have no idea how many times I have to do it neither why.
- G29 T - I get the values below

Recv: Recv: Bed Topography Report:
Recv: 
Recv:     (  1,280)                                                              (295,280)
Recv:         0       1       2       3       4       5       6       7       8       9
Recv:  9 |   .     -1.232  -1.232  -0.932  -0.671  -0.364  -0.050  +0.271  +0.610  +0.949
Recv:    |
Recv:  8 |   .     -1.102  -1.102  -0.824  -0.530  -0.245  +0.031  +0.329  +0.644  +0.959
Recv:    |
Recv:  7 |   .     -0.970  -0.970  -0.704  -0.381  -0.162  +0.100  +0.386  +0.669  +0.951
Recv:    |
Recv:  6 |   .     -0.850  -0.850  -0.591  -0.321  -0.054  +0.189  +0.443  +0.720  +0.997
Recv:    |
Recv:  5 |   .     -0.706  -0.706  -0.436  -0.181  +0.053  +0.279  +0.526  +0.812  +1.099
Recv:    |
Recv:  4 |   .     -0.565  -0.565  -0.289  -0.050  +0.204  +0.408  +0.664  +0.894  +1.124
Recv:    |
Recv:  3 |   .     -0.346  -0.346  -0.139  +0.124  +0.370  +0.578  +0.799  +1.024  +1.249
Recv:    |
Recv:  2 |   .     -0.210  -0.210  +0.044  +0.296  +0.501  +0.709  +0.954  +1.139  +1.324
Recv:    |
Recv:  1 |   .     -0.049  -0.049  +0.201  +0.416  +0.661  +0.880  +1.076  +1.265  +1.454
Recv:    |
Recv:  0 |   .    [+0.113] +0.113  +0.359  +0.536  +0.821  +1.051  +1.199  +1.391  +1.584
Recv:         0       1       2       3       4       5       6       7       8       9
Recv:     (  1,  1)                                                              (295,  1)
Recv: 
Recv: ok
Recv:  T:2

- G29 S1 - to store the vaules in eeprom
- G29 F 10.0 - Not sure I understand what this is for (would it be that there will be no more bed leveling compensation from 10mm high onwards?)
- G29 A - to activate UBL
- M500 to save settings in eeprom
- reset the board
- G28 to home XY
- G29 T to see the values from above - Confirm they are there and not zero
- Load a test file to print.
- The result of first layer :



As it can be seen, something is wrong with the bed leveling. It's too high on the right and too low on the left.
I confirmed that the Z axis move as the extruder travels around, so it is supposedly doing his stuff, but likely to be using the wrong values....


Any idea of what am I doing wrong?

Thanks,
Joaoabs

m600 works on CR10 stock but not working on MKS ender 3 (no replies)

$
0
0
I have used m600 on stock cr10 hw/firmware and stock ender 3 hw/firmware with no problem. It still worked when I upgraded both firmware to latest marlin. But now I have upgraded ender 3 to an MKS controller and M600 doesn't work on it. It just seems to be ignored like the option is disabled. I checked and ADVANCED_PAUSE_FEATURE is enabled.

Any ideas on what I've done wrong?

Marlin 2.0 Spindle Power Slope (no replies)

$
0
0
In Marlin 2.0 the following is stated:
/**
* The M3 & M4 commands use the following equation to convert PWM duty cycle to speed/power
*
* SPEED/POWER = PWM duty cycle * SPEED_POWER_SLOPE + SPEED_POWER_INTERCEPT
* where PWM duty cycle varies from 0 to 255
*
* set the following for your controller (ALL MUST BE SET)
*/
#define SPEED_POWER_SLOPE 118.4 // DJB
#define SPEED_POWER_INTERCEPT 0
#define SPEED_POWER_MIN 5000
#define SPEED_POWER_MAX 30000 // SuperPID router controller 0 - 30,000 RPM
#else
#define SPEED_POWER_SLOPE 0.3922
#define SPEED_POWER_INTERCEPT 0
#define SPEED_POWER_MIN 10
#define SPEED_POWER_MAX 100 // 0-100%

If I change the "SPEED_POWER_MIN / MAX to match my spindle will the "SPEED_POWER_SLOPE" need to be recalculated?
If so, how is it calculated?

Small Problems after upgrading to a SKR 1.3 Board and Marlin (2 replies)

$
0
0
Everything seems to be working fine exept for two things:

When I use Auto Homing the print bed only moves 10mm to the opposite direction of the end stop. That causes a lot of problems when starting or pausing prints. Printing itself is working pretty good actually but the homing doesnt work.

Things I have noticed/tried:
-used another cable
-made sure its wired correclty
-pushing the end stop while homing
-try to auto home with the Y end stop unplugged
-invert end stop in marlin (this caused the print bed to move towards the end stop but it never stopped moving)
-tried the end stop noise filter with lvl2 sensitivity in marlin

The second problem is that i suffer a lot from underextrusion I think during the first 20-40 layers. Initial layer and the layers after the first 20-40 are looking great btw.
Viewing all 2831 articles
Browse latest View live


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