Repository navigation
Conversation
…eightDetect` Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BioCam
marked this pull request as ready for review
October 30, 2026 23:37
… stays put Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Hi everyone,
It started in February 2024 with one function that made a STAR channel find the height of whatever was below it. Since then the tradition has only grown:
Z-Probing
STARBackend: add 96-head capacitive LLD Z-probe #1094Y-Probing and X-Probing
STAR.clld_probe_x_position_using_channel()#792Liquid probing
STAR.probe_liquid_volumes()#789.probe_liquid_height()to Detect Absence of Liquid #847STARBackend.probe_liquid_heights()Smart #876Tips and tools
lh.probe_tip_presence_via_pickup()#524HamiltonTip: add teaching-needle tool definitions - zero-capacity probes that cannot pipette #1121v1 and the Prep
All of those were liquid handlers. Here the tradition of Z probing continues... even on arms. 🦾
The Problem
In PLR, a PreciseFlex can only find out how high something is if a person teaches it by hand. Whenever a nest, a plate stack or a deck feature has moved or is new, somebody has to stand next to the arm and jog it down by eye.
Brooks has already built this into the arm: the PreciseFlex's licensed Z height detection lowers the arm until the gripper presses on something, and reports the height. It's a great feature, but until now PLR has had no way of calling it. This PR exposes it to the PLR community and everyone else using these arms.
Sending the
HeightDetectcommand raw has three traps:PR Content
Here I am adding
PreciseFlexArm.probe_z_using_ztouch(), with the argument names of the v1 STAR'sprobe_z_using_ztouchwherever a counterpart exists:It sends this firmware command, always with all three arguments:
QuickModeperform_second_measurement_on_lift_offrXSearchLimitsearch_end_positionminus the startXMaxForcedetection_forceThe command has no speed argument: only the system speed (
mspeed) changes it. So the method sets it for the search and puts it back afterwards.Before anything moves, it checks the licence bit for Z height detection, the arguments, the column and the base plate. Reaching the end of the search with nothing met returns
None. An interrupt sendshalton the controller's second port (10000) and discards the false height, so the next command gets its own reply.Warnings
gripper_lengthfurther along the heading.At the default 20 percent system speed it descends at about 5 mm / second.
Precision
These numbers come from sending
HeightDetectdirectly, not yet through this method. On a PF400, 36 searches on the same block, at 8 to 15 N and atmspeed20, 50 and 100, read within 0.16 mm of each other. Neither force nor speed moved the reading by more than that. A second measurement on lift-off read about 0.15 mm higher than the first.Power
An arm can now measure its own environment too: the height of a nest or a stack, with no hand on the arm. Together with the probing on the liquid handlers, PLR programmers can now check heights across a workcell against the model 👀
Please let us know your thoughts, and whether you encounter any issues.
Happy automation 🦾
🤖 Generated with Claude Code