Go to Post Just like any good hardware or software product, "insert foot before putting mouth in gear"..... - dhitchco [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 Rate Thread Display Modes
  #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
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

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


All times are GMT -5. The time now is 07:36.

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