Expand balance/hardware.md with linkage, wiring, and control-loop details - #6
Open
makingmusic wants to merge 1 commit into
Open
Expand balance/hardware.md with linkage, wiring, and control-loop details#6makingmusic wants to merge 1 commit into
makingmusic wants to merge 1 commit into
Conversation
…trol-loop details Adds discussion-driven sections to the build guide: - Pi vs ESP32 trade-offs, going with Pi + pigpio - VL53L0X (vs HC-SR04) wiring and I2C setup - SG90 PWM math (angle to microseconds) - Mechanical linkage architecture (drawbridge model) so the SG90 drives a foot-long beam without side-loading its plastic gears - Loop rate vs actuator lag (why fast ticks are fine) - Rate limiter and EMA low-pass filter - Limit cycling at balance and how to suppress it Also adds four SVG diagrams under balance/img/: - linkage-overview.svg: side view of beam + pivot + servo + push-rod - linkage-motion.svg: two tilted states showing horn rotation -> tilt - wiring.svg: Pi pinout to VL53L0X and SG90 - control-loop.svg: sensor -> PID -> servo -> plant block diagram
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.
Summary
balance/hardware.md: VL53L0X choice, Raspberry Pi +pigpioover ESP32, full wiring, the angle→PWM math, a complete control-loop script, why loop rate < actuator response is intentional, rate-limiter and EMA low-pass filter recipes, limit cycling at balance and how to suppress it, and the mechanical linkage architecture that lets an SG90 drive a foot-long beam without side-loading its plastic gears.balance/img/:linkage-overview.svg(side view of beam, pivot, servo, push-rod),linkage-motion.svg(two tilted states showing horn rotation → tilt),wiring.svg(Pi pinout → VL53L0X + SG90, color-coded by wire purpose),control-loop.svg(sensor → PID → servo → plant block diagram).Test plan
balance/hardware.mdon GitHub and confirm all four SVGs display inline.Generated by Claude Code