Advanced Search

Search Results (Searched for: )

  • PCW
  • PCW's Avatar
11 Feb 2025 19:16 - 11 Feb 2025 19:16
Replied by PCW on topic PWM with a 7i96 and 7i85

PWM with a 7i96 and 7i85

Category: General LinuxCNC Questions

No, somehow I thought you had a 7I96S.

So is a 7I96 + 7I85 with one 7I96 stepgen (chan 4) replaced with PWM/DIR
and stepgen/encoder index on the 7I85 what you need?
  • 3404gerber
  • 3404gerber
11 Feb 2025 19:13

Anyone figured out how to get Trinamic's TMC5160 drivers working with LinuxCNC?

Category: Driver Boards

Yes. I wanted to communicate via spi only. Since I also configured it in spi mode in daisy chain config in FluidNC. Remora communicate with LinuxCNC via spi. If possible I can send spi config data to tmc via some module in LinuxCNC. Or if you modded remora-spi source to suit tmc 5160
 

If you can make a direct SPI connection between the Raspberry Pi and the TMC drivers, then it should be very easy to adapt my code; all it does is sending the registers value to the drivers according to values you set via parameters until all the registers have been set, and then it reads the motor position. And another function sends velocity command. You'd just need to remove the write velocity part (or, simply said, not addf TMC5160.write) and not connect the position feedback pin. In theory you could still use the SPI line to get TMC status bit and be informed if one driver has an error.

I want to try to control the SPI device on the RPi without the use of BCM2835 library to avoid compatibility problems. Give me a week to try and I'll publish my code after that. I didn't even try to modify the spi-remora code, as this is way above my coding skills.
Displaying 19321 - 19322 out of 19322 results.
Time to create page: 0.342 seconds
Powered by Kunena Forum