Welcome! Log In Create A New Profile

Advanced

Marlin Diamond Hotend

Posted by h4nc 
Marlin Diamond Hotend
January 09, 2017 12:04PM
Hey!
I have a Prusa i3 Hephestos and I will install the Diamond Hotend soon.
I have a question regarding the firmware.

At reprep.me they recommend "Marlin - The Diamond Hotend version" [github.com]

I actually use Marlin RC8 now. Is it possible to customize RC8 to the Diamond Hotend or did they change more than the config in the "Diamond Hotend version"? What do I have to change?

Thx!
Re: Marlin Diamond Hotend
January 09, 2017 01:26PM
If the Diamond Hotend version is on GitHub, it should be straight forward to see what they changed from the normal Marlin. And depending how much they changed, it shouldn't be too bad to cross those additions over to RC-8
Re: Marlin Diamond Hotend
January 14, 2017 01:26AM
I'm configuring RC8 for the Diamond Hotend.

I compared it with "Marlin - The Diamond Hotend version".

Changes have to be done in the configuration.h file and in the pins_ramps.h (in the old version that was only pins.h) file.

The configuration.h is done.

I have problems with the pins-files.

The section in the old version looks like that:
#define E0_STEP_PIN 26
#define E0_DIR_PIN 28
#define E0_ENABLE_PIN 24

RC8 has a additional Pin for each stepper:
#define E0_STEP_PIN 26
#define E0_DIR_PIN 28
#define E0_ENABLE_PIN 24
#define E0_CS_PIN 42

What does the CS_pin do? What does it stand for? Google did not help.

Thx!
Re: Marlin Diamond Hotend
January 14, 2017 11:50PM
CS is chip select... not used on standard stepper drivers.

From the code

#define X_CS_PIN 53
#define Y_CS_PIN 49
#define Z_CS_PIN 40
#define E0_CS_PIN 42
#define E1_CS_PIN 44

Non of these pins are used on a ramps board. (well they go to aux-2, and aux-3) not used normally.

Looking further threw the code I see

/**
* Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
*
* To use TMC2130 drivers in SPI mode, you'll also need the TMC2130 Arduino library
* (https://github.com/makertum/Trinamic_TMC2130).
*
* To use TMC2130 stepper drivers in SPI mode connect your SPI2130 pins to
* the hardware SPI interface on your board and define the required CS pins
* in your `pins_MYBOARD.h` file. (e.g., RAMPS 1.4 uses AUX3 pins `X_CS_PIN 53`, `Y_CS_PIN 49`, etc.).
*/

So these pins are used for SPI-configurable stepper drivers.

Edited 1 time(s). Last edit at 01/14/2017 11:53PM by Dust.
Re: Marlin Diamond Hotend
January 16, 2017 05:08AM
Thx, that worked. I commented those out. Now I'm able to use a expander board on aux-2.
Re: Marlin Diamond Hotend
May 03, 2017 09:31AM
Iam going to use cnc shield for 3rd extruder so the program is same for me or diffrent ?
Sorry, only registered users may post in this forum.

Click here to login