|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Half Sidecar PWM Ports Working
This is team 4474, posting during our second FRC season. It seems that the first 4 PWM ports in our sidecar don't respond correctly. Ports 1 and 2 output "forward" to out motor controllers while ports 3 and 4 output "reverse" at all times. Ports 5 through 10 work just fine. We've tried two different sidecars, several different serial cables, and two different cRIOs with the exact same results. The battery voltage was near full when we tested it as well. Help would be greatly appreciated!
|
|
#2
|
||||
|
||||
|
Is the sidecar wired to and recieving 12volts from the PDB and are all three voltage lights on it fully illuminated with the DB37 cable disconnected? ( Cable that attaches to the crio)
|
|
#3
|
|||
|
|||
|
Re: Half Sidecar PWM Ports Working
Quote:
Thanks for reminding us of this, we will be sure to check it tomorrow since our meeting is now over. Thank you! We will let you how how it goes. |
|
#4
|
|||||
|
|||||
|
Re: Half Sidecar PWM Ports Working
Quote:
How are you determining that they are outputting reverse/forward all the time? How are your motors wired? How did you determine ports 5-10 are working properly? What speed controllers are you using and are they wired properly? |
|
#5
|
|||
|
|||
|
Re: Half Sidecar PWM Ports Working
Quote:
Last edited by afclsn : 29-01-2014 at 10:12. Reason: Typing error |
|
#6
|
|||||
|
|||||
|
Re: Half Sidecar PWM Ports Working
As previously stated I would check to see if the 12 volts is going into the sidecar.
|
|
#7
|
|||
|
|||
|
Re: Half Sidecar PWM Ports Working
We will definitely check this tomorrow, as this is a new assembly of the electronics and it very well could be the issue, I just didn't think to check it.
|
|
#8
|
|||||
|
|||||
|
Re: Half Sidecar PWM Ports Working
We had a similar failure but do not expect this to be your exact issue. We started to lose PWM outputs one after another until half the board had no output. We replaced the DSC and checked the bad one only to find a crack. The way the board is laid out, the crack cut the lines to one of the output devices but not the others.
|
|
#9
|
|||||
|
|||||
|
Re: Half Sidecar PWM Ports Working
Check to see if they really are getting a forward or reverse signal. Green on the Jags is forward, red is reverse.
Why do I ask? I'm guessing you're using ports 1, 2, 3 and 4 for your drive motors. 3 and 4 are on one side, correct? If so, then everything is working as it "should", just not what you are expecting. (Since on a normal FRC drivetrain, the left side is a mirror image of the right side, and the motors are rotated 180 degrees...) You'll need to change your code to drive motors 3 and 4 inverted, or on the OUTPUT side of the corresponding Jags (The side with M+ and M-), make the motor's red go to M- and the motor's black go to M+. If that isn't what you're doing... then something very strange is going on indeed. EDIT: I guess I didn't understand your problem correctly. You're saying that the problem isn't inversion but lack of control? Last edited by Toa Circuit : 29-01-2014 at 09:05. |
|
#10
|
|||
|
|||
|
Re: Half Sidecar PWM Ports Working
Quote:
Last edited by afclsn : 29-01-2014 at 10:22. Reason: More information. |
|
#11
|
|||
|
|||
|
Re: Half Sidecar PWM Ports Working
Quote:
any other ideas? thanks. Last edited by afclsn : 29-01-2014 at 10:23. Reason: forgot something |
|
#12
|
|||||
|
|||||
|
Re: Half Sidecar PWM Ports Working
Only of the "are you sure it's plugged in?" sort. For example, what revision of the cRIO image is installed?
|
|
#13
|
|||||
|
|||||
|
Re: Half Sidecar PWM Ports Working
afclsn, Can you take a picture of your side car and electronics layout for us?
Thanks. |
|
#14
|
|||||
|
|||||
|
Re: Half Sidecar PWM Ports Working
Try making some code that allows you to directly control each output (As a Jaguar... like jag[1].Set(joystick.GetAxis(1)) ). See if the problem is really hardware or just your code not doing what you think it does.
|
|
#15
|
|||
|
|||
|
Re: Half Sidecar PWM Ports Working
Yeah, we did this before we tried it with code for the mecanums, and it had the problems with the simple code.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|