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

X/Y movment minimum speed is limited (no replies)

$
0
0
Hi all !
I'm having problem with delta machine.The X/Y movment speed cannot be less than 600mm/min,and z-axis is ok. I use SKR PRO V1.1(STM32F407) board to build.
I did some tests.
1. mega2560 is ok.
2. Square machine is ok.
So, the problem is delta and STM. But,I have no ability to modify the basic code.

Thanks!

Software:
marlin bugfix-2.0.x lastest

Printer Hardware:
- BTT SKR PRO v1.1 board
- 42BYGH 0.9deg/step 2.5A Stepper Motor

config.h

#define DEFAULT_AXIS_STEPS_PER_UNIT   { 200, 200, 200, 141 }  // default steps per unit for Kossel (GT2, 20 tooth)

 */
#define DEFAULT_MAX_FEEDRATE          { 500, 500, 500, 500 }

//#define LIMITED_MAX_FR_EDITING        // Limit edit via M203 or LCD to DEFAULT_MAX_FEEDRATE * 2
#if ENABLED(LIMITED_MAX_FR_EDITING)
  #define MAX_FEEDRATE_EDIT_VALUES    { 600, 600, 10, 50 } // ...or, set your own edit limits
#endif

#define DEFAULT_MAX_ACCELERATION      { 3000, 3000, 3000, 3000 }

//#define LIMITED_MAX_ACCEL_EDITING     // Limit edit via M201 or LCD to DEFAULT_MAX_ACCELERATION * 2
#if ENABLED(LIMITED_MAX_ACCEL_EDITING)
  #define MAX_ACCEL_EDIT_VALUES       { 6000, 6000, 200, 20000 } // ...or, set your own edit limits
#endif


#define DEFAULT_ACCELERATION          3000    // X, Y, Z and E acceleration for printing moves
#define DEFAULT_RETRACT_ACCELERATION  3000    // E acceleration for retracts
#define DEFAULT_TRAVEL_ACCELERATION   3000    // X, Y, Z acceleration for travel (non printing) moves

#define CLASSIC_JERK
#if ENABLED(CLASSIC_JERK)
  #define DEFAULT_XJERK 10.0
  #define DEFAULT_YJERK DEFAULT_XJERK
  #define DEFAULT_ZJERK DEFAULT_XJERK

  //#define TRAVEL_EXTRA_XYJERK 5.0     // Additional jerk allowance for all travel moves

  //#define LIMITED_JERK_EDITING        // Limit edit via M205 or LCD to DEFAULT_aJERK * 2
  #if ENABLED(LIMITED_JERK_EDITING)
    #define MAX_JERK_EDIT_VALUES { 20, 20, 0.6, 10 } // ...or, set your own edit limits
  #endif
#endif

#define DEFAULT_EJERK    5.0  // May be used by Linear Advance

#if DISABLED(CLASSIC_JERK)
  #define JUNCTION_DEVIATION_MM 0.013 // (mm) Distance from real junction edge
#endif

Auto fan configuration issue on MKS GEN L V2.0 (no replies)

$
0
0
Hello,

I am trying to use pin 9 for the E0_AUTO_FAN_PIN and I keep getting the same error "You cannot set E0_AUTO_FAN_PIN equal to FAN_PIN."
I changed the value of RAPMS_D9_PIN to -1 in the pins_RAMPS.h file and E0_AUTO_FAN_PIN to 9 as recommended in many threads I found on the Internet but the problem is still there.
I have also tried setting the value of FAN_PIN directly to -1 without any success.
I am adding my configuration files and pins file

Any ideas how to solve this issue ?

Thank you. Itay

Marlin 2.0x no longer builds in OS X (no replies)

$
0
0
I've had zero issues for 2 years and all of a sudden I can't build Marlin anymore. I spent nearly 5 days straight trying to fix this, hoping someone here can shed some light.

OS:
Both Macs are running Catalina 10.15.5

Steps:
1) Installed VSCode on another mac
2) Installed PalformIO IDE
3) Downloaded Marlin2.0X
4) Built using the check mark (default build env)

Result: Successful build with 2 warnings

On my main machine:

1) Uninstalled all home brew or other python installs
2) Reinstalled Python 3.8.3 and then used App Cleaner to remove it and VS Code
3) Deleted the hidden files .platformio and .vscode in my home directory
4) Deleted .zsh profile
5) Deleted .bash profile (no longer use it but, hey, can't hurt)
6) Checked my private frameworks to make sure there were no Python stragglers (there weren't)
7) exceuted "Echo $Path" in Terminal to make sure no weird paths were still exported
8) Rebooted
9) Downloaded VSCode from Microsoft and installed it
10) Opened VSCode and installed PlatformIO IDE
11) Restarted VSCode as instructed by PIO installation
12) Tried to build Marlin2.0x as downloaded
13) Failed with these errors:

Fatal Python error: deletion of interned string failed

If I build again I get:

AttributeError: 'WeakSet' object has no attribute 'data':
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Script/Main.py", line 1346:
_exec_main(parser, values)
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Script/Main.py", line 1309:
_main(parser)
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Script/Main.py", line 1091:
nodes = _build_targets(fs, options, targets, target_top)
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Script/Main.py", line 1283:
jobs.run(postfunc = jobs_postfunc)
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Job.py", line 111:
self.job.start()
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Job.py", line 381:
task = self.taskmaster.next_task()
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Taskmaster.py", line 938:
node = self._find_next_ready_node()
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Taskmaster.py", line 828:
for child in chain(executor.get_all_prerequisites(), children):
File "/Users/Michael/.platformio/penv/lib/python2.7/_abcoll.py", line 605:
v = self
File "/Users/Michael/.platformio/packages/tool-scons/script/../engine/SCons/Util.py", line 1256:
return UserList.__getitem__(self, i)
File "/Users/Michael/.platformio/penv/lib/python2.7/abc.py", line 132:
if subclass is not None and subclass in cls._abc_cache:
File "/Users/Michael/.platformio/penv/lib/python2.7/_weakrefset.py", line 75:

Serial Communication between Anet V1.7 board and ESP32/Nextion display in Marlin (no replies)

$
0
0
Hi!
I would like to connect Anet A8 Plus to Wemos R32 and send some information both ways. Is it possible? How to do that?
Where i can find any informations where i can add my code (eg. If something Serial.Write/serial read?

Is there any well documented information about adding nextion display to marlin?
How marlin sending data to screen, what are variable types etc?

Marlin 2.0.5.3 Z height issue. (no replies)

$
0
0
Hi, I set the Z-offset to my proximity sensor with M851 Z0, G28, M211 S0, move nozzle down, M851 Z-xxx M500, M211 S1, G28 and, on the display, Marlin reports the right figure. However, when I start a print, Marlin then often - not every time - shows the offset as the figure I have inputted + 10 and tries to push the nozzle through the bed. I don't understand. I do run G29 in the file header each time and the process seems to run OK giving reasonable looking figures for each point but then when the print starts, it tries to put the head below the bed. The printer is one of the cheap Anet A8 knockoffs which I have beefed up and I'm still using the Anet V1-5 board (although when I have built a cabinet, I will be changing to an SKR 1.4 Turbo). Any ideas? Thanks

SKR 1.3 "multi" neopixel (no replies)

$
0
0
Hi,

I'm working with SKR1.3 and FYSETC 12864 v2.1 display (neopixel version) and found out that having this display enabled, will result in having all the neopixel set up limited to pin EXPA1_05_PIN.

What I mean is, once the display is enabled, it's no longer possible to use neopixel CASE_LIGHT nor NEOPIXEL_LED, everything is ruled by display setting and no other setting can be done.

This is pitty because neopixel has so much potential and it would be cool to have them for other functions besides display setting.

Does anybody know if many neopixel "instances" can be performed in Marlin 2.X?

I'd like to add neopixel for printer status, either under case light option or simply neopixel led using and independant pin different from the one that controls display light.

I also tried to wire the printer status LEDs to the same display pin with the unlucky situation that display LEDs are wired RGB and neopixel ring is wired GRB, so green and red are swapped out.

Any ideas?


Thanks!

Need help with Z axis offset issue after auto leveling. Marlin V2 (no replies)

$
0
0
Hey peeps! I have a P802ma (ANET A8 clone) that I updated the firmware from Marlin 1, to Marlin 2.0.x (latest). And I've been trying to get all the kinks worked out.

So far I have everything set up to the point where the coordinates all seem correct, and the print area is correct and such.

The issue: if I restart the printer and attempt to print, the nozzel is about 10mm above the bed. BUT if I run auto leveling, it corrects it, and prints properly.

Anyone have any idea what is causing the discrepancy??

I'll provide any Marlin config files if you need to look at them.

Looking to Echo Serial 0 to Serial 2 - Marlin 1.X (no replies)

$
0
0
Hello,

I'm looking to control my printer via USB with a host program, but I would also like to read values over serial on a second device. More specifically, I would like to parse an M114 command for axis position data.

I have added #define SERIAL_PORT_2 2 in Marlin, but curious how to echo all the data to this port as well.

Thanks!

Octoprint bed heating kill called (no replies)

$
0
0
What is the problem?
Trying to print on my CR10v2 and SKR 1.4 Turbo. I have the bed temp set at 65, but it heats up to 55 and just stays there. Eventually I get this error: “Your printer’s firmware reported an error. Due to that OctoPrint will disconnect. Reported error: Heating failed, system stopped! Heater_ID: bed - Printer halted. kill() called!”

What did you already try to solve it?
I did a pid autotune and set the results Marlin and saved with an M500. I was able to start two prints…they failed but not because of the bed heating. Next time I tried a print, I got the error again.
These are essentially brand new heaters and thermistors. Thermistor connections are solid on both ends.

edit: I also replaced the existing bed thermistor with a brand new one. Same thing happened. I checked the connections mains to board and bed to board and they were both stout connections. Quit again at 55 degrees.

Logs
[attachment 115874 Configuration.h]
[attachment 115876 octoprint5.txt]
[attachment 115875 serial1.txt]

Additional information about your setup
OctoPi .17, OctoPrint 1.4, Raspberry Pi 3 B+, Creality CR-10 V2, SKR 1.4 Turbo with TMC 2208 drivers and a TFT35 v3 touch screen.

Thanks in advance for any help!

Pat

How to use Serial object at Marlin 2.0.x (SKR v1.3)? (no replies)

$
0
0
Hi,

after several days trying it and reading a lot i need some help...

I'm upgrading a Anycubic Chiron from Trigorilla (8 bits) to SKR v1.3+TMC2208 (32 bits) and I want to use stock display from Anycubic. This display uses a custom protocol via serial communication and everything about it it's at Anycubic repo at GitHub.

I'd like to reuse code from other people (dkoch83) but i'm not able to make it works because everytime Serial object (class HardwareSerial) is used, USB communications is lost. I'm trying to connect stock display with TFT port and in a very simple way, read data from Serial and write it back to same port. To know what's happening i'm using a protocol analyzer so i can see data from display and if there's some answer.

My last attempt was the most simple test but only enable SERIAL_PORT to -1.

- Open Serial at setup() with Serial.begin(115200);
- Read data from Serial and write it back at loop()

if (Serial.available()){
      byte b = Serial.read();
      Serial.print(b);
    }


This test doesn't work and USB communication down.

If I enable SERIAL_PORT -1 and SERIAL_PORT_2 0, host communications works fine in both ports USB and TFT but i don't want TFT port as standard host.

I know some people did something like i'm trying with custom serial communication but there's must be something i can't see... :(

My project at GitHub: [github.com]

Help will be appreciated :)

Z axis stopped moving (no replies)

$
0
0
HI everyone!

I am setting up a CoreXY printer with a SKR 1.4 board paired with TMC2209 drivers. And everything was going smoothly (x,y,z were working perfectly and E0 was next to be calibrated) when z stopped working.

I tried to swap the motors. all motors work until they are plugged in Z axis.

I tried to swap around the drivers. All drivers work well until they are used for the Z axis.

I tried to change the pin numbers thinking that i burned the board. But when i setup Z on the E1 place. It was not working. So because I knew that X was working. I switched the pins of X for the pins of Z and vice versa. X was still working on the third driver (Supposed to be Z driver) and Z wasn't working even though it was plug where X was working before.

All this to say that it doesn't look like an electronic problem but rather a software problem.

The only thing I did between the working Z and the none working Z was a M92 gcode to set the step/mm of Z axis. (M92 Z7.5). I reset the value after back to the original 10 I had setup when working well.
And still nothing. The motor of the Z axis lock itself when movement is requested but it is not moving. therefor there is signal to the motor.

I attached 2 .TXT files for the config.h and config_adv.h if you want to have a look at my config.

Thank you for the help, I am quite lost and don't know where to look anymore...

BTT SKR 1.4 Part Cooling Fan Configuration (no replies)

$
0
0
Thank you for accepting me into your forum.

I have recently fitted a BTT SKR 1.4 Turbo motherboard to my printer.

I’ve got everything working except for the Part Cooling fan which doesn’t turn when needed.

I’m using Marlin 2.0. Bugfix version.
I have my hot end fan connected to the HE1 connection (pin 2_4) . Which is defined in Config.h as; E0_Auto_Fan_PIN P2_04 , which switches on at 40 degrees.

The fan for the Part Cooling is connected to Fan0 (pin 2_3). I only found reference to this in the ‘pins_BTT_SKR_common.h which is under the heading Heaters/Fans.

I checked the cabling etc and tested the fan0 skt but it was only putting out around 3v even when setting the screen settings to full or off.

I have attached the pin file, if someone could see if there is an error which would be stopping the fan from working I would be very gracious.

New board on marlin 2.0 (6 replies)

$
0
0
Hello,
i am trying to add a new board in marlin (ATmega2560) but i can’t seem to even compile it. i start clean from bugfix-2.0.x branch and then i do exactly what the documentation says:

“Once your pins file is ready, simply add a new define to the boards.h file and a conditional include to pins.h . And you’re done!”

the error i get is : #error “Unknown MOTHERBOARD value set in Configuration.h”

please find attached the files that i have modified.

Of course the clean version compiles fine.
Do i have to add my board in some other background files too?

thank you

Layer height value does not rise on display during print (no replies)

$
0
0
Hi, I recently upgraded my ender 3 pro with SKR1.3 board and Marlin 2.0. The printer works perfectly without any stepper problems, the upper layers also printed as it supposed to be. However the layer height value on the main screen is not increasing and shown as zero from the start of the print till the end. Why this could happen? Any ideas?

XY axis moving very slow to Z home or Auto level (1 reply)

$
0
0
Hi,
I am building my own 3d printer and am using Marlin bugfix-2.0x.
XYZ axes move ok, both ways.
XYZ axes will all home ok.

I have installed an inductive probe for ABL (auto bed leveling) - works fine.
Have had to enable "safe bed leveling" as my L probe is off the bed on one side only (X home side).
It needs to have the X axis at anything above 30mm for the Z probe to be on the bed, so i have changed the following :

#if ENABLED(Z_SAFE_HOMING)
#define Z_SAFE_HOMING_X_POINT (X_MIN_POS)>= 30 // X point for Z homing when homing all axes (G28).
#define Z_SAFE_HOMING_Y_POINT (Y_MIN_POS>= 0) // Y point for Z homing when homing all axes (G28).
#endif

This seems to work, except it wants to go to X=31 in order to home the Z axis. Have i put the correct code in (X >= 30 did not compile)?
What i want is for the Z to home if X is 30 or greater, Y can be any value as the probe will be on the bed at all Y values.

The problem is, it homes the X axis at normal speed, it homes the Y axis at normal speed, then it needs to move (in this case, X only) X to 30 (31) before homing Z on the bed.
It does move X, except it is very slow, and it sounds like it is doing small steps with a gap between each one (not continuous).
It will eventually achieve the X position, and Z homes at the normal speed.
If i leave the safe homing to (X bed size)/2 and (Y bed size)/2, then it moves the y axis, first in the same slow discontinuous fashion, then does X slowly - this drove me initally to reduce the travel required.

It does this same slow discontinuous stepping when actually doing the bed leveling routine, in between the sample points.

At all other times the motors for all axes work without problems.

All operations are done from the 3d printer control panel.

So, i am guessing there is one s/w setting causing the slow discontinuous speed for both operations ?

#define XY_PROBE_SPEED 50 - has been set.

Many thanks

Compile with Arduino and get error (2 replies)

$
0
0
I compile a week old bugfix 2.0.x and everything is good.
I try to compile today's bugfix with my config files and get this:

