Support for new TMC2130 SSS (SilentStepStick) via SPI

123578

Comments

  • Tried pretty much every mosfet output except the one for the heated bed.
    Right now its on heater 2 (pin 12), settings are
    #define EXT0_EXTRUDER_COOLER_PIN ORIG_FAN2_PIN
    #define EXT0_EXTRUDER_COOLER_SPEED 255
  • Ah forgot to mention in case u should not be able to reproduce it,
    i got another radds in my sls-printer which i could test.
    But im not in a hurry since the old setup still works.

    Thanks anyway for ur effort! :)
  • Hi just tested the build for TMC2130 as well. Seems to be an inconsistency here, in printer.cpp the drivers are initialized with eg. EXT1_ENABLE_PIN, but in the config and pins.h it is E1_ENABLE_PIN.
    Exception is the CS PIN, wich is defined as EXT1_CS_PIN in config.h

  • @Simme You're right, that's a mistake. However, it's harmless and the the whole thing works as expected because the TMC2130Stepper library actually doesn't use the enable PIN. I even filed an issue about it and it got removed. All it really needs is the CS pin number.

    Have a look here where I discussed it with the maintainer of that library: https://github.com/teemuatlut/TMC2130Stepper/issues/19
  • When that change gets released in the library I will update Printer.cpp to only pass the CS pins to the library constructor.
  • edited February 2018
    Hello, I've got a CoreXY printer and steppers wired via SPI
    When I try to use X axis, only X motor move and if I try to use Y axis, only the Y motor move and no combination of both... settings in printer type is coreXY and if I replace the TMC by DRV 8825 everything work fine... What have I done wrong ???

    (I've also tried chop mode but motors are loud as hell !)
  • @alexsomesan got mine working by now, looks like my dc-dc-stepdown on the extruderfan interferred with the SPI,
    now with going straight from the powersupply to the mosfet and a added capacitor erverything works as expected :)
  • Flux said:
    @alexsomesan got mine working by now, looks like my dc-dc-stepdown on the extruderfan interferred with the SPI,
    now with going straight from the powersupply to the mosfet and a added capacitor erverything works as expected :)
    Awesome new, @Flux! Glad to hear it worked.

    I had a fan wired up the same as you mentioned and also played around with the PWM settings for it but I wasn't able to reproduce the problem. I didn't know about the DC-DC converted.
    I guess you're on 24v and trying to use a 12v fan? In that case, what works for me is to set the MAX_PWM for that fan at around 180-200 and put a resistor (5W one) in series with the fan to prevent the higher current. The resistor will get warm, but it works.
  • @Virtualchronos what is your value for DRIVE_SYSTEM in Configuration.h?
  • @alexsomesan Yeah its 24V - 5V and since i always got some of those little MP1584EN around i used one of them, didnt know they would interfere like this.
    But gladly i got Mister @RAyWB to teach me and tell me how shitty my electronics look xD
  • Hi guys, I'm still struggling  :s
    I am trying to set microstepping on my Y axis to 1/2 to get my X and Y axis to almost have the same resolution (X=160 steps/mm, Y=144 steps/mm) But the steps per mm setting isn't being written to the TMC2130 I think. It looks like when I move the axis 50mm, it actually moves only 12.5mm.. So apparently it's set to 1/8 microstepping.

    One detail: i'm uploading firmware through the compiled binary through repetier server.. maybe it skips some settings that way?

  • edited February 2018
    Humm, maybe try to clear the EEPROM manually and reupload?
  • I solved the problem for the SPI mode (Chinese TMC needed to remove resistor and make solder in two points)
    Now SPI with my coreXY work but I've many questions due to strange things <span>:smile:</span>

    Y homing home 1mm from endstop but X home 1/2cm from endstop and their eeprom config is the same !
    Stealthchop mode keep missing steps as soon as a quick move is done. I found a quick fix by putting the driver current to 1.8 A but I'm a bit worried about It...
    in 1/16 driver mode the steps/mm are completely messed up and not correct (of course I divided in eeprom my original 1/32 settings by 2) but when I revert it to 1/32 and multiply by two everything is good again...
    What is the correct Stepper High signal for a ramps FD with arduino due and TMC 2130 ?
    Some people says that you should desactivate quad stepping for TMC 2130 for increasing strengh in stealthchop mode... Is it true ?
    Do you planned to add hybrid mode for TMC ?
  • Virtualchronos said:
    I solved the problem for the SPI mode (Chinese TMC needed to remove resistor and make solder in two points)
    Now SPI with my coreXY work but I've many questions due to strange things <span>:smile:</span> 
    Did you mean the pictures in this thread?
    https://github.com/MarlinFirmware/Marlin/issues/8480
    I will do those mods this evening and test

    One more thing: my arduino solftware can't compile with the latest tmc2130 library from Teematlut. I think I am using the second to last version right now (I'm at work so I can't check which one)
  • edited February 2018
    Hot damn, removing the jumper resistor worked in some way...
    however moving the bed 1mm back resulted in the bed shooting off towards the back, sounded freaky ;)
    But apparantly this was my problem  B)

    edit: Ok It's working for me! even the driver I thought was dead. apparently I never adjusted the motor power using the configurator because SPI mode was off. I'm gonna test some stuff now. thanks everybody!!
  • ...Still can't make those &%§# drivers work without skipping steps...

    I've tried putting more current in them (It work better but can't go further than 1800 mA) and it keep kipping steps each time there's an acceleration
    I haven't found yet the good value of Stepper High Delay for my ramps FD (what should I put)

    What are the settings for my coreXY to print without skipping problems ???
  • ...Still can't make those &%§# drivers work without skipping steps...

    I've tried putting more current in them (It work better but can't go further than 1800 mA) and it keep kipping steps each time there's an acceleration
    I haven't found yet the good value of Stepper High Delay for my ramps FD (what should I put)

    What are the settings for my coreXY to print without skipping problems ???
    Have you triied using a real low value for acceleration? 
  • Start really low on acceleration and jerk. Also, for a Due you don’t really need quadstepping or stepper_high_delay with the TMCs. Try disabling those.
  • What’s your steps_per_mm value for X and Y.
    What motors are you using?
    Do you have heatsinks on the driver boards? Which side of the board are they on?
  • What’s your steps_per_mm value for X and Y.
    What motors are you using?
    Do you have heatsinks on the driver boards? Which side of the board are they on?
    Thanks a lot for helping me !!!

    Steps/mm for XY : 160
    Mode 16µ steps (now it work but I don't know why)
    Motors Nema 17
    Motherboard : Ramps FD V1.0
    Chinese TMC 2130 : https://www.aliexpress.com/snapshot/0.html?spm=a2g0s.9042647.0.0.B2x7oF&orderId=89657991491269&productId=32837281310 (modified to be in SPI mode, heatsink is not on the chip but on the other side of the board)
    Printer : Tronxy X5S

    here's my actual config.h and my EEprom.epr :
    https://pastebin.com/bsrZDXxP
    https://pastebin.com/3sf9KvEu 

    Wich values should I put on jerk and acceleration ?
  • About the motors, It's nema 17 1.8°
    I was thinking, wouldn't it help if I change the X and X motors for nema 17 0.9° ? Wouldn't I gain more strengh and less skipping ?
  • No, in most cases stepper motors lose torque when going at higher rpm's.
    In addition ur board has to calculate twice the steps, so u might run into additional trouble.
    What are ure current motor specs? (Holding torque etc. ?)
  • Everything is in the links I provided I can't say more since that's all I know

  • Well the only thing u stated about ur motors is Nema 17 which literally only defines the dimensions of the motor 
    but doesnt tell anything about torque, currents and so on...
    Anyway if ur running stealthchop, ure probably only able to run it at pretty low speeds and accelerations since this mode doesnt generate a lot of torque therefore its running silent and smooth. 
    Try getting them to work in Spreadcycle first. Cant acces ur pastebin, so im not sure which mode ur using.

  • edited February 2018
    I've make a mistake in config.h link here's the true link :
    https://pastebin.com/bsrZDXwP

    I can't answer since I don't understand what you're talking about... They are the original motors given with the printer and there's absolutely no info on it so I even can't give you the slightest serial number as an answer. I put 1.8A in TMC2130 config.h that's the only thing I can tell
  • Alright if they are stock they should be suiting the printer. Just for ur understanding Nema 14/16/17 etc. defines the dimensions of the motor i.e. Nema17 is 42x42mm but the other values may vary.

    Try the following:
    Set 
    #define MOTOR_CURRENT { 900,900,1000,1000,1000,1000 }
    and 
    #define TMC2130_STEALTHCHOP         0  // Enable extremely quiet stepping

    to get them to work in spreadcycle mode. At 1800mA ur drivers are most likely already running hot and it could even be to much for ur motors. Around 1000mA should be enough for most printers.
  • Hi guys,
    I've created a discord for us. I still have a bit of trouble with power settings as well. Maybe we can discuss some stuff here? I really don't know if this is handy but we have the option now.
    I will be on there later today and propably tomorrow morning. I can make Alex an admin ofcourse
    https://discord.gg/HBaAF
  • @PioniSensei, the Discord group sounds like a very cool idea! Thanks for setting it up.
    I’m traveling this whole week with my phone as the only connection. I’ll be back home on Sunday and we could set up a gathering on discord for Sunday evening, if everyone is available.
  • Discord would be great if only I had it, PioniSensei's invite link doesn't work and time isn't the same for all of us... Since I'm french I'm not sure sunday evening will be the same for all of us so I don't know how to ... 

    In case of problem with discord, skype would be great (my pseudo is the same) or I also have my own Teamspeak server (i'll give adress by personnal message if needed)
  • Sorry the link was set to expire after a day.
    This is the new link. I am in the netherlands so propably the same as you virtualchronos. Alex is east of us I believe? Text always works within discord luckily.
    The new discord invite: https://discord.gg/n9GEVAP
Sign In or Register to comment.