feat(big_bear): add BigBear orbital shaker driver#1174
Merged
Conversation
A daisy-chained orbital shaker: one serial line addresses up to 16 shaker
positions ("nests"), each by a 1-based hex id. Adds a single-class driver
(BigBearOrbitalShaker) over pylabrobot.io.serial with start/stop shaking,
homing, and serial-number readout.
Serial: 9600 8N1, no handshake, carriage-return terminated. Commands are
"@<id><cmd>"; value sets are followed by a "@<id>?<c>" read-back and an
"@<id>Q" status poll. A rejected command replies "?:".
Not verified against hardware; setup() emits a warning to that effect.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add a hello-world notebook covering daisy chaining, setup, per-nest and whole-chain start/stop, homing, and serial-number readout, plus the user-guide index entry. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace the OrbitalShakerSequence enum with a Literal["CW", "CCW"] argument, validated at the call site. Also fix an invalid cell in the user-guide notebook (missing required code-cell fields). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
What
Adds a driver for the BigBear orbital shaker, a daisy-chained orbital
shaker where a single serial line drives up to 16 independently-addressed
shaker positions ("nests").
pylabrobot/big_bear/orbital_shaker.py—BigBearOrbitalShaker, a singleplain class over
pylabrobot.io.serial.Serial.start_shaking(rpm, acceleration, sequence, device_id),stop_shaking(device_id),stop_all(),find_home(device_id),home_all(),get_serial_number(device_id), plus theOrbitalShakerSequenceenum andBigBearError.docs/api/.Protocol
\rterminator.@<id><cmd>, where<id>is the nest number in hex (nest 10 →@A, nest 16 →@10). Value-setting commands (V<rpm>,A<accel>,+/-)are followed by a
@<id>?<c>read-back and an@<id>Qstatus poll.?:.Testing
ruff check/ruff format --checkclean;mypyclean.on-wire bytes for shake/stop/home, hex addressing,
?:error handling, andrange/device-id validation).
inferred from the vendor stack, and
setup()emits a warning until someoneconfirms it on a real unit. Command-pacing delays are constructor parameters
so they can be tuned during bring-up.
🤖 Generated with Claude Code