EMC2 RPi Hybrid hack?


12 posts
by MrGreg » Tue Jun 26, 2012 11:49 pm
Hope this proposition has not been covered elsewhere...
I am to a degree rather rusty and rather out of my depth as I have not done much tinkering since 6502/Z80 days
Anyways, here goes.

The Gertboard has provision for an Atmel '328
There is now a version of EMC2 for the AT328 Arduino

See
http://emc2arduino.wordpress.com/
and
http://emc2arduino.wordpress.com/faq/

So the proposition is essentially splitting EMC2, the brains & front end/GUI of emc2 on the Pi while the realtime priority IO is done by the AT'328 on the Gertboard. This would allow (could it be done?) the rest of the IO on the Gertboard to look after the low priority non realtime IO for other functions for a workable and flexible CNC - Robotics solution.
Keeps the hardware all RPi/Gertboard.


So that is the concept I have imagineered.

Is this a sane proposition? Or am I well past at my sell by date? :D

Comments?

NB
I am not the guy to do this.....
Posts: 46
Joined: Sun Jun 10, 2012 7:25 pm
by mung » Wed Jun 27, 2012 1:10 am
Good idea, go ahead and do it!

You may not be the one that successfully does it but you should at least try otherwise you should not be taking about it!
Posts: 195
Joined: Fri Nov 18, 2011 10:49 am
by MrGreg » Wed Jun 27, 2012 11:35 pm
Good idea, go ahead and do it!

You may not be the one that successfully does it but you should at least try otherwise you should not be taking about it!


Well.
I believe that discussing an idea - proposition (talking about it) is usually a good place to start, hence posting it in Community/ General Discussion.
I also believe we are trying to achieve a similar outcome, but from a different standpoint and method. We are all limited to the rescources we have available.

So.

I look forward to constructive comment - input - critique to get the ball rolling in the first instance.

I eagerly await a Gertboard to tinker (start trying) with.
Posts: 46
Joined: Sun Jun 10, 2012 7:25 pm
by ksangeelee » Thu Jun 28, 2012 12:31 am
Interesting idea - I hadn't heard of emc2arduino before either, so it made an interesting read. Sounds feasible enough, if not using the Gertboard, then wiring the MCU and terminal blocks to some veroboard.

Have you tried running EMC2 on the Pi yet? I wonder how the GUI would cope with so little RAM and slow floating point? Of course if was just being used as a gcode interpreter, that would be simple enough (and still useful enough; I seem to recall some people using bits of EMC2 entirely from the console).

I've got a 3-axis machine in the garage, waiting to be tinkered with. I might join this thread when its turn comes up! I want to do something USB with a PIC18F2550 (I've already got USB code for that chip, and I'm sure I could replicate the emc2arduino code in C).
Posts: 193
Joined: Sun Dec 25, 2011 5:25 pm
Location: Edinburgh, UK
by dandumit » Wed Jul 18, 2012 10:57 am
Very interesting !
Unfortunately on site emc2arduino I haven't found any released version of LinuxCNC that could be able to send only GCode commands.
REgarding integration of raspberry pi with arduino than it can be done over serial port getting rid of usb .
Here I think that are needed some configurations.

Kind REgards,
Daniel
Posts: 12
Joined: Tue Jul 03, 2012 11:14 am
by dandumit » Wed Jul 18, 2012 10:58 am
Very interesting !
Unfortunately on site emc2arduino I haven't found any released version of LinuxCNC that could be able to send only GCode commands.
REgarding integration of raspberry pi with arduino than it can be done over serial port getting rid of usb .
Here I think that are needed some configurations.

Kind REgards,
Daniel
Posts: 12
Joined: Tue Jul 03, 2012 11:14 am
by dandumit » Wed Jul 18, 2012 1:01 pm
Quick update , owner of emc2arduino just replied me and said that LinuxCNC can be fairly easy configured to use a serial port.
Still remain the problem to get LinuxCNC on Raspberry...
Posts: 12
Joined: Tue Jul 03, 2012 11:14 am
by mung » Thu Aug 02, 2012 5:51 am
I just thought I should post in case people are not following other threads related to this.

EMC2/linuxcnc is fairly simple to compile and run on the RPI so long as you only want it to run in sim mode.

Realtime kernel support will need a bit of work.

Check this thread viewtopic.php?f=24&t=1847

or this thread for more realtime info viewtopic.php?f=63&t=2376
Posts: 195
Joined: Fri Nov 18, 2011 10:49 am
by MrGreg » Mon Dec 03, 2012 12:20 am
It would seem that this concept has already been done with a PIC chip:

It is a USB dongle device providing realtime motion without the need for a realtime kernel
IE a cut down front end of EMC2 - linuxcnc driving a microcontroller (Not the Atmel though) and is available here

http://www.ecklersoft.com/

I have successfully compiled this, well without apparent errors and got the gui up, on an RPi to the point that I need to do further tests/evaluation on the ecklersoft hardware/device and some real steppers.

I will post back progress and info as it occurs, and post a "How To" compile when I am a little more confident about it working something like it was intended to

Special thanks to Toby Davies for sorting the issues with tcl
Posts: 46
Joined: Sun Jun 10, 2012 7:25 pm
by dandumit » Mon Dec 03, 2012 3:38 am
thanks for pointing to this solution.
Unfortunately it's a closed source solution . Even if that guy opened a code repository on http://code.google.com/p/rtstepperemc/ he didn't post a thing there.

Br,
Daniel
Posts: 12
Joined: Tue Jul 03, 2012 11:14 am
by evandene » Tue Dec 04, 2012 7:44 am
MrGreg wrote:It would seem that this concept has already been done with a PIC chip:

It is a USB dongle device providing realtime motion without the need for a realtime kernel
IE a cut down front end of EMC2 - linuxcnc driving a microcontroller (Not the Atmel though) and is available here

http://www.ecklersoft.com/

I have successfully compiled this, well without apparent errors and got the gui up, on an RPi to the point that I need to do further tests/evaluation on the ecklersoft hardware/device and some real steppers.

I will post back progress and info as it occurs, and post a "How To" compile when I am a little more confident about it working something like it was intended to

Special thanks to Toby Davies for sorting the issues with tcl



MrGreg, regarding the Rpi and the ecklersoft dongle, any progress? I did build my own CNC unit and I would like to go for a new challenge, hooking up my RPi.
Please post,
Ed van den Enden
Posts: 1
Joined: Tue Dec 04, 2012 7:25 am
by MrGreg » Wed Dec 05, 2012 12:19 am
I have started a fresh thread Re the ecklersoft dongle, rtstepperemc software, with a brief initial "How To" to compile the rtstepper software
I will post related stuff here from now on

viewtopic.php?f=37&t=24683
Posts: 46
Joined: Sun Jun 10, 2012 7:25 pm