|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Trying to control 1 motor with 2 buttons
Problem is that the I can't find the way to wire the joystick buttons to that motor....
I couldn't understand the relay thing either... |
|
#2
|
|||
|
|||
|
Re: Trying to control 1 motor with 2 buttons
are you trying to control a relay or a jaguar/victor?
|
|
#3
|
|||
|
|||
|
Re: Trying to control 1 motor with 2 buttons
Specifically a Jaguar
![]() |
|
#4
|
|||
|
|||
|
Re: Trying to control 1 motor with 2 buttons
sure okay. To do this I would use code similar to what i posted in the picture and instead of assigning forward/ reverse/off to the block selectors use integer values. 255 would be full power in one direction, 0 would be full power in the other direction and 127 would be off. Also, instead of using the set relay use the set speed to connect to the output of the block selector.
It might be easier to just use a relay instead of a jaguar unless you really need to control speed. |
|
#5
|
|||
|
|||
|
Re: Trying to control 1 motor with 2 buttons
What is a relay?
I'm a rookie and I don't know some stuff.... |
|
#6
|
|||
|
|||
|
Re: Trying to control 1 motor with 2 buttons
sorry about that. they are also known as the spikes. They cannot be used to power the CIMs (against the rules), but they can be used to power smaller motors like the globe motors. On the spike there is M+ and M- on one side. On the other side there is 12V and GND. The M+ and M- is for the motor leads. the 12V and Gnd is for power to the motor. there is also a three terminal header in the spike. it is rectangular and a pwm cable plugs into that which delivers the signal from the digital I/O sidecar to the spike.
The relay is pretty much just an on/off or forward/off/reverse device. There is no speed control. Determining if you need speed control depends on the application for the motor. In the WPI libraries there are VIs written for controlling the spike. I think they are under WPI Library-->Actuators-->Relay. By putting those VIs into the code and then clicking the question mark in the right hand corner and hovering over the icon you will get a description of what he inputs and outputs are to the vi. Here is also more info from NI. http://decibel.ni.com/content/docs/DOC-3321 hope this helps! |
|
#7
|
|||
|
|||
|
Re: Trying to control 1 motor with 2 buttons
Oh the Spikes! Oh Lala!
I'll use those then! I'll check tomorrow and let you know. Thanks ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| programming a motor to two buttons | solomason519 | Programming | 2 | 28-01-2009 12:37 |
| Programming Joystick Buttons to toggle a motor on and off | programmr | C/C++ | 6 | 25-01-2009 17:47 |
| [FTC]: Random Error with FTC motor control | Xaphiinia | FIRST Tech Challenge | 2 | 01-12-2008 15:39 |
| What to do with buttons | Storcky | General Forum | 20 | 14-06-2006 22:07 |
| Buttons, Buttons and more Buttons (2006) | Freddy Schurr | Team Organization | 11 | 14-12-2005 21:36 |