On Tuesday 02 June 2009 19:43:20 Kirk Wallace wrote:
> Sorry, I know this was answered recently, but what is the preferred
> micro-controller, PIC, AVR, etcetera? My only requirement is that I can
> (try to) program it with Linux, preferably with C. I'm looking at
> controlling a DC motor (PWM) and a few digital I/O ports for a tool
> changer. I'll probably link to it with SPI or Modbus.

I think AVR would be quite good for that, as it's cheap, easy and includes
a few hardware PWMs and hardware SPI.
I use an AVR for debouncing of the limit and ref switches of my machine.
That works quite well and the major advantage for me is that I can rewire
the whole thing in software without touching a soldering iron.
The AVR certainly is good enough for non timecritical tasks like tool changer 
I/O.
I use it for time critical reference switches. The max deviation I get from the
microcontroller being single-threaded are only a few microns. My switches
are not that accurate, so it doesn't matter to me as I would get that deviation 
anyway.

Here's the firmware: http://bu3sch.de/gitweb?p=debounce.git;a=tree

Have fun.

-- 
Greetings, Michael.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to