Go to Post Remember to drive it like you stole it but be sure that it is in OVERDRIVE. - Steve W [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 17-02-2009, 09:03
rfry11's Avatar
rfry11 rfry11 is offline
Team 2791 Head Programmer
AKA: Ryan Fry
FRC #2791 (Bionic Bison)
Team Role: Programmer
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Latham, NY
Posts: 6
rfry11 will become famous soon enoughrfry11 will become famous soon enough
Send a message via AIM to rfry11
Unresponsive Limit Switches

On Sunday we hooked up our limit switches, which are essentially Vex limit switches set up to output to the Digital Sidecar's Digital I/O ports. I have them plugged into Digital I/O 1 and 3, and the colored wires are set up in this position, from left to right: White, Red, Black. We're using them to restrain the turret to a smaller degree of freedom. I have set up a very simple program that will tell me if the limit switches are pushed or not, I've attached a picture of the program. The problem that's arising is that the switches appear to be unresponsive, because they send no signal whatsoever. So, help?

By the way, sorry for the bad picture quality. Our Toshiba Satellite with a 2.5MB Trident Video Card is good at running Labview, but not so good at encoding pictures in 32-bit color
Attached Thumbnails
Click image for larger version

Name:	limit_switch.JPG
Views:	55
Size:	27.7 KB
ID:	7492  
__________________
2008 Pascack Pandamonium Champions. Giant thanks to teams 25 and 11!
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2009, 11:05
nathanww nathanww is offline
Hacker
FRC #1678 (Citrus Circuits)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Davis, CA
Posts: 224
nathanww is just really nicenathanww is just really nicenathanww is just really nicenathanww is just really nice
Re: Unresponsive Limit Switches

Did you check the switches with a multimeter, and if so are they actually changing values when you press them?
__________________
Get yer robot source code here!
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2009, 16:48
Kahn! Kahn! is offline
Registered User
FRC #1379
 
Join Date: Sep 2008
Location: Norcross, GA
Posts: 22
Kahn! is an unknown quantity at this point
Re: Unresponsive Limit Switches

We blew out the DIO channels on our sidecar last night, though the rest of the sidecar still worked. Try hooking up your second digital sidecar; you may have a similar problem.
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2009, 20:17
daltore's Avatar
daltore daltore is offline
Electronics/programming/design
AKA: Aaron Osmer
FRC #3529 (ausTIN CANs)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: San Antonio, TX
Posts: 272
daltore has a spectacular aura aboutdaltore has a spectacular aura aboutdaltore has a spectacular aura about
Send a message via AIM to daltore Send a message via MSN to daltore Send a message via Yahoo to daltore
Re: Unresponsive Limit Switches

This may seem like a stupid suggestion, but are you 100% sure that the limit switches are being pressed? Sometimes they can look pressed but not be contacting, especially if you're using the turret itself to activate them.

The VEX limit switches are SPDT type (single pole, double throw) meaning that there is a common line that is switched between the two other lines. I believe the common line is the signal (white) and it switches between ground and +5v, but don't quote me on that. I know that the closed state of the switch connects ground to signal. Just make sure all the wires are going to the right places for the digital sidecar, as these switches were designed for the VEX microcontroller, which has all of the DIO pins pulled high, so the configuration may be different.

Edit: The SPDT function is unused, signal is attached to the NO (normally open) pin and ground is attached to C (common). This means the circuit is closed between signal and ground when the switch is pressed.

Last edited by daltore : 17-02-2009 at 20:25.
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
Limit Switches popnbrown NI LabVIEW 1 10-02-2009 22:39
Limit switches(in C++) beefy1 Programming 3 24-12-2008 15:27
Limit Switches ChrisR_522 Programming 2 25-01-2008 08:04
limit switches stephenthe1 Programming 28 11-05-2005 16:37
Limit switches Team168 Programming 8 10-02-2003 16:22


All times are GMT -5. The time now is 10:41.

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