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

#define ABL_UBL error (no replies)

$
0
0
hi there when trying to enable #define ABL_UBL i get a compile error

Arduino: 1.8.9 (Mac OS X), Board: "Arduino Mega ADK"

sketch/Creality_DWIN.cpp: In member function 'void RTSSHOW::RTS_Init()':
Creality_DWIN.cpp:302:27: error: 'z_values' was not declared in this scope
rtscheck.RTS_SndData(z_values[xCount][yCount] *1000, AutolevelVal + (showcount-1)*2);
^
sketch/Creality_DWIN.cpp: In member function 'void RTSSHOW::RTS_SndData(int, long unsigned int, unsigned char)':
sketch/Creality_DWIN.cpp:558:26: warning: right shift count >= width of type [-Wshift-count-overflow]
snddat.data[0] = n >> 16;
^
exit status 1
'z_values' was not declared in this scope

anyone know why this is and how to fix it?
thanks

Y Axis not moving fast. (no replies)

$
0
0
Good day All!

Into: I am using RAMBo v1.3 with Marlin FW 1.1.9 on my 3D printer.

Configuration :
My 3D printer is made out of aluminum extrusion and has a large print bed.
Travel limit for X is 500 mm, Y is 500mm, Z is 200mm.
The motors are all NEMA 23 motors.
I have 1 motor on X Axis, 2 motors on Y Axis, 2 motors on Z axis.
X and Y Axis is belt configuration. Z is on ballscrew.

On my Y Axis, I used the first Y motor, Y1, on the RAMBo Y Driver and second Y motor, Y2, on Extruder 1's driver, E1.
In the firmware, I enabled #define Y_DUAL_STEPPER_DRIVERS and set #define INVERT_Y2_VS_Y_DIR true

There is only 3 endstops - Xmin, Ymin, Zmin.

Problem:
The Y axis is slower than X Axis. I got the Y axis to travel a distance of 480 mm from 0 mm.

For X Axis, I can move the gantry fast at F15000 mm/m, but on my Y Axes (2 motors), they are moving at max F10000.

My feedrate; #define DEFAULT_MAX_FEEDRATE {250,250, 6, 250 }
#define DEFAULT_MAX_ACCELERATION { 800, 800, 100 , 1200 }
Jerk does not matter because this is at high speed from 0 mm to 480 mm.

I have gone through the Marlin 1.1.9 FW looking for anything related to feedrate, Dual motors.
Couldnt find anything.

Hence, do y'all know any idea? problems I am not aware?

Thanks in advance.

CNC/Laser Enable (2 replies)

$
0
0
Hi All it has been a while.

I am building a 4W blue laser engraver
I was using a Arduino Uno/CNC shield with GRBL firmware
Worked ok but was not fast enough max power on Laser was 1 W any higher would burn to dark (max speed achieved was 5000 mm/m) (when engraving images)
Been using Marlin firmware on 2 DIY 3D Printers for about 4 Years (Arduino Mega/Ramps 1.4 - Re-Arm/Ramps 1.4)

New Control Board
BIGTREETECH SKR Mini V1.1
CoreXY no Z axis
2 End Stops
.
When you enable "#define SPINDLE_LASER_ENABLE" does it automatically disable hotends, heatbed and thermisers ?
Or do I need to have thermistors connected or resisters ?
I know then you enable CNC/Laser that it implements CNC Gcode.

I am using PlatformIO to build Marlin 2.0 fighting with errors compiling

FAN0 inverted PWM? (3 replies)

$
0
0
Hey guys,
my Anycubic I3 Mega is acting a bit weird. A M106 S0 or M107 spins the fan up to 100% whereas M106 S255 makes it run at about 10%. There seems to be some kind of inverted PWM signal. It also won't turn off completely.

Could this be firmware related? I tried Marlin 1.1.9 and now 2.0 bet - makes no difference.
I tried to find something in the source code but couldn't find anything useful.

br st

need help to use 2.4" TFT LCD with marlin v2.0 (no replies)

$
0
0
Hi every one.
I have a 2.4" TFT LCD Shield for arduino Uno and Mega2560. It uses ILI9341 driver .
i searched the marlin pin assignment for RAMPS bud coulden't find any pin assignment for this type of lcd
Is there any way that i can use this LCD in marlin and RAMPS 1.4 for Hypercube 3D printer??
This shield in Aliexpress

What EEPROM ranges does stock marlin use? (2 replies)

$
0
0
Hello! I am making a custom firmware for better control of running a laser on the 3d printer. I have some values I want to store in the EEPROM, but do not know what ranges are used by stock marlin. can someone help me out here? thanks!

babystepping (no replies)

$
0
0
I tried to setup baby stepping on Marlin 1.1x and getting an error

SENDING:M290 Z0.05
echo:Unknown command: "M290 Z0.05"
SENDING:M290 Z-0.05
echo:Unknown command: "M290 Z-0.05"
'
Has marlin dropped support for baby stepping or is there something more I should be doing.

Marlin2 M701/M702 compiler error (1 reply)

$
0
0
Hello fellow printers,

I tried to enable the M701 and M702 gcodes today in config_adv but I get a compiler error that I cannot make sense of. I hope this makes more sense to one of you :)
Please find the error message in the pastebin link and a github link to my marlin2 config files etc.
Thank you very much for your help!
[pastebin.com]
[github.com]

Read Enstop Hit-State Before Homing (no replies)

$
0
0
Hi RepRap community,

first of all a big THANK YOU for all the information this forum provided for my little projects over the last years. This is my first question as an member of the RepRap Forum and I hope it is understandable and can also help other people in their quest. :)

My Setup:
I am using a MKS Gen 1.2 board (ATMEGA 2560 Processor) with Marlin 1.8.9 for controlling following components: Two bipolar stepper motors (z- and x-direction), RepRapDiscount Full Graphic Smart Controller, and two endstops (Zmin and Xmin). I "print" from SD-Card.

My Goal:
I want to configure Marlin that the state (open or triggered) of the Xmin endstop is checked before homing the z-axis. And if Xmin is triggered, the Stepper Motors should stop immediately (or not move at all) and the LCD should show a customized message.

What I already tried:
- I enabled ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED, ENDSTOPS_ALWAYS_ON_DEFAULT, SDSUPPORT and EMERGENY_PARSER
- Used M502, M500 before G28 and M540 afterwards
Expectation: When Xmin is triggered at the very beginning (before homing the z-Axis) or during the SD-Print the steppers should stop immediately.
Actual behavior: The z-Homing is executed even if Xmin is triggered. The steppers stop after homing and not immediately.

How to maybe solve the problem:
I would like to add a while-loop to Marlin. I think my while-loop has to be executed in endstops.cpp which is called from endstops.event_handler() in the main loop of Marlin_main.cpp.

So my idea is to add the following while-loop in endstops.cpp:

while (X_MIN_PIN) { //Condition is true when X_min is triggered
write specific Message to the status bar on the LCD; // Don´t know yet how to implement this...
immediately pause printer maybe via sending M0 or M112; // Don´t know this either.
}

I think M0 allows the controller to continue with the G-code when pressing a button on the LCD- that would be fine for me. Maybe someone can tell me if I am heading towards the right direction or if I am doing complete nonsense?
Any ideas are very much appreciated :) I wish you a great weekend.

Best regards
Sebastian

A certified (CE, UL, FCC...) PCB that can run Marlin (1 reply)

$
0
0
Hi,

Seems that the issue of certifying boards is not so much in the minds of printer makers and PCB makers... :)

Maybe someone here knows if there is any Arduino Mega 2560 board that is certified and for which Marlin can be adapted?

Obviously such a board could not be in the same RAMPS price range. That's perfectly OK.

I am working on building a custom printer and my customer has this requirement.
For development phase I am using an MKS board, but that would not be good enough when switching to "production".

Googling, I only came up with this Ultimaker board
Which I believe should have some certification since Ultimaker has their "declaration of conformity"

Any hint would be really appreciated!
Many thanks

Marlin Menue request (no replies)

$
0
0
I know I can set up Marlin to use M600 to enable me to change filament and that there is an option in the 'Tune' menu but that is only available during a print.

An option in the 'Prepare' menus to heat the hot end and load/unload filament would be both logical, after all you need filament loaded , and very useful.

I can do it from OctoPi but I'd like it on the printer :)

As I've setup my offsets and steps in the firmware is there a way of taking them off the menue? I don't want a accidental click messing things up.

There are probably other things on the menus I don't need, so maybe an option to edit the menue?


Regards aamcle

Merlin Guru - your help is required please? (no replies)

$
0
0
I have just completed building my R3 Lite CNC which has turned out to be a really interesting build and, more to the point, a good strong and rigid small CNC (with approx. 12" x12" work area) and is ideal for me as a worktop machine.

I had always intended to make this as what I would term as a 'headless' CNC - in that I wanted to use it rather like I use my 3D printer i.e. load program onto an SD Card, shove it into the SD slot and press 'Start' on the LCD screen and let it do its thing...

I started off with a Ramps 1.4 board which turned out to be a 'dud' and this was replaced by a MKS Gen L V1.0, which is identical config to the Ramps but has the Mega2560 on board.

