Welcome! Log In Create A New Profile

Advanced

setting up dual y axis on creality v4.2.7

Posted by Jmartens1114 
setting up dual y axis on creality v4.2.7
November 17, 2022 01:32PM
jmartens1114

hi everyone. i would like to ask if anyone has setup dual y axis motor on this board? most of the examples on intrnet are boards with dual extruder outputs on the board and are using e1 as the Y2. On the creality v4.2.7 it only has 4 total motor outputs. im going to use this board to make an etching laser and i would like to have dual y axis motors because of the length of the bed to drive the gantry. i dont need E0 or Z outputs on boards but i would like to use the Z axis output as Y2 axis output. has anyone ever tried this??
thank you for reading this.
jerry
Re: setting up dual y axis on creality v4.2.7
November 17, 2022 06:49PM
adding or removing an axis is no trivial change (ie not a one line change)

To remove Z and add in Y2 you need to make these changes

From stock Marlin bugfix 2.1.x Configs.

Read through what was changed and apply to your Configs

Important you must be using a fairly recent version of marlin to do this. Making Z optional is a recent addition


diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h
index 87a98298a5..052ece4414 100644
--- a/Marlin/Configuration.h
+++ b/Marlin/Configuration.h
@@ -87,7 +87,10 @@
 
 // Choose the name from boards.h that matches your setup
 #ifndef MOTHERBOARD
-  #define MOTHERBOARD BOARD_RAMPS_14_EFB
+  #define MOTHERBOARD BOARD_CREALITY_V427
+  #define Y2_STEP_PIN                        PB6
+  #define Y2_DIR_PIN                         PB5
+  #define Y2_ENABLE_PIN                      PC3
 #endif
 
 /**
@@ -98,7 +101,7 @@
  *
  * :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
  */
-#define SERIAL_PORT 0
+#define SERIAL_PORT 1
 
 /**
  * Serial Port Baud Rate
@@ -160,9 +163,9 @@
  */
 #define X_DRIVER_TYPE  A4988
 #define Y_DRIVER_TYPE  A4988
-#define Z_DRIVER_TYPE  A4988
+//#define Z_DRIVER_TYPE  A4988
 //#define X2_DRIVER_TYPE A4988
-//#define Y2_DRIVER_TYPE A4988
+#define Y2_DRIVER_TYPE A4988
 //#define Z2_DRIVER_TYPE A4988
 //#define Z3_DRIVER_TYPE A4988
 //#define Z4_DRIVER_TYPE A4988
@@ -1036,7 +1039,7 @@
 // extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
 #define USE_XMIN_PLUG
 #define USE_YMIN_PLUG
-#define USE_ZMIN_PLUG
+//#define USE_ZMIN_PLUG
 //#define USE_IMIN_PLUG
 //#define USE_JMIN_PLUG
 //#define USE_KMIN_PLUG
@@ -1168,16 +1171,16 @@
 /**
  * Default Axis Steps Per Unit (linear=steps/mm, rotational=steps/°)
  * Override with M92
- *                                      X, Y, Z [, I [, J [, K...]]], E0 [, E1[, E2...]]
+ *                                      X, Y [, Z [, I [, J [, K...]]]], E0 [, E1[, E2...]]
  */
-#define DEFAULT_AXIS_STEPS_PER_UNIT   { 80, 80, 400, 500 }
+#define DEFAULT_AXIS_STEPS_PER_UNIT   { 80, 80, 500 }
 
 /**
  * Default Max Feed Rate (linear=mm/s, rotational=°/s)
  * Override with M203
- *                                      X, Y, Z [, I [, J [, K...]]], E0 [, E1[, E2...]]
+ *                                      X, Y [, Z [, I [, J [, K...]]]], E0 [, E1[, E2...]]
  */
-#define DEFAULT_MAX_FEEDRATE          { 300, 300, 5, 25 }
+#define DEFAULT_MAX_FEEDRATE          { 300, 300, 25 }
 
 //#define LIMITED_MAX_FR_EDITING        // Limit edit via M203 or LCD to DEFAULT_MAX_FEEDRATE * 2
 #if ENABLED(LIMITED_MAX_FR_EDITING)
@@ -1188,9 +1191,9 @@
  * Default Max Acceleration (speed change with time) (linear=mm/(s^2), rotational=°/(s^2))
  * (Maximum start speed for accelerated moves)
  * Override with M201
- *                                      X, Y, Z [, I [, J [, K...]]], E0 [, E1[, E2...]]
+ *                                      X, Y [, Z [, I [, J [, K...]]]], E0 [, E1[, E2...]]
  */
-#define DEFAULT_MAX_ACCELERATION      { 3000, 3000, 100, 10000 }
+#define DEFAULT_MAX_ACCELERATION      { 3000, 3000, 10000 }
 
 //#define LIMITED_MAX_ACCEL_EDITING     // Limit edit via M201 or LCD to DEFAULT_MAX_ACCELERATION * 2
 #if ENABLED(LIMITED_MAX_ACCEL_EDITING)
@@ -1685,7 +1688,7 @@
 // :[-1,1]
 #define X_HOME_DIR -1
 #define Y_HOME_DIR -1
-#define Z_HOME_DIR -1
+//#define Z_HOME_DIR -1
 //#define I_HOME_DIR -1
 //#define J_HOME_DIR -1
 //#define K_HOME_DIR -1
@@ -2096,7 +2099,7 @@
 #endif
 
 // Homing speeds (linear=mm/min, rotational=°/min)
-#define HOMING_FEEDRATE_MM_M { (50*60), (50*60), (4*60) }
+#define HOMING_FEEDRATE_MM_M { (50*60), (50*60) }
 
 // Validate that endstops are triggered on homing moves
 #define VALIDATE_HOMING_ENDSTOPS
@@ -3210,7 +3213,7 @@
 // Use software PWM to drive the fan, as for the heaters. This uses a very low frequency
 // which is not as annoying as with the hardware PWM. On the other hand, if this frequency
 // is too low, you should also increment SOFT_PWM_SCALE.
-//#define FAN_SOFT_PWM
+#define FAN_SOFT_PWM
 
 // Incrementing this by 1 will double the software PWM frequency,
 // affecting heaters, and the fan if FAN_SOFT_PWM is enabled.
diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h
index 9a54b10b82..090c9baad7 100644
--- a/Marlin/Configuration_adv.h
+++ b/Marlin/Configuration_adv.h
@@ -876,8 +876,8 @@
 
 //#define SENSORLESS_BACKOFF_MM  { 2, 2, 0 }  // (linear=mm, rotational=°) Backoff from endstops before sensorless homing
 
-#define HOMING_BUMP_MM      { 5, 5, 2 }       // (linear=mm, rotational=°) Backoff from endstops after first bump
-#define HOMING_BUMP_DIVISOR { 2, 2, 4 }       // Re-Bump Speed Divisor (Divides the Homing Feedrate)
+#define HOMING_BUMP_MM      { 5, 5 }          // (linear=mm, rotational=°) Backoff from endstops after first bump
+#define HOMING_BUMP_DIVISOR { 2, 2 }          // Re-Bump Speed Divisor (Divides the Homing Feedrate)
 
 //#define HOMING_BACKOFF_POST_MM { 2, 2, 2 }  // (linear=mm, rotational=°) Backoff from endstops after homing
 //#define XY_COUNTERPART_BACKOFF_MM 0         // (mm) Backoff X after homing Y, and vice-versa
@@ -1086,7 +1086,7 @@
   //#define SHAPING_MENU        // Add a menu to the LCD to set shaping parameters.
 #endif
 
-#define AXIS_RELATIVE_MODES { false, false, false, false }
+#define AXIS_RELATIVE_MODES { false, false, false }
 
 // Add a Duplicate option for well-separated conjoined nozzles
 //#define MULTI_NOZZLE_DUPLICATION

Edited 4 time(s). Last edit at 11/17/2022 07:28PM by Dust.
Re: setting up dual y axis on creality v4.2.7
November 17, 2022 09:35PM
Wow thanks I’ll give it a try.
Thank you for your hard work!!
VDX
Re: setting up dual y axis on creality v4.2.7
November 18, 2022 06:47AM
Quote

Wow thanks I’ll give it a try.
Thank you for your hard work!!

... I'll second it smileys with beer


Viktor
--------
Aufruf zum Projekt "Müll-freie Meere" - [reprap.org] -- Deutsche Facebook-Gruppe - [www.facebook.com]

