Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Vex Spike Motor Control (http://www.chiefdelphi.com/forums/showthread.php?t=101645)

Arrex 31-01-2012 18:27

Vex Spike Motor Control
 
1 Attachment(s)
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:
Attachment 11663

jdh042397 31-01-2012 18:31

Re: Vex Spike Motor Control
 
Have you tried swapping the wires? They could be shorting?

Arrex 31-01-2012 18:34

Re: Vex Spike Motor Control
 
Yes, we've checked the wires and tried swapping out the Spike.

Brandon 31-01-2012 18:53

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?

Brandon 31-01-2012 19:50

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.

IndySam 31-01-2012 20:08

Re: Vex Spike Motor Control
 
Quote:

Originally Posted by Brandon (Post 1117358)
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.

Alan Anderson 31-01-2012 23:51

Re: Vex Spike Motor Control
 
Quote:

Originally Posted by Arrex (Post 1117312)
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.

Alan Anderson 31-01-2012 23:59

Re: Vex Spike Motor Control
 
Quote:

Originally Posted by Brandon (Post 1117325)
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.

Arrex 01-02-2012 17:26

Re: Vex Spike Motor Control
 
1 Attachment(s)
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.

Attachment 11678

Initially, the program used 1 and 0, but we changed it to the Relay controls with no difference in results.

Alan Anderson 01-02-2012 23:32

Re: Vex Spike Motor Control
 
Quote:

Originally Posted by Arrex (Post 1118018)
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?

Arrex 04-02-2012 10:01

Re: Vex Spike Motor Control
 
5 Attachment(s)
Sorry it took a while, but here is the setup we had for the Spike when we used that program.

Attachment 11694
Attachment 11695
Attachment 11696
Attachment 11697
Attachment 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.

Arrex 04-02-2012 14:38

Re: Vex Spike Motor Control
 
Turns out we had some faulty wiring on the sidecar. All fixed. Thanks for the help, though.


All times are GMT -5. The time now is 11:39.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi