Go to Post If you are old then our lead mentor is ancient. Oh wait, he is. Oh wait, that makes me ancienter. - JaneYoung [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-03-2016, 10:07
teslalab2's Avatar
teslalab2 teslalab2 is offline
RogueBotix LLC
VRC #8091
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Austin MN
Posts: 109
teslalab2 will become famous soon enoughteslalab2 will become famous soon enough
Running Can Jaguars on Arduino *Released

https://sourceforge.net/projects/ard...?source=navbar

This will allow you to run your jaguar motor controllers on arduino over the can bus. There are 3 features that aren't supported yet and that is getting speed, position, and limit switch status from the controller. I had an issue with the jaguar sometimes sending a number that confused the arduino, so I will release that when I figure out what is going on.

I started working on this library probably a good 8 months ago. Then I didn't work on it for quite some time. Its spring break now and I decided I better finish it. So here ya go Next I'm going to release the entire ArduRIO control system

The Wiki should explain everything, but if you have any questions, or bugs please feel free to contact me.
__________________
I need a jaguar development board for reprogramming a jaguars bootloader. if you have one that you want to sell, pm me. thanks

Run you CanJaguars on arduino with ArduRIO, you can also easily control Talons, Victors,Jaguars and Sparks on PWM. https://sourceforge.net/projects/ardurio/

Last edited by teslalab2 : 11-03-2016 at 10:12.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-03-2016, 13:37
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,727
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Running Can Jaguars on Arduino *Released

Quote:
Originally Posted by teslalab2 View Post
https://sourceforge.net/projects/ard...?source=navbar

This will allow you to run your jaguar motor controllers on arduino over the can bus. There are 3 features that aren't supported yet and that is getting speed, position, and limit switch status from the controller. I had an issue with the jaguar sometimes sending a number that confused the arduino, so I will release that when I figure out what is going on.

I started working on this library probably a good 8 months ago. Then I didn't work on it for quite some time. Its spring break now and I decided I better finish it. So here ya go Next I'm going to release the entire ArduRIO control system

The Wiki should explain everything, but if you have any questions, or bugs please feel free to contact me.
Can you put the Jag in current control mode? And can you get current feedback? I've been hoping to turn old Jags into high current battery testers, but needed a way to control them without an entire FRC control system.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #3   Spotlight this post!  
Unread 11-03-2016, 14:24
teslalab2's Avatar
teslalab2 teslalab2 is offline
RogueBotix LLC
VRC #8091
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Austin MN
Posts: 109
teslalab2 will become famous soon enoughteslalab2 will become famous soon enough
Re: Running Can Jaguars on Arduino *Released

You can put the jaguar in current control mode. At this point I haven't been able to get feedback working reliably, I need to do more experimenting with the acknowledge protocol. every now and then it will return a random packet with some unknown information. I need to figure out a way to deal with that.

I don't think a jag could take the current necessary to test batteries, correct me if I am wrong here. but those batteries could supply hundreds of amps, and current mode requires tuning a PID. Again correct me if I am wrong here, I think battery testers just short out the battery's with a know resistance, and then measure the voltage. too much v drop over a short bit of time would indicate the battery is no good

I am thinking about using current mode to control a large heated bed on my 3d printer
__________________
I need a jaguar development board for reprogramming a jaguars bootloader. if you have one that you want to sell, pm me. thanks

Run you CanJaguars on arduino with ArduRIO, you can also easily control Talons, Victors,Jaguars and Sparks on PWM. https://sourceforge.net/projects/ardurio/

Last edited by teslalab2 : 11-03-2016 at 14:36.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-03-2016, 15:46
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,727
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Running Can Jaguars on Arduino *Released

Quote:
Originally Posted by teslalab2 View Post
You can put the jaguar in current control mode. At this point I haven't been able to get feedback working reliably, I need to do more experimenting with the acknowledge protocol. every now and then it will return a random packet with some unknown information. I need to figure out a way to deal with that.

I don't think a jag could take the current necessary to test batteries, correct me if I am wrong here. but those batteries could supply hundreds of amps, and current mode requires tuning a PID. Again correct me if I am wrong here, I think battery testers just short out the battery's with a know resistance, and then measure the voltage. too much v drop over a short bit of time would indicate the battery is no good

I am thinking about using current mode to control a large heated bed on my 3d printer
I've got one of the West Mountain Radio battery analyzers, and it can only handle 100W. So about 7.5A on a 12V battery. A 0.35 ohm resistor would limit you to 30A at a 10.5V cutoff voltage, and 38A at 13V. I'm mostly interested because it would make testing 4 times faster and also closer to actual FRC loads.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #5   Spotlight this post!  
Unread 11-03-2016, 21:08
Mike9966's Avatar
Mike9966 Mike9966 is offline
Mentor Mike
FRC #2846 (Fire Bears)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2008
Location: Minnesota
Posts: 62
Mike9966 is an unknown quantity at this point
Re: Running Can Jaguars on Arduino *Released

This sounds really neat! Thanks for doing it, I'm looking forward to seeing the results.

Mike
__________________
Do the best you can! Always
Go FireBears
2009 10000 Lakes Finalists, thanks 2825 & 2177
2010 10000 Lakes quarter finalists
2011 Duluth and 10000 Lakes
2012 Superior, and 10K Lakes, Qt finals, MRI
2013 Northern lights, 10K Lakes-Semi finalists, MRI, River Rendezvous, Minne Mini
2014 Northern Lights, 10K Lakes
Reply With Quote
  #6   Spotlight this post!  
Unread 11-03-2016, 21:24
teslalab2's Avatar
teslalab2 teslalab2 is offline
RogueBotix LLC
VRC #8091
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Austin MN
Posts: 109
teslalab2 will become famous soon enoughteslalab2 will become famous soon enough
Re: Running Can Jaguars on Arduino *Released

Here is a video of a robot I build last summer using ArduRIO entirely https://youtu.be/dZdmg6zu_n8?t=28s

don't look at how messy the wiring was, I did fix it, and make it safer

The jags were running on can in the video
__________________
I need a jaguar development board for reprogramming a jaguars bootloader. if you have one that you want to sell, pm me. thanks

Run you CanJaguars on arduino with ArduRIO, you can also easily control Talons, Victors,Jaguars and Sparks on PWM. https://sourceforge.net/projects/ardurio/
Reply With Quote
  #7   Spotlight this post!  
Unread 13-03-2016, 21:27
teslalab2's Avatar
teslalab2 teslalab2 is offline
RogueBotix LLC
VRC #8091
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Austin MN
Posts: 109
teslalab2 will become famous soon enoughteslalab2 will become famous soon enough
Re: Running Can Jaguars on Arduino *Released

Bit of a bump here, I added my Library for controller All PWM motor controllers on Arduino. It can control Talons, Victors, Jaguars, and Sparks. and is very easy to setup, please check it out if you are interested
__________________
I need a jaguar development board for reprogramming a jaguars bootloader. if you have one that you want to sell, pm me. thanks

Run you CanJaguars on arduino with ArduRIO, you can also easily control Talons, Victors,Jaguars and Sparks on PWM. https://sourceforge.net/projects/ardurio/
Reply With Quote
  #8   Spotlight this post!  
Unread 25-04-2016, 09:18
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,685
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Running Can Jaguars on Arduino *Released

What hardware do you use for the CAN controller? Do you have a parts list or schematic for this? I didn't see anything about the hardware in the source code, and the video description did note that you were using a TTL to UART converter, but did not have any specifics.

Do you know whether this library would work for a CAN Talon?
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #9   Spotlight this post!  
Unread 26-04-2016, 06:32
teslalab2's Avatar
teslalab2 teslalab2 is offline
RogueBotix LLC
VRC #8091
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Austin MN
Posts: 109
teslalab2 will become famous soon enoughteslalab2 will become famous soon enough
Re: Running Can Jaguars on Arduino *Released

Check the Wiki https://sourceforge.net/p/ardurio/wiki/browse_pages/

And no it doesn't work with CAN Talon, It wouldn't take much actually to make it work with can talon actually, the protocol is mostly the same the only thing different are the API values sent over in the packet.
__________________
I need a jaguar development board for reprogramming a jaguars bootloader. if you have one that you want to sell, pm me. thanks

Run you CanJaguars on arduino with ArduRIO, you can also easily control Talons, Victors,Jaguars and Sparks on PWM. https://sourceforge.net/projects/ardurio/
Reply With Quote
  #10   Spotlight this post!  
Unread 26-04-2016, 23:04
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,685
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Running Can Jaguars on Arduino *Released

Thanks, that wiki link helps!
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
  #11   Spotlight this post!  
Unread 27-04-2016, 14:29
teslalab2's Avatar
teslalab2 teslalab2 is offline
RogueBotix LLC
VRC #8091
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: Austin MN
Posts: 109
teslalab2 will become famous soon enoughteslalab2 will become famous soon enough
Re: Running Can Jaguars on Arduino *Released

Well I feel bad know that I didn't make it obvious that the wiki showed how too use it. what do you guys suggest I do to steer people towards the wiki?
__________________
I need a jaguar development board for reprogramming a jaguars bootloader. if you have one that you want to sell, pm me. thanks

Run you CanJaguars on arduino with ArduRIO, you can also easily control Talons, Victors,Jaguars and Sparks on PWM. https://sourceforge.net/projects/ardurio/
Reply With Quote
  #12   Spotlight this post!  
Unread 27-04-2016, 17:57
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,685
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Running Can Jaguars on Arduino *Released

Quote:
Originally Posted by teslalab2 View Post
Well I feel bad know that I didn't make it obvious that the wiki showed how too use it. what do you guys suggest I do to steer people towards the wiki?
I was looking for something in the comments of the files in the repository, though a separate text file in the repository named "hardware_info" or "schematic" or something like that with a link to the wiki would have taken me straight there.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
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 22:53.

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