Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The position read by the encoder is relative. #9

Open
jakechung42 opened this issue Jul 25, 2020 · 1 comment
Open

The position read by the encoder is relative. #9

jakechung42 opened this issue Jul 25, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jakechung42
Copy link
Member

The reading of the encoder is relative. By saying this, I mean that the encoder stores the pulses in its object to count the angle. If the object is reset by means of resetting the code or resetting the power, it will begin to count again from 0. This causes the actual angle of the top plate to be not the same as the reading of the encoder. An idea is to mount an IMU to the platform and create a routine to calibrate the platform.

@jakechung42 jakechung42 added the bug Something isn't working label Jul 25, 2020
@jakechung42 jakechung42 self-assigned this Jul 25, 2020
@jakechung42
Copy link
Member Author

Using an IMU wouldn't work either because IMU position is also relative. I think the best way to do it is to use a potentiometer for calibration but using an encoder for sensory measurement in the feedback loop. Initially, the pot wasn't desirable because the voltage range is only 5V so the pot resolution wasn't really good and I didn't want to change the operating voltage, so I went with the encoder. Using the pot for the calibration shouldn't introduce the resolution problem again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant