Advanced Search

Search Results (Searched for: raspberry pi 3)

  • 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
  • unknown
  • unknown
11 Feb 2025 11:57
Replied by unknown on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

If you had of read the docs, the parts regarding using a parallel port and software step generation, you would have learnt that there is a limit to the stepper speed based on the latency of the base thread.
This is the problem, people don't fully research/read the docs and don't fully understand what they are doing. They also assume things that are not so.
Many times people blame Linuxcnc, 99% of the time it is a mistake they have made.
The recent rise in the availability of home CNC machines has led people to think it is easy thing to setup and use. It's not, there are many hats you have to wear. And to be fair the basis for a project for Linuxcnc, all those years ago, was for control of industrial machines. I don't think the original authors of the papers imagined the extent that small CNC machines would become available to the "average Joe".
Checkout the mesa website, see what they have available. Read the forums, see what other people are doing. Checkout the remora project, have a look at Linuxcnc-RIO, geesh I even gave a link to my own GitHub project.
  • jairobbo
  • jairobbo
11 Feb 2025 11:05 - 11 Feb 2025 11:39
Replied by jairobbo on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

I'm sorry if my previous post was hard to understand or based on misread info. 

I was under the assumption that the most affordable mesa card for 6 axis (5 move and 1 extr) was around 200 bucks. But you are totally right better to ask than assume... I'm sorry for sounding stupid.

I'm still very much open to guidance for hardware selection for my 5 axis printer :)

Have a great day!
  • electrosteam
  • electrosteam
11 Feb 2025 09:29 - 11 Feb 2025 09:30
Gmoccapy Stop Mid-Run was created by electrosteam

Gmoccapy Stop Mid-Run

Category: Gmoccapy

Hobby 3-axis mill, Raspberry Pi 4B, official download - reports as Gmoccapy 3.4.6.
Done several jobs since swapping from AXIS.

Running code - then stop.
No pop-up messages.
Found the Gmoccapy Log - nothing.

Cancelled job, but machine would not jog.
De-activate controls (Green/Red PB), then activate - machine jogs.

Need some hints on where to look, or a list of typical problems.
Thanks,
John.

 
  • behai
  • behai
11 Feb 2025 03:04

Raspberry Pi OS PREEMPT RT 6.13 Kernel Cookbook

Category: Installing LinuxCNC

No always 4 cores.

For some reason the RPi docs say to use -j6.
 


Thank you Rob.
  • unknown
  • unknown
11 Feb 2025 01:33

Raspberry Pi OS PREEMPT RT 6.13 Kernel Cookbook

Category: Installing LinuxCNC

No always 4 cores.

For some reason the RPi docs say to use -j6.
  • behai
  • behai
11 Feb 2025 00:28

Raspberry Pi OS PREEMPT RT 6.13 Kernel Cookbook

Category: Installing LinuxCNC

Hi gene_weber,

Thank you for the info. Back in November, 2024, I did managed to build and install a PREEMPT_RT kernel to my Raspberry Pi 4B:

[
Linux picnc 6.6.59-rt45-v8-behai-rt-build+ #1 SMP PREEMPT_RT Sat Nov 2 10:20:46 AEDT 2024 aarch64 GNU/Linux
]

But I did not know how to make other configurations as you have done: I did not know we have different displays, etc.

I have also built LinuxCNC from source and installed it from the build: only last week, I have found out that I have done a simulated-realtime version of LinuxCNC. PnCConf reports:

[
"You are using a simulated-realtime version of LinuxCNC, so testing / tuning of hardware is unavailable."
]

I did not know we can install LinuxCNC from a prebuilt package to a Raspbian OS as you have done.

Might I have a question, please? You use -j6 in the command:

[
make -j6 Image.gz modules dtbs 2>&1 | tee make.log
]

On my Raspberry Pi 4B, nproc reports 4, I use -j4.

So is it true that later Pi 4B revisions have more cores? I bought mine back in middle 2023. I don't have Pi 5 yet.

Thank you and best regards,

...behai.

 
  • DanSta1988
  • DanSta1988
10 Feb 2025 19:54
Pixeled screen on remote desktop was created by DanSta1988

Pixeled screen on remote desktop

Category: General LinuxCNC Questions

Hi all, 

This is my fist post on the forum.

I have a CNC setup running on an old PC. I wanted to have a go at it and try to go to a rapsberry pi 4B to run it. much more compact etc. 
I have ordered from byte2 bot a board to make the raspberry pi with an serial connection connecting to a CNC break out board. 

