You are not logged in.

#1 2020-01-30 22:39:44

valstudent
Member
Registered: 2020-01-25
Posts: 18

Marlin Firmware with Kingprint MKS Gen L1.4

One more quick question as I am finishing up my custom printer.

I am using a Kingprint MKS Gen L 1.4 and was wondering if anyone has ever had any luck combining these two as the firmware for nanodlp and the steps they took to make them work together.

I have a DRV8825 driver that is for my stepper motors and will have 3 endstops.

Thanks!

Offline

#2 2020-01-31 00:41:56

bigfilsing
Member
Registered: 2016-11-20
Posts: 306

Re: Marlin Firmware with Kingprint MKS Gen L1.4

Hi
In my KLD1260 there's an MKS Gen Base V1.5.   I have recently re flashed the boards firmware to Marlin 1.9 and it works fine. 
I can guide you thru the process if you need help
20161128_171845.jpg?dl=0

Cheers

Offline

#3 2020-01-31 18:59:45

valstudent
Member
Registered: 2020-01-25
Posts: 18

Re: Marlin Firmware with Kingprint MKS Gen L1.4

That would be amazing if you could walk me through the process.

One question before I begin though is did you use the marlin firmware that was provided on the NanoDLP site or can you use any version of the marlin firmware to communicate with the software?? Because if that is the case I might be able to get a good start on this process with your help.

Thanks!

Offline

#4 2020-02-01 00:08:35

bigfilsing
Member
Registered: 2016-11-20
Posts: 306

Re: Marlin Firmware with Kingprint MKS Gen L1.4

A few years back you needed a modified version of Marlin.
The original issue was there was no feedback from the controller board ( firmware) that a specific action had taken place. Therefor you had to program delays into NanoDLP to allow time for certain things to happen Like:- lift printhead up & wait for 3 seconds, lower printhead & wait 1 second then turn on UV source ( or projector) for 8 seconds etc etc
So a few years back somebody modified Marlin so send serial info back to the Raspi ( NanoDLP)
and this made life easy and saved all the time wasted waiting for actions to complete.

So i would highly recommend Marlin version 1.9
To activate the NanoDLP functionality go to config_adv.h and scroll down to the bottom and un comment     #define NANODLP_Z_SYNC

Im assuming you know how to configure and upload firmware to your MKS Gen L 1.4

Offline

#5 2020-02-01 01:15:39

valstudent
Member
Registered: 2020-01-25
Posts: 18

Re: Marlin Firmware with Kingprint MKS Gen L1.4

Thank you so much for this clarification!

Now for my last couple questions:

I am assuming you are using just a basic version of marlin and not the edited file given from NanoDLP page due to the define you have given me. Correct?

Also, do you know if there is a way that the heat bed or any of the extruder/fans deliver 5V constantly on for my UVLED supply to always be on.

Is there any specific thing that needs to be done from the Nano config side for that to happen?

Because I am going to be having two extra fans with the LED supply.

But again thank you for all your help and clarification!

Offline

#6 2020-02-01 01:34:49

bigfilsing
Member
Registered: 2016-11-20
Posts: 306

Re: Marlin Firmware with Kingprint MKS Gen L1.4

. Hi

Yes correct ...... as of Marlin 1.8  support for NanoDLP is included as standard so there no need to download / use a modified version. 
So get Marlin 1.9 and start with that.

I recommend to focus on just the printer without NanoDLP first. You can test it with pronterface which is a good and simple way to confirm you have everything on the printer set up correctly.
  https://www.pronterface.com/
Only when you have confirmed the hardware & firmware are set up properly should you start the Raspi/NanoDLP interaction.

As for the 5volt fans. to the best of my knowledge there aren't any usable 5 volt outputs on the board
If you insist on using 5 volt fans the i suggest you use a buck convertor ( 12 > 5VDC)
Something like https://www.banggood.com/LM2596-DC-DC-V … rehouse=CN

Im a bit confused by your statement  "if there is a way that the heat bed or any of the extruder/fans deliver 5V constantly on for my UVLED supply to always be on."

What UV led supply do you have that needs 5 volts and why do you want it always On ????

Offline

#7 2020-02-01 01:44:12

valstudent
Member
Registered: 2020-01-25
Posts: 18

Re: Marlin Firmware with Kingprint MKS Gen L1.4

The reason being for me to have the UVLEDs always on is because I am doing a custom UV Photocuring Resin 3d printer.

So having the UV light always on is what I need and I tested it with a 5 v power supply and it worked perfect.

Like an elegoo mars or anycubic photon type.

Also, since there are no 5 volt outputs on the board are there any 12 volt outputs??

I may try and test the driver for the leds with a 12 V supply and see how that works if there are 12 volt outputs on the MKS!!

And I will definitely start with pronterface and work my way up that sounds like a plan!

I will also look into the 5V fan issue to because I am probably very wrong on that!

Offline

#8 2020-02-01 01:48:16

valstudent
Member
Registered: 2020-01-25
Posts: 18

Re: Marlin Firmware with Kingprint MKS Gen L1.4

One other question after looking at marlin,

//*******************************************************************************************************
#define NANODLP_Z_SYNC
#if ENABLED(NANODLP_Z_SYNC)
  //#define NANODLP_ALL_AXIS  // Enables "Z_move_comp" output on any axis move.
                              // Default behavior is limited to Z axis only.
#endif
//******************************************************************************************************

Should I uncomment the define inside of the if statement for all_axis??

And do you think Marlin 2.0.3 would still work or stick with Marlin 1.1.9???

Offline

#9 2020-02-01 04:35:48

bigfilsing
Member
Registered: 2016-11-20
Posts: 306

Re: Marlin Firmware with Kingprint MKS Gen L1.4

Assuming you have only one stepper motor and it is connected to the Z axis on your control board then there is no need to uncomment "define NANODLP_ALL_AXIS"

I guess Marlin 2.0.3 would work but i have only used it on 32bit FDM control boards and compiling it can be tricky ( need to use Atom or similar )
there is also no advantage to using that version ( the features in Marlin 2 arent applicable to DLP printing)

Stick with 1.1.9

Last edited by bigfilsing (2020-02-01 04:37:21)

Offline

#10 2020-02-05 22:46:32

valstudent
Member
Registered: 2020-01-25
Posts: 18

Re: Marlin Firmware with Kingprint MKS Gen L1.4

Hey bigfilsing,

I am having trouble connecting my board to the pi.
I am curious about what you put for your motherboard name because it always says ramps reconnect in my top right corner and I have moved to marlin 1.1.9.
I tried both versions of marlin to just so there is no misunderstanding.

  #define MOTHERBOARD BOARD_MKS_GEN_13 -> this is what I have my boards motherboard set to.

Here is my application log:
Error    0    2020-02-05 22:41:31.968496    SLAVE    Serial port could not be activated no such file or directory
Error    0    2020-02-05 22:39:56.202248    SLAVE    Serial port could not be activated no such file or directory
Error    0    2020-02-05 22:37:35.699134    SLAVE    Serial port could not be activated no such file or directory
Debug    0    2020-02-05 22:28:44.073457    WiFi    Connected to valpo-net
Warning    0    2020-02-05 22:28:24.38128    WIFI    Connecting to valpo-net
Debug    0    2020-02-05 22:28:24.070243    WiFi    Status Monitoring
Warning    0    2020-02-05 22:28:24.069897    WIFI    WIFI interface wlan0 detected
Warning    0    2020-02-05 22:28:23.897814    HMI    Start HMI display on /dev/ttyS0
Notice    0    2020-02-05 22:28:23.88294    Terminal    Terminal Reader Activated
Debug    0    2020-02-05 22:28:23.882769    Shutter    Shutter Close
Error    0    2020-02-05 22:28:23.854466    SLAVE    Serial port could not be activated no such file or directory
Notice    0    2020-02-05 22:28:23.853937    Hardware    Initializing build # 2555 generic

Thank you for your help again I am getting closer each time.

Offline

#11 2020-02-06 00:03:01

sinned6915
Member
Registered: 2019-08-22
Posts: 52

Re: Marlin Firmware with Kingprint MKS Gen L1.4

valstudent-

1. Which board do you mean when you are saying that you are trying to connect to the pi?
The Nextion via serial or the MKS via USB? 


3 comments-

1. Did you enable the serial port in raspi-config as outlined in the guide? you need to enable it before you can use it.

Did you switch to the advance mode and assign the serial port that the Nextion is connected to?

can you go to a shell prompt and do

 $ dmesg | grep tty 

does the serial port you are trying to connect the Nextion to show up there?

2. What baudrate did you try to assign in Marlin? Try sticking with 115200 for now.

3. What port did you assign in nanoDLP for the board address?

can you do a

 lsusb 

or

 ls /dev/tty* 

and verify the port with the MKS board not plugged and then with it plugged in?

Last edited by sinned6915 (2020-02-06 00:09:07)

Offline

#12 2020-02-06 01:14:19

bigfilsing
Member
Registered: 2016-11-20
Posts: 306

Re: Marlin Firmware with Kingprint MKS Gen L1.4

Hi

I would suggest the step by step approach rather than plugging everything in the trying to configure all at once.

Once you mother board is flashed can you connect to it and control it on a PC with Pronterface?
Then i would load NanoDLP onto the Pi and use putty to access it on the network ( while testing i prefer a hardwired connection rather than WiFi)
In the putty terminal window type  "ls /dev/tty "  to see all the ports
Then plug in the control board and do the command again . When you compare the outputs you should be able to see which port the board is connecting too .
Then in Nano DLP under setting> 3D Printer board"  you set the   " USBserialport address" to whatever its connecting to.  In my case /dev/ttyUSB0
When you've changed it be sure to scroll down and click the green SUBMIT button to confirm the change
That should at least get NanoDLP to connect to your control board
Good luck

