Page 3 of 4

Re: Marlin with: MKS GEN 1.4 + TMC2130

Posted: Mon Jan 08, 2018 3:49 am
by mesnik
Ahh, I am going to try it that way! Fans should be in this week. I will watch his video...and you know me! I will come with questions!!

Re: Marlin with: MKS GEN 1.4 + TMC2130

Posted: Mon Jan 08, 2018 5:47 pm
by oakdesign
That's the section in Marlin configuration_adv.h to enable the controller fn feature and set Pin D5 as signal pin

Code: Select all

/**
 * Controller Fan
 * To cool down the stepper drivers and MOSFETs.
 *
 * The fan will turn on automatically whenever any stepper is enabled
 * and turn off after a set period after all steppers are turned off.
 */
#define USE_CONTROLLER_FAN
#if ENABLED(USE_CONTROLLER_FAN)
  #define CONTROLLER_FAN_PIN 5  // Set a custom pin for the controller fan
  #define CONTROLLERFAN_SECS 60          // Duration in seconds for the fan to run after all motors are disabled
  #define CONTROLLERFAN_SPEED 255        // 255 == full speed
#endif

Re: Marlin with: MKS GEN 1.4 + TMC2130

Posted: Mon Jan 08, 2018 10:10 pm
by mesnik
Thanks!!! That makes it easier... I will report back...

Re: Marlin with: MKS GEN 1.4 + TMC2130

Posted: Tue Jan 09, 2018 1:18 am
by mesnik
Okay, couple of questions as far as this auto fan...

One, at 5v, it doesn't blow too hard... can we switch it to 12v? If using more than one fan, do I hook them up in parallel in the same pin or add another pin to the code? And finally, does it have to be a fan with 3 wires? The one with 2 wires just run continuously.

On a different but similar topic, I saw just below this feature that you can set up the hotend fan to turn off if the extruder is not hot enough... that would be nice as well instead of hearing than fan going and going...and here, again, will be needed 3-wire fan?

: )

Re: Marlin with: MKS GEN 1.4 + TMC2130

Posted: Tue Jan 09, 2018 9:46 am
by oakdesign
Image

2 wire Fan if you want to control every fan on it's own use one IRF520 per device. They are les than 1$ per pcs. If you are using the pins D4,5,6,11 on the servo header these are all PWM capable so for the the controller fan for example you can set the value from
0 = 05 to 255 = 100% fan turning

Code: Select all

#define CONTROLLERFAN_SPEED 255        // 255 == full speed

Re: Marlin with: MKS GEN 1.4 + TMC2130

Posted: Tue Jan 09, 2018 10:19 pm
by mesnik
Nice!!!! And they will operate at 12V, right! Okay, will order a couple and play with it...

Thanks!!!

Re: Marlin with: MKS GEN 1.4 + TMC2130

Posted: Sun Jan 21, 2018 2:05 am
by mesnik
Hey Oakdesign!

I got the fans to work! I actually hooked up the controller fans AND the extruder fan. So now the extruder fan goes off after the extruder goes down passed 50 deg. It is nice not having to hear the noise while not printing anything. The Titan Aero fan is mounted right no the cooling fins...

Thanks for all the help!!! I even got my SD to work!

I have a temporary board bracket and now have to design something more permanent to accommodate all the hardware!!!!
IMG_9775.jpg
IMG_9775.jpg (2.39 MiB) Viewed 3971 times

Take care and thanks once more!

Re: Marlin with: MKS GEN 1.4 + TMC2130

Posted: Tue Feb 06, 2018 6:19 pm
by mario.stoilov
I have the same board and for some reason, my sensorless homing is not working. Motors spin in both directions, are quiet, get their current changed dynamically, but the moment I try to home, It just decides that its current position is the home (says that the endstop is there). If I disconnect the S on the endstop, it crashes in the printer (obvious result, but still :D).

Can anyone lend a hand?

Re: Marlin with: MKS GEN 1.4 + TMC2130

Posted: Wed Feb 14, 2018 8:21 am
by mesnik
Hi there,


I can't be of much help on this as I am not using the sensorless feature...


Sorry!!


But I keep an eye out here as I would be interested on that as well!!!

Re: Marlin with: MKS GEN 1.4 + TMC2130

Posted: Sat Mar 03, 2018 3:18 am
by arminj
Did you get the TMC2130's to work? Sounds like you did... Congratulations! I am trying to get some TMC2130's to work on MKS Gen V1.4 board, and, since you got yours running, am wondering if you could steer me in the right directions:

Did you solder the pad on the underside of the TMC2130 or leave it stock without any modifications?
Are the jumpers configured or left out?
How did you configure SPI?

I'm building a D-Bot CoreXY. I've configured and loaded Marlin 1.1.8, wired the RepRapDiscount Full Graphic Smart Controller (it works just fine) and the X and Y drivers to a couple of steppers. I'm not sure that I've got the TMC's set up correctly in Marlin. The steppers don't do anything--not even a sound. So I'm wondering whether I've configured the TMCs wrong or need to populate the endstop pins on the board before anything will work. Thoughts?