Handoff Summary
Design a Raspberry Pi Zero 2 W header/HAT board, starting with component selection and schematic capture.
Required functions
- Mate with the Raspberry Pi Zero 2 W through its 40-pin GPIO header.
- Support four optical encoders.
- Support one mechanical quadrature encoder, used to adjust LED brightness.
- Connect a 1.69-inch display module over SPI.
- Drive an LED panel with:
- Approximately 3 V forward voltage
- 300 mA operating current
- PWM brightness control
- Accept power from an off-the-shelf USB-C power bank using USB-C Power Delivery.
Agreed design direction
Use robust/universal optical-encoder input conditioning rather than assuming 3.3 V push-pull outputs:
- Aim to support open-collector, 3.3 V, and 5 V encoder outputs.
- Translate/condition signals to safe 3.3 V Raspberry Pi GPIO levels.
- Use Schmitt-trigger conditioning, input protection, and filtering suitable for cables/noisy environments.
- Provide filtered/debounced inputs for the mechanical quadrature encoder and its push switch, if fitted.
For power:
- Use a USB-C PD sink controller to request 9 V.
- Design the input for at least 18 W.
- Include USB-C ESD/transient protection, input protection, and appropriate bulk/decoupling capacitors.
- Convert 9 V to a regulated 5 V system rail for the Raspberry Pi Zero 2 W and display.
- Do not feed unregulated PD voltage into the Pi.
- Use a regulated 300 mA constant-current LED driver for the nominal 3 V LED panel.
- Connect its PWM/dimming input to a Raspberry Pi GPIO.
- Prefer a safe fallback/off state during Pi boot and reset.
SPI display interface
Provide a connector carrying at least:
- 3.3 V
- Ground
- SPI clock
- SPI MOSI
- Chip select
- Data/command
- Reset
- Backlight control, if required by the module
The exact 1.69-inch display module and pinout were not provided, so its connector, backlight requirements, and logic compatibility must be confirmed before finalizing this block.
Information still unresolved
The next agent should confirm or choose reasonable defaults for:
- Optical encoder channel count: likely quadrature A/B per encoder, but not explicitly confirmed.
- Optical encoder supply voltage, output topology, maximum pulse frequency, connector type, and cable length.
- Whether the mechanical encoder includes a push switch.
- Exact display module model/controller, connector pinout, supply voltage, and backlight current.
- USB-C power bank PD profiles; 9 V support is assumed.
- Whether the USB-C port is power-only or must support data.
- Raspberry Pi GPIO allocation and any boot-strap/UART/I²C conflicts.
- Mechanical constraints, mounting holes, board outline, and whether strict HAT dimensions/EEPROM identification are required.
- Whether reverse-current isolation is needed if the Pi can also be powered from its own USB connector.
Expected next work
- Calculate the complete power budget, including Pi peak load, display/backlight, encoders, conversion losses, and LED load.
- Select verified, purchasable components for the PD sink, 9 V-to-5 V converter, protection, encoder conditioning, and LED driver.
- Assign Raspberry Pi GPIOs.
- Capture the complete schematic in functional blocks.
- Run ERC/connectivity review and document any assumptions or unresolved module-specific connections.
- Stop after the verified schematic for review before beginning PCB placement or routing.
Current project state
No design work was actually captured. The project is still empty with 0 components and 0 nets. Previous execution attempts stopped because ACUs ran out.