Install UGS On Pi4

As a pre cursor Install GRBL On Arduino Uno

Windows Host Steps

  1. Pop the SD card into a reader and connect to the PC using USB
  2. Download Raspberry Pi Imager https://www.raspberrypi.com/software/
  3. Open Raspberry Pi Imager and install Raspberry Pi OS 32 on the USB using Raspberry Pi Imager

I customised the installation and ran the install

  • hostname cncpi
  • user gordon
  • configured wireless LAN and set country to NZ

Pi4 Steps

After the install pop the SD card into the Pi, plug the Pi into a screen, keyboard & mouse. Then power it on and login.

  1. Update the Pi with sudo apt-get update and sudo apt-get dist-upgrade
  2. run sudo apt update
  3. run sudo apt install default-jdk
  4. Reboot the Pi

Some forms suggested to run sudo raspi-config and setting Display Options -> GL Driver -> Full KMS (external screen) but mine just worked so I left it.

Install Java and download UGS

  1. Run sudo apt-get install openjdk-8-jdk
  2. Download UGS from https://github.com/winder/Universal-G-Code-Sender?tab=readme-ov-file#downloads selecting Linnux ARM64
  3. Extract the content from the tar.gz, I just put it on the desktop
  4. Navigate to ugsplatform-pi\bin\ and right click on ugsplatform -> open and select Execute in Terminal (it took a while to load)

Configure GRBL

From UGS console I then set the GRBL settings, these save to the Arduino UNO, you can view the current settings with $$, I documented the GRBL Settings For My IndyMill Build here.

References