Go to Post A better way would be better..... - WizardOfAz [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 30-01-2012, 22:08
sparkydp sparkydp is offline
Registered User
AKA: David Page
FRC #0435 (Robodogs)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2002
Location: Raleigh, NC
Posts: 32
sparkydp is on a distinguished road
using an encoder without a b source

I was just wondering if anyone had successfully used the WPI encoder VI without a B source. (yes, we'd no longer be able to know direction, but for something like a shooter wheel we're only driving in one direction, that's okay). Our hopes that simply leaving the B phase unhooked leading to speed only results from the encoder VIs didn't pan out.

We're currently looking into creating an up/down counter inside periodic tasks similar to the up/down example that ships with Labview and just sampling over a given period to calculate RPM.

Just curious if anybody else had faced a similar challenge, and what they came up with. (The reason we only have one phase, is we're not using a traditional encoder, but something more like an IR tachometer, reflective spot on our shaft/wheel, with an IR LED transmitter, and a phototransistor counting pulses. In the old days, we'd write an interrupt routine to increment a counter every time the pulse was detected, and just read the counter every 40ms cycle, and divide by time elapsed)

Other ideas discussed included: generating a fake B source using some sort of transform on the A source, or mounting a second phototransistor 90 degrees off the first to get a true b source.

Open to any thoughts or suggestions,
Thanks!
-David
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2012, 22:15
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,563
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: using an encoder without a b source

The counter was exactly what was intended to be used for this use case.
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2012, 22:34
sparkydp sparkydp is offline
Registered User
AKA: David Page
FRC #0435 (Robodogs)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2002
Location: Raleigh, NC
Posts: 32
sparkydp is on a distinguished road
Re: using an encoder without a b source

Quote:
Originally Posted by Joe Ross View Post
The counter was exactly what was intended to be used for this use case.
Cool, we'll give it a try. We had some initial issues when we tried hooking it up this way, especially with varying values (returned anywhere from 7000 to 9000 rpm). We checked the signal generated by the sensor, and it was steady as a rock. We didn't have it in periodic tasks though, just inside our teleop section, we'll move it out, and tweak the values. Just wanted to make sure we were headed in the right direction.
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 11:37.

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