I have installed this  LinuxCNC 2.9.4  Raspberry Pi 4 OS based on Debian Bookworm  Raspberry Pi 4 Uspace compatible with Mesa Ethernet and SPI interface boards.

I have also installed  xrdp and tight vncserver

When I connect from my home computer on windows 11 I am able to find the raspberry pi via my home network but when I log in I get a pixeled image. (see attachment.)

Is there something that has had the same issue and has an idea how to get rid of it? 

Thanks in advance!
  • unknown
  • unknown
09 Feb 2025 23:24
Replied by unknown on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

sudo ping -i 0.001 -c 1000000 -f 192.168.1.1

This was pinging my router, for about 15 minutes, and I did not get a failed packet, no lockups.
  • unknown
  • unknown
09 Feb 2025 23:02 - 09 Feb 2025 23:19

unable to get gpio to work on Raspberry Pi 5 using latest image

Category: Advanced Configuration

It does work, 2 users have had a couple of users have confirmed it.
I've also confirmed myself that loading of the driver as given in the docs also works.

Taking GPIO8 out of the input list allows the driver to load correctly. Which makes sense as GPIO08 as well as GPIO07 seemed to be claimed.

section lifted from gpioinfo
"GPIO7"   "spi0 CS1"  output   active-low [used]
"GPIO8"   "spi0 CS0"  output   active-low [used]

Commenting out spi out in /boot/broadcom/config.txt "fixes" the issue.
 
halcmd: loadrt hal_gpio inputs=GPIO18,GPIO23,GPIO24,GPIO25,GPIO8 outputs=GPIO4,GPIO17,GPIO27,GPIO22,GPIO10,GPIO9,GPIO26
Note: Using POSIX realtime
halcmd: show pin
Component Pins:
Owner   Type  Dir         Value  Name
     4  bit   IN          FALSE  hal_gpio.GPIO10-out
     4  bit   IN          FALSE  hal_gpio.GPIO17-out
     4  bit   OUT         FALSE  hal_gpio.GPIO18-in
     4  bit   OUT         FALSE  hal_gpio.GPIO18-in-not
     4  bit   IN          FALSE  hal_gpio.GPIO22-out
     4  bit   OUT         FALSE  hal_gpio.GPIO23-in
     4  bit   OUT         FALSE  hal_gpio.GPIO23-in-not
     4  bit   OUT         FALSE  hal_gpio.GPIO24-in
     4  bit   OUT         FALSE  hal_gpio.GPIO24-in-not
     4  bit   OUT         FALSE  hal_gpio.GPIO25-in
     4  bit   OUT         FALSE  hal_gpio.GPIO25-in-not
     4  bit   IN          FALSE  hal_gpio.GPIO26-out
     4  bit   IN          FALSE  hal_gpio.GPIO27-out
     4  bit   IN          FALSE  hal_gpio.GPIO4-out
     4  bit   OUT         FALSE  hal_gpio.GPIO8-in
     4  bit   OUT         FALSE  hal_gpio.GPIO8-in-not
     4  bit   IN          FALSE  hal_gpio.GPIO9-out
     4  s32   OUT             0  hal_gpio.read.time
     4  s32   OUT             0  hal_gpio.write.time
  • daleroyer
  • daleroyer's Avatar
09 Feb 2025 20:51

Jogging not working properly when not on preview tab

Category: AXIS

Old thread but just wanted to add/archive that this (xset -r) fixed jogging irregularities using a standard USB keyboard on a Raspberry PI 5 install with the PREEMPT_RT kernel.

I am gearing up for an MPG build shortly but the difference in function from an x86 machine and .iso install was concerning me that there were underlying issues with the OS.  I doubt that is the case now.
 
  • andypugh
  • andypugh's Avatar
09 Feb 2025 18:44

unable to get gpio to work on Raspberry Pi 5 using latest image

Category: Advanced Configuration

It is possible that hal_gpio is not working because libgpiod is not installed

What does: sudo apt-get install libgpiod say?
  • jhandel
  • jhandel
09 Feb 2025 18:07
Replied by jhandel on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

sudo chrt 99 ping -i .001 10.10.10.10 -c [count I am testing]
  • unknown
  • unknown
09 Feb 2025 11:52

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

Category: Installing LinuxCNC

Thunar has a plugin that lets you create shares directly from the Thunar file manager, which is the default for XFCE4. No need to manipulate the smb.conf file. Unfortunately debian doesn't provide a package for this.
Displaying 361 - 375 out of 819 results.
Time to create page: 0.644 seconds
Powered by Kunena Forum