For nerds only: Raspberry Pi for EMC2 controller?

Page 1 of 8 1234 ... LastLast
Results 1 to 20 of 159

Thread: For nerds only: Raspberry Pi for EMC2 controller?

  1. #1
    Registered
    Join Date
    Apr 2010
    Location
    USA
    Posts
    363
    Downloads
    0
    Uploads
    0

    Default For nerds only: Raspberry Pi for EMC2 controller?

    Raspberry Pi | An ARM GNU/Linux box for $25. Take a byte!

    Might be interesting for a cheap EMC2 video controller... 700mhz, 256mb ram, runs on an SD card. Not sure about USB support, but a port for smoothstepper would be awesome. Using an LPT port is probably out of the question.

    Interesting idea, anyways. At $25 bucks it seems promising.

    Similar Threads:


  2. #2
    Registered amishx64's Avatar
    Join Date
    Jul 2008
    Location
    USA
    Posts
    390
    Downloads
    0
    Uploads
    0

    Default

    Writing drivers for the USB end might be interesting. I'd be worried about performance too considering the small ram size. Personally, I think implementing something on an android tablet would be a bit more feasible especially as far as product lifetime/lifecycle is concerned. Food for thought.



  3. #3
    Registered
    Join Date
    Oct 2010
    Location
    UK
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default EMC2 and Rasberry Pi.

    I would have thought it was better to control the CNC controller with the GPIO pins rather than any USB driver.

    There is supposed to be a Gert-Board for expansion facilities on the Raspberry Pi. Not sure how many bits of the GPIO port is being made available in the first incarnation or how many EMC2 needs

    The GPIO voltage levels are 3.3v so may need a chip like TXB0108 bi-directional level converter
    Keith



  4. #4
    Registered amishx64's Avatar
    Join Date
    Jul 2008
    Location
    USA
    Posts
    390
    Downloads
    0
    Uploads
    0

    Default

    That's interesting. I just posted about using this chip for a 3.3V to 5V fix for parallel ports and I did think to apply it to this situation. You can find the mention to it in my comment history somewhere.

    As for the reason behind Android, it is a very widely used system and complete open source, so there are plenty of options for development. You would likely have to have the Droid talking to a secondary buffer board that holds lists of time-stamped future 'actions' and executes them according to realtime-clock ticks or a precision oscillator. This buffer-board could just implement a wireless protocall (say bluetooth) to talk to the Droid. Furthermore, the droid OS would allow for graphical control of the machine.



  5. #5
    Registered
    Join Date
    Oct 2010
    Location
    UK
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default

    Sorry to disagree but I just don't see this happening for Andriod tablet. Because too difficult to interface hardware.

    Also CNC needs real time operating system. There is one for Linux and not such a large step for Rasberry Pi which already is supported by various flavours of linux. EMC2 being the Linux implementaion on x86.



  6. #6
    Registered amishx64's Avatar
    Join Date
    Jul 2008
    Location
    USA
    Posts
    390
    Downloads
    0
    Uploads
    0

    Default

    You are perfectly fine to disagree. You have a very good point.

    Do you think Raspberry Pi and a SmoothStepper is the answer though? I can see it happening on the Pi, maybe with some extra hardware, but not with the SmoothStepper. It seems too... excessive.



  7. #7
    Registered
    Join Date
    Oct 2010
    Location
    UK
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default

    Don't know much about Smoothstepper, but as far as I can see its a USB interface for Mach3 on a Windows PC. Unless they release the SDK for ARM & say Linux I don't see it as any relevance. I would have thought that USB is not the best way to go as there is a delay and lack of direct control. People used Printer ports on PC's because you have direct control of input and output pins. Trouble is what PC has a printer port these days. Given one is trying to drive CNC machines, I would always opt for Real Time Operating system ( i.e. Not windows ) and direct hardware interfacing. Both of which the Raspberry Pi should be able to do with the required developments.



  8. #8
    Member
    Join Date
    Sep 2005
    Location
    United States
    Posts
    38
    Downloads
    0
    Uploads
    0

    Default emc2 on raspberry pi

    I order my raspberry pi to play with. I also want to test if emc2 can work on it. The problem is I am not a linux guy. I will be more than happy if we can work on it together.

    Regards,
    Nuri Erginer



  9. #9
    Registered
    Join Date
    Mar 2012
    Location
    United Kingdom
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default RasPi EMC2

    I am also interested in running am embedded RPi EMC2 system, I have some linux background and I am willing to help in any Raspberry Pi Project, I am waiting for a pi to come my way and am thinking about attaching some h-bridges to the gpio. its is all very early days still, but anyone else interested in the project PM me and I'll see if I can start putting some preliminary documentation / designs together.

    ** Update ** Have just setup a project site. CNC Pi / Wiki / Home

    Last edited by dannynet; 03-06-2012 at 09:55 PM. Reason: UPDATE


  10. #10
    Registered
    Join Date
    Apr 2010
    Location
    USA
    Posts
    363
    Downloads
    0
    Uploads
    0

    Default

    I don't have much linux knowledge beyond being a user, but I will help wherever possible. It looks like it WILL have to use a smooth stepper, which is an extra cost, but considering the price of the Raspberry Pi it equals out quite nicely when you don't have to shell out a few hundred bucks for a PC. I doubt that a USB parallel port will work fast enough to satisfy the needs of EMC2, but if they could get it working it would be quite nice.

    I think the biggest hurdle will be getting smoothstepper drivers to work properly within Linux.



  11. #11
    Registered
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    21
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by crane550 View Post
    it equals out quite nicely when you don't have to shell out a few hundred bucks for a PC.
    Oddly enough an old machine works much much better. I gave up trying to use linuxcnc on a laptop, although an old Pentium 4 desktop works like a charm (I tried a Dell Dimension 3000 motherboard that I had on hand). These can be picked up for next to nothing these days, especially if you know anyone who is upgrading .

    But I'd be interested in using a Pi as a controller source too!



  12. #12
    Registered judleroy's Avatar
    Join Date
    Dec 2006
    Location
    USA
    Posts
    406
    Downloads
    0
    Uploads
    0

    Default

    Dynomotions k-flop works through USB. It also uses emc2 for g-code. It is a very powerful controller that takes the real time needs off the pc. It might make a good fit for what you are working on. I also don't see why you couldn't get it to work with an android tablet. Just my 2cents.
    Judleroy



  13. #13
    Registered port_huon's Avatar
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    362
    Downloads
    0
    Uploads
    0

    Default

    256Mb memory may be the limitation,
    Mine's on backorder

    Last edited by port_huon; 03-07-2012 at 06:34 AM.
    Regards
    Geoff


  14. #14
    Member
    Join Date
    May 2005
    Location
    canada
    Posts
    1662
    Downloads
    0
    Uploads
    0

    Default

    Mini ITX isn't small enough ?

    Linuxcnc adapted to this board sounds possible. Someone pointed out there is suitable I/O on board ? That would allow the pc (or whatever you call these things) to remain as a real time control and avoid USB. Linuxcnc is not restricted to parallel port afaik.

    Anyone who says "It only goes together one way" has no imagination.


  15. #15
    Community Moderator wendtmk's Avatar
    Join Date
    Dec 2005
    Location
    USA
    Posts
    591
    Downloads
    0
    Uploads
    0

    Default

    LinuxCNC does not support motion control through the USB port. It does support motion control through the parallel port, and through various other motion control cards like Mesa, Pico, I believe Galil, and some others. But not USB. There has been some talk of implementing it through real-time ethernet, but not as of yet.

    Mark



  16. #16
    Member
    Join Date
    Jun 2007
    Location
    canada
    Posts
    3891
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by wendtmk View Post
    LinuxCNC does not support motion control through the USB port. It does support motion control through the parallel port, and through various other motion control cards like Mesa, Pico, I believe Galil, and some others. But not USB. There has been some talk of implementing it through real-time ethernet, but not as of yet.

    Mark
    is there a fundamental reason it doesnt support usb? or is it just cause noones done drivers yet?

    something to note about the raspberry pi is that it has no real time clock. i do not know myself if this is important to cnc control, but im guessing yes. you can add a clock on the gpio, but then you loose io which you really want to keep for control.

    in any case, i really want to implement this little pc for cnc control, whether its linux or android or maybe even windows in the future.



  17. #17
    Registered
    Join Date
    Apr 2010
    Location
    USA
    Posts
    363
    Downloads
    0
    Uploads
    0

    Default

    Realtime Ethernet might be the answer. I think there could be potential for the Tablet option, but that warrants it's own topic. This is about the possibility for R. Pi as a low cost controller.



  18. #18
    Community Moderator wendtmk's Avatar
    Join Date
    Dec 2005
    Location
    USA
    Posts
    591
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by ihavenofish View Post
    is there a fundamental reason it doesnt support usb? or is it just cause noones done drivers yet?

    something to note about the raspberry pi is that it has no real time clock. i do not know myself if this is important to cnc control, but im guessing yes. you can add a clock on the gpio, but then you loose io which you really want to keep for control.

    in any case, i really want to implement this little pc for cnc control, whether its linux or android or maybe even windows in the future.
    They've decided that the timing unreliability of USB in a real time situation was not worth the time and effort to create a path for a CNC control signal.

    Mark



  19. #19
    Member
    Join Date
    Mar 2004
    Location
    Wisconsin
    Posts
    413
    Downloads
    31
    Uploads
    1

    Default

    Quote Originally Posted by KeithSloan View Post
    Sorry to disagree but I just don't see this happening for Andriod tablet. Because too difficult to interface hardware.

    Also CNC needs real time operating system. There is one for Linux and not such a large step for Rasberry Pi which already is supported by various flavours of linux. EMC2 being the Linux implementaion on x86.
    I would think an Android problem is simply that they have failed to fully adopt a single standard hardware port of any kind. Looks like many have "hacked" their way to all sorts of things with it.

    Regarding "real time", there are dozens of CNC control programs that do not run "real time".... And, the many thousands of people using those controls don't let the terminology stop them from doing what they do, and do successfully. I suppose there is a "real time" argument to be had (and we have heard it plenty over the years), but it depends on exactly what a person happens to be controlling... exactly how "real time" any specific application >really< needs.

    This raspberry looks not much unlike the small embedded PC's that have already been placed in OEM machines for years, pumping additional motion hardware... but clearly cheaper to purchase.

    I say bring on the "black box". I've been using and heralding a black box product for years! It is a proven reliable and successful method. Its exactly where motion control started and exactly where it seems to be headed back to as PC component manufacturers slowly pull the plug on the parallel port.

    Chris L


  20. #20
    Member
    Join Date
    Jun 2007
    Location
    canada
    Posts
    3891
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by wendtmk View Post
    They've decided that the timing unreliability of USB in a real time situation was not worth the time and effort to create a path for a CNC control signal.

    Mark
    the reason im asking is because we have a new 3 axis usb board from taiwan. they wrote mach 3 drivers for it and thus far, reliability seems a non issue (parallel port are NOT reliable in any way in my experience). so it may not be out of the question to ask them to write emc2 drivers that work with the raspberry (and other emc setups) if there isnt a fundamental road block. someone opinion that usb sucks for cnc isnt a roadblock to me.

    its a tiny board, not much bigger than the raspberry, and the 2 combined would make a seriously awesome all in one mini controller for well under $500.





Page 1 of 8 1234 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

For nerds only: Raspberry Pi for EMC2 controller?

For nerds only: Raspberry Pi for EMC2 controller?