Go to Post and the only thing i see as a disadvantage to those long hours of hard work is a little less time to spend with my girlfriend - h1n1is4pigs [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2012, 22:10
nickpeq nickpeq is offline
Turing-complete
FRC #1255 (Blarglefish)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Baytown, TX
Posts: 60
nickpeq is an unknown quantity at this point
Advantage of CAN?

I can't seem to find much information on CAN Jaguars. I bet the information has been right in front of me, but it's about time for me to ask for help.
I've only worked with PWM Jaguars so far. I'd like to know what advantages CAN has over PWM. Do I have to use CAN to use Encoders? I see that the javadocs show a getRate() method for the Encoder class. Can I use that just as effectively without switching over to CAN?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2012, 22:31
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Advantage of CAN?

You can use the encoders using 2 digital inputs from the Digital Sidecar just fine, without using CAN.

As far as advantages, the main one that I personally like is no more zip tying PWM wires together to run them across the robot several times. With CAN, the Jaguars can be daisy chained together, making it look a lot cleaner and easier to find faults.
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2012, 23:10
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: Advantage of CAN?

One often overlooked feature of the CAN is the ability to change from ccoast to brake mode on the fly. Every year it is a requirement for our robot drive to use brake mode in auto mode for precision and in coast mode during teleop so the driver doesnt flip the bot. Before CAN we had to waste 2 precious digital outputs and make annoying custom daisy chain cables to change the brake coast header. Now it is simply another CAN command.
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2012, 23:04
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 443
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Advantage of CAN?

Quote:
Originally Posted by nickpeq View Post
I can't seem to find much information on CAN Jaguars. I bet the information has been right in front of me, but it's about time for me to ask for help.
I've only worked with PWM Jaguars so far. I'd like to know what advantages CAN has over PWM. Do I have to use CAN to use Encoders? I see that the javadocs show a getRate() method for the Encoder class. Can I use that just as effectively without switching over to CAN?
No you don't need to use CAN to use encoders. Using CAN would allow you to wire your encoders directly into your Jaguar instead of the cRIO.

If you plan on using any of the closed loop control features of the Jags, make sure you do your homework up front... people haven't had the best luck getting reliable closed loop control out of the Jags. [read more]

For more info on CAN check out my team's tutorial on the subject:
team2168.org/index.php/resources/electrical/210-can-jaguars
__________________
http://team2168.org
Reply With Quote
  #5   Spotlight this post!  
Unread 03-02-2012, 11:33
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 100
duane is an unknown quantity at this point
Send a message via AIM to duane
Re: Advantage of CAN?

Quote:
Originally Posted by Cecil View Post
As far as advantages, the main one that I personally like is no more zip tying PWM wires together to run them across the robot several times. With CAN, the Jaguars can be daisy chained together, making it look a lot cleaner and easier to find faults.
To further extend this description, CAN has positive locking connections. We've always experienced problems with getting PWM connectors to stay connected.
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
Reply With Quote
  #6   Spotlight this post!  
Unread 11-02-2012, 18:53
juchong's Avatar
juchong juchong is online now
Electrical Engineer
AKA: Juan Chong
FRC #2655 (Flying Platypi)
Team Role: Engineer
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Greensboro, NC
Posts: 107
juchong is a jewel in the roughjuchong is a jewel in the roughjuchong is a jewel in the rough
Re: Advantage of CAN?

The biggest advantages we've noticed while using CAN have been current/voltage monitoring and feedback as well as the ability to use the jags directly with encoders. If it weren't for this feature, drive systems such as crab drive would be very difficult to pull off using the DIO on the cRio. Everything would be way too slow to be usable.

That being said, there are limits. If you have too many CAN devices on the bus and are not using a 2CAN controller, then you'll run into problems. But if you're working with 2 steering jags and a bunch of drive jags on PWM, the system is plenty fast. Another issue is being forced to understand what PID is and how it works. Many teams are not familiar with the underlying theory and find it difficult to work with the jag's built-in PID.

I also agree with Cecil, wiring is much easier too.
__________________
Teams I've worked with:My Website: http://www.juanjchong.com/
What I do: Analog Devices iSensor Product Engineer
Reply With Quote
  #7   Spotlight this post!  
Unread 11-02-2012, 19:22
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Advantage of CAN?

Quote:
Originally Posted by juchong View Post
the ability to use the jags directly with encoders. If it weren't for this feature, drive systems such as crab drive would be very difficult to pull off using the DIO on the cRio. Everything would be way too slow to be usable.
Is 10ms too slow to get responsive closed-loop control of wheel steering angle?

Reply With Quote
Reply


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 10:48.

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