Go to Post I want to win, but I want to beat my opponent when they are at their best. - wilsonmw04 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 16-03-2013, 14:43
ArzaanK ArzaanK is offline
Registered User
FRC #1325 (Inverse Paradox)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Mississauga, Ontario, Canada
Posts: 40
ArzaanK is an unknown quantity at this point
Control Shooter RPM with a Counter

During GTR East, we at Team 1325 used only motor speed to control the speed of our shooter. This works when the batter is fully charged, but the actual shooter speed seems to fluctuate when our batter voltage starts to drop. We decided that we should use a sensor of some sort to set an RPM for the shooter instead of having to rely on the motor speed.

Since GTR East, we have attached a Honeywell 1GT101DC sensor on the front wheel of our shooter, and a piece of steel that rotates on the rear wheel. The magnetic sensor picks up the steel passing it, and with some simple counter code, I was successful at getting an RPM readout from the sensor on the DriverStation and Dashboard.

The datasheet for the sensor: http://sccatalog.honeywell.com/imc/p...te&PN=1GT101DC

I am now stuck on how to get the sensor to send a certain RPM to the motors. As an example, I want to send 2000 RPM to the "At Pyramid" preset, 2500 RPM to the "Half Field" preset, and 3000 RPM to the "Full Field" preset. I'm not sure exactly how I could achieve this.

Here is the code I have so far.

Begin vi for the counter:

Custom Shooter Vi:
Note that the output from the select functions in this vi go directly to the shooter motors, which were of the screen when I captured this screen shot.

Here are the direct links to the images, in case you cannot see them.
http://imgur.com/w9ReMQ1,30cMCXH#0
http://imgur.com/w9ReMQ1,30cMCXH#1

Any help would be greatly appreciated.

See you at the GTR West and St. Louis!
__________________
Arzaan Khairulla
Programmer/Driver
2013 Greater Toronto Regional East Winners with 1114 and 2056
2013 Galileo Division

Last edited by ArzaanK : 16-03-2013 at 14:46. Reason: Images did not show up in post.
Reply With Quote
 


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


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

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