I researched a lot before eventually coming across a setup by a guy called 'Congmanhtb', (https://www.youtube.com/watch?v=jlOyqca9AqM) who had a small 2418 CNC running Marlin. He graciously provided his Marlin setup as a download which I have been using since finishing my build.

It all works fine with just one exception, I cannot get the spindle control to work via the LCD - nor the coolant pump either for that matter, but as I don't have cooling, that really doesn't matter.

I have purchased what is called a hotbed expansion module - which is just a nice fat MOSFET (HA210N06), which I intend to use as the Spindle Control.

From the Congmanhtb video you can see that he has replaced the 'standard' Mosfet on the Ramps board and the spindle motor he has connects via the D8 connector terminals on the Ramps board.

I tried connecting my MKS setup (with the new HA210N06 Mosfet) in the same way - control wires to the hotbed connector - but I get NOTHING!, no movement from the spindle motor at all.

Can anyone tell me what I am doing wrong here? I thought that would be the right thing to do, there being many videos on youtube doing just as I have tried and they all seem to work fine.

Am I wrong in thinking that this maybe something to do with the Marlin setup not suiting the MKS Gen L V1.0 board but fine on a Ramps only - or could the problem be just tweaking of the Marlin firmware to suit this particular board.

I have attached the config files I am using Configuration.h and Configuration_adv.h as I understand that these are where the problems lie.

Any help from a GURU would be greatly appreciated.

PS. I did try contacting Congmanhtb via email but as I don't speak Vietnamese (and he clearly doesn't speak too much English) I fear there was little chance of a reply!

Marlin - setting up aNema 17 with planetary gearbox reduction (no replies)

$
0
0
Hi guys, I would like to ask for some ideas, because I've exhausted mines abut this.

For the Z axis I was using a stepper motor attached to some guide rails and was managed to get it working fine, but had to upgrade to a new motor with a 1:26.85 reduction gearbox.

The problem is, to any value of steps per mm that i put in from 50 to 2600 (the calculation of the correct value for this setup is 2600) I always get half turn on the shaft. Always the same movement for different step/mm value!

Is there any other setting in Marlin that controls this?

see specs here: link

I'm using Arduino Mega with Ramps 1.4 and Marlin firmware and full steps.

Settings on movement (note not using E movements):

#define DEFAULT_AXIS_STEPS_PER_UNIT { 3 , 3 , 2600 , 500 }
#define DEFAULT_MAX_FEEDRATE { 4000, 4000, 2000, 25 }
#define DEFAULT_MAX_ACCELERATION { 500, 500, 500, 50 }

#define DEFAULT_XJERK 5.0
#define DEFAULT_YJERK 5.0
#define DEFAULT_ZJERK 1.0
#define DEFAULT_EJERK 5.0

Thanks.

TMC2208 in UART mode on the SKR v1.3 (no replies)

$
0
0
I'm trying to get the SKR v.13 controller up and running with the TMC2208 stepper drivers. There are plenty of tutorials online on how to do this so it looks pretty easy. However, I cannot get communication with the driver to work. I am attaching my configuration files and the pins file I'm using.

I have removed the 4 jumpers under the driver and I have inserted a jumper on the XUART position to connect the UART to the LPC1768 GPIOs. The TMC2208 stepper driver I'm using is the v3 version from BigtreeTech. It has the J2 pads bridged so that PDN_UART is connected as needed. When I use the M122 command, I get:
Send: M122
Recv: 		X	Y
Recv: Enabled		false	false
Recv: Set current	600	800
Recv: RMS current	1049	1436
Recv: MAX current	1479	2025
Recv: Run current	18/31	25/31
Recv: Hold current	9/31	12/31
Recv: CS actual		0/31	0/31
Recv: PWM scale	0	0
Recv: vsense		0=.325	0=.325
Recv: stealthChop	false	false
Recv: msteps		256	256
Recv: tstep		0	0
Recv: pwm
Recv: threshold
Recv: [mm/s]
Recv: OT prewarn	false	false
Recv: OT prewarn has
Recv: been triggered	false	false
Recv: off time		0	0
Recv: blank time	16	16
Recv: hysteresis
Recv: -end		-3	-3
Recv: -start		1	1
Recv: Stallguard thrs
Recv: DRVSTATUS	X	Y
Recv: stst
Recv: olb
Recv: ola
Recv: s2gb
Recv: s2ga
Recv: otpw
Recv: ot
Recv: 157C
Recv: 150C
Recv: 143C
Recv: 120C
Recv: s2vsa
Recv: s2vsb
Recv: Driver registers:
Recv: 		X	0x00:00:00:00	 Bad response!
Recv: 		Y	0x00:00:00:00	 Bad response!
Recv: 
Recv: 
Recv: Testing X connection... Error: All LOW
Recv: Testing Y connection... Error: All LOW
Recv: ok

