Go to Post changing some 0 to 1s was a lot lighter and cheaper than most of the clutches I found. - IKE [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-01-2016, 10:27
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 243
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Com wire

I have searched around for the discussion I'm sure has been touched on many times. Lots of post using phone wire for CAN in the past. My history started last spring so Roborio is my starting point. I would like the team I'm mentoring this winter to start using feed back to operate their robot this year. The off season labs we been preforming has got everyone excited with the possibilities. What I have observed though is many or most of the connection cables we have are pieced together sometimes with two or more solder joints and not always matching colors. I bought a supply of pins and sockets.

Now I'm asking for your experiences would phone and/or Ethernet cable work well for making cables? Solid or stranded? With both types i usually like this strip twice as much wire off and fold it back once to get a solid connection.

Last edited by cpapplefamily : 08-01-2016 at 10:29.
  #2   Spotlight this post!  
Unread 08-01-2016, 10:43
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 5,963
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Com wire

We haven't messed with the CAN bus stuff, except as needed for the connections between the computer and the VRM and PCM. But in general, you want to worry mostly about the physical aspects of the wiring--make sure it's robust, and easy to repair if needed. I would tend to want to use thicker wire than is found in LAN cables. The twisted pair that comes in the kit is pretty nice, but finding twisted pair of the same gauge, with an overall jacket, would be even better. The color codes are also a concern, it would be nice to have colors on the wires that are not shared by the power distribution, etc.

Let us know what you find, I'm sure others could use some help here too.
  #3   Spotlight this post!  
Unread 08-01-2016, 10:47
VacioArconte's Avatar
VacioArconte VacioArconte is offline
Appreciator of Robots
FRC #2468 (Team Appreciate)
Team Role: Electrical
 
Join Date: Feb 2014
Rookie Year: 2012
Location: Austin, TX
Posts: 41
VacioArconte is a jewel in the roughVacioArconte is a jewel in the roughVacioArconte is a jewel in the rough
Re: Com wire

Our team uses WAGO Levernuts and ferrules for CAN, no soldering required. They're easily changed and you can wire CAN in either series or parallel, for which you can have either two-connection for series or much larger levernuts for parallel.

http://www.andymark.com/product-p/am-2577.htm

Here's a five terminal connector.
  #4   Spotlight this post!  
Unread 08-01-2016, 11:45
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Com wire

AndyMark provides it, and it looks very similar to this cable, with the Mississippi State University AVTC team uses in their vehicles for CAN communication. It's probably the best CAN cable you can get.

However, in my experience, it's a pain to strip that oil-resistant insulation off. I often would try to strip it and end up cutting the insulation off the internal wires. YMMV

CTR Electronics also provides it. It's uninsulated, which makes it really easy to strip the wires. I would recommend this over the AndyMark stuff because it's easier to use.

Our team just bought some off of eBay.

Big thing to look for in CAN is if it's twisted. CAN uses differential signaling for communication, meaning one wire goes logic low while the other wire goes logic high. What this does is allow the CAN controllers to detect signaling errors do to electromagnetic interference (EMI), and attempt to resend the message. Sources of EMI? Motors, overhead lights, static, bad crimps, solar flares... you name it!

Next biggest thing to look for is the size. All the CAN connectors use Weidmuller Connectors, which can accept wire from 16AWG to 24AWG. All the above wire will work.

Can you twist it yourself? Sure! I've done this before by taping up the ends in a drill and spinning it for a while. Number of turns per meter does matter in the real world, but for our application, anything will probably work. I've seen teams just run normal wires, untwisted, and have it work fine.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364

Last edited by RyanN : 08-01-2016 at 22:22. Reason: See Don's response below.
  #5   Spotlight this post!  
Unread 08-01-2016, 12:51
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 243
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: Com wire

I was thinking for PWM and DIO as well.
  #6   Spotlight this post!  
Unread 08-01-2016, 13:33
Knufire Knufire is offline
Rose-Hulman Institute of Technology
no team
Team Role: College Student
 
Join Date: Sep 2009
Rookie Year: 2010
Location: Terre Haute, IN
Posts: 738
Knufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond repute
Re: Com wire

Quote:
Originally Posted by cpapplefamily View Post
I was thinking for PWM and DIO as well.
We just use hobby servo wire for these.
__________________
Team 469: 2010 - 2013
Team 5188: 2014 - 2016
NAR (VEX U): 2014 - Present
  #7   Spotlight this post!  
Unread 08-01-2016, 16:56
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Com wire

Quote:
Originally Posted by cpapplefamily View Post
I was thinking for PWM and DIO as well.
https://www.servocity.com/html/servo_wire__bulk_.html
https://www.servocity.com/html/servo...s___leads.html
http://www.andymark.com/Cables-s/65.htm
http://www.amazon.com/Remote-Control...ion+unshrouded

On the ServoCity and Amazon assembled ones, you'll have to remove the plastic shroud on the male side, but that's pretty easy to do with pliers or a small flat-head / standard screwdriver.

The first ServoCity wire requires assembly, in which pins, housings, and crimpers are needed. If you're not comfortable with assembling them, then don't do it. It's easy to mess up and will cost you matches if not done right.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #8   Spotlight this post!  
Unread 08-01-2016, 17:10
Bob Potts's Avatar
Bob Potts Bob Potts is offline
Consultant
FRC #4130 (The Blue Devils)
Team Role: Mentor
 
Join Date: Dec 2015
Rookie Year: 2012
Location: Michigan
Posts: 13
Bob Potts is an unknown quantity at this point
Re: Com wire

[quote=
Our team just bought some off of [URL="http://www.ebay.com/sch/&_green+yellow+twisted+wire"]eBay[/url].


Thanks for the tip! We just bought the last one!
  #9   Spotlight this post!  
Unread 08-01-2016, 21:21
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,988
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Com wire

Quote:
Originally Posted by RyanN View Post
CAN uses differential signaling for communication, meaning one wire goes logic low while the other wire goes logic high. What this does is allow the CAN controllers to detect signaling errors do to electromagnetic interference (EMI), and attempt to resend the message.
That isn't exactly correct. Differential signaling causes any effects of EMI to be nullified, since the EMI (nominally) affects both wires equally. So if CAN is looking for a voltage differetial of 5 Volts, it does not matter if a 20 V EMI signal is superimposed upon both wires, the difference is still 5 volts.

Error detection is performed with mechanisms like a CRC checksum.

Twisted wires help maintain a constant impedance, important towards suppressing reflections, which can cause data errors.
__________________

I am N2IRZ - What's your callsign?
  #10   Spotlight this post!  
Unread 08-01-2016, 22:37
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Com wire

Quote:
Originally Posted by DonRotolo View Post
That isn't exactly correct. Differential signaling causes any effects of EMI to be nullified, since the EMI (nominally) affects both wires equally. So if CAN is looking for a voltage differetial of 5 Volts, it does not matter if a 20 V EMI signal is superimposed upon both wires, the difference is still 5 volts.

Error detection is performed with mechanisms like a CRC checksum.

Twisted wires help maintain a constant impedance, important towards suppressing reflections, which can cause data errors.
You made me review some electrical notes. You're right (of course). EMI affects both signals identically (because they're twisted). The controller's are ground independent meaning that the signals don't need a ground. The controller uses a comparator (just think of a voltage meter measuring the voltage across the signals) to see if the signal is logic low (voltages separate, 2V measured) or logic high (voltages come together, 0V measured).

If something happens, the CRC portion of the CAN message will request the other CAN controller to resend the message.

CAN is a very robust standard used by all automotive manufacturers and many companies. Fortunately, or unfortunately, FIRST and NI doesn't really expose you to the fun stuff in CAN. It all kind of... just works.

So what makes CAN really cool is no one is a master controller and no one is a slave device. Any device can talk to any device. It's a broadcast network with wither 11-bit IDs or 29-bit extended IDs. In practice, CAN is usually limited to speeds up to 500 kbps, but will reach speeds up to 1 Mbps. Newer standards (CAN FD) push that speed even higher. Not very fast, right, but when you're talking about the data we're transmitting, it's pretty fast.

I also saw on another thread about how they're using a signal-splitter to run the network as a star network rather than daisy chaining. I do not recommend doing that because of signal reflections. Most devices give you an 'in' and an 'out' port if you want to call it that. Use that, it's better for signal integrity. You have a chance of running into signal reflections on the network.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #11   Spotlight this post!  
Unread 09-01-2016, 19:53
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: Com wire

The wire for FRC CAN doesn't really matter. I would use stranded as the equipment is made to hold it in easier than solid core. During Beta, I used the KOP Link Connector Cable (Black, Red, White Green 4 conductor). I used R & B for power and W & G for CAN. It worked even without a can bus termination resistor. Really, for our distances and usage, it's robust you don't need to worry about it.

Typically we use 22AWG 4C unshielded wire.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
  #12   Spotlight this post!  
Unread 11-01-2016, 22:29
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Com wire

Quote:
Originally Posted by Bob Potts View Post
Our team just bought some off of eBay.


Thanks for the tip! We just bought the last one!
I just received ours. Item was not as described. I got 50' of green wire with a yellow tracer. Hopefully just a mess-up, but I contacted the seller.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364

Last edited by RyanN : 12-01-2016 at 08:30.
  #13   Spotlight this post!  
Unread 12-01-2016, 07:53
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,766
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Com wire

Quote:
Originally Posted by adciv View Post
The wire for FRC CAN doesn't really matter. ...It worked even without a can bus termination resistor. Really, for our distances and usage, it's robust you don't need to worry about it.
The wire and the terminations really do matter, sorry.
The twist of the wires or at least the constant spacing between wires sets the transmission line impedance. The CAN transceivers need the termination resistors to operate correctly. They help set the signalling voltage level and terminate the transmission line. Without them, the reflections at each end of the line allow errors to build up. This is an effect of the length of the line. The longer the line, the worse the effect. Also, the CAN buss should never be parallel wired. In short systems it may seem to work but, as is typical, this system will fail you when you need it the most.
The twisted wiring allows both wires to be exposed to external noise. Since the intruding noise is in phase as it passes through the wire, the twist will cause the 'in phase' noise to be cancelled at the source. Any noise that remains will also be in phase and that will be cancelled at the differential input to the transceiver chip. The twist of 2-3 turns per inch will produce a shunt capacitance of ~20-30pf per foot.
Murphy is always lurking...
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.

Last edited by Al Skierkiewicz : 12-01-2016 at 07:58.
  #14   Spotlight this post!  
Unread 12-01-2016, 11:55
s1900ahon s1900ahon is offline
Registered User
AKA: Scott McMahon
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 155
s1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant futures1900ahon has a brilliant future
Re: Com wire

Quote:
Originally Posted by RyanN View Post
So what makes CAN really cool is no one is a master controller and no one is a slave device. Any device can talk to any device. It's a broadcast network with wither 11-bit IDs or 29-bit extended IDs.
The IDs (MessageID) isn't just used to identify a device. The MessageID is part of the arbitration mechanism on CAN and so as multiple devices start to send their message, the lowest valued MessageID wins (simplified). As the bits are transmitted, if the value on the bus doesn't correspond to the value being transmitted, the node backs off (lost arbitration, but keeps listening so it can later ACK/NACK the packet for CRC). Since the MessageID is sent most-significant bit first, and 0s are dominant, the node sending a 0 beats a node sending a 1 (hence the lower value wins).

When developing Jaguar, I spent time fracturing up the extended MessageID to ensure things like "everyone stop!" got through, to everyone. In effect the Jaguar CAN protocol uses the MessageID field divided such that functions arbitrate before src/dst, where the important safety functions are low valued and broadcast (i.e. Vendor=All=0, MessageID=0 is like FunctionGroup=Safety=0, Function=Halt=0, Dest=Everybody=0--it has been almost 8 yrs since this was worked out so this is from memory).

Quote:
In practice, CAN is usually limited to speeds up to 500 kbps, but will reach speeds up to 1 Mbps.
FRC CAN is 1 Mb/s.
  #15   Spotlight this post!  
Unread 12-01-2016, 12:41
kiettyyyy's Avatar
kiettyyyy kiettyyyy is offline
Registered User
FRC #1538 (The Holy Cows)
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: San Diego, CA
Posts: 181
kiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond repute
Send a message via AIM to kiettyyyy
Re: Com wire

Quote:
Originally Posted by Al Skierkiewicz View Post
The twisted wiring allows both wires to be exposed to external noise. Since the intruding noise is in phase as it passes through the wire, the twist will cause the 'in phase' noise to be cancelled at the source. Any noise that remains will also be in phase and that will be cancelled at the differential input to the transceiver chip.
Murphy is always lurking...
Make sure your wires have a consistent twist ratio, otherwise, it is possible to have the P and N signals arrive out of phase.

This is where you use those awesome formulas from your physics classes regarding the speed of light and velocity factors through copper transmission mediums.
__________________
-Kiet Chau

2004-2008 - Software Developer/Driver on Team #968
2008-2011 - Software Developer/Coach/Mentor/"Engineer" on Team #968
2011-Present - Mentor & Engineer on Team #1538
www.team1538.com
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:34.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi