Yep, that did it. Thanks. Is there any benefit in tuning the delay value?
↧
Re: RepRap Discount Full Graphics Display for Melzi
↧
Temperature Sensor Question for TronXY P802E
Thanks to a previous post, I was able to install Marlin on my Melzi board. Before I give Marlin a spin, I had a question about temperature sensors. I have a TronXY P802E, which is running Repetier. When I built Repetier, I used a temperature table I found online that was purportedly from TronXY that contained temperature tables for the hot end and the bed (see below). It appears that Marlin is not as configurable in this regard, as the only choice is to pick a specific temperature sensor. I see 10 different 100K thermistors with 4.7K pull up resistors in Configuration.h, so I'm unsure which one to select since I have no idea which of these thermistor is closest to the ones that are in the hot end and heated bed.
Does it make a big difference which one I select, or should I just use the default choice?
#undef USER_THERMISTORTABLE0
#define USER_THERMISTORTABLE0 {\
{56,300*8},{59,295*8},{64,290*8},{70,285*8},{76,280*8},{82,275*8},{89,270*8},{98,265*8},\
{108,260*8},{118,255*8},{128,250*8},{145,245*8},{156,240*8},{168,235*8},{187,230*8},{208,225*8},\
{227,220*8},{248,215*8},{272,210*8},{301,205*8},{336,200*8},{370,195*8},{400,190*8},{450,185*8},\
{492,180*8},{552,175*8},{615,170*8},{690,165*8},{750,160*8},{830,155*8},{920,150*8},{1010,145*8},\
{1118,140*8},{1215,135*8},{1330,130*8},{1460,125*8},{1594,120*8},{1752,115*8},{1900,110*8},{2040,105*8},\
{2200,100*8},{2350,95*8},{2516,90*8},{2671,85*8},{2831,80*8},{2975,75*8},{3115,70*8},{3251,65*8},\
{3375,60*8},{3480,55*8},{3580,50*8},{3660,45*8},{3740,40*8},{3869,30*8},{3912,25*8},{3948,20*8},\
{4077,-20*8},{4094,-55*8}}
#undef USER_THERMISTORTABLE1
#define USER_THERMISTORTABLE1 {\
{56,300*8},{187,250*8},{615,190*8},{690,185*8},{750,180*8},{830,175*8},{920,170*8},{1010,165*8},\
{1118,160*8},{1215,155*8},{1330,145*8},{1460,140*8},{1594,135*8},{1752,130*8},{1900,125*8},{2040,120*8},\
{2200,115*8},{2350,110*8},{2516,105*8},{2671,98*8},{2831,92*8},{2975,85*8},{3115,76*8},{3251,72*8},\
{3480,62*8},{3580,52*8},{3660,46*8},{3740,40*8},{3869,30*8},{3912,25*8},{3948,20*8},{4077,-20*8},\
{4094,-55*8}}
Does it make a big difference which one I select, or should I just use the default choice?
#undef USER_THERMISTORTABLE0
#define USER_THERMISTORTABLE0 {\
{56,300*8},{59,295*8},{64,290*8},{70,285*8},{76,280*8},{82,275*8},{89,270*8},{98,265*8},\
{108,260*8},{118,255*8},{128,250*8},{145,245*8},{156,240*8},{168,235*8},{187,230*8},{208,225*8},\
{227,220*8},{248,215*8},{272,210*8},{301,205*8},{336,200*8},{370,195*8},{400,190*8},{450,185*8},\
{492,180*8},{552,175*8},{615,170*8},{690,165*8},{750,160*8},{830,155*8},{920,150*8},{1010,145*8},\
{1118,140*8},{1215,135*8},{1330,130*8},{1460,125*8},{1594,120*8},{1752,115*8},{1900,110*8},{2040,105*8},\
{2200,100*8},{2350,95*8},{2516,90*8},{2671,85*8},{2831,80*8},{2975,75*8},{3115,70*8},{3251,65*8},\
{3375,60*8},{3480,55*8},{3580,50*8},{3660,45*8},{3740,40*8},{3869,30*8},{3912,25*8},{3948,20*8},\
{4077,-20*8},{4094,-55*8}}
#undef USER_THERMISTORTABLE1
#define USER_THERMISTORTABLE1 {\
{56,300*8},{187,250*8},{615,190*8},{690,185*8},{750,180*8},{830,175*8},{920,170*8},{1010,165*8},\
{1118,160*8},{1215,155*8},{1330,145*8},{1460,140*8},{1594,135*8},{1752,130*8},{1900,125*8},{2040,120*8},\
{2200,115*8},{2350,110*8},{2516,105*8},{2671,98*8},{2831,92*8},{2975,85*8},{3115,76*8},{3251,72*8},\
{3480,62*8},{3580,52*8},{3660,46*8},{3740,40*8},{3869,30*8},{3912,25*8},{3948,20*8},{4077,-20*8},\
{4094,-55*8}}
↧
↧
M851 unrecognized command???
I have a Monoprice Mini v1 and have replaced the main board with a RAMPS 1.4 board and am running Marlin 1.1.xbf. I am having difficulty setting z offset and it would appear that I don’t have that selection on the LCD menu under control/motion. And using Pronterface to execute a M851 command it does not recognize the command. Is there some kind of flag that I set in the configuration files that might have produced this situation?
↧
Re: M851 unrecognized command???
on bugfix 1.1.x you need any of these to enable M851
FIX_MOUNTED_PROBE
Z_PROBE_ALLEN_KEY
HAS_Z_SERVO_PROBE
Z_PROBE_SLED
SOLENOID_PROBE
FIX_MOUNTED_PROBE
Z_PROBE_ALLEN_KEY
HAS_Z_SERVO_PROBE
Z_PROBE_SLED
SOLENOID_PROBE
↧
Re: Problems with Marlin 2.0.3 compiling - Mega2560 error
Hello Terry, I have that same problem. How was it solved?
Thanks.
Thanks.
↧
↧
Re: Problems with Marlin 2.0.3 compiling - Mega2560 error SOLVED Myself
I suspect they only extracted the some files and not all files from the zip archive.
↧
Re: centrare ugello sul centro del letto
Forse è meglio che chiedi sul forum in italiano.
Saluti
Carlo D.
Saluti
Carlo D.
↧
Missing Headers in Marlin INO
Hi Guys, I'm really struggling to work this out!
When I download the Marlin zip from Github, most of the .h files are in a sub folder called src and don't get pulled into the IDE when I open the Marlin.ino file. Any idea why that is? I've tried several different versions and the 1.1.6 older ones have it but I need a more current version so I can use the example configs for a CR20 Pro.
Any help greatly appreciated!
Thank you :)
When I download the Marlin zip from Github, most of the .h files are in a sub folder called src and don't get pulled into the IDE when I open the Marlin.ino file. Any idea why that is? I've tried several different versions and the 1.1.6 older ones have it but I need a more current version so I can use the example configs for a CR20 Pro.
Any help greatly appreciated!
Thank you :)
↧
Re: Missing Headers in Marlin INO
Do not know why, Just know it complies fine.
I use NotePad++ to view the source in the other directories and make quick changes.
I use NotePad++ to view the source in the other directories and make quick changes.
↧
↧
Re: Missing Headers in Marlin INO
Thanks, I guess I'll just give it a bash as it is then!
↧
Re: Problems with Marlin 2.0.3 compiling - Mega2560 error SOLVED Myself
Quote
Dust
I suspect they only extracted the some files and not all files from the zip archive.
I downloaded the release version zip file from Marlinfw.org. The standard version without all of the extras and not the LITE either.
I did an "Extract here" which would have extracted all of the files.
Did an install of Martin and got that same error as Terry D.
All of this on a Raspberry Pi 2 Model B. With a 32Gb SD card.
Terry's job is apparently on an MS Windows box.
I also tried this install on my Win10 box and it compiled and uploaded to an Arduino Mega 2560 Rev 3 just fine. No errors.
So I don't think it is a problem with unzipped files.
↧
MAX31865 on BTT SKR 1.4 turbo LPC1769
Hello, I have a problem with trying to connect MAX31865 that works over SPI to BTT SKR 1.4 turbo in Marlin firmware.
I am using a PT100 temperature sensor on the hotend, and since I have very inaccurate temperature reading, I wanted to add MAX31865.
In the Configuration file, I choose -5 sensor and define the CS pin in the board .h file. After that, I got an error that there is no Adafruit_MAX31865 library. After installing it and adding to the platformio.ini file it was reporting error because of missing include file: WProgram.h.
I found somewhere that this is file is the same as Arduino.h so I switched that, and also there was a problem with the SPI mode. As suggested I changed it to SPI_MODE3 in Adafruit_MAX31865.cpp.
After all these changes, I am now able to build the code, but now I can see only Marlin logo on the screen. The printer is not accessible over UART a few seconds after it is turned on, and there is no possibility to access the SD card over USB.
I am still able to flash the board by loading the firmware on the SD card. I tried to disable display since it is also using SPI communication, but there was any effect on this problem.
I assume that there is some problem with SPI communication. Does anyone have some suggestions on what can I try to overcome this problem? Is there support for MAX31865 on LPC1769?
Thank you.
I am using a PT100 temperature sensor on the hotend, and since I have very inaccurate temperature reading, I wanted to add MAX31865.
In the Configuration file, I choose -5 sensor and define the CS pin in the board .h file. After that, I got an error that there is no Adafruit_MAX31865 library. After installing it and adding to the platformio.ini file it was reporting error because of missing include file: WProgram.h.
I found somewhere that this is file is the same as Arduino.h so I switched that, and also there was a problem with the SPI mode. As suggested I changed it to SPI_MODE3 in Adafruit_MAX31865.cpp.
After all these changes, I am now able to build the code, but now I can see only Marlin logo on the screen. The printer is not accessible over UART a few seconds after it is turned on, and there is no possibility to access the SD card over USB.
I am still able to flash the board by loading the firmware on the SD card. I tried to disable display since it is also using SPI communication, but there was any effect on this problem.
I assume that there is some problem with SPI communication. Does anyone have some suggestions on what can I try to overcome this problem? Is there support for MAX31865 on LPC1769?
Thank you.
↧
Manual homing
I have made myself a new 3D Delta printer, and I thought I was smart moving the motors to the bottom avoiding having any wire to the top. But it turned out to be almost impossible to attach the switches to do an auto-home.
So, for now, I will settle with doing a manual homing (aka push the platform to the top by hand). But I can't get Marlin to print. I thought I just needed to remove the auto-home command, but after that nothing happens. How can I tell Marlin that the printer is already homed and is ready to print?
So, for now, I will settle with doing a manual homing (aka push the platform to the top by hand). But I can't get Marlin to print. I thought I just needed to remove the auto-home command, but after that nothing happens. How can I tell Marlin that the printer is already homed and is ready to print?
↧
↧
Printing hangs when toggling pin
Hello all,
I made my own gcode to toggle the LED lighting of my printer.
I am working with Marlin V2.0 (newest).
I added the new gcode (777) function to gcode/gcode.cpp (inside the switch case of "GcodeSuite::process_parsed_command") and also to gcode/gcode.h to the class "GcodeSuite".
For the actual code I added a new file called 777.cpp with the following content:
This is working fine, but when I am printing an then toggle the LEDs the printing pauses for about 2s and continues then. This only happens when switching off (S=0)... This happens with the T command and the S command.
To send the gcode and control the printer I use a MKS TFT32 V3.0. My Mainboard is Bigtreetech SKR V1.3.
Does anyone have an idea what can cause this behaviour?
Or does anyone knw where to post that? (Github as bug?)
Thank you in advance
I made my own gcode to toggle the LED lighting of my printer.
I am working with Marlin V2.0 (newest).
I added the new gcode (777) function to gcode/gcode.cpp (inside the switch case of "GcodeSuite::process_parsed_command") and also to gcode/gcode.h to the class "GcodeSuite".
For the actual code I added a new file called 777.cpp with the following content:
#include "../../inc/MarlinConfig.h" #include "../gcode.h" #include "../../MarlinCore.h" /** * M777: Switch printer lighting on/off * * P(pin) - Pin number * T(bool) - Toggl lighting on/off * S(state) - Switch lighting on if 1 and off if 0 */ void GcodeSuite::M777() { const int pin_index = PARSED_PIN_INDEX ('P', GET_PIN_MAP_INDEX (LED_PIN)); //SERIAL_ECHO_MSG("pin_index: ", pin_index); if (pin_index < 0) return; const pin_t pin = GET_PIN_MAP_PIN(pin_index); if(parser.seenval('S')) { const byte status = parser.value_byte(); if(status == 1) { pinMode(pin, OUTPUT); extDigitalWrite(pin, 1); }else if(status == 0) { pinMode(pin, OUTPUT); extDigitalWrite(pin, 0); }else { return; } } if(parser.seenval('T')) { pinMode(pin, OUTPUT); extDigitalWrite(pin, !extDigitalRead(pin)); } }
This is working fine, but when I am printing an then toggle the LEDs the printing pauses for about 2s and continues then. This only happens when switching off (S=0)... This happens with the T command and the S command.
To send the gcode and control the printer I use a MKS TFT32 V3.0. My Mainboard is Bigtreetech SKR V1.3.
Does anyone have an idea what can cause this behaviour?
Or does anyone knw where to post that? (Github as bug?)
Thank you in advance
↧
Re: Manual homing
... after manual homing you can set your actual position to XYZ=0,0,0 with "G92 X0 Y0 Z0" ...
↧
Re: Printing hangs when toggling pin
I don't thinks its causing your delay but if's are slow, use a switch statement
eg
eg
if (parser.seenval('S')) { switch (parser.value_byte()) { case 0: pinMode(pin, OUTPUT); extDigitalWrite(pin, 0); break; case 1: pinMode(pin, OUTPUT); extDigitalWrite(pin, 1); break;; default: return } }
↧
Re: Printing hangs when toggling pin
Thank you for your suggestion!
But a if statement can't cause such delays. A if statement only needs a few assembly instuctions and with a clock frequency of over 70MHz therefore some 100ns... This has to be a firmware bug
But a if statement can't cause such delays. A if statement only needs a few assembly instuctions and with a clock frequency of over 70MHz therefore some 100ns... This has to be a firmware bug
↧
↧
Marlin Speaker / Buzzer control
Can someone point me to the part(s) of marlin that tells a 3D printer board (Creality3D 1.1.3) to send a signal to a Speaker or Buzzer (CR10_STOCKDISPLAY with by default a multi tone piezo buzzer(?)) when using an M300 command or when navigating in the printer menus?
Originally (Marlin 1.1.6) by sending an M300 command to the printer, I was able to make the stock displays buzzer to make different tones, in order to make an "end of print" music. But then I switched out the board to an SKR Mini, and now (2.0.x) when either defining speaker in marlin it doesn't makes any sound or by defining buzzer it makes a sound when navigating in the menus or with an M300 command, but only in a single frequency. I'm interested in the marlin(?) code(s) that tells the buzzer to make a sound in a specific frequency, and if maybe that can be changed.
Thanks in advance.
Originally (Marlin 1.1.6) by sending an M300 command to the printer, I was able to make the stock displays buzzer to make different tones, in order to make an "end of print" music. But then I switched out the board to an SKR Mini, and now (2.0.x) when either defining speaker in marlin it doesn't makes any sound or by defining buzzer it makes a sound when navigating in the menus or with an M300 command, but only in a single frequency. I'm interested in the marlin(?) code(s) that tells the buzzer to make a sound in a specific frequency, and if maybe that can be changed.
Thanks in advance.
↧
Re: Marlin Speaker / Buzzer control
By default Marlin is set for buzzer with a fixed frequency. If you have a speaker enable it below.
//#define SPEAKER
The Buzzer frequency is set in the lines below.
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000
Then you can Test audio output with G-code M300 S-frequency Hz: P-duration ms>
//#define SPEAKER
The Buzzer frequency is set in the lines below.
//#define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100
//#define LCD_FEEDBACK_FREQUENCY_HZ 1000
Then you can Test audio output with G-code M300 S-frequency Hz: P-duration ms>
↧
Re: Marlin Speaker / Buzzer control
Yes, I know about the #define SPEAKER / BUZZER, and the other ones too, but by changing the LCD_FEEDBACK_FREQUENCY_HZ the frequency of the sound doesn't changes, as if that would be the case then the M300 command would work perfectly.
But I don't know if the frequency that I hear when navigating in the printer is specified somewhere in marlin or is it because something else.
Anyway, I appreciate the answer.
But I don't know if the frequency that I hear when navigating in the printer is specified somewhere in marlin or is it because something else.
Anyway, I appreciate the answer.
↧