YouTubeInstagramFacebookLinkRedditLinkTwitterTikTok

G-CODE SENDERS FOR Pi 5 & Pi 4

HOW TO INSTAL G-CODE SENDERS ON THE RASPBERRY PI 5 (Or 4.....)

Alright, so let's kick things off with what's nice about using a Raspberry Pi for CNC control. First its compact, low power requirements, and dose not have a lot of fans sucking in dust from your shop. Also windows will not try and turn off your USB connection, or update and change something to break your work flow. 

With the Pi5 what changes are we getting from the Pi4? The CPU went from a 1.8 GHz on the Pi4 to 2.4 GHz, the GPU has 800 MHz vs the previous 500 MHz. This bump in preference is noticeable especially if you are coming from a Pi3. The Pi5 does change up power requirements we now need a 5V 4amp power supply, and finally there is a Soft Power Button, but does any of that matter if it can't run the software you want?

The big change in the Pi world is that the Pi5 is 64 bit only, no more 32 bit. While the Pi4 and older support the 32 bit, the Pi5 will only support 64 bit. I tried to flash a micro SD card with 32bit Buster onto the Pi5, but it will not get pass the boot screen.

I tried 4 G-Code Sender and only got 3 to run on the Pi5. LinuxCNC, UGS, & CNCjs. gSender unfourtunatly is not working with 64bit OS yet, but if that changes I will update this. For now I will put what you need to do to run it on the Pi4, and the OS you need to use.


NOTE:

So we got 3 out of 4 of the senders I tried working, yes there are others, but hey there are only so many hours in a day. Just like I did not have time to run 10 + hour cuts with each sender to see if any stalled or had issues. I want to be clear this is not an endorsement for any of these senders, this was just a test to see if I could even get them to install/run and control the machine. Just because they installed does not mean they will work perfectly or have issues down the road. If you have senders you want me to test out, send me an email.

CONTACT DEHAMMER

This is an affiliate link that help support the channel and add nothing to your overall cost.

This is the Pi I used for this project, you can get it in a 8GB Ram or 4GB Ram. There are other full kits out there or just the board itself. Find what works for you.

Raspberry Pi 5 Starter Kit 128GB - 8GB Ram


linux CNC

If you are using USB to connect to your CNC Machine, you will want to look at other g-code senders. Linux CNC connects using Serial Port only, NO USB

Linux CNC has it owns OS image so we will need to flash the image to our micro SD Card, instead of installing the the Pi OS

!!!THIS DOES NOT SUPPRT GRBL!!!

DOWNLOAD IMAGE: https://linuxcnc.org/downloads/

INSTALL:

sudo apt-get update

sudo apt-get upgrade

OPTIONAL: Once that is done you can reboot, if you choose to.

If you did not edit the settings in OS customization then:

USER NAME: cnc

PASSWORD: cnc

sudo menu-config

UGS - (Universal G-code Sender)

Supports Serial Port & USB connection for CNC Machines. It is compatible with GRBL, TinyG, g2core, and Smoothieware

DOWNLOAD TAR FILE: https://winder.github.io/ugs_website/download/

OR:

DOWNLOAD TAR FILE: https://github.com/winder/Universal-G-Code-Sender


NOTE: Use Raspberry Pi Imager to flash your Micro SD Card with Raspberry Pi OS (64-Bit), for this build I used the Debian Bookworm. 


INSTALL:

For the Pi5 I used the ARM64 v2.1.4

CNCjs

Supports Serial Port & USB connection for CNC Machines. It is compatible with GRBL, GRBL-Mega, TinyG, g2core, and Smoothieware

DOWNLOAD: https://github.com/cncjs/cncjs-pi-raspbian

NOTE: Use Raspberry Pi Imager to flash your Micro SD Card with Raspberry Pi OS (64-Bit), for this build I used the Debian Bookworm. CNCjs does recommend you use the Lite version, but I did use the full desktop verion and have not had any issues so far. Will update.


INSTALL:

URL="https://raw.githubusercontent.com/cncjs/cncjs-pi-raspbian/master/cncjs_install.sh"

curl -sSL ${URL} | bash

URL="https://raw.githubusercontent.com/cncjs/cncjs-pi-raspbian/master/cncjs_install.sh"

wget -O cncjs_install.sh "${URL}"

cat --number cncjs_install.sh

sudo bash cncjs_install.sh

http://localhost:80

gSender

gSender as of 02-17-24 only runs on 32bit OS

Last gSender 32bit build is 1.2.2

!!!WILL NOT WORK ON Pi5!!!

Works on Pi4 32bit Buster OS Only 

The Pi Imager does not have Buster as an option in the Operating system it only has Bookworm & Bullseye. So we will need to download Buster and do a custom OS install just like with linuxCNC.

DOWNLOAD: https://downloads.raspberrypi.org/raspios_armhf/images/raspios_armhf-2021-05-28/

FILE: 2021-05-07-raspios-buster-armhf.zip 

INSTALL

https://github.com/Sienci-Labs/gsender/releases/

gSender-1.2.2-armv7l.AppImage


SCREEN RESOLUTION

If everything looks small when you boot into Buster, you can change the resolution by: