|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
I am trying to wire 3 different autonomous routines to the first 3 digital Inputs on the Driver Station. I was wondering how do I wire the "get digital input VI" output to a case structure where the 3 different autonomous routines will be.
I plan on being able to throw a jumper on the 1st,2nd or 3rd digital input on the driver station and thus choosing which of the 3 routines I want right before the match. I am also wondering what the value will be on the Input when I attach a jumper.( 1-8?, or boolean maybe) and do i attach the jumper to +5v and Signal? or something else Please Help |
|
#2
|
|||||
|
|||||
|
Re: Autonmous switching questions
As always there are several ways to do this.
Here's one that uses all 8 digital inputs. The values from the "Boolean Array to Number" will return case numbers 1, 2, & 4 for what you described. There's more to the DS side than moving a jumper however. Without any jumper in place, the DS Digital inputs will float around returning random values. A switch would be handier, but if you do use jumpers, then you'll need -- one that jumpers signal to 5v -- another that jumpers signal to ground Never leave any of the DS pins you are using without a jumper of one type or another in place. Last edited by Mark McLeod : 02-04-2009 at 10:46. |
|
#3
|
|||||
|
|||||
|
Re: Autonmous switching questions
Quote:
Using a servo PWM connector to bring out the signal, power, and ground connections to a SPDT switch is probably the simplest reliable way to control the DS digital inputs. |
|
#4
|
|||
|
|||
|
Re: Autonmous switching questions
For three different routines, you really only need a DPDT switch (it should go in three ways...we found a weird type in radio shack that said DPDT but only went left and right...) connected to two DIG Input on the Driver Station.
You just 'flip' the wire colors for each side of the switch. [G]-1k to 100k resistor-[S] [+5V] Dig In 1 [+5V] [S]-1K to 100K resistor-[G] Dig In 2 use pwm cable: [b]-1k to 100k resistor-[W] [R] Dig In 1 [R] [W]-1k to 100k resistor-[b] Dig In 2 We use a 10k between the Signal and Ground. Basically KwikByte messed up so to say, and make the values float when the pins aren't connected to anything. So if you have the switch in the middle position, then the values would be random causing issues. The Resistor acts as sort of a jumper making a teeny tiny connection between the ground and signal, so when the DPDT is in the center position, both digital in's will get a false signal. it saves the need for 3 switches, and avoids code confusion if two or three switches are left in the on position by mistake. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Joystick value in autonmous | XXShadowXX | NI LabVIEW | 4 | 08-03-2009 21:16 |
| Switching Accumulator | RoboGeek99 | Pneumatics | 4 | 18-01-2008 18:26 |
| autonmous corner or center | dan da' geekman | Rules/Strategy | 55 | 09-01-2006 14:48 |
| Need autonmous? | the_undefined | Programming | 0 | 21-04-2005 22:28 |
| switching joysticks | ten3brousone | Control System | 1 | 06-03-2005 20:51 |