Skip to content

Expand balance/hardware.md with linkage, wiring, and control-loop details - #6

Open
makingmusic wants to merge 1 commit into
mainfrom
claude/review-hardware-simulation-pdwAR
Open

Expand balance/hardware.md with linkage, wiring, and control-loop details#6
makingmusic wants to merge 1 commit into
mainfrom
claude/review-hardware-simulation-pdwAR

Conversation

@makingmusic

Copy link
Copy Markdown
Owner

Summary

  • Folds the chat-driven discussion into balance/hardware.md: VL53L0X choice, Raspberry Pi + pigpio over 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.
  • 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 → VL53L0X + SG90, color-coded by wire purpose), control-loop.svg (sensor → PID → servo → plant block diagram).
  • No code, tests, or runtime behavior changed — docs and diagrams only.

Test plan

  • Render balance/hardware.md on GitHub and confirm all four SVGs display inline.
  • Skim each new section for technical accuracy (Pi vs ESP32, wiring table, PWM math, filter recipes, limit-cycle fixes, linkage description).
  • Open each SVG directly and confirm labels are readable and the diagram still makes sense at GitHub's rendered width.

Generated by Claude Code

…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants