. .
  1. #1
    I'm after a little help.

    I want to be able to connect either a rotary encoder or a linear encoder to a PC. I want to use the signal and convert it on the PC to a mm size. I little like DRO but I want to intergrate into a small bit of self programmed software. My preference is to mount the module on a DIN rail but I can sort all that out. First problem is finding a module that can convert the encoder signal to the PC.

    Any help would be good,
    Cheers
    Ant

  2. #2
    djc's Avatar
    Location unknown. Last Activity: 07-06-2011 Has been a member for 9-10 years. Has a total post count of 12.
    Quote Originally Posted by antsals View Post
    I want to be able to connect either a rotary encoder or a linear encoder to a PC.
    Which one - linear or rotary? Different animals and different problems. The output from a rotary encoder will give you an angular not a linear measurement - the angular measurement being a proportion of a revolution.

    If the encoder is attached to a leadscrew, it's easy as one revolution moves one leadscrew pitch. Any other way, you need to convert linear motion into rotary (e.g. rack and pinion).

    Quote Originally Posted by antsals View Post
    I want to use the signal and convert it on the PC to a mm size.
    How do you intend to get the signal into the PC? Serial port, parallel port, USB, ESP? What operating system? Can you do the programming at the PC end?

    Most rotary encoders give a quadrature signal. The higher end linear encoders have a similar signal. This signal is easy to decode using a microcontroller (e.g. AVR, PIC, Arduino) to count pulses (either very fast by polling or interrupt-driven). The controller can then send to the PC using a standard communications protocol.

    Cheaper linear encoders (i.e. Chinese scales) have a different protocol, but it has been documented in many places. Search for YADRO or Schumatech.

  3. #3
    Thanks for the reply,
    The design could use a linear or rotary encoder no problem. My first problem was sorting out if it's possible and why kit to use. If the linear encoder is easiest then that will be the option. How I'm going to get the signal into the pc is now the issue. I did wonder I I could get a ready made module that converted the signal to USB or com port? How would this be done in industry? Would the signal go straight into a PLC?

    Cheers,
    Ant

  4. Quote Originally Posted by antsals View Post
    Thanks for the reply,
    The design could use a linear or rotary encoder no problem. My first problem was sorting out if it's possible and why kit to use. If the linear encoder is easiest then that will be the option. How I'm going to get the signal into the pc is now the issue. I did wonder I I could get a ready made module that converted the signal to USB or com port? How would this be done in industry? Would the signal go straight into a PLC?

    Cheers,
    Ant
    What about this?

    http://usdigital.com/products/interfaces/pc/usb/qsb

  5. #5
    Gary,
    That looks the job that I'm after. Do you know if I can order direct from them or do you order bits from them and I can get this from you?

    Cheers
    Ant

  6. We dont order from then, so best to go direct.
    I used to use them a lot and never had a problem with them.

  7. #7
    Gary,
    Will your encoders work with the USB if my linear encoder doesn't?

    Cheers
    Ant

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need to slow down a signal due to Safe Torque Off alarm
    By corkcnc in forum General Electronics
    Replies: 0
    Last Post: 04-06-2014, 11:35 PM
  2. WANTED: Wanted Linear Scale/Encoder
    By gavztheouch in forum Items Wanted
    Replies: 9
    Last Post: 24-01-2013, 05:32 PM
  3. Encoder for Spindle RPM
    By abfa9358 in forum Gantry/Router Machines & Building
    Replies: 1
    Last Post: 12-04-2011, 09:03 PM
  4. re servo encoder
    By Scott in forum General Electronics
    Replies: 6
    Last Post: 24-06-2010, 08:30 AM
  5. +5V TTL Signal
    By NC-Joey in forum General Electronics
    Replies: 2
    Last Post: 12-08-2007, 02:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •