Controlling feed with potentiometer

More
11 years 4 months ago #59758 by DaPeace
Is it possible to use one of the LPT-in to control the feed-override by a potentiometer?
Im a little in to electronics and it wouldnt be a problem to map the poti to a pwm-signal and input it with a small microcontroller.
But i didnt find any informations around the net and thought i will simply ask here..

Thank you,
Jan

Please Log in to join the conversation.

More
11 years 4 months ago #59759 by alan_3301

Please Log in to join the conversation.

More
11 years 4 months ago #59760 by DaPeace
Thats not very specific. I know that its possible to use it but my main problem is that ive not found anything if it is possible to input pwm to the input-pins of the lpt and how to handle the signal.


Thanks anyways

Please Log in to join the conversation.

More
11 years 4 months ago #59761 by PCW
you could use a cheap Voltage to Frequency converter (say a 555) and then use an
encoder component ( with just the 'A' pin) in HAL to read the frequency (encoder velocity)

Please Log in to join the conversation.

More
11 years 4 months ago #59762 by alan_3301
you should be able to send the potentiometer output straight to the input pin, and scale it in hal I would think.

Please Log in to join the conversation.

More
11 years 4 months ago #59763 by andypugh
No eBay APP ID and/or Cert ID defined in Kunena configuration

DaPeace wrote: Is it possible to use one of the LPT-in to control the feed-override by a potentiometer?


It's _much_ easier to use an encoder. Something like:


One possibility for analogue input (that I have never tried) would be to use a PWM output into a filter, and then a comparator to indicate that the values are equal.
(so it needs an input pin and an output pin)

Please Log in to join the conversation.

More
11 years 4 months ago #59764 by DaPeace
Oh ok. Didnt see potis like that.. thats really easy. so hooking up a poti like that to the lpt-input would be possible without additional hardware?
What configs do i need in the hal-files? is there a tutorial or wiki around where i could read around a bit?
Thank you

Please Log in to join the conversation.

More
11 years 4 months ago #59766 by alan_3301
Ok maybe I was steering you wrong, it looks like the parallel port pins are digital only.

Please Log in to join the conversation.

More
11 years 4 months ago #59769 by andypugh

DaPeace wrote: Oh ok. Didnt see potis like that.. thats really easy. so hooking up a poti like that to the lpt-input would be possible without additional hardware?


Yes, you would use two inputs as the A and B phases to an encoder component in HAL.
linuxcnc.org/docs/html/man/man9/encoder.9.html

Please Log in to join the conversation.

More
11 years 4 months ago #60132 by DaPeace
Hello.. its me again. Ive tried to adapt the code from here but i cant get it to work.
I can see that the hal-pins of channel a + b are changing while turning the encoder but the count is not counting and so the feed is not changing. Also tried with spindle-overwrite like in the example but thats not working too.
Any help in that case?
Maybe some code-examples?

Please Log in to join the conversation.

Time to create page: 0.553 seconds
Powered by Kunena Forum