bdring / 4_Axis_SPI_CNC

4 Axis CNC Controller for Grbl_ESP32
60 stars 18 forks source link

Connection issue with daisy chained TMC5160's #3

Open shreeramlive opened 4 years ago

shreeramlive commented 4 years ago

Hi I tried to connect 4 TMC5160 in daisy chain. However I could not get the motor moving. There seems to be a SPI problem with the TMC5160s. I have also grounded the CLK pin

However I'm pretty sure that the boards works because when I connected theA4988 driversit was working perfectly. Screenshot from 2019-12-03 16-38-54 Here's the ESP32 connection diagram.

Is there any way to debug the TMC connection like in marlin (M122)? I think there is a problem with the TMC5160 drivers, a fix for SKR1.3 was provided here This was a patch for the SKR1.3 (LPC1768), Is there anything similar to get it working with the ESP32. Thank you

BTW: This board is designed to support both standalone drivers and SPI drivers. That's how I was able to test the A4988 drivers

shreeramlive commented 4 years ago

ft1

bk1

Here are some photos, Everything works well except the TMC5160 SPI connection. P.S: Board named after the project creator @bdring.

bdring commented 4 years ago

Can you provide the complete schematic, or at least the TMC5160 connections?

shreeramlive commented 4 years ago

Yeah sure, Most of the connections are similar to your 4 axis SPI board.

edt2

The extra headers are allow us to configure SD and SPI connections Since I'm using TMC5160, I have grounded the CLK to ground

Full schematic: sch2.0.pdf

bdring commented 4 years ago

What is the purpose of the stepper headers connected to 3.3V and CLK?

image

Try connecting CLK to ground.

shreeramlive commented 4 years ago

Thanks @bdring, I have tried connecting the CLK to ground. Nevermind the headers in the schematic. Those extra headers are used to configure Microsteps or SPI connections with the help of jumpers.

Still no success with the TMC5160 stepsticks, I'm kind of confident that the issue is with the TMC5160 drivers. I have ordered some TMC2130's for testing. I will post updates when I receive them.

Is there any way to debug the SPI connection with the drivers?

Baramykin commented 3 years ago

Hi, I don't understand how to connect TMC5160 8 pcs to Teensy 4.1 in UART mode. I can't find the schematics. I want to use TMC5160 V1.2 drivers. Help me if possible, please.

creatormir commented 3 years ago

I've come to see the serial connection. And about the SPI, I think the problem is the StepStick board. The SPI is blocked. We need to cut the track. That's where the https://github.com/bigtreetech/BIGTREETECH-TMC5160-V1.0/issues/8 discussed it.

Or the problem is the confused findings of MISO and MOSI. MISO - MISO/SDO MOSI - MOSI/SDI

The place to cut. It helped me. The place to cut