Can a Raspberry Pi w/ UGS be used to send Gcode to Arduino?

Discussion about the arduino based g-code interpreter, grbl
Post Reply
pmap93
Posts: 17
Joined: Sun Apr 26, 2015 10:51 pm

Can a Raspberry Pi w/ UGS be used to send Gcode to Arduino?

Post by pmap93 » Sat Feb 06, 2016 9:29 am

Good Day! I've been looking for a low-cost method of having a mini workstation for my new shapeoko. :D

Thing is, i don't have a spare computer for now, but i have a Raspberry Pi ^^ I know a bit about it though. I've been using Universal GCode Sender for months now with a laptop on Windows, however, I wanted to try to experiment and see if it is possible to connect the Arduino to the Pi and the Pi will be the one responsible for sending Gcode? :?:

Where should I start? :D

Is there a Pi compatible version of UGS? I guess it would be since it is Java right? :D

Is connecting the Arduino as simple as plugging in the USB to the Pi?

Regards,
Paolo

WillAdams
Posts: 8489
Joined: Mon Apr 09, 2012 6:11 pm
Location: Pennsylvania --- south of the Turnpike, East of US-15
Contact:

Re: Can a Raspberry Pi w/ UGS be used to send Gcode to Ardui

Post by WillAdams » Sat Feb 06, 2016 10:05 am

Shapeoko 3XL #0006 w/Makita RT0701 Router w/0.125″ and ¼″ Elaire precision collets
Nomad 883 Pro #596 (bamboo)

Shook
Posts: 139
Joined: Thu Nov 12, 2015 6:50 pm
Location: Downingtown, PA

Re: Can a Raspberry Pi w/ UGS be used to send Gcode to Ardui

Post by Shook » Sat Feb 06, 2016 6:50 pm

I've been using a Raspberry Pi 2 with universal G-Code Sender. It works swimmingly.

I haven't yet tried an original Raspberry Pi, but I have 2 sitting around. They're 1st and 2nd generation - 512mb and 1gb respectively, both with heat sinks on the CPU.
Shapeoko 3 (#1107)

pmap93
Posts: 17
Joined: Sun Apr 26, 2015 10:51 pm

Re: Can a Raspberry Pi w/ UGS be used to send Gcode to Ardui

Post by pmap93 » Sat Feb 06, 2016 8:04 pm

I have Model B+, I shall try this ASAP ^^

May I ask if there are any additional packages to be installed?

pmap93
Posts: 17
Joined: Sun Apr 26, 2015 10:51 pm

Re: Can a Raspberry Pi w/ UGS be used to send Gcode to Ardui

Post by pmap93 » Sat Feb 06, 2016 9:10 pm

I'll put this link here for those who'd need:

instructions to install

http://opensourceecology.org/wiki/Gcode ... spberry_Pi

pmap93
Posts: 17
Joined: Sun Apr 26, 2015 10:51 pm

Re: Can a Raspberry Pi w/ UGS be used to send Gcode to Ardui

Post by pmap93 » Sat Feb 06, 2016 11:33 pm

It works!

using the 'start.sh' script!
Thanks for al your help!

however the Visualizer window .. it isn't working :(

A whole lot of messages appear with the line "Exception in thread "AWT-EventQueue-0" "in the top.

Any ideas how?

Running the latest fresh copy of Raspbian :)

I found this:

I cant understand it, looks really complex, any simpler step-by-step instructions? :/
https://github.com/winder/Universal-G-C ... /issues/47

Running Latest UGS 1.0.9

pmap93
Posts: 17
Joined: Sun Apr 26, 2015 10:51 pm

Re: Can a Raspberry Pi w/ UGS be used to send Gcode to Ardui

Post by pmap93 » Sat Feb 06, 2016 11:37 pm

Ouch. Never mind.

Any cnc file i use and press 'Send' Aborts the program.

"A fatal error has been detected by the Java Runtime Environment:

Internal Error (os_linux_zero.cpp:285), pid=1395, tid=2639656032
fatal error: caught unhandled signal 11"


Is there something wrong? Am I missing some steps or packages to be installed? :|

Shook
Posts: 139
Joined: Thu Nov 12, 2015 6:50 pm
Location: Downingtown, PA

Re: Can a Raspberry Pi w/ UGS be used to send Gcode to Ardui

Post by Shook » Tue Feb 09, 2016 3:46 am

I'm using an OS build from http://wiki.protoneer.co.nz/Raspberry_P ... mmended.5D
I saw the link in a discussion focused on bCNC - https://github.com/vlachoudis/bCNC/issues/12

It's geared towards bCNC, but I had limited success with bCNC. I dropped UGS on there and it worked. As you mentioned, the visualizations failed I think that's a problem with the limited graphics acceleration on the raspi


I'm working with a nightly build of UGS from November (I should probably update it).
Shapeoko 3 (#1107)

Post Reply