Call for the project "garbage-free seas" - [reprap.org]
Re: setting up dual y axis on creality v4.2.7
November 19, 2022 04:38PM
Hi I’m truly thankful for your help but I must ask for some more help.
I’ve fallen short on being able to compile with the changes you’ve given me.
I keep getting a sanity check error “y2_driver_type is not recognized”
In sanity check it sez “then z2 pins are also needed”
I thought I was to enter those after the motherboard entry?
I enters the tmc2208_stand-alone like the former x axis entry.
Thanks if you read this
Jerry
Re: setting up dual y axis on creality v4.2.7
November 19, 2022 05:42PM
Oh boy! Sorry but I found and error in one of the entries I made.
After disabling babystepping for another error it compiled. Now I just have
To test it.
Thank you so much.
Are you the same Dust that wrote the v4.2.7 firmware I’m using from marlin?
If so nice work!!
Jerry
Re: setting up dual y axis on creality v4.2.7
November 19, 2022 07:10PM
@Jmartens1114

I contribute to Marlin firmware code and have created example config files.

Not sure what your referring to but, as far as I know there is only one "Dust" related to Marlin firmware and Configs, and it is myself.

Edited 2 time(s). Last edit at 11/19/2022 07:12PM by Dust.
Re: setting up dual y axis on creality v4.2.7
November 19, 2022 07:54PM
Yessir. I just wish to pass my thanks again.
Again nice work !!!!!’nn
Re: setting up dual y axis on creality v4.2.7
November 21, 2022 07:14AM
Good morning! I hope your all doing well!
Upon testing the changes I can’t get Y2 to move.
It feels as if it’s enabled but it doesn’t move.
In your first set of changes we’re changing and adding
Defines for Y2 pins, am I supposed to make those changes elsewhere?
They show up in a search for PB5, like in pins_creality_v4.2.7.h.
Do these also need updating?
Thank you for your time and energy!!!
Jerry
Re: setting up dual y axis on creality v4.2.7
November 21, 2022 03:44PM
HI, well i got brave and tried to edit on my own. it works. i just have to reverse the rotation. im now going on to trying to get the laser workng again. thanks to all
jerry
Re: setting up dual y axis on creality v4.2.7
November 22, 2022 09:23AM
good morning, i have 2 question for @dust or anyone. ive gotten the motors going same direction but they are at different speeds. from what i understand the drivers on this board (v4.2.7) are tmc standalone and i checked the settings in config adv and they re the same except current. is there another spot i should be checking?
do you know about laser setup with this board or should i start another thread in forum? id like to shut off soft fan control and use hard fan control in its place but the firmware states there mght be an issue with heat in mosfets, should i stay away?
thanks for your hard work and time
jerry

Edited 1 time(s). Last edit at 11/22/2022 09:24AM by Jmartens1114.
Re: setting up dual y axis on creality v4.2.7
November 22, 2022 02:58PM
The stepper drivers are standalone, Which means that Marlin cannot configure them beyond steps/mm and feedrates

Current is set with sliver metal pots on the Motherboard

The Y2 steps/mm, and feedrates etc in Marlin are just the Y steps/mm etc


re lasers

You should watch [www.youtube.com] Laser safety video.

Should start a new thread for lasers.
Re: setting up dual y axis on creality v4.2.7
November 22, 2022 04:41PM
As always thank u for your help!
Re: setting up dual y axis on creality v4.2.7
November 25, 2022 02:53PM
Good afternoon!
Question for @dust
Kid sir I’ve lost control of Y2. There’s no output from Z socket (now y2)
Should I start over with the marlin build to make sure something in the
Firmware isn’t corrupt?
Both motors work if I plug into Y socket.
When the two motors are hooked up to board I ask
Y axis to move one side will move the other just locks in place like it’s enabled but doesn’t
Know which way to go. I was burning tiles yesterday no problems ( not very good looking but still it worked)
Started to try to figure out if frequency was too slow and got tired and shut it down.
Brought it to work the next day and everything fell apart. If you have time please advise?
Thank you for reading this
Re: setting up dual y axis on creality v4.2.7
November 25, 2022 03:01PM
Hi it just occurred to me that I should try the stock firmware and it works. So I’m going to
Re compiler the work and try. Sorry
Sorry, only registered users may post in this forum.

Click here to login