Go Down

Topic: Linear Encoder (Read 2686 times) previous topic - next topic

alumbrin

Hello

I´m working on a project using an arduino uno and an encoder sensor. I have seen the wiring diagram for the rotary encoders and I watched that this encoder has only three pins: ground, A and B signal pins.
In my case I received an encoder with five cable connections: white and black for 0 and 24 V respectively; Red, green and yellow are A, B and Z signals respectively.

My question is..... How do I should connect the encoder to my arduino??

Thanks,

retrolefty

You really should try and locate a datasheet for your encoder and post it here for real help and suggestions. As it's a 24vdc operated encoder you will most likely have to convert 24vdc A and B signals to 5vdc signals that the arduino can operate with safely. Again the datasheet is the best next step.

Lefty

alumbrin

#2
Dec 04, 2012, 03:07 am Last Edit: Dec 05, 2012, 04:34 pm by alumbrin Reason: 1
Hi

Thanks for your reply!!
I found the datasheet of the sensor, even though I don´t understand how to connect it.
Could help me to understand it??? (in the attached file)

Thanks,

retrolefty


Hi

Thanks for your reply!!
I found the datasheet of the sensor, even though I don´t understand how to connect it.
Could help me to understand it??? (in the attached file)

Thanks,


That appears to be just a picture of the encoder, where is the link to it's datasheet?

Lefty

alumbrin

#4
Dec 04, 2012, 01:49 pm Last Edit: Dec 05, 2012, 04:34 pm by alumbrin Reason: 1
Sorry...my mistake.. Now is attached..

dhenry

I am going to vote Z for marker.

retrolefty

#6
Dec 04, 2012, 05:52 pm Last Edit: Dec 04, 2012, 05:55 pm by retrolefty Reason: 1

Sorry...my mistake.. Now is attached..


Sorry but that is not a complete datasheet just a product information sheet which does not give the details of what exact model and options your unit has. In that product sheet it states that output options can be any of:

Quote

voltage, current, push-pull, long-line drive output, open collector


So which yours has will determine what electrical methods and components your will require to safely wire it to an arduino. The A and B signals will of course be the standard quadrature output signals to give you rotational and directional information. A Z signal is a one pulse per revolution of the encoder disk signal that can be used to extract RPM speed information or just as a index reference to keep track of actual shaft position angle at an given time when combined with the A and B signals in your software routines.

Lefty

alumbrin

From the company they said: "the encoder output is push pull"....

retrolefty


From the company they said: "the encoder output is push pull"....


Ok, and at what voltage levels do the A, B, and Z output signals operate at? Unless you can get a copy of the complete datasheet I think we will be playing this answer/question/answer/question game for longer then either of us can handle. Between the complete exact model number printed on your device and it's datasheet, it is all so simple, but without, not so simple. If the output signals are switching from 0 to +24vdc you will have to wire two series resistor voltage dividers for each signal you want to use, A, B, Z, so that the signals will swing from 0 to +5vdc that arduino input pins can handle. After that it's just another quad encoder to deal with in software.

Lefty

alumbrin

the same voltage at the input, in this case 24 V.


alumbrin

I will push the vendor to give me the datasheet.....

alumbrin

#11
Dec 06, 2012, 03:53 am Last Edit: Dec 14, 2012, 04:14 pm by alumbrin Reason: 1


From the company they said: "the encoder output is push pull"....


Ok, and at what voltage levels do the A, B, and Z output signals operate at? Unless you can get a copy of the complete datasheet I think we will be playing this answer/question/answer/question game for longer then either of us can handle. Between the complete exact model number printed on your device and it's datasheet, it is all so simple, but without, not so simple. If the output signals are switching from 0 to +24vdc you will have to wire two series resistor voltage dividers for each signal you want to use, A, B, Z, so that the signals will swing from 0 to +5vdc that arduino input pins can handle. After that it's just another quad encoder to deal with in software.

Lefty


Hi, finally I received the datasheet. The encoder output is pushpull, the electrical spec...second column for my encoder. Check the attached file please.

Go Up