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

Z-position Display hack (no replies)

$
0
0
It's been a while since I last hacked on Marlin software, probably when I built my first printer back in 2013...

I recently got a new printer (ender 3 v2) and noticed that it perpetually displays the Z offset in the display's status area. I'm used to the X,Y,Z display on the old LCD, and especially miss the current Z height.

This past weekend I pulled Marlin 2.0.7 and started digging through motion.cpp and the DWIN display code to see how it ticks.

I've created a feature called DWIN_ZPOS_DISPLAY_OVERRIDE which, when defined, writes out the current_position.z value from the motion planner, instead of the Z offset. I personally think this is more informative, but it's an option. I'll put it up in github in case others want it.

I've got two questions for others who are more familiar with the current firmware.
1) Is there documentation about the DWIN color display, regarding icons, what the rendering model is, etc? It looks like the firmware sends it drawing commands over a UART, which means the display unit has reference images to copy rectangles from for rendering.

2) The motion planner has the variable I mentioned above, current_position, which is actually the current target position. Is it correct to say that this value doesn't change say, while a motion command is being processed? I.e., that the value is "correct" at the end of the motion command?

RAMPS 1.4 + ARDUINO MEGA 2560 (no replies)

$
0
0
Hello there,

As i read ramps 1.4 is running 12V ( so power supply should be 12V or 12V) and ia it ok to run ramps 1.4 on
360W 24V.



LAST question:

I used ender 3 heared bed for my custom 3d peinter and its 24V. Whats the risk if i run it on 12V

DWIN display ICO tools (ender 3 v2) (no replies)

$
0
0
After doing some hacking on the default display of an ender 3 v2 (see Z-position display hack thread), I learned what the 9.ICO file is.

If you want to change display icons, the 9.ICO file is a container that contains 91 separate JPEG images that the firmware and display use to draw the UI. It's not a standard Windows .ICO file, but serves a similar purpose.

I've created some tools to extract the files from the 9.ICO file, which allows you to create your own should you want to. The tools also do the inverse, making a new .ICO file from a directory of images.

This is a pretty niche tool, but if you are interested in doing your own display hacking, check it out.

On github: dwin-ico-tools

Where are STP and DIR pins written to in 2.0 marlin firmware? (no replies)

$
0
0
I am adding a high-frequency GPIO expander for my esp32 to control 8 extruders and need to know where the DIR and STP pins are written to in the firmware so I can intercept the data and inject custom code to write to the GPIO expander instead. This is for a custom multi-jet 3d printer.

error message that prevents build (2 replies)

$
0
0
I am running Marlin 2.0.6 and just tried to run a build. I get this for an error message:

ModuleNotFoundError: No module named 'platformio.managers.package':
File "C:\users\doug\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 167:
env.SConscript(item, exports="env")
File "C:\Users\doug\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 598:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Users\doug\.platformio\packages\tool-scons\scons-local-4.0.1\SCons\Script\SConscript.py", line 287:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "J:\Marlin-2.0.6\buildroot\share\PlatformIO\scripts\common-dependencies.py", line 12:
from platformio.managers.package import PackageManager

I just started enabling BLTouch settings and tried to run the build. These errors kill the build before it even starts. The build worked last week, and the only changes were the ones to enable BLTouch. Can't see how that would stop it from even starting. I am building inside Visual Studio Code and Platformio. Any help would be greatly appreciated.

Print 3D DIY use motor step 5 phase with marlin. (no replies)

$
0
0
I make a 3d printer with x and y axes using a 5 phase stepper motor with drive autonic MD5-HD14X.
with pins CW + and CCW + connected to step and pulse, while 2 pins connected CW- and CCW- connected together and not connected to the GND pin on mother board (because when connected to the GND pin, the motor can not be controlled) The driver have not see pin En + and En- pins (it has pin hold off, I don’t sure this is pin En+ and En-)I can control motor move exactly by use LCD prepare -> move axis

