ax3500 encoder rpm question

17 years 8 months ago #7929484 by athyssen
ax3500 encoder rpm question was created by athyssen
<P style="MARGIN: 0px">In RoboRun, on the Encoder screen I cannot get the application to report an accurate "RPM Equivalent". This seems to also affect when I try to run in closed loop speed mode.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">I have a 400PPR optical encoder attached to my motor axle which is geared 32:1 to the actual wheel. If I rotate the wheel through one full rotation the counter value shows 12800 which makes sense 400PPR * 32 = 12800. I can also apply full power to the motors and the wheels rotate right around 120RPM. After running the motors for 60 seconds the reported counter value is correct. I'm sure the encoders are working fine.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">I have chosen a (Time Base = 4) @ (PPR = 12800) which reports a Max RPM of 116 which fits my expected 120RPM. I save the results to the controller. If I then ramp the motor up to full speed the "RPM Equivalent" reports around 45RPM rather than close to the 120RPM.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">Am I misinterpretting the RPM Equivalent or is something wrong?
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">-AndyT
<P style="MARGIN: 0px">

Please Log in or Create an account to join the conversation.

17 years 8 months ago #7932409 by cosma
Replied by cosma on topic Re:ax3500 encoder rpm question
<P style="MARGIN: 0px">Your problem seems to come from the common confusion between PPR (pulses per Revolution) and CPR (counts per Revolution)
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">Pulses are the number of pulse that you could physically see with a scope on a single channel output.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">Counts are the number of transitions on the combined channels. Since you have two channels and each channel transitions twice per pulse (low to high and high to low), the number of CPRs is 4 x the numbers of PPRs.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">See discussion on p.132 of the manual.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">So in your case, what you have is a 100 PPR encoder which will deliver your 12800 counts per wheel turn: 100 x 4 x 32. The equivalent PPR at the wheel is then 3200 pulses per revolution (PPRs)
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">For your time base setting you should plug in 3200 instead of 12800.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">

Please Log in or Create an account to join the conversation.

17 years 8 months ago #7940581 by athyssen
Replied by athyssen on topic Re:ax3500 encoder rpm question
<P style="MARGIN: 0px">Thank you. I have set TimeBase=18 and PPR=3200 and it lists the Max RPM=122 which fits my known max speed.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">If I try and run the motors in the Encoder screen I immediately get an error dialog followed by the app shutting down. Everything works just fine under then Run screen. Here's the error I'm getting.
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">RoboConf
<P style="MARGIN: 0px"> Run-time error '6':
<P style="MARGIN: 0px"> Overflow
<P style="MARGIN: 0px">
<P style="MARGIN: 0px">Thanks again.

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.052 seconds