Advanced Search

Search Results (Searched for: raspberry)

  • Guytou
  • Guytou
12 Feb 2025 12:55

M-code to toggle macrobutton not working on QtDragon

Category: General LinuxCNC Questions

In the meantime I solved the issue. I connected the Raspberry Pi gpio output pin to motion.digital-in-00 and now I can read this RPI output pin with M66. No need for a macro anymore...
  • unknown
  • unknown
11 Feb 2025 23:47

Linuxcnc & the Raspberry Pi (4 & 5) Official Images Only!!!

Category: Installing LinuxCNC

Basic Mill Config Using hal_gpio

forum.linuxcnc.org/media/kunena/attachme...8/my-mill-config.zip
Link to driver:
linuxcnc.org/docs/devel/html/drivers/hal_gpio.html

Note unless SPI is disabled in /boot/broadcom/config.txt GPIO07 & GPIO08 can not be used.
  • 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.
  • cakeslob
  • cakeslob
11 Feb 2025 15:16
Replied by cakeslob on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

If you are doing 3d printing have a look at the remora

github.com/scottalford75/Remora
Displaying 526 - 529 out of 529 results.
Time to create page: 0.955 seconds
Powered by Kunena Forum