Go to Post ...remember RAID 0 is a trap. - Sperkowsky [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 24-03-2016, 13:29
team3192 team3192 is offline
Registered User
FRC #3192
 
Join Date: Oct 2015
Location: Tigard
Posts: 3
team3192 is an unknown quantity at this point
Question Severe voltage drop

Our team at the last second has encountered a catastrophic issue with our robot that we don't know how to fix. When driving, the voltage drops to unacceptably low levels, regardless of what battery we use. It has happened to us before on a completely different robot and motor controllers, and we were not able to isolate the issue then either. I will list as much information as I know about the problem.

The voltage drop only occurs when using the driving motors, and it occurs regardless of how charged a battery is and how new a battery it is. The team has checked the terminals to the motor controllers, motors, and battery and have found no issues with the wiring.

The drivetrain is a tank drive tank tread configuration. One cim motor drives each tread. The cim motor is geared down using a CIMple box. I do not know the gear ratio as of yet. I have been told that the CIMple boxes and cim motors should not be a problem as the robot has run fine before without voltage drops using the same motors and gearboxes. Each cim motor is powered by a VEX Victor, both which are wired as according to wpilib. The team is not using the CAN interface. Driving forwards and backwards drops the voltage from 12ish to about 9, and turning the robot (driving either side in the opposite direction) drops the voltage from 12 to 6 on average.

The team also uses a unique motor controller class that is included below. Our main coder was not available so we were not able to figure out if it was a code problem.

Code:
package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.Jaguar;

public class SafeJaguar{
    private final Jaguar jag;
    private final UpdateThread updater;

    public SafeJaguar(int port){
        jag=new Jaguar(port);
        updater=new UpdateThread(this,jag);
    }

    public void set(double targetSpeed){
        updater.targetSpeed=targetSpeed;
    }

    public void setDirect(double targetSpeed){
        updater.targetSpeed=targetSpeed;
        updater.speed=targetSpeed;
        jag.set(targetSpeed);
    }

    public void setPIDRate(int millis){
        updater.pidRate=millis;
    }
}
class UpdateThread extends Thread{
    long time;
    int pidRate;
    double speed,targetSpeed;
    SafeJaguar safejag;
    Jaguar jag;
    boolean active;
    public UpdateThread(SafeJaguar s, Jaguar j){
        super();
        pidRate=100;
        time=System.currentTimeMillis();
        speed=0;
        targetSpeed=0;
        safejag=s;
        jag=j;
        start();
    }
    public void run(){
        active=true;
        while(active){
            long dt=System.currentTimeMillis()-time; //dt = difference in time
            time=System.currentTimeMillis();
            if(speed!=targetSpeed){
                double amt=(double)dt/(double)pidRate;
                if(speed<targetSpeed){
                    speed+=amt;
                    if(speed>targetSpeed)speed=targetSpeed;
                }
                if(speed>targetSpeed){
                    speed-=amt;
                    if(speed<targetSpeed)speed=targetSpeed;
                }
                jag.set(speed);
            }
            try {
                sleep(10);
            } catch (InterruptedException ex) {
                //ex.printStackTrace();
            }
        }
    }
}
I do realize this account is relatively new, but I hope the moderators will show this online as soon as possible, as this problem has occurred a day before our competition and our members and mentors are stumped.
  #2   Spotlight this post!  
Unread 24-03-2016, 13:36
CalTran's Avatar
CalTran CalTran is offline
Missouri S&T Senior
FRC #2410 (BV CAPS Metal Mustang Robotics)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: Overland Park, Kansas
Posts: 2,372
CalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond repute
Re: Severe voltage drop

I'm on mobile at the moment, so I can't plug your numbers (assuming an unmodified CIMple box)into JVN's Design Calculator, but in general tank tread + turning = high current draw. Seeing as you're only using what appears to be 2 CIMs to drive your entire robot, I'm inclined to say that's the problem.
__________________
Team 2410 thinks KISSing is amazing! Keep It Super Safe!
  • "You know you've been in robotics too long when you start talking to your tools." "Well, you've been in robotics CLEARLY too long when they start talking back"
  • Theory is when you know everything but nothing works. Practice is when everything works but you don't know why. On our team, theory and practice comes together - nothing works and nobody knows why.
MMR 2410 Student (2010 - 2013) | MMR 2410 Mentor (2013 - Present)
FTC Game Announcer / EmCee (2014 - Present) | FRC EmCee (2015 - Present) | FRC Referee (2016)
Academic Student (Forever)
  #3   Spotlight this post!  
Unread 24-03-2016, 13:37
Bkeeneykid's Avatar
Bkeeneykid Bkeeneykid is offline
#wheatcoastneatcoast
AKA: Devin Keeney
FRC #1982 (Cougar Robotics); Season Long Fantasy FIRST (F3)
Team Role: Student
 
Join Date: Feb 2015
Rookie Year: 2015
Location: Lenexa, Kansas
Posts: 326
Bkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud ofBkeeneykid has much to be proud of
Re: Severe voltage drop

First off, how are you connecting your PWM? Is it a splitter cable, or two separate signals coming from the Rio? If it is two separate signals, make sure both of them are being driven, and try using the standard motor controller classes.
  #4   Spotlight this post!  
Unread 24-03-2016, 13:41
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,753
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Severe voltage drop

A picture of your setup would be helpful. Is the tread system something custom, of the AndyMark Rhino Treads?

I would also measure current draw going to each CIM. Do this with the treads off the ground, while driving straight, and while turning. The idea here is to get some hard numbers to compare in order to isolate the problem. Doing it with the robot up on blocks is important, because that will tell you if the issue is with actually driving (for example, scrub friction while turning) or if it is some sort of mechanical binding in the drive train.

How are your treads tensioned? With the robot turned off and it up on blocks, can you rotate them by hand?
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
  #5   Spotlight this post!  
Unread 24-03-2016, 14:31
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,923
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Severe voltage drop

Cimple boxes are only one stage reduction. Tread drives are energy hogs. I expect you are geared too high. But if it was working before on carpet then I would look for other issues as well. Measuring the current as Jon suggested is a good start. Inspect your drive line and be sure you do not have any broken bearing or wheels.
__________________
If you don't know what you should hook up then you should read a data sheet
  #6   Spotlight this post!  
Unread 24-03-2016, 14:37
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Severe voltage drop

It is entirely possible you have either killed a motor or a speed controller. Listen for a clicking sound from you robot. That is one of the breakers tripping. It should give you a good indication of what branch is at fault. Another method is pull all breakers feeding the drive. Then put them in one at a time. You will likely find one that is causing the voltage condition. Also check that someone has not made a wiring change on one of the motors. It is entirely possible to have shorted a controller output if wiring changes were made. It is also possible for something to be locking up the transmission. Check that the key has not slipped out of the pinion gear.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.

Last edited by Al Skierkiewicz : 24-03-2016 at 14:40.
  #7   Spotlight this post!  
Unread 24-03-2016, 15:48
team3192 team3192 is offline
Registered User
FRC #3192
 
Join Date: Oct 2015
Location: Tigard
Posts: 3
team3192 is an unknown quantity at this point
Re: Severe voltage drop

Thank you for the feedback, I have forwarded your comments to the build team. We switched out all motor controllers and individually tested them one per side to see if any of them were tripping breakers, with no avail.

Here are three pictures of the CIMple box coupling itself:
http://imgur.com/a/jj0OB

Something to note is that the build team tells me that there is a two stage reduction gear ratio inside the CIMple box itself. We don't have a multi meter at the moment to get readings, we will take readings once at the competition.
We're still encountering issues with voltage drop even with all Safejaguar classes replaced with normal motor controller classes.
  #8   Spotlight this post!  
Unread 24-03-2016, 15:51
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,606
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Severe voltage drop

If all of your connections are sound, I'm with Frank as to problem #1 - two CIMs through CIMple boxes does not give you much drive force, especially with tank treads.

Looking at your code, I also noticed that you declared one jaguar motor controller but say you are using two Victors. I'm not sure what is supposed to happen with one jaguar.

Also, the sleep(10) inside the while(active) loop means that you are only executing the loop once every 10 milliseconds unless you catch an exception. I'm not sure what you're trying to do, but this probably doesn't do it. If I read it correctly, the jaguar will get a small speed value the first pass through, then ten ms later jump considerably towards if not right to the targetSpeed. The 10 ms sleep mostly undoes what appears to be an attempt to slowly ramp up the voltage.

Edit:
Quote:
Originally Posted by team3192 View Post
Something to note is that the build team tells me that there is a two stage reduction gear ratio inside the CIMple box itself.
Only if you've made serious modifications to it - it's a singe stage gear box (two gears). A single-speed two-stage gear box will have four gears, plus another for each motor after the first. Here's the web page on the CIMple box.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.

Last edited by GeeTwo : 24-03-2016 at 16:22. Reason: ms, not seconds
  #9   Spotlight this post!  
Unread 24-03-2016, 16:10
TheOtherGuy's Avatar
TheOtherGuy TheOtherGuy is offline
Unregistered User
AKA: Kevin Forbes
FRC #4183 (Bit Buckets)
Team Role: Engineer
 
Join Date: Jul 2006
Rookie Year: 2006
Location: Tucson, AZ
Posts: 408
TheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond repute
Re: Severe voltage drop

From the photo, it could be that your track width is too narrow. 6 volts when turning is ridiculous, but 9 when driving forward/backward when the battery starts at 12 isn't too strange.

However, if the battery is 12.0 volts when not moving, it's actually starting to get a little low. A fresh battery should be closer to 13 volts.
__________________
  #10   Spotlight this post!  
Unread 24-03-2016, 17:02
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,672
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Severe voltage drop

Quote:
Originally Posted by team3192 View Post
Thank you for the feedback, I have forwarded your comments to the build team. We switched out all motor controllers and individually tested them one per side to see if any of them were tripping breakers, with no avail.

Here are three pictures of the CIMple box coupling itself:
http://imgur.com/a/jj0OB

Something to note is that the build team tells me that there is a two stage reduction gear ratio inside the CIMple box itself. We don't have a multi meter at the moment to get readings, we will take readings once at the competition.
We're still encountering issues with voltage drop even with all Safejaguar classes replaced with normal motor controller classes.
CIMple Boxes are single stage, 4.67:1 ratio. They almost have to have a second reduction stage after them, and those photos don't look like you have one. So I think you're definitely geared too high. The best solution is to change things to get a lower gear ratio. That'd be putting a smaller pulley/sprocket on shaft out of your CIMple Box. I expect you don't have belts or pulleys to do that with, but another team near you might. Switching to chain would also work, and it's easier to make chain shorter than to buy new belts in the exact correct length.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #11   Spotlight this post!  
Unread 24-03-2016, 17:40
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Severe voltage drop

OK,
Here is a test, get the tracks off the floor. put something under the robot to keep the tracks from contacting anything. Then try to drive. If you do not get the same brownout condition, then your robot is telling you that the motors are in stall condition when they are on the floor. Turns will make matters even worse.
If the robot acts the same with the tracks off the floor, you have another issue. We need to see pics inside the robot to get a better idea.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #12   Spotlight this post!  
Unread 24-03-2016, 18:12
team3192 team3192 is offline
Registered User
FRC #3192
 
Join Date: Oct 2015
Location: Tigard
Posts: 3
team3192 is an unknown quantity at this point
Re: Severe voltage drop

Thank you again for the feedback. Our team will regain access to the robot in approximately 3 hours, so we will not be able to test anything until then. After speaking with the mentors and administrators, they came to the conclusion that based upon previous tests the gearboxes are mostly to blame. The robot used to run with toughbox minis, but was switched to CIMple boxes to reduce height. The mentor I spoke to previously thought I was talking about the toughbox minis when I asked about the gearboxes. Hopefully the issue will be solved by the time competition begins. Thanks again for the help.

-Tigerbytes
  #13   Spotlight this post!  
Unread 24-03-2016, 18:30
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,753
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Severe voltage drop

Quote:
Originally Posted by team3192 View Post
Thank you again for the feedback. Our team will regain access to the robot in approximately 3 hours, so we will not be able to test anything until then. After speaking with the mentors and administrators, they came to the conclusion that based upon previous tests the gearboxes are mostly to blame. The robot used to run with toughbox minis, but was switched to CIMple boxes to reduce height. The mentor I spoke to previously thought I was talking about the toughbox minis when I asked about the gearboxes. Hopefully the issue will be solved by the time competition begins. Thanks again for the help.

-Tigerbytes
Yup, that is probably the issue. The CIMple box is a 4.67:1 ratio, while the toughbox mini could have been anywhere from 5.95:1 to 12.75:1, depending on the configuration. It sounds like the easy solution is to either go back to the mini's or add another 2:1 or 3:1 reduction somewhere (look at the monk's to see what reduction you previously had!)
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
  #14   Spotlight this post!  
