Go to Post What is the airspeed velocity of an unladen wiffle ball? - The Doctor [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 14-02-2012, 20:34
cooltext cooltext is offline
Registered User
FRC #0835
 
Join Date: Jan 2012
Location: Michigan
Posts: 32
cooltext is an unknown quantity at this point
CounterObject for RPM

Hello,

I am using the AS5030 rotary encoder to find rpm of the shooter wheels. Since there is only on 3 prong PWM cable coming out from the encoder, I decided to use a counter class to find rpms. It works well for when the victor is barley running at like (victor.get() = .106666). After that it doesn't work, can someone help me?

thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2012, 23:57
compboy07's Avatar
compboy07 compboy07 is offline
Registered User
AKA: Jake M.
FRC #2449 (Out of Orbit)
Team Role: Electrical
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Tempe, AZ
Posts: 19
compboy07 is on a distinguished road
Re: CounterObject for RPM

I don't about that issue in particular, but if you continue to have problems, you could connect it to a CANJaguar. It has a built-in getSpeed function, but is tricky to rewire, flash, and configure if you're already using PWM.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2012, 08:14
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
Re: CounterObject for RPM

If it only works when the motor is going slow, could it be that your wheel or whatever you're driving is going faster than the AS5030's max RPM? Also I think that encoder in particular isn't really for detecting speeds more than angles. You might be better off using the encoders that go on the ToughBoxes. In any case, could you post your encoder code just to make sure it isn't something wrong with that? It could also be that you haven't set up the encoder properly in the code.
__________________
q = (2*b) | ~(2*b);

if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");


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 08:22.

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