Thanks everyone for all the advice. I got it to work using an encoder measuring the frequency of the pulses from the microcontroller. I put a dial gauge on the panel in axis to watch the pressure and an LED to watch the probe. It is beyond cool being able to see the pressure in realtime while the machine is on. These virtual axis panels are great for saving money instead of getting physical gauges. I included a screenshot of the axis gui. The dial gauge bounces around in realtime as the pressure changes. I guess screenshots and axis previews don't get along? Or maybe it's my video driver. I don't know why it's all messed up where the preview plot is, it looks fine on the screen.
http://www.flyingelectron.com/Pics/probe.png The SPI looks very interesting since the AVR microcontroller I am using supports SPI. I need to look into that more after I get the machine up and running again. Kirk Wallace wrote: > On Tue, 2010-01-12 at 16:59 -0700, Sebastian Kuzminsky wrote: > ... snip > >> Analog input into emc2 might be accomplished by adding SPI support to >> hostmot2, and writing a driver for an SPI ADC. Some work has been done >> in this direction by various folks (search the mailing list archives and >> irc logs if you're curious), but so far nothing has solidified. >> > > Just in case: > http://www.wallacecompany.com/machine_shop/EMC2/serial_adc/ > http://www.wallacecompany.com/machine_shop/EMC2/serial_dac/ > > > ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