Unread 25-03-2016, 00:02
CalTran's Avatar
CalTran CalTran is offline
Missouri S&T Senior
FRC #2410 (BV CAPS Metal Mustang Robotics)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: Overland Park, Kansas
Posts: 2,372
CalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond reputeCalTran has a reputation beyond repute
Re: Severe voltage drop

Note - numbers probably aren't perfect because I don't think JVN's design calculator can "do" tank treads. But I like to imagine the numbers are roughly accurate enough.

In case anyone was wondering, (with the assumptions that those pullies are 4" tall and the tread has a similar COF to Blue Nitrile), your drivetrain had a free-speed of 19.93ft/s and a "pushing" current draw per motor of 265.15 Amps. Just a smidge higher than a normal draw...Okay, a lot higher than a normal draw.

If you do as Mr. Stratis suggested and add in a 2:1 ratio somewhere, it drops your free-speed to a respectable 9.97ft/s and a pushing draw of 133.93 Amps, or half of what you were at previously. Adding a 3:1 ratio somewhere gives a free speed of 6.64ft/s and a pushing draw of 90.19 Amps. A much more "normal" pushing draw.
__________________
Team 2410 thinks KISSing is amazing! Keep It Super Safe!
  • "You know you've been in robotics too long when you start talking to your tools." "Well, you've been in robotics CLEARLY too long when they start talking back"
  • Theory is when you know everything but nothing works. Practice is when everything works but you don't know why. On our team, theory and practice comes together - nothing works and nobody knows why.
MMR 2410 Student (2010 - 2013) | MMR 2410 Mentor (2013 - Present)
FTC Game Announcer / EmCee (2014 - Present) | FRC EmCee (2015 - Present) | FRC Referee (2016)
Academic Student (Forever)
  #15   Spotlight this post!  
Unread 25-03-2016, 00:32
ctt956 ctt956 is offline
Too many threads, too little time
FRC #0900 (♞The Zebracorns♞)
Team Role: Student
 
Join Date: Oct 2015
Rookie Year: 2016
Location: Planet Earth
Posts: 695
ctt956 is a splendid one to beholdctt956 is a splendid one to beholdctt956 is a splendid one to beholdctt956 is a splendid one to beholdctt956 is a splendid one to beholdctt956 is a splendid one to behold
Re: Severe voltage drop

Do the motors slow down/struggle at all when driving/turning? If you just run one side at a time, does that cause the same problem? Test this on the floor and propped up. I would also check the temperature of the motors(do they get hotter than they should?) as well as the fuses.
__________________

"You know, it's amazing how many things you can take apart with just one ordinary screwdriver!" - Calvin, from Calvin and Hobbes
"There's nothing a little duct tape and surgical tubing can't accomplish." - Sheldon J. Plankton
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 12:19.

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