Go to Post Technology is everywhere, yet the human factor is what makes an event special. - synth3tk [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 02-02-2012, 11:29
Shaun Coon's Avatar
Shaun Coon Shaun Coon is offline
Registered User
FRC #2487
 
Join Date: Jan 2012
Location: New York
Posts: 45
Shaun Coon is a jewel in the roughShaun Coon is a jewel in the roughShaun Coon is a jewel in the roughShaun Coon is a jewel in the rough
Exclamation CAN????

What are the benifits and disqadvantages of using a CAN system with our Jaguars??? How do you hook them up??? How do you program them?? Any help would be greatly appriciated. Thanks
  #2   Spotlight this post!  
Unread 02-02-2012, 11:47
Jon Stratis's Avatar
Jon Stratis Jon Stratis is online now
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,733
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: CAN????

Pro's:
  • Wiring can be a little easier, and you don't take up a bunch of PWM outputs on the digital sidecar (important if you would otherwise be using more than 10 of those - without CAN you would need a second digital sidecar)
  • You can have direct feedback into the Jaguars for your sensors, like the encoders. This can be important if you have a lot of sensor feedback on the robot - having an encoder go into a Jaguar frees up 2 of your 14 digital I/O's on the digital sidecar.
Con's:
  • You have to make or find your own wires - it's not as simple as using the PWM's that came in the KoP
  • CAN can be tricky to setup initially (you have to assign each jaguar a separate address)

How to wire:
Check out the Jaguar documentation here: http://www.ti.com/lit/ug/spmu022c/spmu022c.pdf

If you scroll through far enough, you'll see a section dedicated to the CAN wiring.
- To start, the KoP this year came with a DB9/RJ12 Adapter. You need to hook this up correctly so you get the correct pins attached to the correct places. I recommend incorporating your terminator into the adapter - a 100-ohm resistor hooked up to the middle two pins of the RJ12 jack.
- Once that's done, you essentially "daisy chain" the jaguars together - you run a 6-conductor phone cable from the Adapter to the first jaguar, then can use 4-conductor from that jaguar to the next, and again to the next, etc. At the end, you need a terminator, which is a 100-ohm resistor hooked up to the middle two pins of the phone connector.

How to program:
For Java (and probably for everything else, too), there is a special Jaguar class for use with CAN. You simply use it instead of the normal Jaguar class.

You will need to use the jaguar CAN interface on your computer (through a special cable you'll need to make) to program the Jaguars with the correct addresses. Details for that are in the documentation linked above.
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 09:43.

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