Go to Post What should the lesson of FIRST be? Work within your resources to build the most effective machine that you can--and, at the same time, work to increase those resources. - Billfred [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 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.
  #2   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?
  #3   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
  #4   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.
  #5   Spotlight this post!  
Unread 02-02-2012, 00:49
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 el_pablo View Post
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.
To add to Alan's response, check to make sure that the frame of the Axis camera is isolated from the robot's, as the Axis camera is grounded to its frame.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #6   Spotlight this post!  
Unread 02-02-2012, 10:18
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?

Here is a video I made yesterday during the testing.

It's in french but I wrote in a previous post what is happening.


Youtube video here


As you can see, it jitters even when not running.

Here is a screen shot of our begin.vi


Here is the teleop code


Thanks for helping
  #7   Spotlight this post!  
Unread 02-02-2012, 12:51
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?

el_pablo:

When you said "step motor" before, did you mean "servo"?

You're defining the camX and camY servos, but you never command them to move.

The nouveauMotor device reference is not defined in Begin. You should be seeing an error message on the Driver Station telling you about that.

I can't see YouTube videos from where I am, but I'm going to guess that you haven't installed the servo power jumpers next to the PWM pins on the Digital Sidecar for the camera servos. If they are indeed being powered, then a "twitch" is usually an indication that they're not getting a PWM signal, and are just picking up noise on the wires.
  #8   Spotlight this post!  
Unread 02-02-2012, 13:59
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?

Sorry my mistake, they are servos not stepmotors.

The diagrams show the second scenario which includes 2 jags + 1 victor and no servo. Althought they are declared we don't use them in this test case.

Concerning the servos, the power jumpers are installed.

We started the project using the default template. Should I delete a few things before coding?

Thank you
  #9   Spotlight this post!  
Unread 02-02-2012, 14:16
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?

Just figured out that in the begin.vi there were some "junk" declaration out of the screen in which some PWMs were in conflict...

I hope this is source of the problem.

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 23:37.

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