Shop OBEX P1 Docs P2 Docs Learn Events
Max Distance and Shielding Requirements of HB-25 Signal Lines — Parallax Forums

Max Distance and Shielding Requirements of HB-25 Signal Lines

crgwbrcrgwbr Posts: 614
edited 2007-12-14 19:46 in Robotics
On one of my larger Robotics projects (4 x 1/3 HP drive motors), I am using HB-25s as the main motor controller. I know that the hardware is working correctly, because If I hookup an RC Car receiver to the HB-25s, everything works perfectly. However, everything seems to change when I change the pulse source to a prop. The HB-25s either don't respond at all, or they respond very sporadically. I know that the software is working, because I have tested it on a standard Servo. Therefore, I beleive that the problem may lie in the cable routing and length. I am using a CAT5E cable as the signal carrier (Orange and Blue are Ground, White with Orange Stripe is Signal 1, White with Blue Stripe is Signal 2). The cable is roughly 3 feet long, and passes next to several 12v power cables and one of the motors (You can see it Blue in one of the photos). Do you think that this is where the problem could be?

Thanks a lot,
Craig

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"... one of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs." -

"If Python is executable pseudocode, then perl is executable line noise."

"The best accelerator available for a Mac is one that causes it to go at 9.81 m/s2."

"My software never has bugs. It just develops random features."

"Windows isn't a virus, viruses do something."

"Programmers are tools for converting caffeine into code."

"Enter any 11-digit prime number to continue."
1280 x 1024 - 268K
1280 x 1024 - 205K
1280 x 1024 - 308K
1280 x 1024 - 267K
1280 x 1024 - 267K

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-12-14 00:23
    Yes.

    The Prop's logic levels are 0.3V and roughly 3.0V. That's not a lot of margin in a noisy environment. The fact that you're using twisted pairs is helpful. It's important that you try to shorten the distance between the two ends, route the cable further from high current areas. You could also run the Prop output through a 3V to 5V logic converter. There are a variety of gates that would work. The 74LS244 comes to mind.
  • crgwbrcrgwbr Posts: 614
    edited 2007-12-14 03:16
    Thanks for the Ideas Mike. I guess when I started the project, I didn't realize how much the Motor Interference could effect other systems. Your suggestion got me thinking...I could probable run the Prop Pin into a 4N25 to bump it up to ~12v. Then, within a couple inches of the HB-25, I could run that through another 4N25 to bump it back down to ~5v logic. This would mean that the cabling next to the motor would run at 12v logic instead of 3v. That should give me a significantly more reliable signal. The only potential problem I could foresee using this method would be the delay produced by two optos turning on and off, but this should be relatively minor for a slow 1-2 mS pulse.

    Craig

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "... one of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs." -

    "If Python is executable pseudocode, then perl is executable line noise."

    "The best accelerator available for a Mac is one that causes it to go at 9.81 m/s2."

    "My software never has bugs. It just develops random features."

    "Windows isn't a virus, viruses do something."

    "Programmers are tools for converting caffeine into code."

    "Enter any 11-digit prime number to continue."
  • allanlane5allanlane5 Posts: 3,815
    edited 2007-12-14 15:57
    You probably don't need the 12 volts -- bumping the Propellor 3 volt signal up to a full BS2 5 volt signal should be sufficient, and the HB-25 can recieve the 5 volt signal just fine without further filtering.
  • crgwbrcrgwbr Posts: 614
    edited 2007-12-14 19:46
    As soon as I have time again, I'll give boosting it to 5v a try.

    Hopefully that will work,
    Craig

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "... one of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs." -

    "If Python is executable pseudocode, then perl is executable line noise."

    "The best accelerator available for a Mac is one that causes it to go at 9.81 m/s2."

    "My software never has bugs. It just develops random features."

    "Windows isn't a virus, viruses do something."

    "Programmers are tools for converting caffeine into code."

    "Enter any 11-digit prime number to continue."
Sign In or Register to comment.