Re: [Machinekit] PRU Encoder

2017-03-30 Thread Frederic RIBLE
When I have added velocity estimation in hal_pru_generic, I have validated with a python script and a wire between a pwmgen output and the encoder input. Results are here: http://blog.f1oat.org/2016/04/10/adding-velocity-estimation-in-hal_pru_generic-encoder/ And the scripts are attached to

Re: [Machinekit] PRU Encoder

2017-03-29 Thread Charles Steinkuehler
On 3/29/2017 4:01 PM, Russell Gower wrote: > > Its the velocity estimates that are causing my issue, It is very > jittery and the pyvcp panel (a dial showing spindle speed) crashes > with a float to string error. There is a lot in that commit, I > think i’m going to split it in to two, one for

Re: [Machinekit] PRU Encoder

2017-03-29 Thread Russell Gower
On 29 Mar 2017, at 21:30, Charles Steinkuehler wrote: > On 3/29/2017 2:29 PM, Russell Gower wrote: >> >> I’ve implemented index support based loosely around the hm2 driver, >> i’ve done some quick tests cutting air and it seems to be working >> correctly; I’ve got a

Re: [Machinekit] PRU Encoder

2017-03-29 Thread Charles Steinkuehler
On 3/29/2017 2:29 PM, Russell Gower wrote: > > I’ve implemented index support based loosely around the hm2 driver, > i’ve done some quick tests cutting air and it seems to be working > correctly; I’ve got a bunch of parts to make involving rigid > tapping and thread cutting, If that works

Re: [Machinekit] PRU Encoder

2017-03-29 Thread Russell Gower
On 27 Mar 2017, at 20:02, Charles Steinkuehler wrote: > > The way it's intended to work: > > * The PRU sees an index pulse > ** The PRU latches the current position (Encoder.Z_capture) > ** The PRU increments the index count (Encoder.Z_count) > * The ARM driver reads

Re: [Machinekit] PRU Encoder

2017-03-27 Thread Frederic RIBLE
Hi, On my side, I am using eQEP2 hardware encoder along with index. It is able to manage high pulse rate. Mandatory because I have a 4096 ppr encoder at 6000 rpm: 400 kHz. Not yet tested with a real threading, but validation I have done so far by using a signal generator shows that the index

Re: [Machinekit] PRU Encoder

2017-03-27 Thread Charles Steinkuehler
On 3/27/2017 12:26 PM, Russell Gower wrote: > Hi, Is any body else using the Pru encoder - I’ve been using it for > spindle feed back on my Lathe for some time now, but I’ve just come > to do some thread cutting and the index-enable isn’t being cleared > on and index pulse. > > I’ve double

[Machinekit] PRU Encoder

2017-03-27 Thread Russell Gower
Hi, Is any body else using the Pru encoder - I’ve been using it for spindle feed back on my Lathe for some time now, but I’ve just come to do some thread cutting and the index-enable isn’t being cleared on and index pulse. I’ve double checked the hardware and the pulse is being sent to the