Go to Post when all else fails, try making the bot go slower - KenWittlief [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 01-03-2010, 17:24
NinjaWithBurnin NinjaWithBurnin is offline
Professional FBI-C
AKA: The Ender
FRC #1749 (Renesiance)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2015
Location: nashua, NH
Posts: 18
NinjaWithBurnin is an unknown quantity at this point
Question solinoid problem

hey I have an extremely basic question

when we activate our pistons (we're using three position) how do I get the solinoids to retract the pistons, then turn off? in the configuration i have it now the solinoids stay on (in the correct position) when no buttons are pressed.

to sum up my question how do I get the solinoids to turn on and then after a delay, turn off, after I release the buttons?

its mostly the timing I can't figure out...

And yes, I am using LabView
__________________
Registered Assassin & Bodyguard
  #2   Spotlight this post!  
Unread 01-03-2010, 21:57
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: solinoid problem

This bit of code ought to do what you want. It's untested, and I might have gotten something backwards, so don't trust it until you understand it.

The feedback node remembers the last time the input boolean was true. The constant "500" is in milliseconds. When the program begins, the output boolean is false. When the input boolean goes true, the difference between the current time and the remembered time becomes zero and the output goes true. When the input boolean goes false, the difference starts increasing. The output remains true until the elapsed time reaches the constant value, then stays false until the next time the input goes true.
Attached Thumbnails
Click image for larger version

Name:	delay.jpg
Views:	20
Size:	6.8 KB
ID:	8824  
  #3   Spotlight this post!  
Unread 01-03-2010, 22:01
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: solinoid problem

Often, a solenoid is simply left "on" in the last commanded position. Unless you have a reason to release the cylinder, there is no harm in leaving the solenoid powered on.

(You did mention a 3-position setup; that could be a valid case for switching the solenoid completely off)
__________________

I am N2IRZ - What's your callsign?
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
[FTC]: Problem with Code or Problem with Bluetooth? VeedotJaydot FIRST Tech Challenge 3 27-01-2009 18:22
CD RW Problem bilal1219 Chit-Chat 5 07-10-2007 19:36
Wiring Solinoid to Digital I/O kiettyyyy Electrical 10 13-06-2006 02:40
G.T.S ..... (problem) Ami Schwartz Programming 3 28-01-2006 17:01


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

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