Advanced Search

Search Results (Searched for: )

  • pgf
  • pgf
20 May 2025 00:33

RPi + Mesa + high CPU load gives stepper stuttering

Category: Computers and Hardware

Another data point: as mentioned in another thread recently, I've had to bump my SERVO_PERIOD up to 2ms to avoid runtime errors. Perhaps related, I'm guessing.
  • pgf
  • pgf
20 May 2025 00:27

RPi + Mesa + high CPU load gives stepper stuttering

Category: Computers and Hardware

I think I've probably been having this problem since I first started using a raspberry pi to drive my mill.  I noticed some CPU-related "hiccups" from the motors early on, and got rid of some background processes that were causing them, and didn't think anything more about it.  But today I noticed some new stutters/hiccups from the motors, and while trying to reproduce, started dragging the Axis window around on the screen.

Well, hoo boy...  the mill sure didn't like that!  Obviously, system load is affecting LinuxCNC in ways that it shouldn't.

So.  I must be doing something wrong, because I assume other people run X11 on their RPi HDMI monitor, and don't have this symptom?

I'm running the RPi 2.9.4 .iso (kernel was built 1/27/2025).

It's driving a Mesa 7i96.  I don't use wireless.  One ethernet is the built-in Pi interface, the other is a reliable USB/Ethernet dongle.  It doesn't matter which drives the Mesa, the symptom remains.

My cmdline.txt looks like this:
console=serial0,115200 console=tty1 root=PARTUUID=c8fda93c-02 rootfstype=ext4 fsck.repair=yes loglevel=5 net.ifnames=0 processor.max_cstate=1 isolcpus=3 firmware_class.path=/lib/firmware/updates/brcm rootwait skew_tick=1 kthread_cpus=0-2 irqaffinity=0-2 rcu_nocb_poll rcu_nocbs=3 nohz=on nohz_full=3

Most of that cmdline came from other posts on the forum.

I tried adjusting the IRQ affinity for the Mesa ethernet, to move those interrupts onto core 3 along with the rest of the real-time stuff, but that didn't help.

I'm sure I can find a PC that will work (I did some tests today on an older Thinkpad, with surprisingly good results), but I use the RPi gpio pins to help work around a LinuxCNC shortcoming, and I'd rather not lose that.  I will if I have to, though.

Any ideas, suggestions for things to try?

 
  • langdons
  • langdons
20 May 2025 00:17
Replied by langdons on topic Important Info Regarding Rpi4/5 Images.

Important Info Regarding Rpi4/5 Images.

Category: Computers and Hardware

Is dist-upgrade ever a good idea?
  • langdons
  • langdons
20 May 2025 00:15

Best practice for installing custom Python packages in LinuxCNC?

Category: General LinuxCNC Questions

Really?!

Cool!

But does it have enhanced switches?

Coding is not about speed, it's about the journey.
  • langdons
  • langdons
20 May 2025 00:10

Actual position and Commanded position differ, using cia402 [SOLVED]

Category: Basic Configuration

Weird.

Often with programming, huge problems are caused by like 3 wrong characters.

Perhaps it was some temporary fix that was not removed as it should have been?

C is a good language, better than Python IMO.

(Python always complains about not converting tabs to spaces, which I despise)
  • PCW
  • PCW's Avatar
19 May 2025 23:31

AC Servo tuning - Joint 0 following error at high velocities

Category: Basic Configuration

Looks good, though probably needs a bit more FF1 tuning.

Are you using the "Calibrate" menu?

This makes it easy to adjust PID parameters while running.

If the following error is in the same direction as the velocity,
FF1 is too low, if the following error is in the opposite direction
of the error, FF1 is too high.
  • abi9624
  • abi9624
19 May 2025 21:39

AC Servo tuning - Joint 0 following error at high velocities

Category: Basic Configuration

Hi Tommy and Peter. I took some time and tuned all three axis. Now i can jog continuously all three axes. I have attached halscope screenshots of all three axis. Can you please check whether the tuning is good or more need to be done ?
  • scotta
  • scotta's Avatar
19 May 2025 20:53

Remora - Rpi Software Stepping Using External Microcontroller via SPI

Category: Computers and Hardware

Thanks cakeslob! Analog inputs are ready for testing this coming weekend. Then I'll merge over your work.
  • scotta
  • scotta's Avatar
19 May 2025 20:51

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

I'd always recommend calculating the joint SCALE based on the hardware. ie steps per revolution of the stepper motor and then the leadscrew pitch etc. If the actual movement achieved is not correct I'd be suspicious of lost steps, especially if micro stepping.
  • DarkPhoinix
  • DarkPhoinix
19 May 2025 20:49
Replied by DarkPhoinix on topic Remora - ethernet NVEM / EC300 / EC500 cnc board

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

Warning: Spoiler!

Thanks a lot, I'll do some bck just to be safe.
Thank you for doing this amazing job and allowing me to use linuxcnc with my low budget hardware!
  • aluplastvz
  • aluplastvz
19 May 2025 20:40
Replied by aluplastvz on topic absolute encoders with dual axis

absolute encoders with dual axis

Category: Basic Configuration

I'm testing tomorrow
Thank you
  • DarkPhoinix
  • DarkPhoinix
19 May 2025 20:37
Replied by DarkPhoinix on topic Remora - ethernet NVEM / EC300 / EC500 cnc board

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

Warning: Spoiler!

I wanted to give it a high pulse/rev value to have a higher resolution, but I couldn't get precision in long movements. I put your values ​​and after a slight change of scale everything went well!

Thank you very much.

Isn't there a way to calculate SCALE in a precise way? Unfortunately the seller of my steppers and Drivers doesn't give me datasheets and it's really difficult to set them up properly, except trying random values. I also tried with math but nothing I couldn't get low error values ​​Scale=scale_set*Dist_measured/Dist_Insert
  • scotta
  • scotta's Avatar
19 May 2025 20:33

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

is there a way to download previously uploaded nvem-rt1052.txt from NVEM?

 
Unfortunately, no. It's a one way process.

  • scotta
  • scotta's Avatar
19 May 2025 20:30

Remora - ethernet NVEM / EC300 / EC500 cnc board

Category: Computers and Hardware

Hello scotta,

thank you for your quick reply. Yes, that is exactly what I thought myself.

The EC500 is powered by an external power supply. From the 6 pin header, GND, SCK and SDO have been connected to one of the probes.

I don´t have any kind of schematic on hands for the EC500. So I am not shure, why the header pin is labeled SDO. I would expect SDIO for a sufficient SWD connector. Is your header labeled with a SDO too?

My EC500 is labeled with IMXR_EC500 2023-05-18

Up to now, there has not been a single successful flash. From within MCUExpresso, I am at least able to build your application.

If this is not going to be successful: do you think, your actual project with W5500 and raspberry pi pico is as powerful as the 1052 solution and could be a viable alternative?

Thank you very much. I will try to give more details tomorrow.

Cheers Julius


 

I'll need to check the labelling on my boards. With MCUExpressoIDE does it report an error when trying to connect. It may give some clues.
Remora supports quite a number of 3D printer boards. The EC300/500 being 24V IO is more suited when using industrial hardware.
  • Routerworks
  • Routerworks
19 May 2025 20:11
Replied by Routerworks on topic Calling next subroutine messes up offsets

Calling next subroutine messes up offsets

Category: General LinuxCNC Questions

Yes. Good catch.
I would still appreciate knowing how to call anyone of these routines without going through the entire program. Also how to set the Z after the tool change.

Thank you
Displaying 2551 - 2565 out of 25545 results.
Time to create page: 0.381 seconds
Powered by Kunena Forum