View Single Post
  #1   Spotlight this post!  
Unread 04-04-2009, 09:23
Shivang1923 Shivang1923 is offline
I make robot go VROOM VROOM!
FRC #1923 (MidKnight Inventors)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2008
Location: West Windsor, NJ
Posts: 38
Shivang1923 has a spectacular aura aboutShivang1923 has a spectacular aura about
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.
Reply With Quote