![]() |
First Programming - Victor/PWM help
So as a mentor this is my first step back into working on the control system. Unfortunately, I've been very out of touch with common issues and am having a difficult time diagnosing the issue that my team is having.
We've got a 4-motor powered 6WD, with each of the motors running off of Victor 888s. Programming-wise we're using the Open 4 Motor vi in Begin to open up 4 motors and we are using the Tank Drive vi that's provided in the library. I should have gotten some screenshots in hindsight but it's a pretty straight-forward program. By not-working below I mean blinking orange (like a no signal) and working meaning fully responding to the joystick for which it was correctly programmed. So for a while our issue was that when the PWMs were set to 1,2,3,4 only PWM Channel 3 would work. So I switched the left motors (PWM 1 and PWM 3) and the right front victor (originally PWM 3) worked. However, I was unable to replicate this working with both PWM 1 and PWM 3. I couldn't get that victor working on PWM 3 or PWM 1 again, so I flipped the PWMs for the right and left side. Then, PWM 3 (which was now on the front right motor) now started to work. So I changed the PWMs to use 3,4,5,6 to see if it was a PWM Channel issue, but then none of them worked (and they still don't). I decided to dig deeper into some of the WPI library. Clearly the joysticks were working and that was definitely indicated, and it also looked like the RobotDriveRef set up the 4 motors for the correct PWM Channels. However I was unable to Probe the Set Output vi to see if the value was actually accurately getting set to the right PWM Channel. One of my leading theories was cables are not set in enough, but I've probably quadrupled checked them, and had two different students also put them in. The fact that two different victors worked and weren't consistent leads me to believe the issue is beyond just fitting wires. I'm semi ruling out bad PWM cables because of the fact that none of them work currently but did before. We also switched out one of the wires and it did not fix anything. Any tips on how I can debug this or on what may be the problem? I know this is hard to debug without being present or seeing things so please ask questions, I'll respond as quickly as I can. My next experiment is going to be to image the cRIO and try this game all over again. I'm going to have an orange light nightmare tonight. |
Re: First Programming - Victor/PWM help
Quote:
So, basic troubleshooting for that would be remove the ribbon cable that connects the Digital Sidecar to the Digital Breakout, and check if all 3 lights are lit (BAT 5V 6V) if they're still lit, then that means you've got good power. If one of them isn't lit, make sure that your DSC is connected correctly to the Power Distribution board as seen here. That's what I'd start with. Hope it helps |
Re: First Programming - Victor/PWM help
Getting a PWM cable in the Victor is very difficult and takes the right touch. I suspect that you aren't actually getting it installed fully.
|
Re: First Programming - Victor/PWM help
Quote:
And Joe, yeah I remember messing around with these when I was on FRC. Perhaps we aren't getting them in right. I can feel them get a little resistance and what feels like pins going in, and they dont come out bent or anything. I'll take a close up to compare how far the cable sits into the Victor PWM slot. |
Re: First Programming - Victor/PWM help
Quote:
|
Re: First Programming - Victor/PWM help
Quote:
If the big orange Robot Signal Light is blinking, it usually means battery voltage is getting to the Digital Sidecar okay. |
Re: First Programming - Victor/PWM help
Quote:
|
Re: First Programming - Victor/PWM help
Quote:
Even when you inspect the pins on the PWM cables, they may look "straight," but chances are all 3 will be VERY slightly deflected forward or backward. If they are, the next time you plug them in, you're likely to "miss" the connector inside the Victor again. The first thing you need to do is check that all your PWM connector pins are perfectly straight. If I could teach the "super-straight near-zero insertion force Victor PWM cable connector wiggle technique" through a Chief Delphi post, I'd probably save young FRC teams hundreds of hours of lost troubleshooting time. The problem is, I could explain it all I want, and even film it in detail. It'll just look like any regular person haphazardly plugging a PWM connector into Victor, when really there is a lot more going on there. |
Re: First Programming - Victor/PWM help
2 Attachment(s)
Here are some pictures. One is of all our PWMs that were connected to the Victors. As far as I can tell it doesn't seem like they're bent. The second one showing how far the PWM is going into the slot on the Victor.
Do these look incorrect? I'm going to attempt to describe plugging them in, it feels like the pushing the cable goes through two stages. The first is actually finding the holes so you wiggle it a little until you feel that the pins are fitting into their holes. The second is pushing them in further into the holes and there is a little more resistance when pushing them in and it feels like they're getting more secured. |
Re: First Programming - Victor/PWM help
Quote:
Is there a step-by-step flow-diagram troubleshooting technique posted somewhere for this particular problem that we could link to whenever this question pops up on CD? |
Re: First Programming - Victor/PWM help
Quote:
What checks have you done to determine that you are actually delivering a signal to the Victor end of your PWM cable? |
Re: First Programming - Victor/PWM help
Quote:
As far as hardware, ensure that the Victor and Digital Sidecar are getting power. It's difficult to use a multimeter and see what the readings of the actual PWM cables are but we've tried and it seems as though it's not putting out any power (signal) through the cables. Other debugging steps have included trying different PWM Channels and PWM Cables, we have yet to try different Victors, but it doesn't seem like a Victor issue. -Sravan |
Re: First Programming - Victor/PWM help
Quote:
|
Re: First Programming - Victor/PWM help
Unfortunately, no.
I just checked with the multimeter again and just poked around (literally) in different ports on the Digital Sidecar. There's 6V from the V+ to the black on the PWM out ports. 0V between Sig and (-). 0v between Pwr and (-). On the Digital IO, however, 5V between Pwr and (-). Any suggestions Ether in troubleshooting without an oscilloscope? |
Re: First Programming - Victor/PWM help
Quote:
Give it some 12V power and plug your PWM cable into it. See what the LED does. |
Re: First Programming - Victor/PWM help
Quote:
|
Re: First Programming - Victor/PWM help
Quote:
So I switched them out and with the robot enabled, I put in the wires into the victor myself, and it's good to go. Sooooooooooooooooooooo...yeah.....woops. Thanks for your help, in pretending my insanity was sanity. |
Re: First Programming - Victor/PWM help
Quote:
|
| All times are GMT -5. The time now is 21:05. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi