Thread: Timed Button
View Single Post
  #1   Spotlight this post!  
Unread 17-03-2009, 18:04
assaf2b assaf2b is offline
Registered User
FRC #3075
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Israel
Posts: 17
assaf2b is a jewel in the roughassaf2b is a jewel in the roughassaf2b is a jewel in the rough
Timed Button

Hi,

Our competition starts tomorrow morning, and the robot had already passed all inspections and worked as expected on the field. However, there is still one thing that we're missing.

(skip to bold part if you deem the following information unnecessary)
We're using a conveyor which leads to a canon, and as things currently stand, if both the conveyor's and the canon's motors work, any ball that is collected is immediately shot. We don't want that. What we want is to be able to collect the balls, store them in the conveyor, and move them up to the canon when a button is pressed.
And so, we made a little switch between the conveyor and the canon which can rotate a full 360 degrees, and would like it to always be inactive, unless a certain button is pressed. When this happens, the switch should rotate half-a-spin (180 degrees).

Problem is, I don't know how to code such a thing in LabView. Physical sensors are out of the question as we're already done with building the robot. The solution I'm looking for should be based on time. I can find how long it takes the switch to complete half-a-spin at full speed. What I can't do is manage to make it into a program.

So, if you've been lazy enough to skip through the post (which is perfectly fine), or don't understand anything, here's what I need to do step by step, but am having trouble doing so:

When a button is hit, one motor needs to be active for a certain period of time, stop, and prepare for another button hit. This should work even if the button is held, not necessarily tapped.


Any sort of help is appreciated.
Thanks in advance,
#3075, rookie team

Last edited by assaf2b : 17-03-2009 at 18:06.
Reply With Quote