Shop OBEX P1 Docs P2 Docs Learn Events
encoder interfacing — Parallax Forums

encoder interfacing

AHMET AKSUAHMET AKSU Posts: 62
edited 2007-03-23 18:39 in Propeller 1
·


·· hello . how can I connect 12 v 'ncremental encoder to propeller / whats the phisical hardware

Comments

  • OzStampOzStamp Posts: 377
    edited 2007-03-23 08:06
    Hi

    Whay output type is the encoder TTL level signal... open collector output ... line driver...??
    That will determine or steer you a certain way..

    Ronald Nollet
  • AHMET AKSUAHMET AKSU Posts: 62
    edited 2007-03-23 13:24
    the encoder has 12v npn open collector output type .thanks
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-03-23 13:40
    If it is open collector then all it can do it pull the pin to ground, therefore you can make it supply 3.3v by pulling it high to 3.3v with a resistor. So when off the prop sees 3.3v and when on it sees 0v.

    Graham
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-03-23 13:40
    just make sure the gnd for prop and encoder are common!
  • SkogsgurraSkogsgurra Posts: 231
    edited 2007-03-23 13:46
    Very few encoders have open collector outputs. Especially if they are 12 V types. What you have is usually an NPN transistor and a (weak) pull-up to +12 V. It would help if you can identify the make and type of encoder.
  • T ChapT Chap Posts: 4,223
    edited 2007-03-23 14:16
    A 4050 is good about taking a higher Vin than Vdd, try putting 5v to the 4050 Vdd, put a 1k from the 4050 to the Prop. That will likely work for you with Vin of 12v

    Post Edited (originator) : 3/23/2007 6:33:22 PM GMT
  • AHMET AKSUAHMET AKSU Posts: 62
    edited 2007-03-23 15:37
    the encoder is autonics e50s 360 pulse a b output type 12-24 vdc npn output
  • TransistorToasterTransistorToaster Posts: 149
    edited 2007-03-23 16:25
    >type 12-24 vdc npn output
    Do check your encoder outputs with a voltmeter before attaching to the propeller.

    You should read this sticky thread:
    HOW TO SAFELY INTERFACE A 5V SIGNAL TO THE PROPELLER?
    http://forums.parallax.com/forums/default.aspx?f=25&m=124837
  • SkogsgurraSkogsgurra Posts: 231
    edited 2007-03-23 18:39
    Yes, it is actually an open collector type (if your output code is -2). Then you can just use pull-ups to 3,3 V.

    If you are doing up/down counting, you need to use the two 90 degree shifted channels. My first test of the Prop was doing that in Spin using a fast look-up decoding rather than a boolean one (Parallax Forums > Public Forums > Propeller chip > Code Decodes Encoder) and it works quite well for moderate speed. Use the same technique in assembler for "ublimited" speed.
Sign In or Register to comment.