Go to Post communication at its best = quick, brief, clear - JaneYoung [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 23-01-2012, 22:06
Landonh12's Avatar
Landonh12 Landonh12 is offline
270 points
AKA: Landon Haugh
FRC #0364 (Team Fusion)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Gulfport, MS
Posts: 211
Landonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud of
Too many PWM's shorting out power?

First of all, this could apply to programming, motors, or electrical. I'm a programmer, so i'm going to post this here. If it needs to move somewhere else, someone in authority please do so.

I am programming in this year's LabVIEW.

Okay. We have been putting together a test robot to propel the basketballs into the hoops. We have 4 Jag's running (Drive) and 1 Victor running (Shooter).

All of the Jag's are put into the Digital Sidecar PWM slots 1, 2, 3, and 4.

The Victor is put into PWM slot 5.

When i disable the Victor, and run our Drive code, it runs just fine. No problems, no tinks, nothing. But, when we enable the Victor, and disable the drive code, nothing happens. Absolutely nothing. Could this be something wrong with the sidecar or something wrong with the Victor? All of the code is fine, all of the RefNum's are exactly the same.

Thanks, for any help.
Team Fusion 364
  #2   Spotlight this post!  
Unread 23-01-2012, 22:19
engunneer's Avatar
engunneer engunneer is offline
Alumni turned Mentor
AKA: Branden Gunn
FRC #4761
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1996
Location: Reading, MA
Posts: 868
engunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond reputeengunneer has a reputation beyond repute
Re: Too many PWM's shorting out power?

if you plug the victor in to the PWM where a Jag was, does it enable with the drive code?

What do your LEDs do?

Is the victor response the same with and without a motor connected?

if the victor is not in the system, and you enable the drive and shooter code, does the drive still work?

Are your loops looping?
__________________
Student FRC23 (1996-1999), Mentor FRC246 (2000), Mentor FRC1318 (2007-2009), Mentor FRC93 (2011), Mentor FRC2151 (2012), Mentor FRC23 (2013), Mentor FRC4761 (2014-2017)
1998 - National Chairman's Award and Woodie Flowers Award (FRC23, Mike Bastoni ) | 2007 - PNW SF (488, 1595) | 2008 - Oregon RCA - Seattle #2 Seed, SF (488, 1696) | 2009 - Oregon #1 Seed, Winners (1983, 2635) - Seattle SF (945, 2865) - Galileo #2 Seed, SF (973, 25) | 2012 Midwest F (111, 71) | 2014 RIDE Winners (78, 125), Inspector - NEU #24, QF (3479, 3958) - NECMP #35 | 2015 Reading #11, SF (1058, 190), Inspector - RIDE #17, QF(4055, 5494), Inspector - NECMP #57 | 2016 Reading #4, SF (133, 4474), DCA, Inspector - Ride #22, SF (1735, 2067), Creativity, Inspector - NECMP #48, RCA - Archimedes
  #3   Spotlight this post!  
Unread 24-01-2012, 01:08
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Too many PWM's shorting out power?

When you say "disable the Victor", what do you mean?

Since you're asking about programming, it would help greatly if we could see your code. Show us at least the relevant sections of Begin and Teleop.
  #4   Spotlight this post!  
Unread 24-01-2012, 01:42
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Too many PWM's shorting out power?

Is your digital sidecar powered by wires coming from the PD board? ie, are the BAT, 5V, and 6V LEDs on? I've heard that could make one or two PWMs work but not all of them. That doesn't theoretically make much sense, since the sidecar circuitry is mostly pass through for PWM, but hey.
  #5   Spotlight this post!  
Unread 24-01-2012, 03:18
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Too many PWM's shorting out power?

Quote:
Originally Posted by WizenedEE View Post
Is your digital sidecar powered by wires coming from the PD board? ie, are the BAT, 5V, and 6V LEDs on? I've heard that could make one or two PWMs work but not all of them. That doesn't theoretically make much sense, since the sidecar circuitry is mostly pass through for PWM, but hey.
Actually, the PWM signals are buffered on the DSC. It does make sense
  #6   Spotlight this post!  
Unread 24-01-2012, 13:55
Landonh12's Avatar
Landonh12 Landonh12 is offline
270 points
AKA: Landon Haugh
FRC #0364 (Team Fusion)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Gulfport, MS
Posts: 211
Landonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud of
Re: Too many PWM's shorting out power?

Quote:
Originally Posted by Alan Anderson View Post
When you say "disable the Victor", what do you mean?

Since you're asking about programming, it would help greatly if we could see your code. Show us at least the relevant sections of Begin and Teleop.
Disabling the Victor in the code.
I will post a picture later today, around 5 CST.

@WizendEE
Yes, the 5v and 6v lights are on.
  #7   Spotlight this post!  
Unread 24-01-2012, 15:28
zaphodp.jensen zaphodp.jensen is offline
Alumni and Mentor of 3130
AKA: Pierce Jensen
FRC #3130 (East Ridge Robotics Ominous Raptors (E.R.R.O.R.'s))
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2009
Location: Minnesota
Posts: 76
zaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the rough
Re: Too many PWM's shorting out power?

Troubleshooting information and Ideas:

Do you have your Victor PWM cable plugged in the correct direction?

Does enabling both do anything different?

Does plugging a Jaguar into the victor's cable work? Does plugging the victor into a Jaguars cable work?

Does changing the PWM port to say, 8 make it work?

What the problem sounds like is a hardware problem and not a software problem.
  #8   Spotlight this post!  
Unread 25-01-2012, 00:05
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Too many PWM's shorting out power?

Quote:
Originally Posted by Landonh12 View Post
Yes, the 5v and 6v lights are on.
If the BATT LED isn't also on, that supports the idea that you might not be getting power to the Digital Sidecar properly.
  #9   Spotlight this post!  
Unread 25-01-2012, 00:11
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: Too many PWM's shorting out power?

Quote:
Originally Posted by WizenedEE View Post
Is your digital sidecar powered by wires coming from the PD board? ie, are the BAT, 5V, and 6V LEDs on? I've heard that could make one or two PWMs work but not all of them. That doesn't theoretically make much sense, since the sidecar circuitry is mostly pass through for PWM, but hey.
The reason it works is because the DS leeches power from the cRIO, which is generally enough to run a few of the outputs, but not all.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #10   Spotlight this post!  
Unread 26-01-2012, 11:16
dyanoshak dyanoshak is offline
Registered User
AKA: David Yanoshak
FRC #2158 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Austin, TX
Posts: 191
dyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond reputedyanoshak has a reputation beyond repute
Re: Too many PWM's shorting out power?

Quote:
Originally Posted by zaphodp.jensen View Post
Does plugging a Jaguar into the victor's cable work? Does plugging the victor into a Jaguars cable work?
A side note: Remember that you must configure your code to use either a Jaguar or a Victor (for each motor instance). Jaguar uses the full range of the Servo PWM signal coming out of the cRIO. If your code is configured for a Victor but you really have a Jaguar hooked up, the Jaguar will not swing to full forward or full reverse.
  #11   Spotlight this post!  
Unread 26-01-2012, 18:57
Landonh12's Avatar
Landonh12 Landonh12 is offline
270 points
AKA: Landon Haugh
FRC #0364 (Team Fusion)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Gulfport, MS
Posts: 211
Landonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud of
Re: Too many PWM's shorting out power?

The problem is resolved.
Most of the problem was wiring, and some was programming.
We had the code using a Victor, which is what we were using. Thanks.
  #12   Spotlight this post!  
Unread 26-01-2012, 20:26
Hawiian Cadder's Avatar
Hawiian Cadder Hawiian Cadder is offline
Registered User
AKA: Isaak
FRC #0159 (Alpine Robotics)
Team Role: CAD
 
Join Date: Feb 2010
Rookie Year: 2003
Location: Fort Colins Colorado
Posts: 573
Hawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to all
Re: Too many PWM's shorting out power?

Could you specify the solution you found? We have a Crio that will only do 2 motors controlled at the same time and are utterly stumped.
  #13   Spotlight this post!  
Unread 28-01-2012, 12:12
Landonh12's Avatar
Landonh12 Landonh12 is offline
270 points
AKA: Landon Haugh
FRC #0364 (Team Fusion)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Gulfport, MS
Posts: 211
Landonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud of
Re: Too many PWM's shorting out power?

Quote:
Originally Posted by Hawiian Cadder View Post
Could you specify the solution you found? We have a Crio that will only do 2 motors controlled at the same time and are utterly stumped.
Our cRIO was plugged into the power supply for a camera, so it wasn't getting enough power.
What are you programming in?
  #14   Spotlight this post!  
Unread 01-02-2012, 21:45
el_pablo el_pablo is offline
Registered User
AKA: Nicolas Bourré
FRC #4007
Team Role: Mentor
 
Join Date: Feb 2012
Rookie Year: 2012
Location: Canada
Posts: 7
el_pablo is an unknown quantity at this point
Re: Too many PWM's shorting out power?

We are having the same problem.

When we try to control more than 2 motors with the PWMs, the system starts to have problem.

Scenario 1
With the Axis camera, when running the 2 step motor, one of them starts to skip. Adding a third motor, both of step motors jitters.

Scenario 2
Using 2 jags and 1 victor, one jag skips every few seconds.

So what could be the problem? Power?

Thanks for helping
  #15   Spotlight this post!  
Unread 02-02-2012, 00:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Too many PWM's shorting out power?

Quote:
Originally Posted by el_pablo View Post
We are having the same problem...
So what could be the problem? Power?
The same symptoms suggest the same fix: make sure you are properly supplying 12 volts to the Digital Sidecar from a 20 amp breaker on the Power Distribution Board.
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 19:01.

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