Go to Post When your team becomes ubiquitous with the phrase "Always a bridesmaid, never the bride" - Peyton Yeung [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 22-03-2012, 18:35
Doc543's Avatar
Doc543 Doc543 is offline
Electrical, Pneumatics, Driver
AKA: Eric
FRC #1891 (BullBots)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Meridian Idaho
Posts: 63
Doc543 is an unknown quantity at this point
Arduino runing CAN Bus

I have an Arduino Mega2560 and I was wondering is there any documentation on how the c-rio talks to the black Jags? My Arduino has 3 extra serial ports which I am thinking I can talk to a Jag since the connection from the c-rio to the first Jag is serial. Any help is appreciated!
__________________

"Its just a prototype."
2011 Chairman's Award Utah Regional
2010 Gracious Perfectionism Utah Regional
2009 Gracious Perfectionism Portland Regional
  #2   Spotlight this post!  
Unread 22-03-2012, 18:57
Jeremy Germita's Avatar
Jeremy Germita Jeremy Germita is offline
Co-Advisor/Lead Engineering Mentor
AKA: wood is good. plastic is fantastic.
FRC #5012 (Gryffingear) / (Antelope Valley FIRST Teams)
Team Role: Coach
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Lancaster, CA
Posts: 283
Jeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond reputeJeremy Germita has a reputation beyond repute
Re: Arduino runing CAN Bus

If you look in the CANJaguar classes in Java or C++, you'll see some clues on how the cRIO communicates to the Jags.

On the hardware side, the CAN Jag has one RS232 serial port. Arduinos typically have TTL serial ports. You need a level converter(tutorial here) to properly communicate to the Jaguar to start.

Another way to do it is to get a 2CAN and use the ethernet shield for the arduino.

Yet another alternative is SparkFun Electronics' CAN-Bus shield.
Code resource for it: http://code.google.com/p/canduino/

Good luck and communicate back with results.
__________________
Drive Coach Team 5012 Gryffingear / Antelope Valley FIRST teams / EWCP - (2013 - Current)
Student / Driver / Programmer / CAD - FRC Team 399: Eagle Robotics / FTC Team 72: GarageBots - (2009 - 2013)
Los Angeles Region FTC FTA/CSA/Head Ref
[FF] FIRST Pick
2014 FTC Los Angeles Regional Compass Award Winner.

2017 - San Diego Regional / Sacramento Regional / Las Vegas Regional
2016 - Los Angeles Regional Creativity + Winners (1197, 987, 5012) / Las Vegas Regional Team Spirit + SF (5012, 5851, 5049) / Galileo Subdivision
2015 - Inland Empire QF (597, 5012, 4413) / Las Vegas Imagery + Winners (148, 987, 5012) / Newton Subdivision and World Champions (118, 1678, 1671, 5012)
2014 - Inland Empire Rookie All Star + Highest Rookie Seed + SF (2339, 1967, 5012) / Las Vegas Rookie All Star / Galileo Division Imagery
  #3   Spotlight this post!  
Unread 22-03-2012, 19:42
Doc543's Avatar
Doc543 Doc543 is offline
Electrical, Pneumatics, Driver
AKA: Eric
FRC #1891 (BullBots)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Meridian Idaho
Posts: 63
Doc543 is an unknown quantity at this point
Re: Arduino runing CAN Bus

I would be nice to run the Jags through the RS232 with my computer's serial adapter, like how I can with the Jag test program, but with LabVIEW. I've looked a the code for the CAN in LabVIEW, It looks like it all goes down to the "FRC_Communication". What I really need is how that the data goes from "FRC_Communication" to the port so I can change it the VISA Serial in LabVIEW.
__________________

"Its just a prototype."
2011 Chairman's Award Utah Regional
2010 Gracious Perfectionism Utah Regional
2009 Gracious Perfectionism Portland Regional
  #4   Spotlight this post!  
Unread 22-03-2012, 23:01
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Arduino runing CAN Bus

TI offers the RDK-BDC24 (Research Development Kit), which is essentially the MDL-BDC24 (Black Jaguar) with all the source code and development tools you need. It should contain documentation about the serial communication methods used to control the Jaguars.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #5   Spotlight this post!  
Unread 04-04-2012, 00:04
FourPenguins's Avatar
FourPenguins FourPenguins is offline
Back in the Game
AKA: Ed Venator
FRC #2399
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Mount Olive, NJ
Posts: 261
FourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud ofFourPenguins has much to be proud of
Re: Arduino runing CAN Bus

One of my old teammates has been working on this. It's a Robot Operating System Node for controlling Jaguars over serial. You may be able to pull out some useful stuff about the Jaguar serial protocol.

https://github.com/jmesmon/jaguar
__________________
MORT 11
-2005 New Jersey Regional Chairman's Award Winner
-2006 Palmetto Regional Winner
-2007 New York Regional Delphi Driving Tomorrow's Technology Award
-2008 New Jersey Regional Finalist, Chesapeake Regional Winner, Championship Event Overall Top Seed
HB 2399
-2009 Buckeye Regional Delphi Driving Tomorrow's Technology Award, Pittsburgh Regional GM Industrial Design Award
  #6   Spotlight this post!  
Unread 11-04-2012, 12:52
kalfuswi kalfuswi is offline
Registered User
AKA: Billy K
FRC #1676 (Pascack Pi-oneers)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Pascack Valley
Posts: 12
kalfuswi is an unknown quantity at this point
Re: Arduino runing CAN Bus

CAN isn't required to operate the Jags. You can use a PWM line on an Arduino and connect it to the PWM input on the Jag. Then, use the Servo library in Arduino to control the Jags (90 is brake, the farther down you go the faster in one direction and the farther up then the faster in the other direction).
__________________
William Kalfus
Team 1676, The Pascack Pi-oneers
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 07:09.

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