I get it now sorry. Then again use a pwm to make and anolog voltage. Then use a comparator to measure the input voltage compared to the pwm voltage. You ramp it up until the output pin that is connected to a hal pin is tripped. The pwm value can be translated to an analog value. Or make use of a i2c ATD as I mentioned before. There is a complete solution done already by Kirk Wallace. Try here
http://www.wallacecompany.com/machine_shop/EMC2/serial_adc/ On 2014-05-13 17:24, andy pugh wrote: > On 13 May 2014 13:51, Marius Liebenberg <mar...@mastercut.co.za> wrote: > >> Yes and then just do a lowpass filter with a rc on the input of an opamp >> (voltage follower) to get a nice smooth dc voltage that is controlled by >> the PWM. > No, this is a solution to the inverse problem, analogue voltage _into_ > LinuxCNC HAL. > -- Regards /Groete Marius D. Liebenberg +27 82 698 3251 +27 12 743 6064 QQ 1767394877 ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users