Advanced Search

Search Results (Searched for: raspberry)

  • dgdodo
  • dgdodo
21 Nov 2025 09:19
Replied by dgdodo on topic [SOLVED] Backlash issues on Y-AXIS

[SOLVED] Backlash issues on Y-AXIS

Category: Advanced Configuration

unknown,

Do you have a Debian Trixie version with RT-PREEMPT kernel for a RaspberryPi 3B+?
It is everywhere written that Trixie already is ' real-time', but I faced a lot of issues when trying to run LinuxCNC on Trixie. Especially on a RaspberryPi 3B+.

Regards, DGdodo
  • EdWorks
  • EdWorks's Avatar
19 Nov 2025 01:46

I would like to know how to connect GPIO to LinuxCNC’s E-Stop chain.

Category: Basic Configuration

My SetupRaspberry Pi 5 8GBByte2Bot Parallel Port Raspberry Pi HatByte2Bot 5 Axis CNC Interface Adapter Parallel Breakout Board For Stepper Motor DriversPicture 1My wiring is as follows:Picture2

The motors move, the home switches register as functioning, the probe is not hooked up and the eStop appears to do nothing.From LinuxCNC V2.9.7 Documentation PDF Page 1854.9.3.7 External ESTOP button The standard_pinout.hal file assumes no external ESTOP button. For more information on an external E-Stop see the estop_latch man page.Yet from 2 pages earlier in LinuxCNC V2.9.7 Documentation PDF Page 183 I see this line in the HAL file:# create a signal for the estop loopbacknet estop-loop iocontrol.0.user-enable-out iocontrol.0.emc-enable-in I assume “man page” is a typo and this is unnecessary if I am trying to connect it to  GPIO25. A search of the document looking for “estop_latch” only reveals this on page 254Picture 3So my estop is on pin10, but that is GPIO25 on the Pi 5. I must refer to it as such.In my .Hal file I have the following lines:loadrt hal_gpio inputs=GPIO7,GPIO8,GPIO25,GPIO12,GPIO13 outputs=GPIO5,GPIO6,GPIO11,GPIO9,GPIO10,GPIO23,GPIO16,GPIO17,GPIO19,GPIO20,GPIO21,GPIO22,GPIO24,GPIO26net estop-out   <= hal_gpio.GPIO25-in  ornet estop-ext <= hal_gpio.GPIO25-in Using tools I can identify that all my limit switches are being read, but I have nothing to suggest the estop is being read.I have added“Addf gpio-input servo-thread” as recommended by ChatGPT, and that is not read by the programThe advice I am looking for is:
I would like to know how to connect GPIO25 to LinuxCNC’s E-Stop chain.I have tried:

net estop-out hal_GPIO.GPIO25.out => iocontrol.0.emc-enable-inand any variation thereof I could think of, failed.Eventually, I lost control of my servos and only when I removed all lines I gained control of F1, which controls the estop and F2, which powers the servos. 
  • abs32
  • abs32
18 Nov 2025 15:01 - 18 Nov 2025 15:20

Installation v2.9.7 linuxcnc in November 2025.

Category: Installing LinuxCNC

So, it doesn't work.

To begin with, we had to solve the problems of inaccuracy of the installation description instructions. The downloaded attribute immediately after installation shows us v2.9.7 userspace. In order to install 2.9.2 rt you had to -

1. Overcome the distribution configuration error by removing the file stub for the raspberry -
forum.linuxcnc.org/38-general-linuxcnc-q...d-apt-problem#332403
sudo rm /etc/{initramfs/post-update.d/,kernel/{postinst.d/,postrm.d/}}z50-raspi-firmware

2.then you need to fix the first line of the file by adding 2.9-rt to its end
vi /etc/apt/sources.list.d/linuxcnc-uspace.list
deb [arch=amd64,arm64 signed-by=/etc/apt/trusted.gpg.d/linuxcnc.gpg.key.binary.gpg] www.linuxcnc.org/ bookworm base 2.9-uspace 2.9-rt

3. then you need to completely remove version 2.9.7
forum.linuxcnc.org/9-installing-linuxcnc...tall-rtai-got-errors
-
apt-get purge linuxcnc-uspace
apt-get purge linuxcnc-doc*

4. then you need to put the kernel (and only the kernel!)
wget www.linuxcnc.org/dists/bookworm/base/bin...ai-amd64-2_amd64.deb
dpkg -i linux-image-5.4.258-rtai-amd64_5.4.258-rtai-amd64-2_amd64.deb

5. This new kernel will now appear in boot options, you need to reboot the computer by selecting this particular kernel 5. And only now supply additional components -
wget www.linuxcnc.org/dists/bookworm/base/bin...xcnc-delta_amd64.deb
dpkg -i rtai-modules-5.4.258_5.3.3-linuxcnc-delta_amd64.deb

