Hi there,
I am currently involved in a project which requires me to analyze the encoder read values and further utilize them in my program. But, I found that the values are inconsistent as they vary with battery level of the robot. So, I am unable to gather a fixed set and hence unable to analyze . Kindly help me to fix this issue.
Encoder Read Values
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Encoder Read Values
Hello,
what values are you getting from the different charge levels, are the numbers wildly different or just one or two out.
The motor speeds ramp up and ramp down to try and get the precise encoder count but can overshoot slightly depending on the battery voltage and also the varying motor mechanics from robot to robot.
If the robot is being driven without feedback then the battery voltage will directly impact the speed of the motor and hence the encoder reading will differ.
The encoder read API function is designed to allow you to gauge roughly how far the robot has travelled. For more precise control the Logo type API functions should be used.
what values are you getting from the different charge levels, are the numbers wildly different or just one or two out.
The motor speeds ramp up and ramp down to try and get the precise encoder count but can overshoot slightly depending on the battery voltage and also the varying motor mechanics from robot to robot.
If the robot is being driven without feedback then the battery voltage will directly impact the speed of the motor and hence the encoder reading will differ.
The encoder read API function is designed to allow you to gauge roughly how far the robot has travelled. For more precise control the Logo type API functions should be used.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel