Advanced Search

Search Results (Searched for: raspberry)

  • miniwini
  • miniwini's Avatar
18 Mar 2026 15:27 - 18 Mar 2026 15:31
LinuxCNC 2.98 - Ethercat - ProbeBasic was created by miniwini

LinuxCNC 2.98 - Ethercat - ProbeBasic

Category: EtherCAT

Hi there!

my Raspberry Pi5 died so i needed to setup thing new, but I can´t get it working anymore. It worked before... 

I have two Ethercat modules which need "speical care"
1. its the external "EP1809-0021" this is identical to the EL1809, so just replicating the last line in the el1xxx.c with the correct PID, works
2. the EL2564, this is a dedicated "driver" which is copied into the linuxcnc-ethercat/src/devices which gets compiled, works... 

LinuxCNC runs in the SIM Modes... also with ProbeBasic
EtherCat works - ethercat master and slave commands...
but LinuxCNC with ProbeBasic and Ethercat doesn´t want to start.
LinuxCNC Ethercat crashed with signal 11
-- STACK TRACE START
0    /usr/lib/linuxcnc/modules/lcec.so(+0xfcbc) [0x7f72cb8f3cbc]
1    /lib/x86_64-linux-gnu/libc.so.6(+0x3c050) [0x7f72cc759050]
2    /lib/x86_64-linux-gnu/libethercat.so.1(ecrt_slave_config_pdos+0x2f) [0x7f72cb8b652f]
3    /usr/lib/linuxcnc/modules/lcec.so(rtapi_app_main+0x40a) [0x7f72cb8f4f68]
4    /usr/bin/rtapi_app(+0xbd67) [0x558070fe7d67]
5    /usr/bin/rtapi_app(+0xc6be) [0x558070fe86be]
6    /usr/bin/rtapi_app(+0xccbc) [0x558070fe8cbc]
7    /usr/bin/rtapi_app(+0x7a04) [0x558070fe3a04]
8    /usr/bin/rtapi_app(main+0x70f) [0x558070fe348f]
9    /lib/x86_64-linux-gnu/libc.so.6(+0x2724a) [0x7f72cc74424a]
10    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7f72cc744305]
11    /usr/bin/rtapi_app(_start+0x21) [0x558070fe38f1]
-- STACK TRACE END

twopass: load_the_modules cmd=<orig_loadrt lcec>
waitpid failed /usr/bin/rtapi_app lcec
/usr/bin/rtapi_app exited without becoming ready
insmod for lcec failed, returned -1

Here you can see my terminal-log when starting LinuxCNC
 

File Attachment:

File Name: message.txt
File Size:6 KB

here you see my Ethercat terminal Outputs...
cnc@linuxcnc:~$ ethercat slaves
 0  0:0   PREOP  +  EK1100 EtherCAT Coupler (2A E-Bus)
 1  0:1   PREOP  +  EL1018 8K. Dig. Eingang 24V, 10�s
 2  0:2   PREOP  +  EL1018 8K. Dig. Eingang 24V, 10�s
 3  0:3   PREOP  +  EL2024 4K. Dig. Ausgang 24V, 2A
 4  0:4   PREOP  +  EL2024 4Ch. Dig. Output 24V, 2A
 5  0:5   PREOP  +  EL2008 8K. Dig. Ausgang 24V, 0.5A
 6  0:6   PREOP  +  EL2008 8K. Dig. Ausgang 24V, 0.5A
 7  0:7   PREOP  +  EL2034 4K. Dig. Ausgang 24V, 2A, Diagnose
 8  0:8   PREOP  +  EL2809 16K. Dig. Ausgang 24V, 0.5A
 9  0:9   PREOP  +  EL2809 16K. Dig. Ausgang 24V, 0.5A
10  0:10  PREOP  +  EL2809 16K. Dig. Ausgang 24V, 0.5A
11  0:11  PREOP  +  EL1819 16K. Dig. Eingang 24V, 10�s
12  0:12  PREOP  +  EL1819 16K. Dig. Eingang 24V, 10�s
13  0:13  PREOP  +  EL2564-0010 4 K. LED-Ausgang, 8...48 V DC, 3 A, RGBW, Common Ca
14  0:14  PREOP  +  EL3202 2K.Ana. Eingang PT100 (RTD)
15  0:15  PREOP  +  EL3014 4K. Ana. Eingang 0-20mA DIFF
16  0:16  PREOP  +  EL3052 2Ch. Ana. Input 4-20mA
17  0:17  PREOP  +  EK1122-0008 2-Port EtherCAT-Abzweig M8
18  0:18  PREOP  +  EP1018-0001 8 K. Dig. Eingang 24V, 10�s, M8
cnc@linuxcnc:~$ 

the EP1809 wasn´t connected...

so what can it be? I followed the "EtherCat installation from repositories" from Rod... i tried multiple images, 2.94~2.98 on Bookworm and Trixie... 

thank you

miniwini
  • hmnijp
  • hmnijp
17 Mar 2026 18:37 - 17 Mar 2026 18:39

Axis position shift during helical boring - Fusion 360 Personal + Mesa 7i96s + C

Category: General LinuxCNC Questions

DRO shows identical position at arc entry and exit — LinuxCNC believes the machine returned to the correct point. But probing a fixed reference shows X shifted +9.3mm and Y shifted -12.2mm. HLFB is configured at 20 counts and did NOT trigger. This means every commanded step was executed by the motor. The error is in the arc interpolation — the step path LinuxCNC generates to trace the circular arcs does not sum back to the correct physical position.
LinuxCNC version: Master (2.9), running on Raspberry Pi 5 (4GB), Debian Bookworm, Mesa 7i96s over ethernet (hm2_eth), SERVO_PERIOD = 1000000.
 


Linuxcnc doesn't generate a step signal. All planner calculations are based on position (float64 number) and velocity signals.These numbers (not steps or pulses) for each servo cycle are sent to the Mesa board, where "stepgens" converts them into pulses.

These are the connections in hal:
joint.N.pos-cmd -> hm2.N.stepgen.position-cmd;

Each cycle, Mesa sends back the counted number of generated pulses for reporting:
joint.N.pos-fb <- hm2.N.stepgen.position-fb;

The difference between the sent position and the feedback is tracked using the joint.N.f-error pin.The path planner (on the computer) and stepgen (inside the Mesa board) do not influence each other, but each performs its own role in the chain.

I hope you understand that, in this logic, the position can't simply shift in the planner. If there was an error, it would mean it was transmitting an incorrect coordinate to the mesa, and the same incorrect coordinate would be visible in your DRO (since it's also connected to the joint.N.pos-cmd == axis.N.pos-cmd signal). And the incorrect path would be drawn in the graphics window. The "live plot" draws either based on the pos-cmd or pos-fb numbers. there's a switch for this.

If "LinuxCNC believes the machine has returned to the correct point," then the planner has indeed returned to that point and is transmitting that exact position command to mesa.If the error occurred in stepgen inside mesa, then the position-fb counter would have returned an incorrect number of counts (as a float64 number, not pulses).

If your servos don't report their own following error, then there remains the possibility of an error between Mesa => Servo. Due to electrical interference/noise, not all pulses could have been received by your servo - it thinks it's following the path, but in fact, not all the pulses reached it.
This is confirmed by the fact that you saw a connection between the error and pulse timings.

I have been working with linuxcnc and fusion 360 for a long time as post programmer, so I can assure you - there is no connection between the post processor, pathplanner and your problem. Both work fine.
  • maruf1777
  • maruf1777
17 Mar 2026 15:34 - 17 Mar 2026 15:37

Axis position shift during helical boring - Fusion 360 Personal + Mesa 7i96s + C

Category: General LinuxCNC Questions

DRO shows identical position at arc entry and exit — LinuxCNC believes the machine returned to the correct point. But probing a fixed reference shows X shifted +9.3mm and Y shifted -12.2mm. HLFB is configured at 20 counts and did NOT trigger. This means every commanded step was executed by the motor. The error is in the arc interpolation — the step path LinuxCNC generates to trace the circular arcs does not sum back to the correct physical position.
LinuxCNC version: Master (2.9), running on Raspberry Pi 5 (4GB), Debian Bookworm, Mesa 7i96s over ethernet (hm2_eth), SERVO_PERIOD = 1000000.
  • tommylight
  • tommylight's Avatar
16 Mar 2026 22:41

An all-in-one control panel based on Raspberry Pi and 15.6" touchscreen

Category: Show Your Stuff

Very nice, thank you, and also thank you for sharing the files on GitHub.
  • belovictor
  • belovictor
16 Mar 2026 22:07

An all-in-one control panel based on Raspberry Pi and 15.6" touchscreen

Category: Show Your Stuff

Hi,

Just wanted to share the control panel I've built for my VM32 CNC conversion project. The aim was to get away from a typical PC+Monitor setup and build an all-in-one control panel for LinuxCNC which can be mounted on the mill cabinet and control the mechanics through MESA board. I published the resulting models for this build in a Github repo:  github.com/belovictor/linuxcnc-control-panel
You can also find the panel build video on my YouTube: 


File Attachment:


Best regards,
Victor Belov
 
  • maruf1777
  • maruf1777
16 Mar 2026 19:57 - 16 Mar 2026 20:01

Axis position shift during helical boring - Fusion 360 Personal + Mesa 7i96s + C

Category: General LinuxCNC Questions

Hi everyone,
 
I'm experiencing cumulative axis position shifts (mostly Y, some X) during helical boring operations generated by Fusion 360 Personal Use. The shift happens between passes, not during cutting. I've done extensive testing to isolate the cause and I'm stuck — hoping someone with trajectory planner experience can help.
HARDWARE:
- 3-axis mill, 1204 ballscrews
- Mesa 7i96s ethernet card
- Teknic ClearPath CPM-SDSK-2311S-RQN servos (step/dir mode)
- 75VDC PSU
- Raspberry Pi 5 running Debian Bookworm
- LinuxCNC Master (2.9)

THE PROBLEM:
When running a Fusion 360 helical bore operation (3 passes: rough, semi-finish, finish), the machine shifts position during the helical arc cutting itself. The first boring pass starts correctly, but position drifts during the operation. The shift is cumulative across passes — each subsequent pass is worse. I initially thought the shift was only happening between passes during repositioning, but after extensive testing I've confirmed it also occurs during the actual G3 helical arc execution.

WHAT I'VE RULED OUT:
1. NOT mechanical: Dial indicator shows <0.01mm backlash. Coupling and ballscrew are tight.
2. NOT motor faults: ClearPath LEDs stay green, no faults. (Note: HLFB is wired but not yet configured in HAL — this is on my to-do list.)
3. NOT lost steps during linear moves: I wrote a test program doing 20 cycles of G91 G1 Y50 F1000 / G1 Y-50 and Y returns perfectly. Zero shift.
4. NOT electrical noise / VFD: Shift occurs with VFD off, spindle off, no tool, air cutting only.
5. NOT step timing: Tested DIRSETUP/DIRHOLD at 2000, 5000, and 10000ns. 5000 was slightly better but didn't solve it.

WHAT I'VE FOUND:
The problem appears related to how the trajectory planner handles the G-code Fusion 360 Personal generates. Key factors:
A) Fusion 360 Personal Use converts ALL G0 rapids to G1 moves. This means repositioning between bore passes (retract, XY travel, approach) are G1 moves subject to G64 path blending. The machine blends through the repositioning corners instead of making exact stops.
B) The bore operation uses helical arcs (G3 in XY with simultaneous Z) — this is the exact pattern described in GitHub Issue #426 (Arc Blending Bug).
C) I tested ARC_BLEND tuning parameters:
ARC_BLEND_ENABLE = 1
ARC_BLEND_FALLBACK_ENABLE = 1
ARC_BLEND_OPTIMIZATION_DEPTH = 50
ARC_BLEND_GAP_CYCLES = 4
ARC_BLEND_RAMP_FREQ = 100
D) ARC_BLEND_ENABLE = 0 did NOT fix the second file either.

G-CODE STRUCTURE:
The problematic repositioning sequence between bore passes (02.ngc):
N635 G1 X-77.844 Y12.6 (exit move)
N645 Z5. (retract - G1, should be G0)
N650 Z15. (retract more - G1, should be G0)
N655 Z4. (approach - G1, should be G0)
N660 Z2. (approach to cut depth - G1)
N665 X-80.544 Y13.2 (XY reposition AT cut depth - G1, gets blended!)
N670 G3 X-81.144 Y12.6 ... (arc cutting begins)
My INI Snippet:
[EMCMOT]
EMCMOT = motmod
SERVO_PERIOD = 1000000
ARC_BLEND_ENABLE = 1
ARC_BLEND_FALLBACK_ENABLE = 1
ARC_BLEND_OPTIMIZATION_DEPTH = 50
ARC_BLEND_GAP_CYCLES = 4
ARC_BLEND_RAMP_FREQ = 100
 
[JOINT_0] (X)
MAX_VELOCITY = 50
MAX_ACCELERATION = 150
STEPGEN_MAXVEL = 62.5
STEPGEN_MAXACCEL = 250.0
DIRSETUP = 5000
DIRHOLD = 5000
STEP_SCALE = 200.100
 
[JOINT_1] (Y)
MAX_VELOCITY = 50
MAX_ACCELERATION = 150
STEPGEN_MAXVEL = 62.5
STEPGEN_MAXACCEL = 250.00
DIRSETUP = 5000
DIRHOLD = 5000
STEP_SCALE = 200.460
 
G-code preamble: G64 P0.005 Q0.005

QUESTIONS:
1. Is there a known interaction between Fusion 360 Personal's G1-only rapids and the trajectory planner's arc blending that could cause multi-millimeter position shifts?
2. Is there a recommended set of ARC_BLEND parameters for helical boring operations where G1 repositioning is mixed with G3 arcs?
3. Would modifying the linuxcnc.cps post processor to insert G61 before repositioning moves and G64 before cutting moves be the correct approach?
4. Should I be looking at something else entirely?
I can attach the G-code files if helpful. Any guidance appreciated — I've been chasing this for a while.
 
Thanks!
  • rodw
  • rodw's Avatar
14 Mar 2026 23:25

Rufus found problem with linuxcnc_2.9.8-amd64.hybrid.iso -- missing files

Category: General LinuxCNC Questions

@RODW,

Have you tried Ventoy?

I've tried a number of tools and the only one that has never let me down is balena etcher. It even works with raspberry pi images!
  • h.hermes
  • h.hermes
13 Mar 2026 15:30
RPi and 7i90 via SPI, estop was created by h.hermes

RPi and 7i90 via SPI, estop

Category: Driver Boards

Hello everybody!
I am new to this forum, so first I want to thank everybody for all the information posted here.
I want to replace my old 32-bit computer running a 3-axis stepper cnc via a parallel port. 
What I succeeded in:
  1. I bought a Raspberry Pi 4 and a Mesa 7i90 card.
  2. I used my old computer with parallel port, connected to the 7i90 and programmed the 7i90_spi_svst4_8.bit firmware using mesaflash.
  3. I downloaded the LinuxCNC disk image for the RPi 4 and installed it.
  4. I connected the 7i90 to the Raspberry Pi (about 3 inch flat-cable, all ground lines connected). I can read the device configuration using mesaflash without problems (well after a new install of mesaflash from the git repository).
Now I want to start ``linuxcnc linuxcnc/configs/by_interface/mesa/hm2-stepper/7i90-rpi-spi.ini``. The GUI pops up and everything seems fine.
But when I press F1 to reset the estop latch nothing happens. Up to now I did not connect any drivers or switches to the 7i90.
I changed 'DEBUG = 0x7fffffff' in the ini-file and added a 'show' to the end of the ini-file. I attach the output when running the linuxcnc. I marked what happend when I pressed F1 by '******' in the text.
If you need more information (ini-file, hal-file) let me know.
Many thanks for any support, H. Hermes
  • NWE
  • NWE's Avatar
13 Mar 2026 03:01
Replied by NWE on topic Trying out LinuxCNC on Raspberry PI5

Trying out LinuxCNC on Raspberry PI5

Category: General LinuxCNC Questions

but normal need use WHITOUT this expensive hat , only gpio pin out and shift level converter can use 3,3V gpio pin to out 5V and traight to driver step and dir and enable pin.
how this made if ewer newer not has understand anything code nd not understand what need doing code, understand only good all hardware how connect and build,
i have rpi4 and SD card have linuxcnc rpi4 image, working and boot ok, (whit HDMI display) but not boot whit pi hut mikro HDMI to vga cable.
how make this gpio pins can take out gpio pin to driver DM556. were can download setting hal and ini file or what need add to rpi4, normal peoples NOT can understand and write hard code to rpi, hal or ini or what possiple need doing, not know.
i just buy rpi4, paraller port BOB, cheap chinese 10$ board, encoder, rotary SW, shift level converter modules, 3,3V to 5V, all buttons, DM556 drivers, nema 23 470 OZ/3Nm motors, lot hardware but not can made code anything.

help need send to me files what need copy and paste to rpi4 linuxcnc and were folder need add. not know were and what and how.


I have not tried connecting a BOB to a Raspberry pi. I think it could work but it will not be easy. You will have to write the hal and ini files.

How will you connect BOB to the Raspberry pi? The connectors are quite different.

If you could use your BOB connected to a pc that has a parallel port that will be a lot easier. I might be able to help. Then you could use stepconf to create your configuration.
  • masawee
  • masawee
12 Mar 2026 08:10 - 12 Mar 2026 08:11
Replied by masawee on topic Trying out LinuxCNC on Raspberry PI5

Trying out LinuxCNC on Raspberry PI5

Category: General LinuxCNC Questions

but normal need use WHITOUT this expensive hat , only gpio pin out and shift level converter can use 3,3V gpio pin to out 5V and traight to driver step and dir and enable pin.
how this made if ewer newer not has understand anything code nd not understand what need doing code, understand only good all hardware how connect and build,
i have rpi4 and SD card have linuxcnc rpi4 image, working and boot ok, (whit HDMI display) but not boot whit pi hut mikro HDMI to vga cable.
how make this gpio pins can take out gpio pin to driver DM556. were can download setting hal and ini file or what need add to rpi4, normal peoples NOT can understand and write hard code to rpi, hal or ini or what possiple need doing, not know.
i just buy rpi4, paraller port BOB, cheap chinese 10$ board, encoder, rotary SW, shift level converter modules, 3,3V to 5V, all buttons, DM556 drivers, nema 23 470 OZ/3Nm motors, lot hardware but not can made code anything.

help need send to me files what need copy and paste to rpi4 linuxcnc and were folder need add. not know were and what and how.
  • masawee
  • masawee
10 Mar 2026 15:57 - 10 Mar 2026 15:59
Replied by masawee on topic LinuxCNC with Raspberry pi 4

LinuxCNC with Raspberry pi 4

Category: General LinuxCNC Questions

have anybody make rpi4 working linuxcnc, what need doing gpio pins config, this hal,demo and html not help anything what need doing, not understand what must make, ewer not has written and understand code, only test run "blink" code and working.

just buy rpi4 and encoder wheel, buttons, rotate switch, shift level converter 3,3V to 5V and stepper motor drivers DM556 and nema 23 470 OZ/ 3 Nm motors, and install rpi4 linuxcnc image to card and run image, ok, but were is config wisard gpio pins ?
config wisard has only paraller port pin config.
pnc config has only ower expensive mesa card config.
how config all pins to rpi4 gpio ???? has anybody make this and can tell step by step or send config files what need rpi4 working whit this linuxcnc rpi image.
image boot and run ok, step conf wisard no help how gpio pins setting.
  • masawee
  • masawee
10 Mar 2026 15:15

configuring my GPIO pins to linuxcnc with Raspberry pi 4

Category: HAL

what this is, not understand lot say hal need write code but not understand anything what code need write, not easy help, lot has only english plaa plaa plaa but no say how use gpio pins linuxcnc rpi4 stepper drivers pins step and dir and enable, paraller port has simple easy but why not rpi4 have same system can add pins and step/dir, number. etc, pin 17 is x axis step, pin 13 is x axis dir, were this is, or not have why not.
  • masawee
  • masawee
10 Mar 2026 15:07

configuring my GPIO pins to linuxcnc with Raspberry pi 4

Category: HAL

i just install rpi4 linuxcnc image to my rpi4 but step conf wisard not have gpio pins can config, how make this, i looking today pnc config but has only mesa card config, no working if need only gpio pins output to stepper driver board DM556. i use gpio pns and shift level converter 3.3V to 5V convert and then 5V can use output to stepper driver, but how config all gpio pins what i need use. step conf wisard not can, pnc config wisard no can its only mesa card conf. how peoples has made rpi gpio run drivers and inputs.

rpi4 boot ok linuxcnc 2.9.x whit my HDMI display but not old VGA display say only out off range 1. rpi used mini HDMI to vga cable and working good normal image raspian, but not whit linuxcnc image .
  • rodw
  • rodw's Avatar
08 Mar 2026 08:17

Linuxcnc 2.9.2 and 2.93 images for Raspberry Pi 4b & 5

Category: Installing LinuxCNC

I was thinking of building a new image for the Raspberry Pi 5. It will feature 2.10 to get scurve planner and be on Trixie and use the 6.12.74 RT kernel
Is there any reason not to use our current installer framework? 
Is there anything that desperately needs changing?

It just seems to be still the best way forward and I have the template to start with.
  • Tony123
  • Tony123
05 Mar 2026 17:37

Request: Custom 7C80 bitfile - Replace StepGens 0, 1, 2 with PWMGens (TB7, TB8,

Category: Driver Boards

Hi LinuxCNC community,I am running a Mesa 7C80 via SPI on a Raspberry Pi 5. Because my main axes and spindle are handled over EtherCAT, I am not using the standard StepGens.I need to drive three linear coil motors that require a standard 5V hardware PWM signal. Could I please request a custom bitfile that replaces the first three StepGens with PWM Generators?Specific Routing Request:
  • TB7 (Normally StepGen 0): Replace with a PWMGen.
  • TB8 (Normally StepGen 1): Replace with a PWMGen.
  • TB9 (Normally StepGen 2): Replace with a PWMGen.
Ideally, I would like the primary pin on each of those terminal blocks to act as the PWM output, and the secondary pin to remain available as a standard GPIO so I can use it for the Direction signal.Thank you in advance for your time and all the support you give this community!
Displaying 1 - 15 out of 452 results.
Time to create page: 0.695 seconds
Powered by Kunena Forum