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

Trouble with Marlin 1.1.9 using Manual Bed Leveling (no replies)

$
0
0
Hi!

I just installed Marlin 1.1.9 onto my Geeetech I3 Pro B the other day, because i was particularly curious about the manual bed leveling feature, which, as i understand it, lets me level the bed without a probe, using paper and 9 points on the bed. I've had quite the trouble leveling me bed becuase it seems to not be completely even.

So i downloaded the Marlin firmware and replaced the Configuration.h file with the one matching my Geeetech model found inside the example_configurations folder. Then i went into the Configuration.h file through the Arduino IDE, and changed my bed size as mine is a little smaller than the provided amounts and enabled MESH_BED_LEVELING and LCD_BED_LEVELING .. After uploading this to my printer i could begin the manual bed leveling which was now available through the menus. This seemed to work fine and after i was done i selected the Store settings menu option. However if I try to begin printing right after, it seems that the values created from bed leveling is not used at all, as the Z axis is not moving at all between layers when using a test print that covers the whole bed.

Is there something I'm missing?

H-Bot questions for new printer (no replies)

$
0
0
Hi All, part way through designing and building a new H-Bot style printer (less complicated belt(s) than CoreXY) and going to use Marlin, of course. I have the frame set up, coner mounts fro motors and idlers and X-Y axis moving by hand.

Question 1:
Just thinking about mounting the X and Y Home-end-stops at the same corner of the frame (fewer moving wires) and always have Marlin Home the Y first, then the X.

My A6 always Raises Z a little, Homes X, Homes Y and finally Homes Z. All very nice and orderly. I'd like,
Lower Z a little.
Home Y
Home X
Home Z
Is this something I can easily configure? How and roughly where, in configuration.h?

Question 2:
I can't seem to find anything directly related to wiring up and configuring for the H-Bot. Marlin has several options for CoreXY and I have read that I am to use the CoreXY settings.

//#define COREXY
//#define COREXZ
//#define COREYZ
//#define COREYX
//#define COREZX
//#define COREZY

But, that doesn't seem to ring true as the H-Bot, I think has different motor motions to achieve the head positioning. Can someone either explain what I need to do with Marlin Settings and wiring, or, point me at some pages that describe the settings for H-Bot in greater detail.

Thanks.

Extruder acting weird on Anycubic Delta with 1.1.9 Marlin (no replies)

$
0
0
Hello everyone,

I have a very weird behaviour of my extruder on my Anycubic Kossel Delta Printer. It started probably 2 weeks ago when printing a case for an arduino. There were two cylinders for buttons, the right one was printed normally, on the left one my printhead just stopped on a specific XY-Point every layer and extruded filament for, like, 300 milliseconds. I thougt that probably the model had an issue as this was the only part of the print where this happend and I didnt thought about that.

Yesterday I started printing something which has a lot of round parts, and now, I get this behaviour all the time on different parts of the print. Because of all this unwanted extrusion and as the printhead stops for a split second, it melts the plastic which is already there and adds a big blog which results in a very bad print. As the new object is mostly round, also the brim I print on the first layer is mostly round. Here, I get underextrusion (check image below). What is extra weird is, that on objects wich have a rectangular shape, the first layer has NO underextrusion… (check same image)

I also tried to use some G-Code which is about 5 months old, to check if the gcode is wrong and my slicer (Cura) is the issue, but no, I get the same behaviour of printhead stopping for 300 ms and extruding material here, too. When I printed this gcode in the past, everything was fine.





So, what did I do to try to resolve the problem (Hint: nothing worked so far):

• Rebooted the printer..
• Printed different objects to make sure it is not that specific object
• Printed old G-Code to check if my slicer is the problem
• Reflashed the Firmware (Marlin 1.1.9)
• Reflashed a backup of my Firmware (I change some stuff from time to time) from about 2 1/2 weeks ago.
• Restored Failsave on my printer to make sure no wrong setting is stored in the eeprom
• Compared every line i changed from the stock 1.1.9 Firmware to find something weird
• Did an M111 S247 and watched the debug output live in the console, slowed down the printer until the debug output came in in realtime (did not find something unnormal)

