Raspberry Pi CNC Controller

Raspberry Pi CNC Controller

Hi, this is Wayne again with a topic “Raspberry Pi CNC Controller”.
Welcome back to the workshop today we’re going to use a tiny computer to control this all right. So why would you want to do this? For my own sake, i always hated using my laptop to run my cnc, because the machine generates a ton of dust that dust can get sucked up into the computer’s intake fans, clogging them and ultimately damaging the computer. But a raspberry pi has zero moving parts and no fans, so there’s no way for it to actively draw in dust plus. The raspberry pi is only 35 dollars, so if it ever gets damaged, it’s cheap to replace. Okay, let’s get started the pie setup for this. Build is super simple, just use pie bakery to create a full raspbian image. You’Ll want to be able to access the pi remotely so set it up for your wi-fi network and ssh burn the image and put the sd card into your pi for this project.

I’M using the official seven-inch raspberry pi touchscreen. I used these standoffs to mount the raspberry pi. I don’t care about the actual touch screen component, so i’m only plugging in wires to power. It and plugging in the pi’s display cable. I’Ve packaged everything up in this enclosure that i found on thingiverse by designer luke e. You can find a link to it in the description below it mounts securely to the display and closes up using some m3 screws.

I’M also using this tiny wireless touchpad keyboard combo to interface with the pi, and it’s also what i’ll be using to control it in the shop. But first, let’s power up the pi and get everything set up on it. The software i’m using to control the cnc is called the universal g-code sender or ugs. This is a java based cnc control software developed by will winder just clone it from the author’s github repo to start using it. You also need to install a package called maven using apt-get, navigate to the universal g-code sender, folder, and then run the run platform.sh script. Your first run of it will take a while.

Raspberry Pi CNC Controller

It needs to compile a bunch of stuff plug in your cnc into any available. Usb port and turn it on when ugs finishes, loading refresh the available ports on the ugs and then press connect go to the machine control tab and make sure you can jog the machine head around. If you find the display is a little bit cramped, edit.

The config file in the boot folder uncomment these two lines and then type in the resolution you want to use 1280×720 is a great start, but i found that 960×540 keeps things a little bit more readable. You’Ll need to reboot for these changes to take effect. For my own setup, i’ve added two rails to mount the pie to the underside of the shelf and there’s a little rack to store the keyboard as well. I’Ve also added some strips of 3m dual lock to help secure the pie in place. I’Ve added a link to those rails in the description below now. Ugs doesn’t generate any g-code for you.

It just runs the code you feed into it. You’Ll need a piece of cam software to create it. First, there’s plenty of options for you, but my favorite is fusion 360.. It’S free. It has a ton of different path options and you can generate code for hundreds of different types of machines.

For an example i’ll cut out these vice soft jaws. It’S a few pocket cuts, followed by a contour to cut the parts out, select all of your tool, paths go to post process and then set your machine to generic gerbil and then output. The file save it anywhere.

You, like you, can move your files over to the pi using a thumb drive, but i prefer to upload them wirelessly using a secure, ftp, client called filezilla back on the pi. The first thing you’ll need to do is set your zero point move the bit. So it’s at the zero point on your stock and then confirm it. Fusion 360 cam files tend to act a little unpredictably if you don’t have a machine home set.

Raspberry Pi CNC Controller

So, as a precaution, i always set that next raise the bit about an inch above the stock and then type in the command. G2 8.1 into the console hit enter, and you should see a confirmation go to the file. Tab load up your gcode file and when you’re ready turn on your router and hit play on file. So that’s my new cnc setup. I’Ve been using ugs on a raspberry pi for about a year now and so far i haven’t had any troubles.

Raspberry Pi CNC Controller

I’M really looking forward to this new minimalist setup. My home shop is really small, and this lets me use my space more efficiently without the need for a full-size monitor thanks so much for watching. If you like this video or learn something from it, be sure to give it a big thumbs up and hit subscribe, so you don’t miss the next article. We’Ll see you next time.

You .