Re: [Emc-users] Encoder HAL programming.

2020-05-27 Thread N
> > I actually saw a youtube video where someone was using this chip. I > > believe he said it was like $28, and you'd still need something to read/run > > > > I buy them for about $3 each > ebay.com/itm/1PC-STM32F103C8T6-ARM-STM32 >

Re: [Emc-users] Encoder HAL programming.

2020-05-26 Thread Chris Albertson
On Mon, May 25, 2020 at 9:02 AM R C wrote: > I actually saw a youtube video where someone was using this chip. I > believe he said it was like $28, and you'd still need something to read/run > I buy them for about $3 each ebay.com/itm/1PC-STM32F103C8T6-ARM-STM32

Re: [Emc-users] Encoder HAL programming.

2020-05-25 Thread R C
never done anything with those, and have a few RPIs lying around On 5/25/20 1:27 PM, andy pugh wrote: On Mon, 25 May 2020 at 20:15, R C wrote: I am actually trying to see how much I can push it by using a rpi for that, that's about the same price. An Arduino is possibly a better choice. You

Re: [Emc-users] Encoder HAL programming.

2020-05-25 Thread andy pugh
On Mon, 25 May 2020 at 20:15, R C wrote: > I am actually trying to see how much I can push it by using a rpi for > that, that's about the same price. An Arduino is possibly a better choice. You can get Nanos for about £5. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is

Re: [Emc-users] Encoder HAL programming.

2020-05-25 Thread John
Yes but it is another level of development. Sent from John's iPhone 4S On 2020-05-25, at 12:07 PM, Jon Elson wrote: > On 05/25/2020 11:01 AM, R C wrote: >> In the video I posted earlier (it's a year old)... the guy using that chip >> says it cost him $40, he showed it on line for about

Re: [Emc-users] Encoder HAL programming.

2020-05-25 Thread R C
that's what I thought too, it's pretty expensive. (probably low production runs etc., obsolete?). I am actually trying to see how much I can push it by using a rpi for that, that's about the same price. Ron On 5/25/20 1:07 PM, Jon Elson wrote: On 05/25/2020 11:01 AM, R C wrote: In the

Re: [Emc-users] Encoder HAL programming.

2020-05-25 Thread Jon Elson
On 05/25/2020 11:01 AM, R C wrote: In the video I posted earlier (it's a year old)... the guy using that chip says it cost him $40, he showed it on line for about $28. (and that's just for the LS7366R by itself.) This just doesn't make sense anymore. You can take a bottom of the line

Re: [Emc-users] Encoder HAL programming.

2020-05-25 Thread John Dammeyer
> -Original Message- > From: andy pugh [mailto:bodge...@gmail.com] > On Mon, 25 May 2020 at 10:42, Chris Albertson > wrote: > > > Ideally you have just one thin cable going from controller to the machine. > > If you like those chips just glue on on each encoder and turn then encoder >

Re: [Emc-users] Encoder HAL programming.

2020-05-25 Thread John Dammeyer
> > be a good idea. There are also devices from the same manufacturer > > that can change quadrature into up/down pulses streams to use regular > > counters inside the Pi. > > But quadrature has one huge advantage over regular counters, you get both > speed AND direction from every edge that

Re: [Emc-users] Encoder HAL programming.

2020-05-25 Thread R C
t can change quadrature into up/down pulses streams to use regular counters inside the Pi. John -Original Message- From: R C [mailto:cjv...@gmail.com] Sent: May-24-20 6:01 PM To: linuxcnc-users-list Subject: Re: [Emc-users] Encoder HAL programming. On 5/24/20 6:29 PM, andy pugh wrote

Re: [Emc-users] Encoder HAL programming.

2020-05-25 Thread R C
ers inside the Pi. But quadrature has one huge advantage over regular counters, you get both speed AND direction from every edge that goes by. John -Original Message- From: R C [mailto:cjv...@gmail.com] Sent: May-24-20 6:01 PM To: linuxcnc-users-list Subject: Re: [Emc-users] Encoder

Re: [Emc-users] Encoder HAL programming.

2020-05-25 Thread R C
into up/down pulses streams to use regular counters inside the Pi. John -Original Message- From: R C [mailto:cjv...@gmail.com] Sent: May-24-20 6:01 PM To: linuxcnc-users-list Subject: Re: [Emc-users] Encoder HAL programming. On 5/24/20 6:29 PM, andy pugh wrote: On Mon, 25 May 2020

Re: [Emc-users] Encoder HAL programming.

2020-05-25 Thread Gene Heskett
On Monday 25 May 2020 06:50:16 andy pugh wrote: > On Mon, 25 May 2020 at 10:42, Chris Albertson wrote: > > Ideally you have just one thin cable going from controller to the > > machine. If you like those chips just glue on on each encoder and > > turn then encoder into a serial interfaced

Re: [Emc-users] Encoder HAL programming.

2020-05-25 Thread andy pugh
On Mon, 25 May 2020 at 10:42, Chris Albertson wrote: > Ideally you have just one thin cable going from controller to the machine. > If you like those chips just glue on on each encoder and turn then encoder > into a serial interfaced device. Or use a serial buss so 6 encoders can > share one

Re: [Emc-users] Encoder HAL programming.

2020-05-25 Thread Chris Albertson
Message- > > From: R C [mailto:cjv...@gmail.com] > > Sent: May-24-20 6:01 PM > > To: linuxcnc-users-list > > Subject: Re: [Emc-users] Encoder HAL programming. > > > > > > On 5/24/20 6:29 PM, andy pugh wrote: > > > On Mon, 25 May 2020 at 00:17, R C wro

Re: [Emc-users] Encoder HAL programming.

2020-05-25 Thread Gene Heskett
gt; > John > > > -Original Message- > > From: R C [mailto:cjv...@gmail.com] > > Sent: May-24-20 6:01 PM > > To: linuxcnc-users-list > > Subject: Re: [Emc-users] Encoder HAL programming. > > > > On 5/24/20 6:29 PM, andy pugh wrote: > > >

Re: [Emc-users] Encoder HAL programming.

2020-05-25 Thread John Dammeyer
y-24-20 6:01 PM > To: linuxcnc-users-list > Subject: Re: [Emc-users] Encoder HAL programming. > > > On 5/24/20 6:29 PM, andy pugh wrote: > > On Mon, 25 May 2020 at 00:17, R C wrote: > > > >> I have been following this thread. I wrote some code that runs on an &

Re: [Emc-users] Encoder HAL programming.

2020-05-24 Thread John Dammeyer
> > On Mon, 25 May 2020 at 00:17, R C wrote: > > > I have been following this thread. I wrote some code that runs on an > > RPI that can read a quadrature encoder, I have a few of them, with > > different resolutions. > > Is this something different to the normal LinuxCNC software encoder >

Re: [Emc-users] Encoder HAL programming.

2020-05-24 Thread Gene Heskett
On Sunday 24 May 2020 20:29:28 andy pugh wrote: > On Mon, 25 May 2020 at 00:17, R C wrote: > > I have been following this thread. I wrote some code that runs on > > an RPI that can read a quadrature encoder, I have a few of them, > > with different resolutions. > > Is this something different

Re: [Emc-users] Encoder HAL programming.

2020-05-24 Thread andy pugh
On Mon, 25 May 2020 at 02:03, R C wrote: > So I decided to use an RPI (because it is easy to use GPIO pins to read > signals) and write some code to read these encoder signals. It's pretty easy to read GPIO with LinuxCNC, and at least as easily as with a Pi. Now, an Arduino with dedicated

Re: [Emc-users] Encoder HAL programming.

2020-05-24 Thread Dan Henderson
As Gene pointed out, the typical Chinese BOB for sell uses optocouplers on the input/outputs. The reason this is done is to prevent damage to the mothership should a short or another nasty occur on the far end of the connection. I’ve not tried his suggestion of bypassing them, but I have tried

Re: [Emc-users] Encoder HAL programming.

2020-05-24 Thread R C
On 5/24/20 6:29 PM, andy pugh wrote: On Mon, 25 May 2020 at 00:17, R C wrote: I have been following this thread. I wrote some code that runs on an RPI that can read a quadrature encoder, I have a few of them, with different resolutions. Is this something different to the normal LinuxCNC

Re: [Emc-users] Encoder HAL programming.

2020-05-24 Thread andy pugh
On Mon, 25 May 2020 at 00:17, R C wrote: > I have been following this thread. I wrote some code that runs on an > RPI that can read a quadrature encoder, I have a few of them, with > different resolutions. Is this something different to the normal LinuxCNC software encoder that reads GPIO? Is

Re: [Emc-users] Encoder HAL programming.

2020-05-24 Thread Gene Heskett
On Sunday 24 May 2020 19:15:22 R C wrote: > Hello, > > > I have been following this thread.  I wrote some code that runs on an > RPI that can read a quadrature encoder, I have a few of them, with > different resolutions. > > I also have a few encoders that came with some stepper motors I got my >

Re: [Emc-users] Encoder HAL programming.

2020-05-24 Thread John Dammeyer
Hi Ron, > -Original Message- > From: R C [mailto:cjv...@gmail.com] > Sent: May-24-20 4:15 PM > To: emc-users@lists.sourceforge.net > Subject: Re: [Emc-users] Encoder HAL programming. > > Hello, > > > I have been following this thread.� I wrote some code

Re: [Emc-users] Encoder HAL programming.

2020-05-24 Thread Dan Henderson
I put a CUI ATM-103 encoder on my spindle motor. I’m using a parallel port card and a BOB to interface my steppers and spindle. The spindle uses PWM pulses and I’m able to receive the encoder inputs directly in to LCNC via the BOB. With the encoder set to 100 PPR, it would lose count of the rpm

Re: [Emc-users] Encoder HAL programming.

2020-05-24 Thread R C
Hello, I have been following this thread.  I wrote some code that runs on an RPI that can read a quadrature encoder, I have a few of them, with different resolutions. I also have a few encoders that came with some stepper motors I got my hands on, still have to play with those to see what

Re: [Emc-users] Encoder HAL programming.

2020-05-24 Thread Gene Heskett
On Sunday 24 May 2020 17:41:33 John Dammeyer wrote: > The > http://linuxcnc.org/docs/html/examples/spindle.html#_spindle_feedback > document lists this example code with a footnote on the use of > encoder.3 > > "In this example, we will assume that some encoders have already been > issued to

Re: [Emc-users] Encoder HAL programming.

2020-05-24 Thread andy pugh
On Sun, 24 May 2020 at 22:44, John Dammeyer wrote: > But if the spindle encoder is declared in the hal file first, as encoder.0, > does that make x,y & z then encoder.1, encoder.2 and encoder.3? It's HAL. You can connect any encoder to any axis and control it with any stepgen or pwmgen. There

Re: [Emc-users] Encoder HAL programming.

2020-05-24 Thread Peter C. Wallace
On Sun, 24 May 2020, John Dammeyer wrote: Date: Sun, 24 May 2020 21:41:33 + (UTC) From: John Dammeyer Reply-To: "Enhanced Machine Controller (EMC)" To: "'Enhanced Machine Controller (EMC)'" Subject: [Emc-users] Encoder HAL programming. The