Go to Post Engineers can really make a difference when people are in their time of need. - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 31-01-2012, 18:27
Arrex's Avatar
Arrex Arrex is offline
Registered User
FRC #4296
 
Join Date: Jan 2012
Location: United States
Posts: 10
Arrex is an unknown quantity at this point
Vex Spike Motor Control

My team is trying to get a Vex Pro Spike to run an AndyMark PG71 Gearmotor. We've gotten the Spike to pulse once when we press enable on the Driver Station, and the motor runs as well, but we can't get the Spike to run longer or respond to a joystick input. We've checked over our program and we can't find anything that shouldn't be causing a problem.

Our program:
SpikeTest (2).vi
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2012, 18:31
jdh042397's Avatar
jdh042397 jdh042397 is offline
Being a nerd really pays off!!
FRC #4063 (TRikzR4kiDz)
Team Role: Electrical
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Del Rio, Texas
Posts: 58
jdh042397 is an unknown quantity at this point
Re: Vex Spike Motor Control

Have you tried swapping the wires? They could be shorting?
__________________
2014 Hub City Regional Engineering Inspiration
2012,2013,2014 Alamo Regional Gracious Professionalism
2014 Dallas Regional Gracious Professionalism
2013 Alamo Regional Winners (2468 & 2789)
2013, 2014 Hub City Regional Finalist

"Robotics are beginning to cross that line from absolutely primitive motion to motion that resembles animal or human behavior."
J. J. Abrams
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2012, 18:34
Arrex's Avatar
Arrex Arrex is offline
Registered User
FRC #4296
 
Join Date: Jan 2012
Location: United States
Posts: 10
Arrex is an unknown quantity at this point
Re: Vex Spike Motor Control

Yes, we've checked the wires and tried swapping out the Spike.
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2012, 18:53
Brandon Brandon is offline
Registered User
FRC #3220
 
Join Date: Jan 2012
Location: Spangle, WA
Posts: 4
Brandon is an unknown quantity at this point
Re: Vex Spike Motor Control

We also have a similar problem running our spike relays. When trying to control them by having one button run them forward and one in reverse, the light flickers and sounds can be heard that sound like shorting or arching. All wiring and programming are in good order, have been triple checked, and several different programming methods have been attempted. When holding down the button to run the spike, the light on the sidecar as well as the spike itself flickers on and off, and when tested with a meter the voltage is flickering as well. When trying to run the spike in the opposite direction the proper light lights on the sidecar (still flickering) but the light on spike does not change direction. We have tried using a different joystick to the same end. And yes, in the program in the Begin.vi the relay is set to run in both directions. Could there be some problem with the default program in which it isn't refreshing joystick values quickly enough?
Reply With Quote
  #5   Spotlight this post!  
Unread 31-01-2012, 19:50
Brandon Brandon is offline
Registered User
FRC #3220
 
Join Date: Jan 2012
Location: Spangle, WA
Posts: 4
Brandon is an unknown quantity at this point
Re: Vex Spike Motor Control

Also, I have programmed the spikes to run always forward or always reverse with no control method. This works fine, but as soon as trying to control with a button is where we encounter problems.
Reply With Quote
  #6   Spotlight this post!  
Unread 31-01-2012, 20:08
IndySam's Avatar
IndySam IndySam is online now
Registered User
FRC #0829 (Digital Goats)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Indy
Posts: 3,361
IndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond reputeIndySam has a reputation beyond repute
Re: Vex Spike Motor Control

Quote:
Originally Posted by Brandon View Post
Also, I have programmed the spikes to run always forward or always reverse with no control method. This works fine, but as soon as trying to control with a button is where we encounter problems.
Spikes are basically a relay that will run forward or reverse there is no speed control.
__________________
"Champions are champions not because they do anything extraordinary but because they do the ordinary things better than anyone else." —Chuck Knoll


2015 Indianapolis District Winner
2014 Boilermaker Regional Industrial Design Award
2013 Smoky Mountain Regional Industrial Design Award
2012 Boilermaker Engineering Excellence Award
2010 Boilermaker Rockwell Innovation in Control Award.
2009 Buckeye J&J Gracious Professionalism Award
2009 Boilermaker J&J Gracious Professionalism Award
2008 Boilermaker J&J Gracious Professionalism Award
2007 St Louis Regional Winners
Reply With Quote
  #7   Spotlight this post!  
Unread 31-01-2012, 23:51
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,113
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: Vex Spike Motor Control

Quote:
Originally Posted by Arrex View Post
We've gotten the Spike to pulse once when we press enable on the Driver Station, and the motor runs as well, but we can't get the Spike to run longer or respond to a joystick input.
You're switching the Spike between OFF and ON. Off supplies Battery = on both of its output terminals, and ON supplies Battery +, again on both of its output terminals. A motor connected between the terminals won't run in either case.

You most likely want to switch the Spike between OFF and FORWARD, or maybe between OFF and REVERSE.
Reply With Quote
  #8   Spotlight this post!  
Unread 31-01-2012, 23:59
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,113
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: Vex Spike Motor Control

Quote:
Originally Posted by Brandon View Post
We also have a similar problem running our spike relays. When trying to control them by having one button run them forward and one in reverse, the light flickers and sounds can be heard that sound like shorting or arching.
This is a very specific symptom with an obvious (once you know it) cause.

Your first button is choosing whether to run the Spike forward or turn it off. Your second button is choosing whether to run the Spike reverse or turn it off. With a button pressed, those two choices are fighting each other. The Spike either gets turned on and then off again, or turned off and then on again, each time through Teleop.

What you can to do instead is to have the first button choose whether to run the Spike forward or ask the second button what it wants to do. The second button will have the opportunity to run the Spike reverse or turn it off, but only if the first button isn't already running it forward.

You can also do some funny math with the buttons, with the first button selecting a value of either 0 or +1 and the second selecting a value of either 0 or -1, then add them together. Use the sum as the selector of a three-way Case, with -1 setting the Spike reverse, +1 setting it forward, and 0 turning it off.
Reply With Quote
  #9   Spotlight this post!  
Unread 01-02-2012, 17:26
Arrex's Avatar
Arrex Arrex is offline
Registered User
FRC #4296
 
Join Date: Jan 2012
Location: United States
Posts: 10
Arrex is an unknown quantity at this point
Re: Vex Spike Motor Control

I tried that, and it stopped pulsing completely. I tried setting it up through a joystick control, but it only resumed the short pulse when we enable it and still isn't working properly.

Spike Joystick Test.vi

Initially, the program used 1 and 0, but we changed it to the Relay controls with no difference in results.
Reply With Quote
  #10   Spotlight this post!  
Unread 01-02-2012, 23:32
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,113
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: Vex Spike Motor Control

Quote:
Originally Posted by Arrex View Post
I tried that, and it stopped pulsing completely. I tried setting it up through a joystick control, but it only resumed the short pulse when we enable it and still isn't working properly.
The code looks reasonable. I should have asked this before: how is the motor connected? Where does every wire connected to the Spike go?
Reply With Quote
  #11   Spotlight this post!  
Unread 04-02-2012, 10:01
Arrex's Avatar
Arrex Arrex is offline
Registered User
FRC #4296
 
Join Date: Jan 2012
Location: United States
Posts: 10
Arrex is an unknown quantity at this point
Re: Vex Spike Motor Control

Sorry it took a while, but here is the setup we had for the Spike when we used that program.

Click image for larger version

Name:	DSCF0690.JPG
Views:	55
Size:	783.3 KB
ID:	11694
Click image for larger version

Name:	DSCF0691.JPG
Views:	36
Size:	689.7 KB
ID:	11695
Click image for larger version

Name:	DSCF0692.JPG
Views:	53
Size:	760.3 KB
ID:	11696
Click image for larger version

Name:	DSCF0693.JPG
Views:	42
Size:	765.1 KB
ID:	11697
Click image for larger version

Name:	DSCF0694.JPG
Views:	22
Size:	633.0 KB
ID:	11698

Apparently another team member was able to get the Spike to run using an Arduino, but I'm not sure if that specific board was included in our parts.

Edit: We also tried using the sample program, and it still won't respond. Apparently the program and mechanical/electrical parts aren't working together.

Last edited by Arrex : 04-02-2012 at 11:17.
Reply With Quote
  #12   Spotlight this post!  
Unread 04-02-2012, 14:38
Arrex's Avatar
Arrex Arrex is offline
Registered User
FRC #4296
 
Join Date: Jan 2012
Location: United States
Posts: 10
Arrex is an unknown quantity at this point
Re: Vex Spike Motor Control

Turns out we had some faulty wiring on the sidecar. All fixed. Thanks for the help, though.
Reply With Quote
Reply


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 22:27.

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