View Single Post
  #3   Spotlight this post!  
Unread 25-03-2007, 04:13
ace123's Avatar
ace123 ace123 is offline
Registered User
AKA: Patrick Horn
FRC #0008 (Paly Robotics - http://robotics.paly.net/)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Palo Alto, CA
Posts: 50
ace123 has a spectacular aura aboutace123 has a spectacular aura about
Send a message via AIM to ace123
Re: Voltage difference in PWMs

If you are talking about the Victors, you a really good way to test is the nice two-color LED on it that tells you just about everything you want to know.

Quote:
The Victor light is the most accurate source if you are stuck with a PWM value problem... that one light tells you a lot of info. If it is flashing orange, it's a 3-pin PWM cable problem, or it's set to a special value that disables it (like if your robot is detached). If it's completely off once you run the code, the motors are running slowly or half-speed. If it's solid orange, they are inside the deadband or completely stopped. If it's bright red or green, it's running full power in forward or reverse.
Flashing orange could also mean a problem with the Generate_Pwm() or PWM() function calls if you are on ports 13-16... best to try switching to a different port if you aren't sure.
So the victor won't as accurately tell you the voltage, but you can estimate: if it's bright green or red, it's around +/- 10-12v. If it's off, it's not zero, and if the light is solid or flashing orange, there is no potential difference.

On the other hand, if you are just talking about the cables, sometimes it helps to ziptie them down right next to the base of the victors so that they can't get pulled out.
__________________
-Patrick Horn, Paly Robotics

Check out the space simulator called Vega Strike, modelled after the space simulator games Elite and Wing Commander. It's Open Source too!
If you have ever played Wing Commander, or especially Privateer, and had a feeling of nostalga derived from the you will enjoy these two Vega Strike mods: Privateer Gemini Gold and Privateer Remake!
I'm working on adding multiplayer support this year...