Am 14.06.22 um 10:13 schrieb andy pugh:
On Tue, 14 Jun 2022 at 07:24, Sebastian Kuzminsky <s...@highlab.com> wrote:
Does anyone know how to interface these position sensors to LinuxCNC?
Another option might be to ignore the scales and access the resolvers by
connecting to the currently unused resolver outputs on the servo amps
In either case you would need to convert sine/cosine to position. The
Magnescale is DC output and the resolvers are AC, so I would expect
the scales to be a little easier if you were creating an interface
from scratch.
Don't the magnetic scales also output sin/cos like a resolver? Would be
helpful to have some documentation about those.
I have a stalled project that uses an Adafruit Feather M0 (good
floating point, relative to an Arduino) and an ADS1256 module
https://www.ebay.co.uk/itm/194241659854 to add 8 channels of 24-bit
ADC.
That would be a way to measure the Sine/Cosine, but is no help with
the absolute position scale (which I haven't found a spec for)
It might be worth looking at the STMBL source code, as that has
modules for sine/cosine and for making the STM32 behave as a Mesa
Smart-Serial device for sending the data back as digital realtime.
(Probably in https://github.com/rene-dev/stmbl/blob/master/src/comps/enc_fb.c
and https://github.com/rene-dev/stmbl/blob/master/src/comps/sserial.c
)
If you have direct access to the resolver it would be worth a thought to
use a "resolver to digital converter", e.g. something like this:
https://www.analog.com/en/parametricsearch/10890#/
Then you can connect the encoder emulation output to LinuxCNC.
/Hans
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers