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

Re: Marlin 1.1.9 - SD Card not working after update

$
0
0
[Fixed]
Took me a while, but with lots of research I figured out what to do. It appears that the autodetect pin is not available for this board at all, and come to think of it, I had to power-cycle the printer every time I switched SDCard as there was no other way to get it recognized, before I even changed the firmware the first time. So now knowing that autodetect is not working anyway, the fix was to find out how to enable "Init SD Card" or something alike as an option on the printer's display (As I want it stand-alone and normally don't have a computer connected to it).

In the file pins_GT2560_REV_A.h , I commented out the following lines
//#define SD_DETECT_PIN 38
//#define SD_DETECT_PIN -1

Also really useful was to enable the M503 command, which can be done in the configuration.h file by commenting out the following line:
//#define DISABLE_M503

So... after a lot of fiddling around, my Geeetech Prusa i3 Pro B is now working with BLTouch and can "refresh" SDCards by software menu without a power-cycle :D Yay!

Re: How can I configure marlin to work between RAMPS and Raspi 3 B by I2C?

Using fan definitions FAN_PIN, FAN1_PIN and FAN2_PIN.

$
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

Re: Z motors repeatedly interrupted

$
0
0
Ticking is normally the vref is to high and the stepper drivers are shutting down to protect themselves, over and over.

Re: How can I configure marlin to work between RAMPS and Raspi 3 B by I2C?

$
0
0
Quote
MrAlvin
Try to take a look at these threads:
- [github.com]
- [github.com]
- [github.com]

Perhaps they can inspire you, about what to do.

Thank you, MrAlvin! I had already read two issues that you posted. I was a bit confused, but I'll read again.

[SOLVED] Z motors repeatedly interrupted

$
0
0
That's it, thanks! Obviously the firmware upgrade was a great big red herring then.

Turning the stepper current down a bit stops the shutdown. So it looks like next job is to add some cooling to the boards and check the driver currents (no idea how they're set up as I bought the printer secondhand).

Regards

Re: [SOLVED] Z motors repeatedly interrupted

Fan etc on external i2c-controller

$
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

Re: Fan etc on external i2c-controller

$
0
0
NB most I/O expanders only provide digital output, IE on or off, for a fan you really want PWM so you can control the speed.

First you have to identify the chip used on your PWM capable IO expander, then find an arduino example of how to use that chip, finally you integrate that into the marlin firmware.

If no one has made it work on arduino, then you have to find the datasheet for your chip, read, it, understand it, let it take over you life, and write code to use it.

"16 Channel 12-bit PWM/Servo Driver-I2C interface PCA9685 " should work... and your still going to have to add mosfets
Adafruit has libraries [learn.adafruit.com]

you just need to modify the M106/M107 commands as needed

Re: Fan etc on external i2c-controller

$
0
0
Hi,

this is exactly the chip which I ordered and I also took a look in the example sheets.
And you are right - I also ordered some Mosfets to controle the Fans.

Ok, that is the electronical part and I think I know how to use the experimentaly i2c-Gcode-function.
But Iam Looking for another Function:

Marlin offers the option to switch on/off a fan, if the extruders temperature is above X degrees.
This is exactly a feature I need.

Here a part of the code:
// @section extruder

/**
* Extruder cooling fans
*
* Extruder auto fans automatically turn on when their extruders'
* temperatures go above EXTRUDER_AUTO_FAN_TEMPERATURE

So .... how do I set a Pin of the Servo-driver to the specific fan (into Marlin), to switch it on if extruders temperature is above 50 degrees?

Thank you in advance for your help!

Re: Fan etc on external i2c-controller

$
0
0
you cant use a pin, well not directly.

you have to change the code that normally uses a pin to use the i2c device

as a hack, set the pin to something unique -100, -101 etc

then in the code you can program if the pin is < 100 it should use i2c device... same trick they use for thermocouple vs thermistor

but I would get m106/107 working first, as the auto fans are much more complicated

Programatically defining and setting a bed leveling mesh

$
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.

Re: Weird extruder behaviour after some travel moves with linear advance on Anycubic Delta with 1.1.9 Marlin

$
0
0
So, no one has a clue? Does somone probably have a tip where else I can search for help?

Change Bed Z Step Size

$
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!

Re: Change Bed Z Step Size

$
0
0
Quote
Lukrative

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.

Where can I find this value to change it?

I believe what you are looking for is in " configuration.h "

#define LCD_BED_LEVELING

#if ENABLED(LCD_BED_LEVELING)
  #define MBL_Z_STEP 0.025    // Step size while manually probing Z axis.
  #define LCD_PROBE_Z_RANGE 4 // Z Range centered on Z_MIN_POS for LCD Z adjustment
#endif

Re: SD init fail.....make me crazy:X 2560 rev b.

$
0
0
Today i change lcd2004 too....nothing to do :X

MINTEMP is ignored

$
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?

Re: MINTEMP is ignored

$
0
0
Please post full configuration.h and configuration_adv.h and confirm your using the real official marlin and not altered version

Re: Change Bed Z Step Size

$
0
0
Yes, I saw that, but unfortunately this is slightly different. This value changes the distance that the x-axis carriage moves up and down per button press while you are probing points in the mesh. It doesn't actually change the distance that it moves up and down per button press afterward, when you are adjusting the bed height.

Re: Change Bed Z Step Size

$
0
0
Well then, I don't have any ideal at this time.
Will see what can be found.
Viewing all 12106 articles
Browse latest View live


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