Archiving built core (caching) in: C:\Users\Bill\AppData\Local\Temp\arduino_cache_39750\core\core_arduino_avr_mega_cpu_atmega2560_d162a8167a43ee5a27a03b44364657b0.a
Linking everything together...
"C:\\Users\\Bill\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections,--relax -mmcu=atmega2560 -o "C:\\Users\\Bill\\AppData\\Local\\Temp\\arduino_build_235276/Marlin.ino.elf" "sketch\\Marlin.ino.cpp.o".............
..........."-LC:\\Users\\Bill\\AppData\\Local\\Temp\\arduino_build_235276" -lm
avr-gcc: error: CreateProcess: No such file or directory
Using library U8glib at version 1.19.1 in folder: D:\Users\Bill\Documents\Arduino\libraries\U8glib
exit status 1
Error compiling for board Arduino Mega or Mega 2560.

I deleted all the middle stuff .................
It will compile with the dist config files. When I put my configuration.h in I get the error. The adv file is original.
The config files are copy paste changes from the week old build - with some changes due to changes in the dist file

No sanity check errors or other errors except error RE libraries which also appear when it compiles.

I have no idea how to track this down. Do you?

Weird problem with extruder temperature (no replies)

$
0
0
So I'm running marlin 2.0.5.3 on a prusa steel and for a couple of weeks I've been having this issue. It's best described with the video below. I changed the thermistor I tuned the pid but I don't think it's a software issue. Help
[youtu.be]
The problem starts at about the 1 minute mark. The printer prints fine up until the thing with the temperature starts acting up. The temperature is read fine by marlin as I tested it with a thermocouple. The problem is not constant. Some times it does it, some times not.

Homing issues (no replies)

$
0
0
I have an Anet A8 with SKR 1.4 turbo board with TMC 2209's and sensorless homing, TFT35 display and the latest Marlin 2.0.x bugfix Marlin installed. I have several problems/things not working properly and would appreciate help.
Firstly, after I first turn the machine on, if I tell it to home, it goes the wrong way. The X-axis moves to the left and then both the X and Y axes move rapidly to the right until they hit the stops and sit there grinding. If I then do a reset and tell it to home again, it behaves perfectly and homes to the negative stops. This happens every time I switch the machine on and is more than annoying. Should I look to make changes to Configuration.h - maybe I need to invert 2 settings to make it right - I don't know?
Secondly, I can't save changes to the configuration settings from the TFT35 display - I can change things (like probe offset distance for example) in the short term but the changed settings disappear after a reboot even though I have done a 'save settings' from the display screen and got a message saying 'settings saved'. Is this something I have missed in the Marlin config?
Finally, I have hooked up a short neopixel strip to the SKR board and, while it will do the 'initial test' display during booting the machine and I can change colours from the TFT35 display, I can't seem to make it do the colour changes as the machine heats up.
Sorry to be so long winded but I've been struggling for a couple of weeks now and I'm about ready to give up - especially as my Anycubic Delta has just given up the ghost! Thanks.

RepRap full graphic with MKS Gen L (3 replies)

$
0
0
Hi first time poster here,
I have a Anet A2 plus that I successfully upgraded to Marlin so I could enable thermal protection and mesh bed leveling.
While upgrading the hotend I managed to damage the main board, so was forced to replace.
I purchased a MSK Gen L, and suitable stepper drivers. I hadn't realised that the Gen L doesn't have an SD slot, so had to purchase a RepRap full graphic smart controller as well.
After some initial problems I managed to flash the Gen L, I think, but I cannot get the display to work.
The backlight lights up, but the display is blank.
I'm sure I have enabled the display in marlin, I've even tried to use my old Anet display, obviously setting correctly in marlin, but neither display works?
Any help would be really appreciated as I'm running out of ideas and really want to get printing again!

Thanks
RH

UBL seems off (no replies)

$
0
0
I'm trying to get UBL working with a BLTouch probe. I have the probe working, and homing works. I can also run the UBL mesh probe and get what looks like reasonable results. However, when it's active, Z0 is actually more like Z-4. I could edit the mesh, and that might work, but it seems too consistent to be a bug and more likely something I'm doing wrong. I have attached the config files and logs of some testing. I determined the Z nozzle/probe offset by homing, then moving down till paper drags on the nozzle. Then using M114 to adjust the offest. The offset consistently gives good Z0 with leveling disabled after a G28. M502/M500 before every test.

Hardware is an older Lulzbot mini v1, mini Rambo board, with the bltouch wired per this post. [reprap.org]

I tried the 2.0.x and bugfix-2.0.x branches, they had similar results.
Viewing all 2832 articles
Browse latest View live


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