One problem is that when I print the cube xyz to test the print, it is tilted at an angle as in photo. I try to increase the number of steps and it improves gradually but the angle still remains.
I think I have a firmwave problem because marlin doesn't have a 5 phase define driver, or I connect cable not true because I see a connect driver microstep with adruino, it has pin En+ connect to En, En-. CW- and CCW- connect to GND on mother board.
someone who has encountered similar problem please give me advice.
Attached image and manual driver file

Sr because my english very bad.

Marlin firmware for CNC router and laser (3 replies)

$
0
0
I am going to use Marlin firmware on my CNC3018 for milling or possibly laser also. My kit is: Arduino Mega 2560 R3, 12864 RepRapDiscount Full Graphic Smart Controller, RAMPS 1.4. I am a newbee and not able configure Arduino IDE corectly. Therefore, I decided to use an already-made firmware. Please give me a link to Marlin based cartesian milling or laser machine project.

SKR V1.4 Turbo Capacitive Sensor always reads open (no replies)

$
0
0
Hi, I have the new 1.4 Turbo board. I also have LJC18A3-B-Z/BX NPN NO DC 6-36V 300mA 1-10mm Capacitive sensor. Worked fine on previous 1.3 board. I know there might be an issue with the board resistor but can’t figure this out. It always shows as z: open. And yes, the sensor lights up when sensing.
I have tmc2209 with the diag pin cut off and jumper set to use uart.

Current code in configuration.h is: (I tried every combination I can think of and same issue, so lets start from here please).
//#define SENSORLESS_PROBING
#define AUTO_BED_LEVELING_BILINEAR
#define Z_SAFE_HOMING
//#define Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN
#define USE_PROBE_FOR_Z_HOMING
#define Z_MIN_PROBE_PIN P2_00
#define FIX_MOUNTED_PROBE

Current pins_BTT_SKR_V1_4.h
#define Z_DIAG_PIN P1_27 // Z-STOP
#ifdef Z_STALL_SENSITIVITY

#define Z_STOP_PIN Z_DIAG_PIN
#if Z_HOME_DIR < 0
#define Z_MAX_PIN P1_00 // PWRDET
#else
#define Z_MIN_PIN P1_00 // PWRDET
#endif
#else
#ifndef Z_STOP_PIN
#define Z_STOP_PIN P2_00 // Z-STOP
#endif
#endif
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN P2_00
#endif

Question about Junction deviation and Jerk (no replies)

$
0
0
Hi all, I have my custom printer working pretty well now and I'm experimenting with the Junction deviation settings along with linear advance.
Articles on lin advance talk about the extruder jerk settings. With junction deviation it says the jerk settings are disabled and the M503 only shows the J value.
The question is does JD control the jerk on the extruder also or does the extruder jerk setting still work even though it is not reported? The M205 E value is still accepted and marlin reports OK but how does it all work together?

Thanks

M581 Command not working printing in the air. (no replies)

$
0
0
Marlin 2.0.7 Anet A8 Clone , after instalation configured axes when homing everything is ok, but when printer starts on screen I see Z 5 after Z 15 and Z 0.3 and Z doesn't even move. I think in code it indicates to make Z ofset +10.
On M581 it gives

Bootloader/flash issues with Trigorilla board (Mega2560) (no replies)

$
0
0
I've replaced the stock display of my Anycubic i3 Mega S with a Fystec Mini 12864 (which is connected using the EXP1 and EXP2 headers). In the process, I've removed the "Switch" daughter-board from Anycubic and connected the endstops and other devices directly to the board.

Until then, I've uploaded new firmware binaries, using the Octoprint Firmware Flash plugin, which is basically using avrdude with the "wiring" "programmer" to flash the firmware using the USB connection and therefore the bootloader of the ATMega2560 MCU.

After reconfiguring and recompiling my Marlin sources, I built a new image and flashed it the same way... which also worked fine.

This is my current configuration: [github.com]

The display works and the printer too, although, I didn't do any detailed testing yet.

The problem is, that I can't upload new firmware using the USB connection (be it Octoprint or manually with avrdude) anymore. I always get a timeout error.

