|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Creating a Delay in Actuating a Solenoid
We have two Pneumatic Solenoids that are actuated using the trigger button on either joystick. One solenoid controls a gate and the other solenoid controls a platform that can be tilted.
The goal is that we lower the gate about 500ms (1/2 sec) before the platform tilts. Getting both solenoids to actuate at the same time is easy enough. However, getting one to actuate, then wait for 500ms and then actuate the second one is a more difficult problem. If anyone has a starting point here we could use the help. Sean |
|
#2
|
|||||
|
|||||
|
Re: Creating a Delay in Actuating a Solenoid
Chain the error output of the first solenoid set to the error input of a "delay and feed" watchdog, then chain the watchdog's error output to the error input of the second solenoid set. That's a simple way to do sequencing with delays.
Is that a good starting point? |
|
#3
|
||||
|
||||
|
Re: Creating a Delay in Actuating a Solenoid
Yep, I'll give that a try when we hit the bot again on Monday.
Thanks! Sean |
|
#4
|
|||
|
|||
|
Re: Creating a Delay in Actuating a Solenoid
Hi Alan and Timeout...
We are working with a similar programming senario... I am new to the idea of a "watchdog." We want to program a button to trigger the first solenoid, wait two seconds, and trigger a second solenoid. When we wired up the watchdog as previously described, it loops like we got caught in an infinate loop. I am not at school and cannot send a screenshoot right now. but I will post it ASAP. Is their another way to sequence besides using watchdogs in LV? |
|
#5
|
|||
|
|||
|
Re: Creating a Delay in Actuating a Solenoid
The delay and feed watchdog vi will freeze your motor control... This is for teleop, correct?
teleop is in a loop, and delays will shut down all control until it is done. You'll probably want a state machine: http://frcmastery.com/try-me/state-machines/ |
|
#6
|
|||
|
|||
|
Re: Creating a Delay in Actuating a Solenoid
Thanks for everyone's help... the frcmastery tutorial was key!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delay | jasonpeinko | Programming | 8 | 18-01-2008 15:56 |
| Delay Function | Slick | Programming | 6 | 01-03-2007 22:56 |
| EDU-MINI RC Solenoid Switching times and Delay time? | Generalx5 | Technical Discussion | 0 | 25-01-2007 01:32 |
| Delay | Gal Longin | Programming | 1 | 09-12-2004 10:37 |
| Creating no pressure with double solenoid? | Combat Chuck | Pneumatics | 7 | 29-02-2004 22:45 |