Incremental encoder sin/cos
Hi guy,
I have a sensor, an incremental encoder with sin/cos output signal différential (A,A*,B,B*,Z,Z*,GND, 5V). I would like to ceonnect this sensor on my SIRIUS or DEWE43 on the super counter input (LEMO plug).
Can you please give me some advice to do this connexion.
I know that the input on dewesoft instrument are single ended and y sensor is differential. I have to connect A*,B* and Z* to GND. That's right?
Regards Malek
Software Test Engineer I
Hi,
no those are negated signals and you don't connect them to anything (they are left open). You only connect A to A, B to B, Z to Z, GND to GND and +5V to 5V. Every thing else is left open. You can invert the inputs signals A, B and Z in our software.
Kind regards Urban
Attached files:
Hi urban,
My encoder have a sin/cos output with 1V pp, find attach A, A* output voltage (blue) and B,B* output voltage (green). I suppose that my SIRIUS will not be able to"understand" this kind of signal like a encoder?
Regards Malek
Attached files:
Software Test Engineer I
This won't work when connected to the counter channel, because of the low voltage. But if you connect this signal to the analog in, you can use the Angle sensor math and Dewesoft will "understand" this signal. It works the same as the counter, but you can select the trigger level. In the attachment you'll find a picture of the angle sensor math setup.
Attached files:
In my application, I just want to use it like an incremental encoder. If I connect A,A* to AIN1 and B,B* to AIN2 to you think it's possible to know the number of count and like an encoder the sense of rotation. Can your "angle sensor math" do the job?
Software Test Engineer I
Yes this can be done with the angle sensor math and two other simple math operations.
In the attachment you'll find the setup for this and a data file. I used a function generator channel to simulate the encoder. It was set on sin signal with a frequency of 1024Hz. I than used the angle sensor math, which was set on digital tacho to extract the frequency, trigger and angle of the signal. I divided the extracted frequency by 1024, because one period represents one increment of the encoder and if my encoder has 1024 increments I have to divide the frequency with that number to get the RPS. After that I used another math operation to count the increments and I named that Samples.
I hope this helps you with your project.
Attached files: