Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Too many PWM's shorting out power? (http://www.chiefdelphi.com/forums/showthread.php?t=101008)

slijin 02-02-2012 00:49

Re: Too many PWM's shorting out power?
 
Quote:

Originally Posted by el_pablo (Post 1118173)
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.

el_pablo 02-02-2012 10:18

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

Alan Anderson 02-02-2012 12:51

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.

el_pablo 02-02-2012 13:59

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

el_pablo 02-02-2012 14:16

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.



All times are GMT -5. The time now is 19:01.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi