Go to Post Messy wires are a pain in the chassis - [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-01-2010, 14:22
TPekarjr TPekarjr is offline
Registered User
no team
 
Join Date: Jan 2010
Rookie Year: 1111
Location: Summersville
Posts: 7
TPekarjr is an unknown quantity at this point
Limit switch to solenoid problem

I am trying to wire up limit switches to pwm's so that our programmer can make it control if a solenoid can shoot or not. At the moment I have connected 2 limit switches to the front of a piece a metal so then the soccer ball hits it it will will release the soloenoid shooting out 2 pistons, this was a direct hook to the power. In turn we hooked up signal wire to the solonoids, in teleoperated mode we can manually shot off the pistons. Unfortunately the limit switches, that are now hooked to pwm ports 1 & 2, when they are tripped they do not set off the pistons, instead it resets the robot. It makes the robot glitch and move all the motors for a moment. Can anyone help me with my problem. I have tried re-wiring it but turned out to be unfruitful....

Last edited by TPekarjr : 28-01-2010 at 14:29. Reason: Corrected some grammer
  #2   Spotlight this post!  
Unread 28-01-2010, 14:38
martin417's Avatar
martin417 martin417 is offline
Opinionated old goat
AKA: Martin Wilson
no team
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Buford, GA
Posts: 720
martin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond reputemartin417 has a reputation beyond repute
Re: Limit switch to solenoid problem

If you are shorting power to ground on the PWMs, you're lucky if you didn't fry your sidecar. You need to hook any inputs (like switches) up the digital inputs on the sidecar. PWMs are output only.
__________________
Former Mentor Team 1771
Former mentor Team 4509
  #3   Spotlight this post!  
Unread 28-01-2010, 14:43
TPekarjr TPekarjr is offline
Registered User
no team
 
Join Date: Jan 2010
Rookie Year: 1111
Location: Summersville
Posts: 7
TPekarjr is an unknown quantity at this point
Re: Limit switch to solenoid problem

I hooked up the limit switch pwm to the sidecar's digital inputs. Is there a certain port it needs to be in? I'm not sure if I wired it correctly. The code always returns the same value when its switched or unswitched.
  #4   Spotlight this post!  
Unread 28-01-2010, 15:04
Jon Stratis's Avatar
Jon Stratis Jon Stratis is online now
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,784
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Limit switch to solenoid problem

How you hooked it up is key here. It sounds to me like you may have wired the limit switch to short power and ground - this is bad. The Digital Sidecar contains an internal pull-up resistor on the digital IO ports - this means if you send no signal to the input, it will read as if 5V was sent. See page 19 of http://usfirst.org/uploadedFiles/Com...Rev1_enc .pdf

To wire a limit switch, take a standard PWM cable and wire the Black and the White wires to the switch in your preferred method (normally closed or normally open). The method used doesn't really matter - normally closed means you would see a 0 in the code when the switch is not pressed, a 1 when it is pressed. normally open is reverse. Do NOT hook up the red wire from the PWM. It's not needed (due to the pull up resistor), and if you mess up your wiring you could risk shorting it. It's better all around not to use it with the limit switches.
  #5   Spotlight this post!  
Unread 28-01-2010, 20:17
WGRAY WGRAY is offline
Registered User
FRC #2027
 
Join Date: Jan 2007
Location: westbury
Posts: 22
WGRAY is an unknown quantity at this point
Re: Limit switch to solenoid problem

For the visual learners out there you can find a picture of the wiring diagram in labview, examples, compressor with cylinder, open the project then open the front panel.
Attached Thumbnails
Click image for larger version

Name:	compressor with cylinder.jpeg
Views:	60
Size:	62.1 KB
ID:	8425  
Closed Thread


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 Switch problem Zellboy Programming 5 12-02-2009 19:38
Limit Switch Problem Boydean Programming 3 13-02-2008 16:32
Using a limit switch to limit motion ManicMechanic Programming 16 20-12-2007 00:54
limit switch wedellm Electrical 4 16-02-2007 13:01


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

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