|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Encoder Question
My team wants to use an encoder to keep track of their shooter. We are using command based java this year. If we are using a gear tooth counter on a digital input, how would we calculate the DistancePerPulse? We are using a 40 tooth gear. There is no gear reduction. All help appreciated.
|
|
#2
|
|||||
|
|||||
|
Re: Encoder Question
Sorry, but I'm not at all sure what you're trying to ask here. In the first place, why are you using a gear if there's no gear reduction? (I can think of one reason, but it's not likely as the question is phrased.) Or do you mean that you are measuring teeth on the bull gear (that is, the output gear of the shooter)?
You are trying to calculate "distance per pulse". There are no lengths in your question, so whatever you're asking, there is not enough info. What is the effective moment arm/radius of your shooter? --------------------------------------------------------------------------------------- OK, trying to put together something reasonable: You are counting teeth on the last (output end) gear in your shooter, which is rotating at the same speed as a wheel X inches in diameter. The circumference of that wheel is πX inches. The distance that the edge of the wheel moves per pulse (assuming one pulse per tooth) is πX/40. If there are p pulses per tooth, that becomes πX/40p. If my assumptions aren't right, please post the corrections so we can help out. |
|
#3
|
|||
|
|||
|
Re: Encoder Question
Sorry for being vague. Yes we are planning on using a 40 tooth bull gear on the output shaft of the shooter. The wheels of the shooter are 4 inch diameter. We need to calculate the rpm. We haven't used encoders before. We are also wondering what would change if we used a 20 tooth gear vs a 40 tooth gear.
|
|
#4
|
||||
|
||||
|
Re: Encoder Question
Quote:
|
|
#5
|
|||||
|
|||||
|
Re: Encoder Question
What type of Motor Controller are you using? If you're wiring your encoder into the Talon SRX, you can call YOUR_TALON_OBJECT.getSpeed() to get the RPM of the sensor.
|
|
#6
|
|||
|
|||
|
Re: Encoder Question
Quote:
We are using a talon srx but we are not using an encoder. We are using a gear tooth sensor. |
|
#7
|
|||||
|
|||||
|
Re: Encoder Question
Quote:
If it's counting gears as they rotate, it's an encoder. Encoders can be magnetic, optical, proximity, mechanical, or any other consistent means of detecting a fractional rotation or motion. Last edited by GeeTwo : 30-01-2017 at 08:12. Reason: removed blank lines |
|
#8
|
|||
|
|||
|
Re: Encoder Question
Quote:
|
|
#9
|
|||||
|
|||||
|
Re: Encoder Question
Quote:
I have not done any coding using the SRX internals, sorry. |
|
#10
|
||||
|
||||
|
Re: Encoder Question
Gear tooth sensors are supported.
See Section 17.1.4. EncRise (a.k.a. Rising Counter) in the Talon SRX Software Reference Manual for reference to gear-tooth sensor. See Talon SRX User's Manual for wiring. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|