So, I am just out of ideas… Any help is appreciated.

I will add some more information here:

Printer is a Anycubic Kossel Delta Pulley (2016 Version) with Ramps 1.4 Board and A4988 drivers.

I attached some G-Code which produces the error on my side to this post

Here are Videos of the Problem, one how it looks at the printhead (issue is obtainable at 0:15 and multiple times after) [imgur.com] one how it looks on the extruder motor (obtainable at 0:25, 0:23 and 0:12 for example) [imgur.com]

Here is my Configuration.h and my Configuraion_advanced.h
[pastebin.com]
[pastebin.com]

trouble wile compile Marlin 2 for sbase (2 replies)

$
0
0
I was trying to compile marlin 2 for my sbase since last night.
but I always get

Quote
Processing LPC1768 (platform: [url]https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip[/url]; board: nxp_lpc1768; framework: arduino) PackageManager: Installing framework-arduino-lpc176x @ >=0.0.2 Error: Detected unknown package 'framework-arduino-lpc176x' Board name: BOARD_MKS_SBASE Build type: build Environment used: LPC1768

It drives me crazy. I did and still do some google search but it seems I am the only one have such a "pleasure" to encounter this problem
advice is appreciated

Confuguring Marlin for Tronxy X8 board (1 reply)

$
0
0
I have been trying to get a new version of Marlin on to my Tronxy X8, which uses an ATmega 1284P chip, on a ramps 1.4 style board. However, I am not sure what board profile to use in configuration.h file as the ramps 1.4 only allows ATmega 2560 or ATmega 1280 when building. I have installed the board profile on the arduino IDE, but it doesn't allow to compile for that. Anyone able to help?

Z motors repeatedly interrupted (1 reply)

$
0
0
Hi

I have a pretty odd problem. I have an elderly Mendel fitted with RAMPS 1.4 which has been out of use for a while, so I decided to give it a clean up and get it going again. As part of this I decided to upgrade the Marlin firmware, Slic3r, Pronterface etc.

Now the printer basically works - except for this issue affecting the Z motors*. Basically I can connect, move XYZ no problem but shortly after homing the Z motors begin to "tick" every second or so... it feels like they are being de-energised for short pulses. If I move the Z axis it repeatedly pauses, sometimes it squeals when it tries to restart.

The X & Y axis don't suffer - in fact they are quite happy moving while the Z axis is stuttering away.

I've used v1.1 and the latest bugfix. The old v1.0 is OK though.

Any ideas? I can put the old version back, although I'd like to update it if possible.

* Dual motors, but in parallel with a single driver. Also I don't have auto leveling enabled FWIW.

How can I configure marlin to work between RAMPS and Raspi 3 B by I2C? (2 replies)

$
0
0
Hi,

I've tried to understand the serial port of Marlin, but I didn't find any details about I2C settings in this forum, marlin's documentation and marlin's github. I know that the SERIAL_PORT 0 is to communication through bootloader of Arduino by USB serial. I'm looking for I2C communication directely between RAMPS 1.5 and Raspi. My Arduino is connected with RAMPS 1.5. My goal is the raspi send Gcodes to arduino (marlin). How can I do this? Is it possible?

Regards.



Additional Information
  • RAMPS 1.5
  • Arduino MEGA 2560
  • Raspiberry Pi 3 Model B
  • Marlin 1.1.9

Two-Motor Multi-Material Printing... How to implement in Firmware? (no replies)

$
0
0
[attachment 107835 poster.png]
Hey Guys,

I'm trying to do something that I don't think has been done before. Okay... its an adaptation of MMU.V2. But I don't think it would be very hard... at least for someone with just a little more experience. Pretty much I'm hoping to crowd-source the solution to this problem.