Offline

#13 2020-02-06 14:47:55

valstudent
Member
Registered: 2020-01-25
Posts: 18

Re: Marlin Firmware with Kingprint MKS Gen L1.4

Hi,

I will do your second reply today.

To clarify where my real problems are currently:

Nextion will not connect via serial after following step by step twice now, but I have never seen the command "dmesg | grep tty" before so I will try this.

My MKS board works perfect with pronterface. After doing "ls /dev/tty*" there is no change in devices and as in your case and mine "USB0" remains on the list.

I will have to check the baudrate in my marlin I believe it is still at 115200.

I am hardwired in with pi to my internet.

Within the next two hours I will be troubleshooting all of your help.

"3. What port did you assign in nanoDLP for the board address?"
      - This is my biggest question that I do not have answered and must look at.

Thank You

Offline

#14 2020-02-06 16:22:07

valstudent
Member
Registered: 2020-01-25
Posts: 18

Re: Marlin Firmware with Kingprint MKS Gen L1.4

Hello again,

My baudrate was set to 250000, just changed it to 115200 now.

pi@raspberrypi:~ $ dmesg | grep tty
[    0.000910] console [tty0] enabled
[    0.793480] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 81, base_baud = 0) is a PL011 rev2
[    5.101498] usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0

This is what I have so far.

Offline

#15 2020-02-06 16:43:52

valstudent
Member
Registered: 2020-01-25
Posts: 18

Re: Marlin Firmware with Kingprint MKS Gen L1.4

Hello again again,

After setting my baudrate to 115200 and then putting in USB0 in my USB/Serial Port Address I have it working with gcode commands!!

Thank you for your help!

I am not getting the nextion display at all but that is my next battle!

Offline

#16 2020-02-06 16:52:01

valstudent
Member
Registered: 2020-01-25
Posts: 18

Re: Marlin Firmware with Kingprint MKS Gen L1.4

Hello again again,

After setting my baudrate to 115200 and then putting in USB0 in my USB/Serial Port Address I have it working with gcode commands!!

Thank you for your help!

I am not getting the nextion display at all but that is my next battle!

Offline

#17 2020-02-06 22:26:45

valstudent
Member
Registered: 2020-01-25
Posts: 18

Re: Marlin Firmware with Kingprint MKS Gen L1.4

Bigfilsing,

Another question for you after testing the MKS all day today!

Fan works perfect, and I am getting used to the motor speeds and accelerations and may ask about that in the future.

My big question is how do I output a constant 12 V from either the E1 or E0 cartridge heaters or the Heated Bed below.

MKS

Is there some specific addition to the marlin code that I must do???
This is for the power to the UV Led driver.

Also, do you know specifics for motor speed, feed rate, acceleration that I should put for the z stepper motor using a DRV8825 driver?

I doubled it to 8000 like most tutorials I have seen on the driver says but I just wanted to check

Thanks Again!!!

Offline

#18 2020-02-07 00:40:39

bigfilsing
Member
Registered: 2016-11-20
Posts: 306

Re: Marlin Firmware with Kingprint MKS Gen L1.4

Hi ..Good to see you make progress
Lets focus on Z movement
The setting in Marlin is defined as Esteps per mm  and can be configured in config.h line
#define DEFAULT_AXIS_STEPS_PER_UNIT   { 80, 80, 1600, 400 }     ( notated in X <Y,Z,E)  ( in example 1600 is Z)
Fist you need to confirm how you have the DRV8825 configured for microsteps 
Each driver is configured with the jumpers directly below the driver ( Called subdivision in the picture you posted)
Usually when all jumpers are fitted it means max microstepping ( If i remember correctly this is 32 for DRV's)This in theory gives you a higher resolution.
But please check your motherboard info and driver info

DRV8825 arent very popular nowadays now that Trinamic drivers have become more affordable , but they are pretty good for a DLP printer as they have high torque and are quite voltage tolerant

Ultimately the correct Esteps is a combination of stepper driver setting , marlin firmware setting & the pitch of your lead screw.
There are loads of tutorials on how to set this up for 3D printers
So again get it set up and working correctly in Pronterface

Heater outputs / Marlin
Set up the standard way E0,E1 +Heated bed are controlled by PID control loops Changing their function could be tricky ( but im sure there is a way -- I just have never done it)
To start with i would recommend you use the fan output as that is easily controlled by M106 commands in Nano DLP.
As you can see on your control board it has the same type MOSFET so is just as power full as E0 or E1

Can you post some more info on your UV LED driver and UV LED arrangement ?

Last edited by bigfilsing (2020-02-07 00:45:58)

Offline

Board footer

Powered by FluxBB