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

joint controlled with AMO boards used as incremental encoder #428

Open
maggia80 opened this issue Oct 18, 2023 · 2 comments
Open

joint controlled with AMO boards used as incremental encoder #428

maggia80 opened this issue Oct 18, 2023 · 2 comments
Assignees
Labels

Comments

@maggia80
Copy link
Contributor

maggia80 commented Oct 18, 2023

Description

We noticed it on the left pitch and roll shoulder in ergoCub1.1 S/N:001. The two joints are controlled in position and after a while even if there aren't any position commands the joint goes toward an HW limit. While moving the AMO reading seems to be blocked.
Sometimes the joint doesn't reach the HW limit, but it remains quite far from the previous position while reading a similar angular position.

Hypothesis

The AMO stops reading for some reason and the PID to reduce the error from the setpoint and the current position generates a PWM that moves the joint trying to reduce the error, but since the AMO is stuck to a fixed value, the error remains constant and the motor keeps moving.

Possible reasons:

  1. the reading of the AMO is interpreted as a spike and the value is kept constant for a long period of time.
  2. the AMO is not reading for some cable issues
  3. the position of the AMO is too far or not well aligned with the magnetic target causing spikes.
@maggia80
Copy link
Contributor Author

cc: @AntonioConsilvio, @ale-git @valegagge

@maggia80
Copy link
Contributor Author

@AntonioConsilvio would be very helpful if you could log the encoder and motor position while this phenomenon occurs.

@maggia80 maggia80 changed the title joint controlled with AMO boards used as incremental encoder stop reading going to a HW limit joint controlled with AMO boards used as incremental encoder Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants