Go to Post The mediocre do the minimum, then exclaim how easy it is. The exceptional never stop to gloat... they're too busy figuring out new ways to make it even better... - Mr. Lim [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 22-02-2009, 17:14
Charlie_A Charlie_A is offline
Registered User
FRC #1721 (Tidal Force)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2002
Location: Concord, N.H.
Posts: 8
Charlie_A is an unknown quantity at this point
Vex Encoders

Hi all,
My team is a little behind in the traction control area. So I have been coding away on an encoder based method. I seem to have run into a problem, i'm not sure how to set up the Vex encoder in the Open Encoder VI.
Any help would be much appreciated
Thanks,
Charlie
Reply With Quote
  #2   Spotlight this post!  
Unread 22-02-2009, 17:34
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Vex Encoders

Here's an example:
Attached Thumbnails
Click image for larger version

Name:	EncoderExample.jpg
Views:	86
Size:	19.5 KB
ID:	7544  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 22-02-2009, 19:26
Charlie_A Charlie_A is offline
Registered User
FRC #1721 (Tidal Force)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2002
Location: Concord, N.H.
Posts: 8
Charlie_A is an unknown quantity at this point
Re: Vex Encoders

Hmmm, it looks as though I have the old, nonquadrature model, any suggestions?
Reply With Quote
  #4   Spotlight this post!  
Unread 22-02-2009, 21:28
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Vex Encoders

You can use what I showed with a single channel encoder.
Get rid of the second DIO and just wire the single DIO to both A & B inputs.

Without quadrature the encoder will only count up as it turns in whatever direction, so you do have to be careful to trust it's output only when you are sure you are moving forward or backward.
While sitting still it will probably start counting as the robot vibrates.

You might want to program in a reset when you begin a move forward or backward.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 23-02-2009 at 16:19.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-02-2009, 16:17
Charlie_A Charlie_A is offline
Registered User
FRC #1721 (Tidal Force)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2002
Location: Concord, N.H.
Posts: 8
Charlie_A is an unknown quantity at this point
Re: Vex Encoders

Thanks so much!
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Encoders..... manderson5192 Programming 4 07-02-2008 10:10
Vex encoders/Interrupts buddy.smith Programming 9 08-02-2007 08:01
Vex navigation with ultrasonic and encoders GlennGraham Electrical 4 13-01-2006 12:58
VEX Optical Shaft encoders in FRC sanddrag FIRST Tech Challenge 8 04-10-2005 07:52
encoders stephenthe1 Programming 61 09-02-2005 15:05


All times are GMT -5. The time now is 21:35.

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