Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Vex Encoders (http://www.chiefdelphi.com/forums/showthread.php?t=75114)

Charlie_A 22-02-2009 17:14

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

Mark McLeod 22-02-2009 17:34

Re: Vex Encoders
 
1 Attachment(s)
Here's an example:

Charlie_A 22-02-2009 19:26

Re: Vex Encoders
 
Hmmm, it looks as though I have the old, nonquadrature model, any suggestions?

Mark McLeod 22-02-2009 21:28

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.

Charlie_A 23-02-2009 16:17

Re: Vex Encoders
 
Thanks so much!


All times are GMT -5. The time now is 10:33.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi