Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-23 Thread Robert Rice
Hi David, Thanks for all the info. I'm thinking that I can probably turn the Arduino nano into an inexpensive interpolation engine to smoothly support high micro-step rates. The Mac client would then be sending target position information and parameters for velocity, acceleration, backlash and

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-23 Thread David Frantz
Hi Bob; Interesting that you should ask this question. I just got back from Cabin Fever at which I attended a good course about CNC on PCs. At least in the context of USB there is a lot of negativity with trying to do CNC control over that port on Windows. Especially if you are attempting

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-21 Thread Will Thorne
devel-requ...@lists.macosforge.org wrote: > Message: 3 > Date: Fri, 20 Jan 2012 12:43:46 -0800 > From: Rich Morin > To: "MacRuby development discussions." > > Subject: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 > Parallelport adapter > Message-

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-20 Thread Robert Rice
Hi Rich, Switch de-bounce logic in the Arduino would be a nice feature. I'm thinking that probably I could offload most or all of the motion engine to the Atmel µP. That would be desirable to to keep motors synchronized within a half micro-step while doing linear and circular interpolation. Pro

[MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-20 Thread Rich Morin
Using a general-purpose OS (eg, Mac OS X) for real-time applications is a bit of a tarpit. So, I like the idea of using an Arduino (etc) for this sort of thing. That said, there are some things that will cause problems even in an Arduino. For example, taking raw input from a switch or button may

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-20 Thread Robert Rice
Hi, Thanks for all of the replies. I was looking for a Mac based CNC program long ago and was amazed that there still is little or none. I don't have a lot of time in this yet, but I was able to design a nice CNC UI and basic motion engine easily using MacRuby. There is certainly enough interes

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-20 Thread Dömötör Gulyás
A little OT, but it seems like there is healthy interest for doing CNC machining from OS X, with or without MacRuby, I am currently working on an AVR/Arduino based solution myself, so anybody know of a topical ML and/or Wiki, or is there interest in setting up a site, or project on github/launchpad

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-19 Thread Bill Hill
On 18 Jan 2012, at 15:33, Will Thorne wrote: > Hello, > > Long time lurker making first post here. You could use an Arduino and do the > real time pulse generation stuff on that. Then just write a macruby app that > serialises the commands and feeds them to the Arduino which interprets them >

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-18 Thread Robert Rice
Hi Will, Thanks for the info on Arduino - looks like some interesting possibilities there. I didn't realize that Arduino had several different boards available. I may be able to connect one or more boards to a DB25 parallel connector to control my HobbyCNC micro-stepping driver board. Thanks,

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-18 Thread Robert Rice
Hi Dave, Thanks for the info. I do agree that these solutions are better than what I had intended to do, but they are a bit expensive for the average hobbyist. The controlling CNC applications are still PC based but can run under "Parallels" on the Mac since the controllers offload the realtime

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-18 Thread Jordan K. Hubbard
On Jan 18, 2012, at 1:10 AM, Dave Baldwin wrote: > PC based CNC controllers are suck in the dark ages - not only for the GUI > they present but in how they control the steppers via the printer port. They > rely on low level Window's drivers to generate accurate timing pulses (on the > paralle

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-18 Thread Will Thorne
Hello, Long time lurker making first post here. You could use an Arduino and do the real time pulse generation stuff on that. Then just write a macruby app that serialises the commands and feeds them to the Arduino which interprets them and flips the necessary IO pins on and off. It's years sin

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-18 Thread Dömötör Gulyás
Indeed, I can only agree that USB based parallel port adapters have very shitty timing, in no small part due to USB itself. You cannot do motion control over USB->PP like you could straight to the parallel port on Windows (which wasn't that great to begin with), the motion control part needs to be

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-18 Thread Dave Baldwin
Hi Bob, You don't really say what your final goal is so this may not suit your purpose. PC based CNC controllers are suck in the dark ages - not only for the GUI they present but in how they control the steppers via the printer port. They rely on low level Window's drivers to generate accurate

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-17 Thread Robert Rice
Hi Scott, I don't see any change in the /dev directory when I plug and unplug the device. Unfortunately, Apple hasn't updated the USB example developer projects and many of the examples don't work under Lion. I may need to use IOKit routines to search for the device in the USB device tree. Tha

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-17 Thread Jordan K. Hubbard
On Jan 17, 2012, at 7:07 PM, Scott Ribe wrote: > On Jan 17, 2012, at 7:11 PM, Robert Rice wrote: > >> Prolific provides documentation for the simple report protocol for the >> device. I suspect that an appropriate driver already exists for this device >> but how would I find it? I actually ra

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-17 Thread Scott Ribe
On Jan 17, 2012, at 8:17 PM, Robert Rice wrote: > I have lots of device files in dev but nothing identified by 1284. Is there a > way to search other than by file name? No, but you can compare the listings with the device plugged & unplugged. -- Scott Ribe scott_r...@elevated-dev.com http://ww

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-17 Thread Robert Rice
Hi Scott, I have lots of device files in dev but nothing identified by 1284. Is there a way to search other than by file name? Thanks, Bob On Jan 17, 2012, at 10:07 PM, Scott Ribe wrote: > On Jan 17, 2012, at 7:11 PM, Robert Rice wrote: > >> Prolific provides documentation for the simple repo

Re: [MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-17 Thread Scott Ribe
On Jan 17, 2012, at 7:11 PM, Robert Rice wrote: > Prolific provides documentation for the simple report protocol for the > device. I suspect that an appropriate driver already exists for this device > but how would I find it? Look in /dev for something that looks like it would be that device?

[MacRuby-devel] CNC Machine control using USB to IEEE 1284 Parallel port adapter

2012-01-17 Thread Robert Rice
Hi, I've become interested in Computer Numeric Control (CNC) machine control. I find there is very little support for the Macintosh platform and many PC programs for the task have a crude user interface so I would like to create a Macintosh CNC application using MacRuby. CNC programs and motor