Now you can apt-get update + apt-get update

A running real-time kernel will always show 100% CPU load and does not need a swap. latensy-test starts and shows normal numbers.

An attempt to start the existing machine configuration leads to a system crash and reboot. Okay, stepconf and I create a new configuration, extremely simple. I launch it and also get a reboot.

Debug file information:
/usr/bin/linuxcnc: line 977:913 Segmentation error $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
/usr/bin/milltask exiting

How to overcome this problem?
A discussion of the problem has been initiated here, but there is no solution
forum.linuxcnc.org/18-computer/51070-fro...-kernel-rtai-5-4-258
  • unknown
  • unknown
16 Nov 2025 02:30 - 16 Nov 2025 02:33

I think StepConf does not work for my installation?

Category: StepConf Wizard

Stepconf is only for PC parallel ports.
Byte2Bot Parallel Port Raspberry Pi Hat is not an actual Parallel Port, yes it is confusing and probably somewhat misleading the way the Vendor names it. It does not provide any of the logical functions of a PC Parallel Port only presents the pins in a DB25 format and provides some level shifting.

The below is a thread that is more or less an index for the Main RPi4/5 thread.
forum.linuxcnc.org/38-general-linuxcnc-q...l-images-only#325007
Has a section regarding GPIO and there is a working config if you follow the links.
They are there you just have to look.

Just about everything regarding the Rpi4/5 is in this thread
forum.linuxcnc.org/9-installing-linuxcnc...official-images-only

The reason for these 2 threads was to provide users with a "self service and all in one stop".
  • EdWorks
  • EdWorks's Avatar
16 Nov 2025 01:29 - 16 Nov 2025 01:33

I think StepConf does not work for my installation?

Category: StepConf Wizard

Hello. I am a new user. I've been at this for days and no joy. I just came to the realization that StepConf Wizard does not work on my setup. Here is my logic. 
I have a Raspberry Pi 5 with a :
Byte2Bot Parallel Port Raspberry Pi Hat                  byte2bot.com/products/parallel-port-raspberry-pi-hat
5 Axis CNC Interface Adapter Parallel Breakout Board For Stepper Motor Drivers      byte2bot.com/products/5-axis-cnc-interfa...tepper-motor-drivers.

I am running Linux Bookworm with an installation of LinuxCNC. 

When I run StepConf Wizard and get to the X-Axis page I attempt ot see if I can move that axis - no joy. 

My theory is that it doesn't work. I feel that when I complete the process for a machine which I will call Machine, I end up with a Machine.hal program that has lines containing "hal_gpio.PIN21-out" or "hal_gpio.PIN12-out".

Using the Byte2Bot parallel port, you are NOT allowed to refer to the output on the DB25 connector as PIN1, PIN2, PIN3 etc. Using a Byte2Bot hat with a Raspberry Pi 5, you must refer to the GPIO pin that is connected to PIN2 or PIN3 as it's corresponding GPIO pin on the Raspberry Pi. As an example, PIN2 is actually GPIO9, so the line would have to be "hal_gpio.GPIO9-out" to activate PIN2. 

Seeing how StepConf Wizard is asking me what feature I want to assign to PIN2, I assume it is passing on the command ""hal_gpio.PIN2-out" which doesn't work, rather than "hal_gpio.GPIO9-out" which is required. 

I have noticed that you can pick different interfaces prior to getting to the Axis X page, and the assignments change, BUT there is no corresponding change for the Byte2Bot setup.

I might also point out that I have found examples that PIN2 etc. that reportedly works on the Pi 4  

Having made my case I suspect that I will hear "We can't set it up for every possibility" but I think I am missing something. 

EdWorks


 
  • unknown
  • unknown
12 Nov 2025 05:44
Replied by unknown on topic Experimental raspios Linuxcnc Trixie images.

Experimental raspios Linuxcnc Trixie images.

Category: Installing LinuxCNC

See above post to links for rc3 downloads.
Stupid things fixed:
Firefox-ESR installed
evince (pdf reader) installed
default kernel is aarch64 6.12.34+rpt-rpi-v8-rt (Raspberry Pi built RT_PREEMPT kernel)
  • OBi
  • OBi
12 Nov 2025 01:12

Remora - Rpi Software Stepping Using External Microcontroller via SPI

Category: Computers and Hardware

I have a newly minted Linuxcnc 2.9.7 installed on a Raspberry PI 4. 

I have successfully compiled the remora.c component from cakeslob/rrw_lab
trying 'sudo halcompile --install remora-spi.c' from cakeslob/main and scottalford75 will not compile. Lots of errors. 
Components/Remora-spi/rp1lib.c:94:9: error: assignment to ‘struct spi_device *’ from incompatible pointer type ‘struct spi_device **’ [-Wincompatible-pointer-types]    94 |     dev = &inst->spi_dev[spi_num];

