Old mouse instead of encoder
04 Apr 2016 09:32 #72689
by aleksamc
Old mouse instead of encoder was created by aleksamc
I don't have encoders on my CNC machine.
Is it possible to connect encoders programmatically of old mouse to LPT port.
Is it possible to connect encoders programmatically of old mouse to LPT port.
Please Log in or Create an account to join the conversation.
04 Apr 2016 12:58 #72711
by andypugh
You can't do it programmatically. You will need wires.
Once physically connected it should be possibly to use the quadrature signals in HAL.
Replied by andypugh on topic Old mouse instead of encoder
Is it possible to connect encoders programmatically of old mouse to LPT port.
You can't do it programmatically. You will need wires.
Once physically connected it should be possibly to use the quadrature signals in HAL.
Please Log in or Create an account to join the conversation.
05 Apr 2016 10:02 #72772
by aleksamc
Replied by aleksamc on topic Old mouse instead of encoder
If I'll connect them in in HAL by net function, how I should tell linuxcnc - that it's encoder's input? Or I need somehow to calculate speed of motor and tell it to linuxCNC?
Please Log in or Create an account to join the conversation.
05 Apr 2016 10:10 #72773
by andypugh
Replied by andypugh on topic Old mouse instead of encoder
You need to wire the quadrature signals into a HAL encoder module
linuxcnc.org/docs/2.7/html/man/man9/encoder.9.html
linuxcnc.org/docs/2.7/html/man/man9/encoder.9.html
Please Log in or Create an account to join the conversation.
05 Apr 2016 20:45 #72810
by aleksamc
Replied by aleksamc on topic Old mouse instead of encoder
I will wire signal of parport to encode but what next?
How to wire position ot axis?
In main hal-file there is lines:
zpos-cmd axis.2.motor-pos-cmd => stepgen.2.position-cmd
zpos-fb stepgen.2.position-fb =>axis.2.motor-pos-fb
zstep <=stepgen.2.step
zdir <= stepgen.2.dir
I suppose I must somehow change zpos? And to write it incustom.hal.
If I'll connect such encoder, will this loop be closed ot I need to set PID-regulator for it?
How to wire position ot axis?
In main hal-file there is lines:
zpos-cmd axis.2.motor-pos-cmd => stepgen.2.position-cmd
zpos-fb stepgen.2.position-fb =>axis.2.motor-pos-fb
zstep <=stepgen.2.step
zdir <= stepgen.2.dir
I suppose I must somehow change zpos? And to write it incustom.hal.
If I'll connect such encoder, will this loop be closed ot I need to set PID-regulator for it?
Please Log in or Create an account to join the conversation.
05 Apr 2016 22:06 #72814
by andypugh
Replied by andypugh on topic Old mouse instead of encoder
Can you explain what you are trying to do?
Just adding an encoder to a stepper system doesn't gain you very much. What do you propose to do if the stepgen and encoder disagree about where the axis is? It isn't like you can turn up the motor torque to recover the error.
Just adding an encoder to a stepper system doesn't gain you very much. What do you propose to do if the stepgen and encoder disagree about where the axis is? It isn't like you can turn up the motor torque to recover the error.
Please Log in or Create an account to join the conversation.
06 Apr 2016 05:31 #72823
by aleksamc
Replied by aleksamc on topic Old mouse instead of encoder
I want to add feedback for one axis Z through parallel port. If I will connect it successfully and it will work and compensate error of losing steps, I will by hardware for encoder end encoders for all 3 axis.
Now I already have openloop step motors that works very slowly. I don't want to buy expensive drivers with feedback instead of mine but make feedback through linuxCNC. I'm new in linuxCNC. Now I study documentation. On the first pages of guick start manual It was written that linuxCNC can serv feedback of motors.
Now I already have openloop step motors that works very slowly. I don't want to buy expensive drivers with feedback instead of mine but make feedback through linuxCNC. I'm new in linuxCNC. Now I study documentation. On the first pages of guick start manual It was written that linuxCNC can serv feedback of motors.
Please Log in or Create an account to join the conversation.
06 Apr 2016 09:10 #72827
by andypugh
Replied by andypugh on topic Old mouse instead of encoder
All you can really do with encoder feedback on a stepper motor is detect loss of steps and stop the machine with an error.
Steppers make peak torque at low step rates. A closed loop system can only increase step rate after a missed step, which will lower the torque, making a lost step _more_ likely.
Unless you have a way to increase the drive _current_ on the basis of measured position error the encoder will not help in your situation.
Steppers make peak torque at low step rates. A closed loop system can only increase step rate after a missed step, which will lower the torque, making a lost step _more_ likely.
Unless you have a way to increase the drive _current_ on the basis of measured position error the encoder will not help in your situation.
Please Log in or Create an account to join the conversation.
06 Apr 2016 09:31 #72830
by aleksamc
Replied by aleksamc on topic Old mouse instead of encoder
And what should I do in this situation?
Can driver for stepper motor change this situation?
It would be nice that linuxCNC sends impulses till position of motor not get's to check point. I supposed it works like this when encoder is connected.
Can driver for stepper motor change this situation?
It would be nice that linuxCNC sends impulses till position of motor not get's to check point. I supposed it works like this when encoder is connected.
Please Log in or Create an account to join the conversation.
06 Apr 2016 09:42 #72832
by andypugh
It is very unlikely to work, but feel free to try.
Replied by andypugh on topic Old mouse instead of encoder
It would be nice that linuxCNC sends impulses till position of motor not get's to check point.
It is very unlikely to work, but feel free to try.
Please Log in or Create an account to join the conversation.
Moderators: cncbasher
Time to create page: 0.086 seconds