Repository navigation
docs(bench): add the 2026-11-07 speed and position record - #117
Merged
Merged
Conversation
Adds the 2026-11-07 bench record for #116 on a gen2 Nano Every with both motors and 848-count encoders, from main at c276d88. Passed: - Open-loop sweeps gave M1 static 10, 2.024 RPM per PWM and M2 static 7, 2.005, sent with SET_SPEED_FF (trim 20). A 4-byte payload was refused. - Closed-loop speed at +10, -60, +120 and -150 RPM on each motor: within 5 % at 0.22-0.23 s, and the last-5 s means within 0.4 RPM of the target. - A 0.5 s grip at 60 RPM recovered in 0.2 s with no fault; entry from -255 into +60 RPM never drove backwards (PWM 39-41, #62). - Both motors at 120 RPM for 5 minutes with GET_STATE every 100 ms: no lockup and no lease trip (#109). Findings: - A -7282 -> 0 position move stopped at +48 with no drive for 60 s. DCMotorServo 2.0.1 (feastorg/dcmotorservo#30) fixes it; with the fix moves of 7282, 16000 and 20725 counts ended within 6 counts. - 32 of 2968 polls (1.1 %) failed CRC with both motors running. - A steady hand load on a held position latched M1_STALL within about a second (#102). Not checked: the saturated-hold case of the fix, M2 grip and entry, #102's small step, and the analog builds on this board.
CameronBrooks11
added a commit
that referenced
this pull request
Nov 8, 2026
build(firmware): require DCMotorServo 2.0.1 Moves the pin from ^2.0.0 to ^2.0.1 in platformio.ini and slice.yaml, so no build can resolve to 2.0.0. On 2.0.0 a long position move could stop past the target and stay there: on the 2026-11-07 bench a -7282 -> 0 move stopped at +48 with no drive for 60 s. 2.0.1 (feastorg/dcmotorservo#30) zeroes the position integral while the drive is saturated; with it, moves of 7282, 16000 and 20725 counts ended within 6 counts (#117). The firmware README's version line and the CHANGELOG say 2.0.1. The CHANGELOG entry links the 11-07 bench record, which lands with #117. Checked: - All 12 gen* envs build against the registry's 2.0.1; gen2_nanoevery is 32791 B flash (32677 B on 2.0.0), the same size as the image benched on 11-07. - Host suite against 2.0.1: 1872 ok, 0 failed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docs(bench): add the 2026-11-07 speed and position record
Adds the 2026-11-07 bench record for #116 on a gen2 Nano Every with
both motors and 848-count encoders, from main at c276d88.
Passed:
7, 2.005, sent with SET_SPEED_FF (trim 20). A 4-byte payload was
refused.
within 5 % at 0.22-0.23 s, and the last-5 s means within 0.4 RPM of
the target.
-255 into +60 RPM never drove backwards (PWM 39-41, Entering closed-loop speed starts from a stale servo target and encoder baseline #62).
lockup and no lease trip (fix(firmware): clear the TWI slave flags after a collision #109).
Findings:
DCMotorServo 2.0.1 (fix: zero the position integral while the drive is saturated dcmotorservo#30) fixes it; with the fix
moves of 7282, 16000 and 20725 counts ended within 6 counts.
a second (A position step just outside the deadband latches a stall #102).
Not checked: the saturated-hold case of the fix, M2 grip and entry,
#102's small step, and the analog builds on this board.