2010/1/12 Flying Electron <[email protected]>:

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

The latter approach is much easier and more likely to work as it uses
existing modules.

You might be able to just read the pin and pass it through the HAL
lowpass filter but that would work better with a PDM signal. You
probably need a decay built in too, perhaps a multiply by .99 for a
100-cycle lowpass.

You could hack a game controller, they have 4 analogue ports and USB
drivers that already work with EMC. Connect your analog voltage in
place of one of the potentiometers on the joysticks?

-- 
atp

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