$ avrdude -p atmega2560 -c wiring -P /dev/ttyUSB0 -b 250000 -D -U flash:w:firmware.hex:i
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done.  Thank you.

I then used the ISP header and an USBasp adapter to burn the bootloader using the latest Arduino IDE.

After that, I can upload the software again, but only once! But as soon as the firmware is flashed any subsequent tries end in the same timeout error as before.

The only way is to reburn the bootloader every time I want to update the firmware. Or use the ISP interface to flash the firmware directly (... but then I get an checksum error... which maybe another issue).

I tried to press the reset button while uploading many times, at different times in the upload process, but this never worked.

So I assume, that the bootloader somehow gets damaged as soon as a new software is flashed. Also, maybe the reason isn't the display itself at all, but the larger firmware image.

Any ideas what to try next?

Marlin auf Tronxy X5SA 500 Pro Z-Motor (1 reply)

$
0
0
Hello everyone,

I m trying to run the Marlin firmware on my Tronxy X5SA as described on blogs.

Now I m facing the problems that only one Z Motor is turning and not the two.

I chassed the problem to the point that, the PINs in Marlin for

#define Z2_ENABLE_PIN
#define Z2_STEP_PIN
#define Z2_DIR_PIN

are incorrect.

Question: who do I get to know the right or the PINs of other Outputs?

Thank you in advance.

I m happy as well about any config that running on a chitu V6 board

cnc3018 + ender 3 pro board (no replies)

$
0
0
hey guys, so i bought an ender 3 pro, i also ordered the skr mini e3 v2 board and a cnc 3018 desktop engraver thingy-mebob

im going to be using the cnc engraver for making my own pcbs as i do alot of commision scale models as i can program up and install electronics for total customisation for the client.

now, i have the stock ender 3 pro board kicking around which i'd like to install into the cnc 3018 simply because it has various capabilities the arduino driven cnc3018 board doesnt have ports for. (afaik) also the marlin software is so much better than grbl junk.

im completely new to marlin so im wondering how difficult it is going to be? i plan on adding axis switches, ABL and some other junk to it but would it be difficult to modify marlin from the ender 3 board to allow bigger control over the cnc machine?

UBL Issue: Can't Use Full Build Plate - Z Screws Move Print Head Down When Near Right and Rear Edges of Build Plate:S (no replies)

$
0
0
Hi all, I'm having an issue with Marlin Unified Bed Leveling. It works great on most of the build plate but I can't print near the right or rear edges of the print bed because when I get within a couple centimeters, the nozzle dives down and gets too close to the bed to print. In the photo you can see that the corners of this print are squished down all the way so as to be basically non-existent even though the bed is level and mostly flat.

When this happens I can see that the Z screws are moving drastically down then up again. I output my UBL mesh map to my computer and there is nothing weird like 0 values on the edges or anything like that. All of the mesh values are reasonable and I put them into a mesh visualizer and it all looks continuous and smooth with a slight bowl shape. I also did "smart fill" via the LCD screen after building the mesh to fill in the spots where the sensor couldn't probe so the mesh is full and complete.

It's a clear boundary, not a gradual change, like an invisible force field on the right side and rear sides of the build plate. To clarify, the print head can move past this invisible line just fine all the way to the real edge, but whenever it's in this region, the nozzle gets pushed down against the plate by the Z screws so no filament can come out.

It's as if the UBL thinks it's going past the edge of the print bed when it's not. My BLTouch is mounted to the left of the nozzle so it's not an issue with it not being able to probe these areas as the sensor can easily access and probe these spots.

When I compiled Marlin, I used the exact measurements of this particular BLTouch mount which I got from the manufacturer/seller for the offsets so I'm pretty confident that part is configured properly. Is there something else I need to change in Marlin to allow UBL to work across the whole build plate?

Thanks!

-Sam

NEW e3d Tool Changer, stepper instead of servo (1 reply)

$
0
0
the new tool changer from e3d now uses a stepper motor to attach the tools. the implementation with a servo no longer works ...

