• AVR Freaks

Hot!Absolute Rotary Encoder 12 Wire ... How To Tutorials ?

Author
Abraxas
Super Member
  • Total Posts : 366
  • Reward points : 0
  • Joined: 2009/08/27 17:21:14
  • Location: 0
  • Status: offline
2019/12/25 20:02:39 (permalink)
0

Absolute Rotary Encoder 12 Wire ... How To Tutorials ?

Just picked up a couple of 5 wire Stepper Motors with attached Absolute Rotary Encoders. i can handle writing C code for the steppers, been there, done that, but I'm new to these encoders. For starters, why all the wires ??? Can anyone link me to some good introductory material for working with these ? Thanks.
#1

13 Replies Related Threads

    ric
    Super Member
    • Total Posts : 25244
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: Absolute Rotary Encoder 12 Wire ... How To Tutorials ? 2019/12/25 20:12:04 (permalink)
    5 (1)
    Do you have a datasheet for them?
    I suspect the encoder is outputting a 12 bit grey code.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    Abraxas
    Super Member
    • Total Posts : 366
    • Reward points : 0
    • Joined: 2009/08/27 17:21:14
    • Location: 0
    • Status: offline
    Re: Absolute Rotary Encoder 12 Wire ... How To Tutorials ? 2019/12/26 10:56:47 (permalink)
    0
    Unfortunately no, I don't have a datasheet and the manufacturers website was not showing these obviously antiquated models either. It's a koyo absolute rotary encoder trd-3a1024-2610. 
    My bad that I didn't pad my OP with more info, but yes indeed the connector for it has 12 pins. I'd offer up a photo but can't remember all my Photobucket credentials and I didn't get what I wanted from Santa: Facilitating photos on this forum. If it helps I'll try and get on posted. Not much to see though.
     
     
    #3
    Abraxas
    Super Member
    • Total Posts : 366
    • Reward points : 0
    • Joined: 2009/08/27 17:21:14
    • Location: 0
    • Status: offline
    Re: Absolute Rotary Encoder 12 Wire ... How To Tutorials ? 2019/12/26 11:18:36 (permalink)
    0
    I'm just looking for some nice, easy on the brain , info on these. Your mention thus far that it's likely outputting 12 bit grey code, as an example, is very helpful, if that's the case. I can hunt down info on that and get up to speed. I'm posting here in the 24 forum as it's my favoured series , mostly cause I have DIP packages I do prototyping with. Now if there is some generous soul who has already written some sharable functions for turning 12 bit grey code into something i can put up on an LCD, all the better, but I certainly don't mind doing the work either, once I get pointed in the right direction.
    #4
    1and0
    Access is Denied
    • Total Posts : 10225
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: Absolute Rotary Encoder 12 Wire ... How To Tutorials ? 2019/12/26 11:57:56 (permalink)
    5 (1)
    Few seconds with Google, and here are wire colors and connections:
     
    https://forums.adafruit.com/viewtopic.php?f=45&t=61048
     
    and this ebay link with photos:
     
    https://www.ebay.com/itm/1pc-only-Used-Good-Koyo-Encoder-TRD-3A1024-2610-/183920320851
     
    #5
    1and0
    Access is Denied
    • Total Posts : 10225
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: Absolute Rotary Encoder 12 Wire ... How To Tutorials ? 2019/12/26 12:51:58 (permalink)
    0
    This catalog does not have the 3A series, but it has information that might help:
     
    https://www.koyoele.co.jp/en/uploads/Extract-ENCODER-from-GENERAL-CATALOG-2018.pdf
    #6
    ric
    Super Member
    • Total Posts : 25244
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: Absolute Rotary Encoder 12 Wire ... How To Tutorials ? 2019/12/26 13:10:33 (permalink)
    5 (1)
    If it is one of those, then referring to the datasheet from post#6, the best information is on page# 43/431or 31/435.
    It certainly does appear to be grey code, and will need pullups on all the data outputs, and at least 12V power supply.
     
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #7
    Abraxas
    Super Member
    • Total Posts : 366
    • Reward points : 0
    • Joined: 2009/08/27 17:21:14
    • Location: 0
    • Status: offline
    Re: Absolute Rotary Encoder 12 Wire ... How To Tutorials ? 2019/12/27 04:32:35 (permalink)
    0
    Here's what the seller sent me :
    "Hi,
    See attachment for wiring.
    1, Red (24V) is 1pin. black (0V) is 12pin. The upper pin are 1-6、the down pin are 7-12. Connect the wires in this order。powered on.
    2, If there is an oscilloscope or multimeter, it can be connected to any foot of 2-11. Rotating the motor shaft, you can see the change of the waveform.
    3,If there is no oscilloscope, any pin of 2-11 can be connected to the chip's interrupt pin ,then write a simple interrupt program. When rotating the motor shaft, there should be interruption."
     
    She included a photo just showing which 2 pins are for power.
    Do you guys think this is going to be enough info for getting this thing to work in reasonable time ? It was an Ebay purchase and cost a little money. I don't want to miss the window for returning for refund or being able to test it to make sure it works,
    #8
    Abraxas
    Super Member
    • Total Posts : 366
    • Reward points : 0
    • Joined: 2009/08/27 17:21:14
    • Location: 0
    • Status: offline
    Re: Absolute Rotary Encoder 12 Wire ... How To Tutorials ? 2019/12/27 04:53:08 (permalink)
    0
    1and0
    Few seconds with Google, and here are wire colors and connections:
     
    https://forums.adafruit.com/viewtopic.php?f=45&t=61048
     
    and this ebay link with photos:
     
    https://www.ebay.com/itm/1pc-only-Used-Good-Koyo-Encoder-TRD-3A1024-2610-/183920320851
     


    Actually I already saw that and the info therein contradicts other sources so was of no value. On the power connections alone there is a conflict and I don't want to put 24 v on a data pin and destroy it. I don't need the Ebay photo as I have two in my hand. The thing is though, which pin is which, on the plug end, in terms of numbering ? 
     
    Once I get that sorted out, I still don't know what to do with it all, but the seller is suggesting I put an interrupt routine on each pin which as that google source suggests, seems like a lot of pins to use up. I'd love to hear from someone who has done some encoder work to understand how to manage it all.
    #9
    Abraxas
    Super Member
    • Total Posts : 366
    • Reward points : 0
    • Joined: 2009/08/27 17:21:14
    • Location: 0
    • Status: offline
    Re: Absolute Rotary Encoder 12 Wire ... How To Tutorials ? 2019/12/27 05:21:11 (permalink)
    0
    Grey code uses 4 bits but I'm given 10 data pins, 2 pins for 24 v power. maybe I should wire up some leds and play with it. Wish I had a color code for the wires but I should be able to figure them out. Be nice if there were parallel to serial chips for this as that's a lot of pins to use up. 
     
    #10
    Antipodean
    Super Member
    • Total Posts : 1790
    • Reward points : 0
    • Joined: 2008/12/09 10:19:08
    • Location: Didcot, United Kingdom
    • Status: offline
    Re: Absolute Rotary Encoder 12 Wire ... How To Tutorials ? 2019/12/27 07:40:18 (permalink)
    5 (1)
    Abraxas
    Grey code uses 4 bits but I'm given 10 data pins, 2 pins for 24 v power. maybe I should wire up some leds and play with it. Wish I had a color code for the wires but I should be able to figure them out. Be nice if there were parallel to serial chips for this as that's a lot of pins to use up. 

     
    Grey code uses as many bits as it needs to represent the maximum possible number of states, the only requirement is that when changing from the current state to the next state only one changes. You have a 10 bit Grey code, of which only one one of the 10 bits will change state as you go from one state to the next.
     
    Look at the PDF catalogue someone posted the link to above. The last few items in it have encoders that match the description of yours, and probably one of them has the same pinout. There seemed to be several different styles of connector in use.
     
    There is also a logic diagram to convert grey code to Binary, so you should be able to use that logic to generate a table that you can use to convert the encoder output to binary.
     
     

    Do not use my alias in your message body when replying, your message will disappear ...

    Alan
    #11
    Abraxas
    Super Member
    • Total Posts : 366
    • Reward points : 0
    • Joined: 2009/08/27 17:21:14
    • Location: 0
    • Status: offline
    Re: Absolute Rotary Encoder 12 Wire ... How To Tutorials ? 2019/12/27 08:29:28 (permalink)
    0
    Yes Alan. I'm still dealing with Molex on identifying the plug which they can't seem to do from photos. Maybe it's not theirs. All of these replies have been very helpful. Thanks to all of you. With this info I should be able to scratch something together. If anyone has any algorhythms , functions, pseudocode etc, I am happy to lighten the load of your heavy computers. Otherwise, I am sure I'll find lots more online. Cheers.
    #12
    Antipodean
    Super Member
    • Total Posts : 1790
    • Reward points : 0
    • Joined: 2008/12/09 10:19:08
    • Location: Didcot, United Kingdom
    • Status: offline
    Re: Absolute Rotary Encoder 12 Wire ... How To Tutorials ? 2019/12/27 08:34:47 (permalink)
    0
    Abraxas
    Yes Alan. I'm still dealing with Molex on identifying the plug which they can't seem to do from photos. Maybe it's not theirs. 



    I suspect you will find the connector is from a series known as M12 (because of the metric thread used) or possibly another M size as these seem to be widely used in industrial sensors and appear to have become a default standard. Again check the catalogue linked above to see what it says. If all else fails you may be able ot find the appropriate cable also on ebay.
     

    Do not use my alias in your message body when replying, your message will disappear ...

    Alan
    #13
    ric
    Super Member
    • Total Posts : 25244
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: Absolute Rotary Encoder 12 Wire ... How To Tutorials ? 2019/12/27 16:56:42 (permalink)
    5 (1)
    Abraxas
    1, Red (24V) is 1pin. black (0V) is 12pin. The upper pin are 1-6、the down pin are 7-12. Connect the wires in this order。powered on.

    Go to page 31 [435] of that datasheet.
    Observe in the connection table, the 12/24V pin is red, and the 0V pin is black.
    In the second table, if you renumber "A"-"M" as "1" to "12", #1 is the 12/24 and #12 is the ground,
    both of which agree with your seller.
     
    As the seller states, if you connect up power and rotate the shaft, you should see the other ten pins all toggling at various speeds. However, your seller did not mention pullups. I suspect you might need them.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #14
    Jump to:
    © 2020 APG vNext Commercial Version 4.5