On Wednesday 25 July 2012 10:36:33 ELHIMA Moustapha did opine: > Dear All > > I'm thinking to put a potentiometer on my cnc lathe to control the > feedrate, for my machine To control my machine I have just used 2 > parports and I have the possibility to use an another one, could you > tell me if it's possible with HAL to hook my potentiometer to the > parallel port or the serial port It's a 5K potentiometer, do you thinks > that I can make that > > Many thanks
I don't see why not, but with the method of control being a knob on an encoder that can run in the quadrature mode. The parport has no 'analog' ability so the step/dir developed from a quadrature mode input must be used. These give a digital 2 pin, 2 phase signal from which I expect the hal encoder module could be trained to issue the speed up or slow down commands based on which direction the hand dial is turned, and how far. I'm still running my little toy on one parport, with 2 or 3 pins to spare. Cheers, Gene -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) My web page: <http://coyoteden.dyndns-free.com:85/gene> is up! Whom computers would destroy, they must first drive mad. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
