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

Switch bus number of right leg from 2 to 3 #228

Closed
stephane-caron opened this issue Feb 27, 2024 · 0 comments · Fixed by #231
Closed

Switch bus number of right leg from 2 to 3 #228

stephane-caron opened this issue Feb 27, 2024 · 0 comments · Fixed by #231
Labels
enhancement New feature or request

Comments

@stephane-caron
Copy link
Member

stephane-caron commented Feb 27, 2024

While flashing moteus firmwares on Upkie Zero, we observed that flashes would repeatedly hang at the "verifying" stage on the right leg (bus 2, a.k.a. JC2), but not on the left leg (bus 1, a.k.a. JC1).

Investigation details

  • Reducing the bus to "2=4" (one servo, the two others powered off although I didn't disconnect their CAN cables): no effect
  • Powering off bus 1 and using --pi3hat-cfg "2=4,5,6": no effect
  • Swapping terminators (checking their resistances at the same time): no effect
  • Disconnecting JC1 and connecting the JC2 connector to JC1 on the pi3hat: worked
  • Try again with --pi3hat-cfg "1=1,2,3;2=4" (this time 5 and 6 properly disconnected, both CAN and power, not just power): high failure rate
  • Try again using a CAN cable not previously part of the bus, with --pi3hat-cfg "1=1,2,3;2=5": high failure rate
  • Try again with servo 1 on JC2: high failure rate
  • Checked the resistance between CAN_H and GND (:warning: black cable of multimeter touches GND, not the other way round) on all pi3hat JC connectors: 2.2 MΩ on all of them
  • Same tests on JC3 rather than JC2: low failure rate, a.k.a. it works™

Decision

After investigation, we found that the issue does not happen when connecting the right leg to JC3. Since JC1-JC2 and JC3-JC4 are "siblings" on the pi3hat, the bus layout (JC1, JC3) is at any rate more efficient than (JC1, JC2), so we should switch the right leg to JC3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

1 participant