Go to Post With any dollar amount to invest I would be more interested in the number of individuals (students is too narrow) impacted than the number of teams created--after all, this is about people. - kramarczyk [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 01-12-2012, 00:03
Wildcats1378 Wildcats1378 is offline
Registered User
no team
 
Join Date: Jan 2012
Rookie Year: 2011
Location: hawaii
Posts: 93
Wildcats1378 is an unknown quantity at this point
Drive Motors turning off then losing signal

Hey all,

Before the competition is announced, we wanted to show our new members how the basics of the FIRST robot operates, and also to refresh our knowledge of how everything works. So we rebuilt a small little chasis with a simple 4 motor drive. We have 2 CIM Motors fitted into Andy Mark CIMple box which drives a chain to the wheels.

So anyway, the problem is whenever we engage teleop, the Jaguars connected to the motors will flash red, the motors will turn for half a second, then the motors lose signal and blink yellow.

We've really been trying everything we could possibly think of. We've reformatted the cRIO, we've remade the program several times over, we've checked all the wiring. Still can't figure it out.

I'm really sorry about the pictures of the code being, err, actual pictures instead of a screenshot, but I was being kicked out of our room so I had to take them quickly We're coding in Labview.

Alright, so this is the picture of the teleop code. It is extremely basic, as we've JUST been trying to get this to work.


This is the begin code. We basically opened a 4 motor drive, watchdog, and a joystick. That's it.


If there are any questions about the code I can answer them.

Right before I went home today, we found that if we just plugged in one motors PWM cable, that one motor would work. But only in 2 directions, foreward and left. If the joystick was moved to the right, or down, the Jag would flash red and the signal would be cut.

Any help would be greatly appreciated! It's really been bothering us for about a week and a half now. Thanks!
  #2   Spotlight this post!  
Unread 01-12-2012, 08:05
apples000's Avatar
apples000 apples000 is offline
Registered User
no team
 
Join Date: Mar 2012
Rookie Year: 2012
Location: United States
Posts: 222
apples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant futureapples000 has a brilliant future
Re: Drive Motors turning off then losing signal

From our teams experience using jaguars is that they can sometimes fail and cause intermittent problems like the ones you describe. Also, make sure that you're motors aren't running in opposite directions and that your gearbox is working well. I don't usually use labview, but I thought that it was unnecessary to use a watchdog and that could be causing the problem. You might want to try running them motors without them connected to the gearbox. If that doesn't work, I'd just try creating a new robot project and not adding the watchdog. Also, double check that all your parts are well connected, and that the joystick is on the same port in the driver station ans in LabView.
  #3   Spotlight this post!  
Unread 01-12-2012, 10:25
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Drive Motors turning off then losing signal

There is absolutely no reason to reimage the cRIO in this circumstance. It is a complete waste of time. And I didn't look too closely at your code, but I doubt that is the issue.

1. Verify that your battery is charged. As the motors draw current, the voltage of the battery drops. If it drops too low, the motor controllers may stop working.
2. Verify that the motors are not fighting one another and that they are not drawing too much current because of binding or because of the gear ratio.

Greg McKaskle
  #4   Spotlight this post!  
Unread 01-12-2012, 11:41
gyroscopeRaptor's Avatar
gyroscopeRaptor gyroscopeRaptor is offline
Registered ConfUser
AKA: Mark McGivern
FRC #3633 (Catalyst)
Team Role: College Student
 
Join Date: Dec 2010
Rookie Year: 2011
Location: Albert Lea, MN / Troy, NY
Posts: 360
gyroscopeRaptor has a spectacular aura aboutgyroscopeRaptor has a spectacular aura about
Re: Drive Motors turning off then losing signal

Check your digital sidecar wiring, it was a source of problems for us.
  #5   Spotlight this post!  
Unread 01-12-2012, 13:12
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Drive Motors turning off then losing signal

Ah, yes.

Quote:
Check your digital sidecar wiring
I meant to include that one. Specifically, verify that you have supplied power to the digital breakout itself. The PWM signal supplies just enough power for a few motors to function when no power is connected to the breakout, but it isn't predictable and needs its own power in order to operate correctly.

Greg McKaskle
  #6   Spotlight this post!  
Unread 01-12-2012, 21:40
Wildcats1378 Wildcats1378 is offline
Registered User
no team
 
Join Date: Jan 2012
Rookie Year: 2011
Location: hawaii
Posts: 93
Wildcats1378 is an unknown quantity at this point
Re: Drive Motors turning off then losing signal

Thanks for the answers!

I don't think it is the motors moving against each other, because they WILL spin, but they lose signal. Hard to explain but we definantly made sure they were not moving against each other.

The gearbox is fine because again, they do work, but it's only in one direction. I'm thinking it is an electrical issue.

As per reformatting the cRIO, we didn't really know what to do so that was one of our last options. And we've rewrote the code several times with and without the watchdog.

What exactly do you mean by supply power to the digital breakout? This sounds like it could be the problem. Is this a module on the cRIO or is it on the digital sidecar itself. Noob question, I know . It's been a while.

Thanks for the answers though!
  #7   Spotlight this post!  
Unread 01-12-2012, 21:58
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,369
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: Drive Motors turning off then losing signal

It'd be the sidecar itself. Down at the bottom (Where PWM port 1 is) there should be a Wago connector that carries 12v from the Power Distribution Board.
__________________
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)
  #8   Spotlight this post!  
Unread 01-12-2012, 22:59
Wildcats1378 Wildcats1378 is offline
Registered User
no team
 
Join Date: Jan 2012
Rookie Year: 2011
Location: hawaii
Posts: 93
Wildcats1378 is an unknown quantity at this point
Re: Drive Motors turning off then losing signal

I'm almost postive we have that plugged in. It might not be the right voltage though, I'll check on monday.
  #9   Spotlight this post!  
Unread 01-12-2012, 23:40
Brandon_L Brandon_L is offline
The color orange triggers me
AKA: Brandon Liatys
FRC #2180 (Zero Gravity)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Newark, NJ
Posts: 1,191
Brandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond repute
Re: Drive Motors turning off then losing signal

Grab a spare Jag from somewhere, power it, and plug in a PWM. If it functions properly, you've got 2 bad jags. We had the same problem not long ago, and thought we were going crazy because we replaced a bad jag with another bad jag.

3rd times the charm.

You can easily check if the motors are fighting each other by disconnecting one of the PWMs and running the other.
__________________
FRC 2495 - Hamilton West Robotics [2007-2014]
FRC 3929 - Atomic Dragons [2012-2013]
FRC 2180 - Zero Gravity [2017-]

Just trying to collect all the possible team colors
  #10   Spotlight this post!  
Unread 03-12-2012, 19:22
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Drive Motors turning off then losing signal

The symptoms point perfectly to the Digital Sidecar not receiving battery power. Make sure you've got its power input wired to a 20-amp circuit on the Power Distribution Board.
  #11   Spotlight this post!  
Unread 12-12-2012, 01:42
Wildcats1378 Wildcats1378 is offline
Registered User
no team
 
Join Date: Jan 2012
Rookie Year: 2011
Location: hawaii
Posts: 93
Wildcats1378 is an unknown quantity at this point
Re: Drive Motors turning off then losing signal

Yeah, sorry for not coming back and answering! It turns out we did not have the power coming from the right source! Found a handy wiring guide that I cannot believe we did not have before.

Thanks guys!
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 09:20.

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