Can P1 using Spin count Quadrature signals
allie
Posts: 109
Hi, I need to count Lath or Mill Quadrature encoder pulses at 5 volts. I'll need to use a voltage converter to drop the voltage down to 3.3V. Will the Spin programming language be fast enough to count these pulses.
I don't no PASM.
Best regards allie
Comments
Obex to the rescue!:
https://obex.parallax.com/obex/quad-quadrature-encoder-object/
https://obex.parallax.com/obex/quadrature-encoder/
https://obex.parallax.com/obex/quadrature-encoder-16x-ported-to-c/
https://obex.parallax.com/obex/idxquaddecoder/
https://obex.parallax.com/obex/dual-quadrature-encoder-driver/
I also have the Raspberry PI Pico (2020) can this be used with Python or which language do I need to learn.
Regards Allie
I'm guessing the scales on the lathe/mill use RS422 differential signalling. On that assumption, I'd go with such rated interface chips like the 26LV32 - https://www.ti.com/lit/gpn/am26lv32e
I have been using my quadrature decode, written in PropBasic for years. It's rock solid and faster than anything on the OBEX.
For differentials, use the MC3486 or equivalent.
https://forums.parallax.com/discussion/143397/propbasic-routine-for-quadrature-encoder-reading-fast-and-worked-first-time#latest
@allie
PIO code is already posted for the Pico and it can handle quadrature rates that no encoder can generate.
Now P2 is yet another level if closing servo loops but that's a different story.
Craig