gDeck: an alternative touchscreen app for the Redline controller

Like many of you, I upgraded to the redline controller from my buildbotics, but personally, I quickly regretted it. The hardware is the same as Masso or other controllers, but the software is really lacking. After a year of not that many improvements, I decided to see what I could do to improve it myself. Given that it’s just a raspberry pi inside, I thought it wouldn’t be too difficult.

So I started working on just the UI side of the redline controller. This is just the screen with no changes to the actual control firmware that’s connected to the motors. The screen mostly just sends gcodes to the controller, so this is basically just a UI swap.

It’s still very early, but I’m excited to share my progress.

How it installs

  • Next to stock, not instead of it. One update file installs through the normal Settings → Software update → Update from file menu. Stock RTS-X stays byte-for-byte stock.
  • Startup selector. At boot you pick Stock RTS-X or gDeck.
  • Built for RTS-X 1.6.3 on the factory Pi image.

The main screen

Big readouts, zero / go-to-zero / home per axis, and step or joystick jogging. Before anything can move it shows a short checklist of what’s still missing (controller set up, E-stop, homed…) with a one-tap fix.

Running jobs

  • 3D toolpath preview where you can orbit, pinch-zoom and pan the same way you would on your phone using multi touch. I tried to make the toolpath colors match more of fusion 360 with slow movements in red, medium in green, rapids in yellow, and the main feed in blue. Also, the part already cut turns grey as it runs.
  • Spindle load next to the speed, optional pause on high spindle load, run time kept after the job finishes, “delete file after it runs”, and G-code you want added to every job (start, around tool changes, end: think dust boot up/down).

Probing

  • X/Y/Z from any of the four corners, with a probe block or directly on a conductive workpiece.
  • Hole center: touches the walls of a hole, sets X0 Y0 at its center and reports the diameter (requires the stock to be conductive)
  • Uses the loaded tool’s diameter (asks if it doesn’t know it), and can optionally spin the bit in reverse during X/Y moves on VFD spindles (in case your bit isn’t perfectly round).

Tool changes

This was one of my biggest issues with the redline software. It is made for the rapid ATC, which I don’t have. So whenever I needed to change some tool, I would have to go through their manual change and it just seemed burdensome. So for mine, you don’t need to specify a tool number. You can define a list of tools (or forgo it all together). In addition, you can set the diameter of the tool which would then automatically be used when probing.

Files

  • Better interface for a touch screen.
  • Option to auto delete files
  • Optional network drive so your computer can drop files straight into the job folder.

Settings

I wanted a lot more customization of how things work on the UI, so settings allows to me change a lot more of the user interface.

  • Tools: choose what you want to track (tool number, name, diameter, any mix or none) and whether probing uses the tool’s diameter.
  • Preferences: G-code that’s added to every job (at the start, before and after each tool change, at the end), like Buildbotics’ program start / tool change / end boxes.
  • Switches to disable various popups (like the annoying “Program complete” popup… I know it’s complete!)

new G-code support

I’m working on adding functionality for gcodes that the firmware doesn’t support on it’s own. When a program sends these gcodes, I convert them into a set of gcodes that the firmware would understand.

  • Drill cycles G81, G82, G83 (peck), G73, G85, G89, drawn in the preview.
  • G52 local offsets (repeat a part at several spots in one file).
  • G10 L2 / L20 to set work offsets from G-code.

Not supported yet

RapidChange / ATC, rotary (A) axis as I don’t have these

And this is only the Redline Pi, not the desktop versions of RTS-X.

Where it’s at

It runs on my machine: the selector, connecting, homing, jogging, running a job with hold/resume and tool changes all work. I’m still trying to verify all the other things.

I’m also thinking of other cool things I could do. One idea is to have a camera mounted on the frame and watch the workpiece. If it detects the workpiece moving, pause the job. That will be more complicated to implement.

What would you want to see in it? And what bugs you most about the stock app today?

I bought a Masso G3 for my original Woodworker many many years ago and quickly began customizing the mechanics and electrical - never worried about support and warranty because I was confident in my skills and had no plan to ever need these official help options.

I was a bit surprised by your comment implying many disappointed Redline owners. I did a lot of research before buying my Masso, so knew it would do what I needed it to do - tool change logic being the most important as I immediately installed my own pneumatic ATC and supporting electronics.

Is it safe to say that anyone following your path will void all warranty - machine and controller (electrical and mechanical)?

I imagine Onefinity will jump in to clarify this.

Otherwise, looks like you have added some great functionality - doesn’t look bad either. :grinning_face:

Nicely done. An option to revert to original software with one-button would be useful in the testing and acceptance.

Very nice! I love all the features!

I did originally try to make it so you could switch to the original without having to reboot, but redline’s ui expected some stuff from the controller that I was having issues with. So I made it require a reboot to go back to the stock code.

So at startup, you see this screen which lets you choose which software to start.

The idea to bring your own “g code sender” is a good one. For those willing to support themselves. You’ve got some good ideas and hopefully some can make it back to the official product

An AI camera is an interesting idea. Not only watch the stock but stop if it is going to cut through your fixtures. Like that would ever happen. Again.

I just wanted to add that I’m continually in awe of the brilliance and resourcefulness my fellow 1F comrades here! It is actually humbling to say the least. Over the years they have been my most reliable source for tips, tricks, and (just as in this case) potential mods to my machine and processes.

What you are pursuing here certainly epitomizes all of that, keep us up to date on how this proceeds please.

Excellent. I don’t think requiring a reboot is an issue. Good approach with the startup screen option.

This is great!!, Great work!!

I’m not disappointed with upgrading from BB → Redline, but I do miss some of BB’s features. I suggested eons ago as a feature request adding the start, tool change and finish macros. I guess it was deemed unworthy of further consideration and seemingly dropped into the black hole of irrelevance.

Another thing that could stand some serious TLC is the web interface (Redline). Outside of just being plain ugly, the only useful part of it is the file manager. The rest is basically useless. I use a remote terminal to connect to the HMI. It looks and feels as if you were standing in front of the HMI directly with full functionality.