I've found solutions with Duet2 or Klipper, but not for marlin 2.0.x.

Are there solutions for how an additional stepper could be integrated?

Adjust PWM Frequency? (no replies)

$
0
0
Hi all,
Modifying Marlin to work with my CNC setup running on RAMPS1.4, namely configuring the spindle speed control to D6 PWM. I have a chinese speed controller that accepts a PWM input via optocoupler. However it looks like it uses Mach 3 (~12V VPP 1,000-10,000 Hz) as shown by the documentation I was able to hunt down.
Scaled up the voltage from PWM via P55NF06L with 10k pull-up, voltmeter says the 0-12V PWM works nicely (yay).
Problem is frequency is way too slow by the look of things. When PWM is off, Spindle reads ~0V. But then no matter how I scale it, it's always stuck at 52V. I read that PWM on all pins is 490/980Hz by default, but can be adjusted up to 8MHz by adjusting the timers.
Then reading into some Marlin documentation I discover that D6 uses TIMER4A.
This looks like a custom timer breakout that doesn't quite fit the naming convention I've seen elsewhere on guidance for changing frequency.

Essentially I'm a little bit in over my head, looking to get pin D6 running at say, 10kHz, smack-bang in the middle of the accepted Mach3 range, and I would love any guidance on how!

Thank you very much for your time :D

Unable to compile Marlin 2.0.7.2 (1 reply)

$
0
0
I have modified and successfully compiled Marlin 1.9 for two other 3D printers.

I am trying to compile Marlin 2.0.7.2 using Arduino 1.8.13. I have selected;

Board: Arduino DUE (Native USB Port)

and modified configuration.h for;

// Choose the name from boards.h that matches your setup
#ifndef MOTHERBOARD
// #define MOTHERBOARD BOARD_RAMPS_14_EFB
#define BOARD_RAMPS4DUE_EFB
#endif

No other changes have been made.

See attached file for the long list of errors i am getting.

Any help would be appreciated.

Problem with bilinear bed leveling ... (no replies)

$
0
0
Hi, I have a Geetech Pruse I3 Pro C (Acrylic) with a BLTouch sensor and a plate glass bed - I know the bed is not level (it is low on the right - x axis).

I am using Marlin 2.0.5 and it is configured to use "bilinear" leveling with a 3x3 probing matrix and "extrapolate_beyond_grid" defined.
I also have PIDTEMP and PIDTEMPBED defined.

The problem I am seeing is that the extruder is not being lowered enough as it traverses the x axis from left to right. It is very
noticable in the first layer as the lines do not touch as it approaches he right hand edge for a large job.

Watching the z axis screws it is clear that the firmware is lowering the extruder --- but apparently just not enough.

In all other respects the printer is working well.

I could level the bed, but that rather goes against having the probe.

Any ideas? Am I missing something here ??

Regards,
Dave

Hotbed Issue (no replies)

$
0
0
I am having issue with my heat bed and I am pretty sure it is something to do with firmware. I am running Marlin 2.0 firmware on an arduino Mega 2560 with a Ramp 1.4, with two hotends and a heated bed.

Both hotends work, but my issue is that the heated bed never turns on. I know it is not the bed because I swapped cables from hotbed pins - D8 to Extruder 2 pins - D9. If I turn on extruder 2 in repetier, the heat bed starts warming up.

No matter what I do, I cannot get anything from D8. If I take a multimeter to it, I see no voltage. If I do the same to the extruder pins, I see voltage. (when extruders are on)

Anyone have any ideas? is there something I am missing in configuration?

Marlin 2.0x Y TMC2209 stepper driver not showing in M122 command (7 replies)

$
0
0
Recently, I was flashing new marlin onto my ender 3 running SKR E3 V1.2 with TMC2209 stepper drivers. When the machine booted up, I did a small check, that everything is working. When moving Y axis, it was makind a weird sound. I used pronterface and the command M122 to check if everything is ok. The only thing missing was Y axis, it didnt show up. Does anybody know what to do with it?
Viewing all 2831 articles
Browse latest View live