Go to Post It's kind of magical how I went from legos to replacing most of the iron in my blood with aluminum, and all thanks to my elementary school science teacher. - Astrokid248 [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 07-03-2010, 12:36
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
v89 Jag used for CAN, trouble going back to PWM?

We have several Black and gray jags that we've been using over CAN for a few weeks during build season. All of them are loaded with v89 firmware. Each Jag has its own non-default (not 1) CAN id assigned using bdc-comm.

We decided during competition to move one of our Black jags back to PWM by removing all connections from the CAN ports and making appropriate adjustments to the other CAN-connected Jags to properly terminate their CAN bus, etc, then hooking up a PWM cable to the Jag and digital sidecar.

We changed our user program to use the PWM-based Jag driver with appropriate PWM port number.

However, the PWM Jag does not seem to want to respond to PWM commands at all. It does get a valid pwm signal as the Jag LED goes to solid orange, but no matter what PWM value we send, it sits at neutral.
Plugging the same PWM line into a gray Jag we'd never used for CAN and never updated firmware on results in normal, expected operation so we do know that our user program is driving the PWM signal properly for non-neutral operation.

Unfortunately, as competitions go a lot of time for debugging was not available. We went back to CAN, changed the code, and everything was fine.


Looking for some feedback from other teams here:

Is anyone using a v89 Jag successfully with PWM connection?
If so, have you ever used that Jag with CAN prior?
I know some of the TI guys are lurking -- does the firmware require any settings changed to go back to PWM? Particularly, does it require resetting the id back to 1 or anything along those lines?
Reply With Quote
  #2   Spotlight this post!  
Unread 07-03-2010, 15:13
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Re: v89 Jag used for CAN, trouble going back to PWM?

I loaded a Black Jaguar with v89 then switched back to PWM later without any issues or having to do anything to the Black Jaguar.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-03-2010, 12:54
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: v89 Jag used for CAN, trouble going back to PWM?

Quote:
Originally Posted by TheDominis View Post
I loaded a Black Jaguar with v89 then switched back to PWM later without any issues or having to do anything to the Black Jaguar.
Thanks for the info. Had you ever changed that Jag from its default CAN id of 1?

Anyone else go from CAN back to PWM with success?
Reply With Quote
  #4   Spotlight this post!  
Unread 08-03-2010, 16:46
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,695
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: v89 Jag used for CAN, trouble going back to PWM?

I have one Black Jag (v89) that I was switching back and forth from CAN to pwm constantly. It was mounted on our robot (now in FedEx hands), and they were driving with it via PWM. I then drove just the device powered by the Jag via CAN for testing purposes.

CAN address 8.

No problems.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 08-03-2010, 19:12
dmoody92 dmoody92 is offline
Registered User
FRC #3015
 
Join Date: Jan 2009
Location: Spencerport, NY
Posts: 37
dmoody92 is a jewel in the roughdmoody92 is a jewel in the roughdmoody92 is a jewel in the roughdmoody92 is a jewel in the rough
Re: v89 Jag used for CAN, trouble going back to PWM?

We switched to CAN and back with few problems. Now the status light on the Jaguars sometimes flashes on the black jaguars when it is a neutral signal, despite having a good pwm signal and working.

Did you check to see if, in the bdc-com terminal, you disabled heart beat?
Reply With Quote
  #6   Spotlight this post!  
Unread 09-03-2010, 10:15
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: v89 Jag used for CAN, trouble going back to PWM?

Quote:
Originally Posted by dmoody92 View Post
Did you check to see if, in the bdc-com terminal, you disabled heart beat?
I will check this -- sounds plausible. I didn't know that heart beat was a (persistently) configurable option.

Thanks to everyone for posting that they've done this with success; we'll go back and re-examine what is happening.
Reply With Quote
  #7   Spotlight this post!  
Unread 18-03-2010, 11:11
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: v89 Jag used for CAN, trouble going back to PWM?

To close this out -we discovered that our problem was with Jaguars that actually had an older firmware (v85!). Apparently that version was not pwm friendly at all. Upgrading the firmware resolved the issue.

Sorry for the misguided report - this was on our 2009 robot, and my understanding that all the Jags had been updated to v89 was incorrect.
Thanks to everyone who confirmed things working as intended.

Quote:
I didn't know that heart beat was a (persistently) configurable option.
BTW -- Before noticing the firmware downrev, I tried toggling this option. It only seems to modify if heartbeat is send over CAN by bdc-comm at that present time. It does not seem to be a persistent option that modifies Jaguar operation.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: cRIO CAN Jag Andrew Schuetze Extra Discussion 63 25-07-2009 01:48
Can one PWM control 2 Victors for Tandem Motors ericsundbergva Control System 1 18-02-2008 04:55
Trouble Generaing PWM output RaiderRev Programming 3 22-01-2008 18:59
How much of our wheel used for the shooter can be exposed? waialua359 Technical Discussion 4 14-02-2006 13:27
Trouble with pwm outputs misterikkit Programming 16 17-01-2004 10:56


All times are GMT -5. The time now is 20:15.

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