Go to Post Duct tape is like the Force - it has a dark side and a light side and it holds the universe together. - Jnadke [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 22-05-2006, 16:35
silv940's Avatar
silv940 silv940 is offline
Registered User
AKA: Sam Wilkins
FRC #1572 (Hammer Heads)
Team Role: Mentor
 
Join Date: Jul 2005
Rookie Year: 2005
Location: San Diego, CA
Posts: 14
silv940 is an unknown quantity at this point
Send a message via AIM to silv940 Send a message via Yahoo to silv940
Question Momentary Switch Programming

I need help on the programming of a momentary switch used for a double solenoid. I basically want the solenoid to fire when i press the button then when I let go it should retract. I have the switch wired to p1_sw_trig on the OI. The solenoid is wired to relay two. The two grounds from the solenoid are wired directly to the battery ground. One red switch is wired to M+ and vice versa. Thanks
  #2   Spotlight this post!  
Unread 22-05-2006, 17:12
Pat Fairbank's Avatar
Pat Fairbank Pat Fairbank is offline
Circuit Breaker
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2001
Location: San Jose, CA
Posts: 2,132
Pat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond reputePat Fairbank has a reputation beyond repute
Send a message via MSN to Pat Fairbank
Re: Momentary Switch Programming

Are you saying that the black wires from the solenoid are connected to the ground, and one each of the red wires are connected to M+ and M-? If so, that's not the FIRST-legal way to wire a double solenoid - you're supposed to use either two Spikes, or a couple of diodes in to connect all 4 wires to a single Spike.

Nevertheless, if you do something like this, it should work:
Code:
relay2_fwd = p1_sw_trig;
relay2_rev = !p1_sw_trig;
or if that turns out to be the opposite of what you want, try
Code:
relay2_fwd = !p1_sw_trig;
relay2_rev = p1_sw_trig;
__________________
Patrick Fairbank
Team 254 | Mentor (2012-)
Team 1503 | Mentor (2007-2011)
Team 296 | Alumnus (2001-2004) | Mentor (2005-2006)

patfairbank.com
  #3   Spotlight this post!  
Unread 22-05-2006, 17:57
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,363
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Momentary Switch Programming

WE have wired the solenoids this way in the past and posted a question on the Q & A forum. First approved it in 2004.
  #4   Spotlight this post!  
Unread 24-05-2006, 02:19
silv940's Avatar
silv940 silv940 is offline
Registered User
AKA: Sam Wilkins
FRC #1572 (Hammer Heads)
Team Role: Mentor
 
Join Date: Jul 2005
Rookie Year: 2005
Location: San Diego, CA
Posts: 14
silv940 is an unknown quantity at this point
Send a message via AIM to silv940 Send a message via Yahoo to silv940
Re: Momentary Switch Programming

Thanks alot.
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
problems programming knob and switch caderader Programming 4 16-02-2006 16:45
Need Help Wiring Micro Switch/Limiting Switch Windward Electrical 2 07-02-2006 18:26
Problems programming a switch caderader Programming 2 18-02-2005 22:06
3 way toggle switch programming LeadRiccardoT Programming 3 17-02-2003 02:02
Error found in programming for the pump and pressure switch sjharobotics Programming 4 06-02-2002 17:46


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

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