Go to Post Now repeat after me: it is just a game. It is just a game. It is just a game... - dlavery [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 12-02-2014, 01:54
mstfldmr mstfldmr is offline
Registered User
FRC #2905
 
Join Date: Jan 2014
Location: Turkey
Posts: 10
mstfldmr is an unknown quantity at this point
Motors are not moving (randomly)

Hi,

we have a strange problem which we could not diagnose properly.
  • We tested all our motors and Victor drivers one by one. They were all running.
  • We created a simple program which only creates PWM outputs. I checked all ports with a multimeter, and they are fine too.
  • I double checked that there is 12V power on the left side of Victors, and their yellow LEDs are flashing.

However, when we connect the PWM outputs to 2 Victors, only one of the motors turns. After formatting CRIO and downloading the program again a few times, that motor stops still and the other one turns. The LED of the moving Victor is constantly on, while the non-moving is still flashing. Swapping the PWM ports does not change the moving motor.

Yeah, I know it's strange but I thought there are many experienced people here and someone could suggest a solution.

thanks...
  #2   Spotlight this post!  
Unread 12-02-2014, 01:59
potatoshane potatoshane is offline
Registered User
FRC #2813
 
Join Date: Feb 2013
Location: San Jose
Posts: 33
potatoshane will become famous soon enough
Re: Motors are not moving (randomly)

Are you sure this is not a software problem?

Are you guys using Java?
  #3   Spotlight this post!  
Unread 12-02-2014, 02:35
mstfldmr mstfldmr is offline
Registered User
FRC #2905
 
Join Date: Jan 2014
Location: Turkey
Posts: 10
mstfldmr is an unknown quantity at this point
Re: Motors are not moving (randomly)

Quote:
Originally Posted by potatoshane View Post
Are you sure this is not a software problem?

Are you guys using Java?
We are using Labview.

I don't think it's a software problem, because correct PWM is generated on both output pins of the sidecar. The motor continues turning after swapping their PWM ports on the sidecar.
  #4   Spotlight this post!  
Unread 12-02-2014, 02:43
potatoshane potatoshane is offline
Registered User
FRC #2813
 
Join Date: Feb 2013
Location: San Jose
Posts: 33
potatoshane will become famous soon enough
Re: Motors are not moving (randomly)

How did you swap the PWM Cables on your DIO?

Have you tried swapping the PWMs on the Viktors?

See if the other Viktor keeps running after the PWMs are swapped
  #5   Spotlight this post!  
Unread 12-02-2014, 03:04
mstfldmr mstfldmr is offline
Registered User
FRC #2905
 
Join Date: Jan 2014
Location: Turkey
Posts: 10
mstfldmr is an unknown quantity at this point
Re: Motors are not moving (randomly)

Quote:
Originally Posted by potatoshane View Post
How did you swap the PWM Cables on your DIO?

Have you tried swapping the PWMs on the Viktors?

See if the other Viktor keeps running after the PWMs are swapped
We swapped the ports PWM cables are connected on the sidecar. Also, we tried changing the PWM cables.

One Viktor keeps running and while the other is still.
  #6   Spotlight this post!  
Unread 12-02-2014, 03:19
potatoshane potatoshane is offline
Registered User
FRC #2813
 
Join Date: Feb 2013
Location: San Jose
Posts: 33
potatoshane will become famous soon enough
Re: Motors are not moving (randomly)

So let me get this clear

Victor A = Does not run
Victor B = Runs, does not stop

Swap PWM Cable from Victor a to Victor B and vice cersa

Victor A = Runs, does not stop
Victor B = Does not run
  #7   Spotlight this post!  
Unread 12-02-2014, 04:07
mstfldmr mstfldmr is offline
Registered User
FRC #2905
 
Join Date: Jan 2014
Location: Turkey
Posts: 10
mstfldmr is an unknown quantity at this point
Re: Motors are not moving (randomly)

Quote:
Originally Posted by potatoshane View Post
So let me get this clear

Victor A = Does not run
Victor B = Runs, does not stop

Swap PWM Cable from Victor a to Victor B and vice versa

Victor A = Runs, does not stop
Victor B = Does not run
no, that would be much easier. It's like:


Victor A = Runs
Victor B = Does not run

Swap PWM Cable from Victor A to Victor B and vice versa

Victor A = Runs
Victor B = Does not run

Reboot CRIO a few times,

Victor A = Does not run
Victor B = Runs

Swap PWM Cable from Victor A to Victor B and vice cersa

Victor A = Does not run
Victor B = Runs

Last edited by mstfldmr : 12-02-2014 at 04:26.
  #8   Spotlight this post!  
Unread 12-02-2014, 07:41
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,751
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: Motors are not moving (randomly)

Verify that the LEDs on the digital breakout board are on. My guess is that they are dim or out and that the 12V power to the breakout is missing.

You should also make sure that the ribbon cable from cRIO to breakout board is well seated.

Greg McKaskle
  #9   Spotlight this post!  
Unread 12-02-2014, 14:49
potatoshane potatoshane is offline
Registered User
FRC #2813
 
Join Date: Feb 2013
Location: San Jose
Posts: 33
potatoshane will become famous soon enough
Re: Motors are not moving (randomly)

At this point, I don't think its a software nor a Viktor problem

I would try replacing your PWM Cables and your ribbon cable from the Crio to the DIO.

Try finding any problems with electronics
  #10   Spotlight this post!  
Unread 13-02-2014, 02:11
mstfldmr mstfldmr is offline
Registered User
FRC #2905
 
Join Date: Jan 2014
Location: Turkey
Posts: 10
mstfldmr is an unknown quantity at this point
Re: Motors are not moving (randomly)

thanks for the replies. it was revealed that the problem was caused by the battery. all the software and electronics were correct. a new and charged battery solved the problem.
  #11   Spotlight this post!  
Unread 13-02-2014, 10:17
E Dawg E Dawg is offline
... is not done with FRC yet.
AKA: Ethan
FRC #0159 (Alpine Robotics)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Fort Collins, CO
Posts: 267
E Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud of
Re: Motors are not moving (randomly)

Quote:
Originally Posted by mstfldmr View Post
thanks for the replies. it was revealed that the problem was caused by the battery. all the software and electronics were correct. a new and charged battery solved the problem.
We had that problem last night. Funny how sometimes all you need to do is plug it in (to a charged battery).
  #12   Spotlight this post!  
Unread 13-02-2014, 10:19
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 5,988
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Motors are not moving (randomly)

Quote:
Originally Posted by mstfldmr View Post
thanks for the replies. it was revealed that the problem was caused by the battery. all the software and electronics were correct. a new and charged battery solved the problem.
That's what I would have suggested first....low batteries cause all kinds of weird problems.

Glad you figured it out.
  #13   Spotlight this post!  
Unread 13-02-2014, 10:28
mstfldmr mstfldmr is offline
Registered User
FRC #2905
 
Join Date: Jan 2014
Location: Turkey
Posts: 10
mstfldmr is an unknown quantity at this point
Re: Motors are not moving (randomly)

Quote:
Originally Posted by E Dawg View Post
We had that problem last night. Funny how sometimes all you need to do is plug it in (to a charged battery).
I hope our discussion here saved you from losing a few days like us
  #14   Spotlight this post!  
Unread 13-02-2014, 10:37
BBray_T1296's Avatar
BBray_T1296 BBray_T1296 is offline
I am Dave! Yognaut
AKA: Brian Bray
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Rockwall, TX
Posts: 947
BBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond reputeBBray_T1296 has a reputation beyond repute
Re: Motors are not moving (randomly)

We had a similar problem when we first fired up our robot for the first time

Turns out it was a wiring problem, resulting from a boggling design flaw with the Victor.

The PWM cable is actually capable of (easily!) plugging into the slot, with all of the pins completely missing the terminals inside, but without bending any cable pins, or looking any different from the outside.

I will admit it was me who plugged in the wrong ones, but the difference in the "feel" and look of plugging them in wrong was identical to plugging them in right.
__________________
If molecular reactions are deterministic, are all universes identical?

RIP David Shafer: you will be missed


  #15   Spotlight this post!  
Unread 13-02-2014, 10:54
mstfldmr mstfldmr is offline
Registered User
FRC #2905
 
Join Date: Jan 2014
Location: Turkey
Posts: 10
mstfldmr is an unknown quantity at this point
Re: Motors are not moving (randomly)

Quote:
Originally Posted by BBray_T1296 View Post
We had a similar problem when we first fired up our robot for the first time

Turns out it was a wiring problem, resulting from a boggling design flaw with the Victor.

The PWM cable is actually capable of (easily!) plugging into the slot, with all of the pins completely missing the terminals inside, but without bending any cable pins, or looking any different from the outside.

I will admit it was me who plugged in the wrong ones, but the difference in the "feel" and look of plugging them in wrong was identical to plugging them in right.
our problem was different than yours. the cables were good and they were well connected. the battery was not able to supply enough current. probably, due to the design of Victors, one was drawing all the current the battery could supply, and the other Victor was not getting any current at all.
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 17:29.

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