I have also a working linuxcnc 2.9.3 that compiles remora-spi.c fine

Are there any changes in linuxcnc from version 2.9.3 to 2.9.7 that makes this happen? 
I will make do with the earlier remora component...

I just wanted to inform that there is some issues
  • dgdodo
  • dgdodo
12 Nov 2025 00:23
Replied by dgdodo on topic [SOLVED] Backlash issues on Y-AXIS

[SOLVED] Backlash issues on Y-AXIS

Category: Advanced Configuration

tommylight,

Thanks for your info.
I changed the X-axis with an other old (3 fase) steppenmotor and a M3 spindle movement without any problem.
Nothing has been changed to the (4 fase) Y-axis steppenmotor, but there the issue starts.

Mechanically the Y-axis is indeed a mess, it is gear driven with 2 gears before moving a gear-bar (on which the laser is mounted)
Willing to change it into a spindle driven movement too, but the 28BYJ-48 is already x64 slowed down and is too slow for that.

But the old setup did worked for several years without problems, although the backlash of 1.315 (mm) on the Y-axis.
My setup was always with a Raspberry Pi 3B+ controlling 2 L293D and 2 (28BYJ-48) steppenmotors.

Now i only changed X-axis and updated the Raspberry OS which result in weird backlash issues on th Y-movement.
It looks like on picture drawings (2 way y-movement) it does now turn on the laser before doing the backlash.
On one way the laser burns much longer than usual (earlier).
I will add a picture with on top the old burning (g-code) and below the new ones, same g-code.
You will see much lines extra (longer) burned on the new ones (one way) regardless what backlash i give, although backlash does something.
In red the given backlash is written,

Btw: I added the BACKLASH_VELICITY as i found is somewhere on the internet, but it does not speed up the backlash nowadays.


Unknown,

Back to my original whould be building it completely new, as it broke after upgrading Raspberry OS the first time.
Although i can read the old (linuxCNC) data.
But I will try, but it was a big trouble to get the RT-OS version (bullseye?) working the first time, i know.
Ad need the 2.8.2 version of LinuxCNC.

Regards, DG.
 
  • DemonClaW
  • DemonClaW
11 Nov 2025 19:16 - 15 Nov 2025 07:50

Beckhoff Problem with Communication (TwinCAT, LinuxCNC)

Category: EtherCAT

Hey Guys,some of you know so much about this Topic so I hope I can find someone in the mood to help me.Im trying to make a CNC 3-Axis on Raspberry PI5 and Beckhoff, the problem is that im completly new in this topic and try to learn as much as possible but i got already stuck in the beginning. EtherCAT works fine and i got the "Koppler" and Cards but if im trying to get them into LinuxCNC like some videos teach the Programm wont start anymore

If i start i get the message: Failed to register PDO entry: No such file or directory
LCEC: master 0 PDO enty registration failed

A friend and myself checked the code 10x, and it seems that the problem starts before. I cant get the EK1100 connected to TwinCat or CodeSYS, too. Whats kind of weird to me because as i said if I try it with the "ethercat slaves" command, it knows The Ek1100 and all Cards


Thanks for everybody who can help me with this and invests some of his time for me
  • unknown
  • unknown
11 Nov 2025 09:06 - 09 Dec 2025 04:31

Experimental raspios Linuxcnc Trixie images.

Category: Installing LinuxCNC

I've been working on using a new build system for Raspberry images based on the utilities that are used on the official images. No custom kernel as RPi does provide pre-built RT kernels, but the 6.12.47 version has had reports of crashing. And yes raspi-config is included.
Benefits include being able to use Raspberry Pi Imager to preconfigure user name & password, local, all other things Raspberry Imager enable you to configure. There is now a single image for the 4 & 5 models. These are the only models supported. No there is no wayland, so don't try to changes this via raspi-config. The desktop environment is xfce.

I haven't included vnc as that brings in all the CUPS (printing) software and the associated services.

Only one browser is included, Firefox-esr.
Some simple screensver & power management items have been configured.
There is a network applet near the clock to simplify configuring a wired network. Please take note that the Raspberry's network address should not be that same as your mesa card, ie the last number in the address should differ. (sorry for those that are aware, but it pops up from time to time)
I have also included a fix for the CNC items appearing under multiple categories. This will survive upgrades. Due to the way Debian runs these "hooks" it will run after every time apt, apt-get or dpkg is run. Changes will only be made when it is required. No isolcpus has been added to the commandline, but this can be added by the usual methods.

Downloads are here - currently waiting to be updated 09 Dec 2025;


