Shop OBEX P1 Docs P2 Docs Learn Events
CAT5e and signal — Parallax Forums

CAT5e and signal

T ChapT Chap Posts: 4,223
edited 2013-10-12 19:19 in General Discussion
A US digital single ended encoder has info that states max cable lengths 6'. I have several hundred systems using these encoders with 20'minimum, some up to 35', one maybe 45'. All feed direct to two inputs (Quadrature) on a Propeller through a 1k. The signals are about 5V. At some point when the Prop came out, I remember there was a post about current limiting for 5v using a 1k, but I see other posts that state higher values, but that is another story and of no concern since I have never blown a pin with 5V and a 1k.

These are not high speeds, I would guess not even 2500 RMP at maximum. 400 lines. One image shows the scope looking at the encoder, with test leads at the encoder on the motor, using a 3' unshielded CAT5e. The other cable is 40' unsheilded CAT5. The spool the CAT5 is off is from a 100' Radio Shack stock. The spool clearly says CAT5, not CAT5e, I didn't think they even made CAT5 anymore, I assume that if it were CAT5e then the spool would say so.

I cannot detect any problems with the 40' length when running the motor, but have a project that will require several systems to connect with 40'. I have some single end to RS422 extender modules that US Digital sent, but they are a bit more work to add in.

Does anyone have an opinion on these signals to suggest a simpler method to clean up the difference you see on the 40'? Or. just leave it alone if it seems to be working? On the project, I intend to use CAT5e shielded and tie the drain to the chassis.
640 x 478 - 85K
640 x 478 - 97K

Comments

  • kwinnkwinn Posts: 8,697
    edited 2013-10-08 18:32
    Try using each pair as ground (or V+) and signal lines with a 120 ohm terminating resistor if you don't already do that.
  • T ChapT Chap Posts: 4,223
    edited 2013-10-09 06:54
    Thanks Kwinn. Here is the custom wiring scheme I created for it, this cannot be changed:

    Pair 1
    1 VSS
    2 ENC A > 1KR > Prop input Quadrature Encoder Obj (5V signal)
    Pair 2
    3 VCC (5V)
    4 ENC B > 1KR > Prop input Quadrature Encoder Obj (5V signal)
    Pair 3
    5 Hall1 6.25V signal to BLDC driver IC
    6 Home Switch Sits at 5V
    Pair 4
    7 Hall2 6.25V signal to BLDC driver IC
    8 Hall3 6.25V signal to BLDC driver IC

    There is currently no termination, no caps on the encoder path, only the 1k limiting resistor at the Prop input.
  • stamptrolstamptrol Posts: 1,731
    edited 2013-10-09 09:55
    First, I think it will work fine, assuming it gets no worse that what you've scoped.

    You're getting a bit of glitching during the transition of the opposite channel. At the encoder, can you put a few hundred uF across Vss and Vdd to make sure the encoder power stays stable during switching?

    At the Propellor, can you provide a bit of loading from A to Vss and B to Vss? Say 10K or so?

    Cheers
  • T ChapT Chap Posts: 4,223
    edited 2013-10-09 10:15
    Thanks, it is easy to modify the Prop board after install, but the motor is inaccessible after install. I tried today at the motor/encoder pulling A and B to VSS with a 1k and that smoothed out the transition glitches but also dropped the high signal by a little bit. I will leave try it with CAT6 and see how it looks, I don't see a problem as is. 3.83 Volts at the Prop inputs from the encoder. There is a .1 cap at the encoder from 5V to VSS.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2013-10-09 13:12
    If you've got room on the Prop board for mods, I would add a dual 74LVC2G14 Schmitt-triggered inverter to the inputs, powered from +3.3V. (Its inputs are 5V-tolerant.)

    -Phil
  • Mark_TMark_T Posts: 1,981
    edited 2013-10-09 13:27
    One thing that might help a little is adding some capacitive load at the receiving end to absorb sharp spikes and then
    pass through that schmitt trigger gate. Since your signal of interest is of limited frequency you can afford to limit
    its slew rate somewhat I think, and that should reduce spike amplitude (well it's worth trying and seeing.
  • kwinnkwinn Posts: 8,697
    edited 2013-10-09 16:45
    T Chap wrote: »
    Thanks Kwinn. Here is the custom wiring scheme I created for it, this cannot be changed:

    Pair 1
    1 VSS
    2 ENC A > 1KR > Prop input Quadrature Encoder Obj (5V signal)
    Pair 2
    3 VCC (5V)
    4 ENC B > 1KR > Prop input Quadrature Encoder Obj (5V signal)
    Pair 3
    5 Hall1 6.25V signal to BLDC driver IC
    6 Home Switch Sits at 5V
    Pair 4
    7 Hall2 6.25V signal to BLDC driver IC
    8 Hall3 6.25V signal to BLDC driver IC

    There is currently no termination, no caps on the encoder path, only the 1k limiting resistor at the Prop input.

    What you are doing with pair 1 and 2 is what I meant by my post. I use that same wiring when I need to provide power the encoder, and add a 120 ohm resistor (or a 120 ohm resistor and 0.1uF in series) across each pair, and a 0.1uf and 10uF between Vss and Vdd.
  • T ChapT Chap Posts: 4,223
    edited 2013-10-09 17:11
    Thanks guys. I can easily hack in the inverter. I tried putting a 120 across A and B at the encoder and got some strange multi level results.
  • kwinnkwinn Posts: 8,697
    edited 2013-10-09 18:32
    T Chap wrote: »
    Thanks guys. I can easily hack in the inverter. I tried putting a 120 across A and B at the encoder and got some strange multi level results.

    Sorry, should have mentioned that when you provide power over the two pairs you need the 0.1uF capacitor in series with the 120 ohm resistors. For the Vss pair it's Vss to capacitor to 120 ohm to signal. For the Vdd pair it's Vdd to capacitor to 120 ohm to signal.
  • T ChapT Chap Posts: 4,223
    edited 2013-10-12 19:19
    The only change is adding the Schmitt Trigger Phil posted. Nice clean lines. There are a few light reflections in the glass that are not actual signal elements. The reason I haven't tested the cap and resistor as mentioned is that the first preference is to add mods at the controller (which is accessible). The motor is not accessible, and any mods added there will not be able to tweaked later if needed. I will build a small board with an RJ45 on each side, and add the Schmitt Trigger to the board inserted in the encoder signal path.
    640 x 478 - 88K
Sign In or Register to comment.