Go to Post You know it’s a tough game when you see a bearing on the floor. - D.Allred [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-02-2013, 15:37
Dillonboy8 Dillonboy8 is offline
Registered User
AKA: Dillon Knight
FRC #3603 (Reed City Cyber Coyotes)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Reed City, Michigan
Posts: 21
Dillonboy8 is an unknown quantity at this point
Programming Shaft Digital e4p

Hey!
Our team wants to use a conveyer belt system to dump frisbees but we want it done automatically so we don't have to mess around with the joystick too much. We want like say if it takes 7 turns of the conveyer belt to dump the frisbee, we want the shaft encoder to detect when it turns seven times, and then reset.

What I'm asking is, how do I program all of this? I've looked everywhere online and on CheifDelphi and looked at the labview example but it just confused me. Maybe someone could show me how to program this for my specific situation? Thanks.

(Btw, we are using a US Digital E4P encoder)
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2013, 16:45
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 122
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: Programming Shaft Digital e4p

What have you tried?

Have you tried the FRC Encoder Example project that can be found under the FRC Examples. Turn the conveyor by hand 7 time to see how many "clicks" it takes to rotate 7 times.

Then when you start the conveyor reset the counter to zero (see how that is done in the example). Each time though the loop read the Encoder and check if it is passed the number of 'clicks' for 7 rotations.

We will need a little more detail about how your conveyor is controlled and how are you going to signal it to start (joystick button?)

But let us know if you have tried the Encoder Example first.
__________________
Omar
Reply With Quote
Reply


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:15.

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