Please note the image on the Linuxcnc downloads page is missing a browser and a pdf reader, but will still run Linuxcnc itself fine. I apologise but so far I've been "on my own" building and testing.

If anyone is willing to test and point out any glaring errors it would be most welcome.
Rob

Any issues please raise here
github.com/ozzyrob/linuxcnc-rpi-2.9.7-image-issues/tree/main
  • Gartenzwerg
  • Gartenzwerg
10 Nov 2025 07:24
Replied by Gartenzwerg on topic Tipps für aktuelle LinuxCNC Hardware gesucht

Tipps für aktuelle LinuxCNC Hardware gesucht

Category: Deutsch

Hallo Hermann,

bin knapp bei Wien - Deutsch-Wagram :-)

Ich bin mit der Raspberry + Parallel Port Adapter Lösung sehr zufrieden.
Zwei 3-Stunden Jobs liefen am Wochenende problemlos durch:
 

In der Hobby Werkstatt ist mir das Tempo relativ egal, zumindest solange es im Wasserbad läuft und somit keine Absaugung daneben plärrt.
  • clayton2ndtry
  • clayton2ndtry
09 Nov 2025 16:19
wifi adapters was created by clayton2ndtry

wifi adapters

Category: Advanced Configuration

Because I am using an antique desktop (Dell Optiplex 960) and WiFi, I am stranded at linuxCNC 2.7.15.  I have struggled to get decent network speed.  Only some USB WiFi adapters work native to 2.7.15.  (Trying to install drivers for adapters with other chipsets was more effort than it was worth.)  The SMC EZ Connect works, but it is only 802.11g and because there is a range and refrigerator in line of WiFi to router, I was limited to about 16 Mbps.

I decided to take a walk on the wild side and bought a BrosTrend Linux USB WiFi Adapter AC1200 for Ubuntu Kali Mint Debian Kubuntu Mate Zorin PureOS Raspberry Pi Windows etc. Linux Compatible WiFi Adapter Wireless Dual Band 5GHz 867Mbps + 2.4GHz 300Mbps.  Once I followed the instructions at linux.brostrend.com/ I was able to install the drivers for what is apparently the AC1L family and now I get 240 Mbps. Customer support was necessary to figure out which driver family was required during driver installation.   Curiously, plugging the adapter into the front USB ports gave me many times the rate as rear USB ports.
  • Hakan
  • Hakan
07 Nov 2025 21:29 - 08 Nov 2025 07:42

RaspberryPi 4/5 Ethercat Rtelligent ECT60 Synchronization error

Category: EtherCAT

I think it is something the Rpi does at regular intervals, drops the network interface for some reason.
Inspired by some googling can you search through the syslog to see if you find why eth0 is reset?
sudo journalctl -b | grep eth0

Edit. Another idea is to configure NO ip address on the interface.
Maybe it can prevent the os from doing ip-related things to the interface.
  • kate
  • kate
07 Nov 2025 18:15

RaspberryPi 4/5 Ethercat Rtelligent ECT60 Synchronization error

Category: EtherCAT

I tried this ethtool --set-eee eth0 eee off but it did not help at all. No I have tested two independent setups and inserting ethernet switch between Rpi and ETT60n solved the issue. In rpi5 there is no l --set-eee eth0 eee available but same issue when using without switch.
  • AgentWD40
  • AgentWD40's Avatar
06 Nov 2025 15:53

Can I use these little 3d printer drivers with 7i96?

Category: Driver Boards

TL;DR: Can I wire these little TMC2226 (or similar) 3d printer stepper drivers to a 7i96?

Before you laugh I know it seems like a silly matchup. I've been out of the cnc game for a few years now but now I have some projects on mind some I'm trying to plan to reuse some old parts. I'm still fairly out of the loop on the advances made in linuxcnc and hardware since.

I want to build another one of these light weight "3d printed" cncs . By default these machines used arduino/grbl based controllers , but I enjoy linuxcnc so I fully intend on on using linuxcnc instead.

I have a NIB Mesa 7i96 that I never put into production .  I have some raspberry pi 4 Bs laying around from old projects. I would need to find new stepper drivers. These tiny stepper drivers are proven to work fine for these machines. I like the idea of cost and especially space savings with these little chips, and how the original design of the above linked machine integrates their electronics into the gantry. 

So can I just wire these TMC2226s into the 7i96 as a drop in replacement for something  like my old TB6600 s?

I don't quite understand yet if these little chips with all their pins, and uart mode, are a different animal than the old stepper drivers I used before.

PS. I'm excited to find out that there is an official release for the rpi. I've already flashed it and have been poking around in it.
Displaying 46 - 60 out of 786 results.
Time to create page: 0.419 seconds
Powered by Kunena Forum