On Tue, 2010-01-12 at 15:59 -0800, Peter C. Wallace wrote:
> On Tue, 12 Jan 2010, Flying Electron wrote:
> 
> > Date: Tue, 12 Jan 2010 15:47:34 -0800
> > From: Flying Electron <[email protected]>
> > Reply-To: "Enhanced Machine Controller (EMC)"
> >     <[email protected]>
> > To: "Enhanced Machine Controller (EMC)" <[email protected]>
> > Subject: Re: [Emc-users] PWM input to EMC2
> > 
> > I've got a pressure sensor that I'd like to use as a probe.  The sensor
> > has a value from 0 - 1023 based on the amount of pressure applied.  The
> > sensor is read by a microcontroller and the microcontroller can generate
> > a pwm signal based on the sensor value.  I was thinking that EMC2 could
> > read in the PWM signal and reconvert the PWM signal back to a number
> > from 0 - 1023 which could then be fed into a comparator in HAL to
> > generate the probe signal.  I think doing it this way would allow me to
> > vary the trip point by varying the comparator input.
> >
> > The only two ways I have figured out how to get an analog value into
> > EMC2 through a parallel port is either PWM input or pulsing an input pin
> > at a frequency and having an encoder trigger off the pulses and read the
> > velocity from the encoder.  Maybe I am making this too complicated and
> > there is a simpler way?
> >
> > Thanks!

What about rs232?  Maybe you can use a userspace hal component to read
the number via serial port.

Moses


------------------------------------------------------------------------------
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

Reply via email to