I want to try and create a multi-colour extruder that will print up to 5 (possibly more) different colours, with one nozzle, and two motors(Single Board). This should drastically reduce the cost to implement the solution. This means no extra boards, no extra cables, only one motor, and then some hardware and some printing.

The concept is based off the two images in my poster. Their "Widgets/Parts" can be found on Thingiverse at the following locations:
https://www.thingiverse.com/thing:2867089 - 2-3-4 way Splitter (doesn't have to be this one... it is just representative)
https://www.thingiverse.com/thing:3123202 - Multi-Extruder

I am pretty confident that I can work out the design files to be able to modify the Y Splitter for more (I'm looking for 5) and engineer it so that the Teflon tubes work well (I would also like to see if I can add a filament sensor). As well as verifying the extruder design for what we are trying to achieve. The problem that I have found, at least I expect that it is a problem, the second motor is not extruding, and thus only gets triggered on a change filament command, but then it uses the same extruder once the filament is selected. I figure it wouldn't take much to implement and I can write the pseudo-pseudo code for it (I could even turn this into GCode)... But i don't know how to have this work with a slicer or firmware:

-retract current filament
-set temp and wait
-switch filament
      -move motor 2 appropriately
-purge nozzle and complete wipe tower or wall
-continue printing until next filament change

From the a post in the developers forum (i thought this would mean modifying the code), I have come to realize that a t-code with the right firmware additions in Marlin may be possible. I was advised to post here to see if someone had a solution to help.

Hopefully someone can help

Using fan definitions FAN_PIN, FAN1_PIN and FAN2_PIN. (no replies)

$
0
0
Marlin firmware V 1.1.8 / 1.1.9, RAMPS 1.4 board Configuration "EFB"
I'm also using a board known as an RRD Fan extender board.
This board plugs into the Servo port and uses pin 6 and 11.

From what I understand there are 3 fan definitions possible.

FAN_PIN seem to be used to define the D9 Pin.
While FAN1_PIN AND FAN2_PIN go undefined.

So in the "pins_RAMPS.h" file I configured the following: in V1.1.9
#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
#define HEATER_BED_PIN RAMPS_D8_PIN
#define FAN1_PIN 6 // DJB
#define FAN2_PIN 11
In V 1.1.8
#if ENABLED(IS_RAMPS_EFB) // Hotend, Fan, Bed
#define FAN_PIN RAMPS_D9_PIN
#define HEATER_BED_PIN RAMPS_D8_PIN
#define FAN1_PIN 6 // Define servo pins for fan use DJB
#define FAN2_PIN 11

In both cases FAN1_Pin works by using the M106 P1 S128 command.
But in the case of FAN2_Pin it does not work.
Using M106 P2 S128 or M42 P11 S128 does not work.

So I figure I am either misinformed about FAN2_PIN, it uses a different
command structure or I may have a bad board.

Any help would be appreciated.
thank you

Fan etc on external i2c-controller (3 replies)

$
0
0
Hi there,

my Board (GT2560) does not support controle of more then one fan.
So I would like to add I/Os by using an i2c-expander.

I know, that I have to modify the GT2560-Board to reach the i2c-Bus - but how can I teach Marlin to use the new I/Os for the fans?

Thank you in advance for any help!

Best regards
Maeckes

Programatically defining and setting a bed leveling mesh (no replies)

$
0
0
I am using the latest Marlin firmware (1.1.9). Bed leveling isn't working. I've wasted weeks trying to get it to work. So now I'm changing my tactic.

I have printed some parts which allow me to attach a digital micrometer to the effector of my printer. Additionally I have written a program which samples the bed plate at 81 points (of my own choosing). So now I have very precise XYZ data for 81 points (X & Y coordinates were selected by me, not the Marlin firmware). The experiment revealed some very interesting info, but that's not the point of this topic.

I can find GCODE which allows modifying the Z data of an existing mesh point. But I want to go beyond that and redefine the X & Y of the mesh points, essentially redefining a completely new 81 point mesh and loading it into the firmware programatically.

Question #1: Is this possible using only Marlin GCODE? I cannot find any way to do it.

Question #2: Assuming the answer to question #1 is NO, I'm willing to customize the Marlin firmware to get the job done. Personally, I find the firmware code to be almost incomprehensible - so little documentation, and such an arcane style of programming. Nevertheless, I have been successful in the past adding a few additional custom commands to the GCODE library. But after hours searching for the code which defines the X & Y coordinates of the bed leveling mesh, I am still clueless. Define the number of points? Easy, configuration.h. But where in the code are the actual X & Y coordinates of the mesh determined? I'm using BILINEAR.

Any help with this would be greatly appreciated. My goal is to create a GCODE command which accepts XYZ data (to be called 81 times in a loop) which completely replaces the existing mesh in the firmware, redefining all three axes for each point. Thanks in advance.

Change Bed Z Step Size (1 reply)

$
0
0
I'm using Marlin 1.1.8, and I have recently started using the manual mesh bed leveling option. It has improved my first layers a lot, but it's a little unwieldy.

In the LCD menu, you can adjust the heights of all the probed points up or down by the same amount using the "Bed Z" option found under Prepare > Bed Leveling > Bed Z. The step size is currently 0.001 mm, which means that on my LCD I have to hold the down the up button for a minute or so to increase the distance from the bed to the nozzle by 0.1 mm. I would like to change this step size to 0.02 or something just so that I can adjust the bed z faster, but I am having a lot of trouble finding where this step size is defined in the firmware.

Where can I find this value to change it?

Thanks everyone!

MINTEMP is ignored (no replies)

$
0
0
Recently i've been upgrading my hardware, as well as software. I've downloaded new Marlin FW 1.1.x just today and begin configuring it. Before energising the whole setup I've done some basic safety checks, including MINTEMP check. For some reason, it does not trigger anything for Extruder 0(example in attachment), even with that:
#define HEATER_0_MINTEMP 15
However, BED_MINTEMP works just fine.

Any ideas on what could be wrong?

Can a BLTouch Sensor die? (2 replies)

$
0
0
Hey y'all,

I have been running a Wanhao Duplicator 6 Plus Mark II in combination with a BLTouch sensor and Marlin 1.1.x for quite some time now. But sadly yesterday something died after finishing a print.

It seems that my BLTouch sensor no longer reports that it is closed. Running M119 command shows it's always in the open position. I tried reflashing Marlin, different versions even bugfix-2.x.x. This didn't help the nozzle would simply just crash into the bed. I measured all wires and ribbon cables to see if it made contact, which it did.

This morning I connected some breadboard with a switch to see if the motherboard is still okay. When using engaging the mechanical switch the M119 command returns triggered state again. And open when the switch is not engaged.

Is it possible for my BLTouch sensor to have died? I returned to a 24v Capacitive Sensor again, but in my previous experiences this was not so accurate.

Thanks for your consideration!

Change extruder stepper...how to do it? (3 replies)

$
0
0
Hi guys.
I have gt2560 rev.b and my original extruder slot stop work.
I have 2 free slot for add extruders.
What i have to mod in firmware for work on 2nd slot?

developer documentation (1 reply)

$
0
0
Hi, everyone!

I am writing a comparison between various firmware for machine control, a comparison made with the eyes of a developer.
So, I want to consider the structures behind these firmwares; in order to read GCode and control a machine the firmware must have an interpreter, a trajectory planner, it must adapt to various kinematics, and control the motion accordingly.
It's easy to know that the end of the chain (generating steps) must be on an MCU (someone uses an FPGA for the stepgen, but it is just for that).
I want to compare Firmwares like Marlin and Smoothieware, that run completely on a MCU, and Software like Klipper that moves part of the chain on a Linux (running on a RPi), and LinuxCNC/Machinekit that were born on Linux (using a real time kernel), and have barely the stepgen out of it.

Doing this comparison I would like to show some graph like that
http://linuxcnc.org/docs/2.7/html/code/code-notes.html#_architecture_overview
It shows all the pieces of the CNC stack in LinuxCNC and how they are connected to each other.
In the documentation of Marlin I couldn't find anything like that, and I started reading the code to understand the whole structure.

Is there here some developer is interested in this kind of documentation, and maybe that can help me with this?

Regards,
mngr

How to set home position in the middle of the bad in Marlin 1.1.0-RC7 (1 reply)

$
0
0
Hi Guys

I don't know how to set home point. My command g28 finish in this position

ttyUSB3 PC> m114
SENDING:M114
X:64.00 Y:159.00 Z:15.00 E:0.00 Count X: 6018 Y:15013 Z:5929


my configuration.h looks like
#define MANUAL_X_HOME_POS 100
#define MANUAL_Y_HOME_POS 100
#define MANUAL_Z_HOME_POS 15

Remapping pins for Marlin 1.1.9 (no replies)

$
0
0
Hi all!

I want to change the electronics of my Anet A8. I bought a mks gen v1.4 board, a 12864 full graphics card and 4 tmc2130 drivers that I have switched to SPI mode. I need to know in what pins the tmc2130 are connected in the marlin 1.1.9 for the SPI mode and in which the CS of each driver

In this photo I leave you as I have the wiring the board, I just need to configure the pins for Marlin 1.1.9
[imgur.com]

Thanks and sorry for the english.

Servo not moving to correct angle (no replies)

$
0
0
I have my stow / deploy angles set to 70 / 140 respectively.

However, when the actual autolevel process is running, the deploy angle looks closer to 120.

I have checked this by manually setting the angle and comparing to when the autoleveling process is running, it is definitely not correct when autoleveling is going.

This issue has actually caused the printer to descend with the servo arm at an angle, causing the button to miss and the servo arm to break. I had to replace both the arm and the servo.

Is this a Marlin bug?

[bugfix-2.0.x] RAMPS + DUE = NEOPIXEL_LED causes motors not moving (no replies)

$
0
0
Hi all, first post.

I've got a modified RAMPS with Arduino DUE running Marlin bugfix-2.0.x branch, checkout on 11.11.2018, added neopixel leds today to pin 47 with separate power supply, NEOPIXEL_STARTUP_TEST cycles through colours at startup and M150 works too.
In fact, everything else works fine except that enabling NEOPIXEL_LED with following configuration causes homing to hang after (what seems to be) the first step of the steppers, all motors simultaneously.
Marlin stops responding to serial communication, does not complain about not hitting endstops, lcd menu is usable but instead of movement commands i see a "Tune" option.

Any pointers to where to start looking and what for would be greatly appreciated.

Regards,
Peter

#define NEOPIXEL_LED
#if ENABLED(NEOPIXEL_LED)
  #define NEOPIXEL_TYPE   NEO_GRB // NEO_GRBW / NEO_GRB - four/three channel driver type (defined in Adafruit_NeoPixel.h)
  #define NEOPIXEL_PIN    47        // LED driving pin on motherboard 4 => D4 (EXP2-5 on Printrboard) / 30 => PC7 (EXP3-13 on Rumba)
  #define NEOPIXEL_PIXELS 16       // Number of LEDs in the strip
  // #define NEOPIXEL_IS_SEQUENTIAL   // Sequential display for temperature change - LED by LED. Disable to change all LEDs at once.
  #define NEOPIXEL_BRIGHTNESS 55  // Initial brightness (0-255)
  #define NEOPIXEL_STARTUP_TEST  // Cycle through colors at startup
#endif
Viewing all 2831 articles
Browse latest View live