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. 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 ) -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers