makerbase-mks / MKS-Robin-Nano-V3.X

Robin nano V3 is an upgraded version of Robin Nano V2.0. The upgrade changes are quite large, including upgrading the MCU to the M4 core, and adding support for USB disk.
GNU General Public License v3.0
141 stars 69 forks source link

TMC5160 #47

Closed Sangra69 closed 3 years ago

Sangra69 commented 3 years ago

Has anyone gotten this stepper driver to work with this board? When I set it to SPI mode I get a driver error. Then it says printer halted.

mks-viva commented 3 years ago

You need set it:

  1. In Configuration.h file, define DRIVER_TYPE to TMC5160, for example #define X_DRIVER_TYPE TMC5160
  2. In Configuration_adv.h file, enable #define TMC_USE_SW_SPI
  3. You board need use jumpers set to SPI mode image
  4. You need use dc12-24v power
Sangra69 commented 3 years ago

Dang I did do all that with E0. My extruder had no response. I am going to have to with a new configuration. H file and try again.

Sangra69 commented 3 years ago

Just letting you guys know that the BigTreeTech v1.2 TMC5160 didn't work at all. I wonder if Makerbase has a 5160 stepper driver?

mks-viva commented 3 years ago

We do not produce TMC5160, maybe you need to try, does TMC5160 need flying lead, such as flying lead to set SPI mode...

vogon commented 2 years ago

not sure if you're still having this issue, but in the off chance you are, https://github.com/bigtreetech/BIGTREETECH-TMC5160-V1.0/issues/2 and the schematics in this repo pointed me at the solution -- out of the box, the CLK pin of the TMC5160 isn't tied to a clock signal on the robin nano 3.x, so bending the CLK pin back and letting it be tied to ground by the pull-down resistor (thus clocking the TMC5160 internally) fixed the problems I was having with getting it to respond.