If I probe the UART pin on the stepper driver with an oscilloscope, I see what looks to be reads that never return data. Looking at the TMC2208 datasheet, I see the sync byte (0xA0) followed by a byte of zeroes, and a register value of 0x6F (0xF6 flipped MSB to LSB since the bits are transmitted LSB first) which is the DRV_STATUS register. The sequence is two reads about 11 mS apart and those are repeated every 500 mS.
[attachment 112432 DS1Z_QuickPrint2.png]

Can anyone see what's wrong here?

-- (1 reply)


Head does not move in x and y when trying to build UBL mesh (probes in same place repeatedly) (3 replies)

$
0
0
Hi all,

Does anyone know why the head doesn't move in x or y when attempting to build a UBL cold mesh?

FWIW I'm doing this from the LCD menu.

This is on a Bigtreetech skr1.3 and the Marlin 2.0 bugfix branch but I've seen the same behaviour on a RAMPS and Marlin 1.x. I guess it must be something in my configuration given that I've seen it in both, but the 2.0 config was done from scratch and I can't see anything obvious.

Configuration.h

Simulating printer head trajectory (2 replies)

$
0
0
Hi All,

I have a lulzbot Taz 6, which runs on merlin firmware. I'm working on a project where I want to track what happens during a 3D print, and compare that to gcode. Specifically, I put rotary encoders on each of the stepper motors for my printer, allowing me to record the print head's trajectory, and I want to compare that to the instructions that were sent to the 3D printer. This means I have to write a program to parse gcode and figure out where the print head should be at any given time. That is, I want to compare what actually happens during a print to what was intended by the gcode.

I notice that even when I run the printer very slowly, without any acceleration or jerk control, I'm not able to get the parsed gcode trajectory to perfectly line up with the encoder recordings. My assumption is that when there are a couple of lines of gcode like this:

G1 X30.000 Y30.000 F500
G1 X150.000 Y30.000 F500

the print head will go from (30, 30) to (150, 30) at a speed of 500 mm/minute. This would take 14.4 seconds, but in reality, it seems to take slightly longer. Does anyone know why it takes longer and how I can accommodate for that with my simulator? The printer isn't applying acceleration or jerk control, so I thought the times should exactly match up.

Thanks!

X_SERIAL_(RX|TX)_PIN information not recognized - compiler error (no replies)

$
0
0
Hello everybody,

I am trying to run my TMC2208s on my Anycubic i3 Mega in UART mode. All necessary hardware changes have been made and now I am running into an issue when I am trying to compile marlin.
Although I have correctly defined all pins in pins_TRIGORILLA_14.h (e.g. "#define X_SERIAL_TX_PIN 11") I get the error message that the pins have not been defined. The error message reads:


In file included from c:\users\andr~1\appdata\local\temp\arduino_build_355909\sketch\src\inc\marlinconfig.h:41:0,

from sketch\src\HAL\HAL_AVR\HAL.cpp:29:

c:\users\andr~1\appdata\local\temp\arduino_build_355909\sketch\src\inc\SanityCheck.h:1822:4: error: #error "TMC2208 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."

#error "TMC2208 on X requires X_HARDWARE_SERIAL or X_SERIAL_(RX|TX)_PIN."

Have I missed a place where I still need to add some information or have I added it incorrectly? I'd be very happy for every bit of help I can get here.

Thank you all very much!

End stops, steppers and display question (no replies)

$
0
0
Hi all

With M17/M18 one can enable and disable steppers
The M18 allows to selectively enable steppers- is this also possible to enable selectively- i.e. only X, Y or so?

Same for end stops
M121/M122, these are global, any chance to do this per endstop?

My application of Marlin is for a plotter, and need to change the readouts on the display- Nextion- suggestions please

Thx a lot guys, again

Best

Coolerooney

[Help] Print stops mid-print (Marlin) (no replies)

$
0
0
Hi,

I'm experiencing a very weird issue I'm unable to debug. I have a relatively small print I'm trying to print to test if the alignment of the nozzles on my dual extruder is correct, and whenever I try to print it (from the sd card reader), the printer just restarts itself without any visible errors. I sliced it with Slic3r PE, and then I tried to slice it with Prusa Slicer, both versions do the same even though the gcode is definitely not the same. The print always seems to stop around the same layer (layer 15 or so, but I don't know what exact layer it is).

I also tried printing while plugged in to the computer, as I thought the logs might spit out something helpful, but it didn't show any errors before stopping the print. Instead of just restarting the machine, this caused the temperature to drop ridiculously while the computer kept trying to send gcode commands to the printer though.

I thought this might be an issue with Marlin (was running 1.1.9) but I updated to the latest bugfix-2.0 branch and it's still happening, so that doesn't seem to be it.

Any clues how I might be able to debug this?

Here is the gcode, in case anyone can spot anything weird that I can't (it won't let me attach it): [www.dropbox.com]
Viewing all 2831 articles
Browse latest View live