Carbide Motion on a Raspberry Pi

My setup in the garage is using an older Dell ST2410b monitor which is 1080 monitor and has been around for a while. Good point on possible background processes maybe competing for Pi resources but so far what I’ve noticed is using the arrow keys on the keyboard I get the delays/stuttering/pauses but none whatsoever if using the mouse and holding down on the x/y/z jog buttons in the GUI. Maybe I’ll try swapping out the keyboard for another USB one and see if this behavior continues, then I’ll see about swapping displays.

I am using a 1080p monitor and a wireless handheld keyboard from my original windows pc setup. I lack the skill to take the trouble shooting much farther so I am just going to go back to a pc based system. It makes me a little sad because I love the idea of using a Pi 4 but oh well. It could be some sort of background task that momentarily causes performance issues but I am more inclined to look at how the USB system is working because of the stutter when trying to jog with a USB keyboard.

There were issues with Pi4’s USB exhibiting lag and stuttering sometime last year. A firmware update for the USB controller apparently improved the situation for some.

Have a look at this thread to see if it describes similar issues.

3 Likes

Good find, sounds familiar so I’ll have to dig into this over the weekend and see if this is related to my problem.

Thanks for the tip! I will take a look at it when I get home today.

Fwiw, pi4 4gb on the official 7" touch screen, no stuttering when I jog. (Brand new Pi)

2 Likes

First off, I have no experience with the Pi.
but… the lagging and occasional stutter… Have seen this before in other situations, and those occasions were involving touchscreen utilities also.
I do not know what is possible on a pi, it seems the easiest solution in other occasions was to make sure as little as possible/tasks are running in the background.
maybe… if possible, check into anything else that can be using the processor at the same time.

Got my Pi4/4GB up and running with CM and CNCjs, wireless mouse & keyboard and a re-purposed small flat-screen TV with HDMI input. The DEB image of CM dropped in without fuss and bootstraps with the autostart setup in the GUI. All tested out perfectly with my glass drawing machine, and tomorrow I hope to try it for real on the 3XL. Got a neat aluminium (aloominum for our friends the other side of the pond) case from 52PI with a temperature activated fan inbuilt. Should make for a nice setup in the workshop, and let me position my MacBook Pro away from the dust.

2 Likes

agree about limiting any additional modules from running in the background. My install is just the vanilla build with no tweaking so I have a few things to look into but if it continues I’ll definitely look into the image/script that @fenrus worked on earlier in this thread as he already gutted out what’s not required in the default image which likely runs much smoother overall as a result.

Also joined the pi users yesterday. It all worked flawlessly (thumbs up to Carbide 3D and the helpful posts in this thread) excpet for one issue:

When loading a new file in CM, the dialog does not show my network folders.
The folder in question is mounted and accessible via the regular file explorer.
Is that a CM issue or an issue of how the network folder was mounted (this was done by file explorer > go > network)?

I mounted my NFS share in /cnc, automatically at startup in fstab, and then I just open my /cnc folder - CM remembers the last location (or maybe that’s native to the linux file selector).

2 Likes

For you non-techies out there I got a raspad, rapberypi4, carbide motion hooked up and working with my nomad.

  • Raspad comes with own image to download
  • carbide3d supplied the Linux version of carbide motion (there is a link above, it needs hunting down)
  • samba for file sharing (give it a bash, a bit of googling)

The fiddle-faddle bit was creating sharing files between my PC (I use f360) and the pi. But I got there with some googling. I can now drop a file from my PC, over the network (wow) to the raspad and the nomad.

I went this route:

  • easier setup of the nomad (I can hold the raspad in front of the machine and use the touch screen)

  • I can use my PC without fear of crashing and impacting a nomad run.

  • I now have the option of being more distant from the noise when milling Aluminium (I’m still experimenting with Aluminium :unamused:)

4 Likes

The file share is such a huge productivity boost! I have my Fusion360 default folder set to my network share. No more running downstairs and realizing I forgot to bring down the USB key. Or upstairs and realizing the same.

4 Likes

I’m still trying to work out a workflow that doesn’t have me reaching for a laptop to do last minute things in code or carbide create. Is anyone using a keyboard with their Pi or you going full on touch screen.

Bought a couple of these and Pi screens and they look pretty nice, just need to work out placement and determine if the fan in the back is gonna be a problem with dust and chips.

I got the SmartIPi Pro case. Unsure on difference with the Touch 2.

It’s great, but I do have a laptop in the garage (Linux) and I use Chrome Remote Desktop to get to my main PC (Windows) for F360 changes. It’s streamlined my workflow a lot - running up 2 flights of stairs to the office was not very great. And it lets me visually verify stuff like my WCS zero since I will vary the top/bottom Z, although I have been favoring bottom Z increasing for the sake of my spoilboard.

Haven’t had much luck yet with an OSD and using CM in full screen mode. Would be great to adjust offsets more easily but for now I just jog and set.

I run a Pi 4 with no fan and have had no issues. CM is not very demanding on the CPU.

2 Likes

Thanks for this effort.

I would not have purchased a Shapeoko had I not known about this development.
My business and lab moved away from Windows/Mac years ago in favor of Linux (any debian, including Raspbian.) When considering new equipment or tools, anything that requires us to maintain Mac OS or Windows based computer without supporting Linux based workflow get disqualified automatically.
We just finished assembling a S4XL and we look forward to seeing how the Shapeoko performs.

4 Likes

Agreed, I think C3D needs to make it more obvious. Googling Carbide Motion + linux easily brings up old threads saying support is discontinued. Perhaps a note on the product page for the machines themselves

What’s included:

  • Shapeoko Pro
  • Carbide Motion control software (runs on Windows, Mac or Raspberry Pi)
1 Like

So I finally had the time this summer to do some upgrading to my 3XXL & just finished setting up a Rpi4 4GB with a 7" screen & case.

Just ran its first job… Which seemed to be working fine for the most part… Until I noticed that the progress screen froze up just before 80% of the job was done.
The CNC program still ran to what appeared to be almost the end of the job before the spindle just stopped above the work piece. I’m not sure if that’s due to buffering between the Rpi & Shapeoko controller or Carbide Motion just finally fully hung on the Rpi. But could not get Carbide Motion UI to respond at all.

Had anyone else run into this issue? Only potential cause I can see currently might be the screen timeout on my Rpi setup. The screen appears to shut off after a few minutes of no mouse/touch input.

Three things come to mind.

  1. heat - I don’t know where your PI is but in my garage where I have mine setup it is about 110. I have a fan and heat sink on the pi, I have a fan blowing across the arm that has the PI on it and I monitor to make sure the chip is running between 180 and 200 degrees F.
  2. The screen blank should not cause issues, but that does not mean the PI is not going to sleep due to some setting somewhere.
  3. the USB connection between the PI and the Control board became loose or vibrated out.
1 Like

I had an issue early on with the default power management settings in the rpi. My issue was related to how power management and a rpi with no display behave. Once I disabled the power management, I had no problems with the display plugged in or when I had the display unplugged and was using RealVNC.

2 Likes