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

Rich Morin rdm at cfcl.com
Fri Jan 20 12:43:46 PST 2012


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 cause the Arduino to see a bunch of
momentary spikes as the mechanical contacts settle.

So, consider using some sort of hardware input filtering
(eg, a one-shot or some analog filtering).  This will be
far easier than trying to make your code handle the extra
interrupts.

-r
-- 
http://www.cfcl.com/rdm            Rich Morin
http://www.cfcl.com/rdm/resume     rdm at cfcl.com
http://www.cfcl.com/rdm/weblog     +1 650-873-7841

Software system design, development, and documentation


More information about the MacRuby-devel mailing list