diff --git a/docs/3d-pedal-model.html b/docs/3d-pedal-model.html new file mode 100644 index 0000000..f80bdba --- /dev/null +++ b/docs/3d-pedal-model.html @@ -0,0 +1,510 @@ + + + + + +Pi Multi-FX Pedal β€” 3D Model + + + + +
+
Touch Glass
+
Display PCB
+
Raspberry Pi 4B
+
I2S HAT
+
1590BB Enclosure
+
Audio Jacks
+
πŸ–± Drag to orbit
+
πŸ”„ Scroll to zoom
+
+ +
🎸 Pi Multi-FX Pedal · 1590BB + 5" DSI Touch + I2S HAT
+ + + + + + \ No newline at end of file diff --git a/docs/module-catalog.md b/docs/module-catalog.md new file mode 100644 index 0000000..86842ae --- /dev/null +++ b/docs/module-catalog.md @@ -0,0 +1,224 @@ +# Ourpad Modular Band System β€” Module Catalog + +> **Vision:** A family of stackable DSP modules, one per band member, sharing a common platform. Each module is a self-contained RPi-powered effects unit in a compact enclosure. Modules sync over the network for sample-accurate multi-channel mixing. +> +> **Status:** Planning phase. Guitar module prototype is furthest along. + +--- + +## Platform Spec (All Modules) + +| Spec | Standard | Premium Option | +|------|----------|----------------| +| **CPU** | RPi 4B (2GB+) | RPi 5 (for drums/keys) | +| **OS** | DietPi (minimized) | Same | +| **Audio I/O** | I2S HAT per module type | USB Audio Class 2 (for high channel count) | +| **Sample Rate** | 48kHz / 24-bit | 96kHz (keys/synth) | +| **Latency Target** | < 10ms round-trip | < 5ms (drums) | +| **Display** | 5" DSI touch (800Γ—480) | None (drums β€” rack UI only) | +| **Network** | WiFi + Ethernet | AES50 for drums | +| **Sync** | NTP / manual | AES50 embedded clock | +| **Enclosure** | 1590BB (140Γ—78mm) | 1U rackmount (drums) | +| **Power** | USB-C PD (5V/3A) | PoE (drums in stage box) | +| **Control** | Touch, Web UI, MIDI DIN/BT | All of the above | + +--- + +## 🎸 Module 1: Guitar + +**Status: Prototype β€” Phase 1 (I2S HAT + DSP) complete. Phase 2 (touch + XLR) pending.** + +| Spec | Value | +|------|-------| +| **Inputs** | Combo XLR/1/4" with hi-Z switch, 1/4" Return (4CM) | +| **Outputs** | 1/4" Send (4CM), XLR balanced DI | +| **Preamp** | TL072-based (existing) + hi-Z buffer for piezo | +| **Line Driver** | DRV134 or THAT1646 for balanced XLR | +| **Phantom** | Not needed (instrument level) | +| **Patching** | Front: Combo in, XLR out. Side: Send/Return | +| **FX** | 32 total: Gate, Comp, Boost, OD, Dist, Fuzz, NAM Amp, IR Cab, EQ, Parametric EQ, HPF, LPF, Mod, Delay, Reverb, Pitch, Looper + all modulation | +| **HAT** | PCM1808+PCM5102 (existing Rev 1.0 β€” mono 1ch in/out) | +| **HAT Rev 2** | Add combo jack footprint, XLR driver, 4CM Send/Return | +| **Edge** | NAM A2 neural amp modeling | + +**Current state:** All DSP and 4CM routing done. I2S HAT designed (needs Gerber export). Touch integration pending 1590BB enclosure. + +--- + +## 🎸 Module 2: Bass + +**Status: Concept. Shares guitar HAT with different preamp.** + +| Spec | Value | +|------|-------| +| **Inputs** | Combo XLR/1/4" with hi-Z, pad switch | +| **Outputs** | XLR balanced DI, 1/4" thru | +| **Preamp** | FET Neve-style (SansAmp character) β€” dedicated op-amp stage | +| **Tone Shaping** | 3-band active EQ (bass/mid/treble sweepable), blend control | +| **FX Priority** | Compressor (always-on), Octaver, Envelope Filter, Chorus, EQ | +| **RPi** | Zero 2W sufficient (lighter DSP load) | +| **Enclosure** | 1590BB or smaller (125B) β€” fewer controls needed | +| **Display** | 3.5" DSI or small OLED + knobs | +| **HAT** | Same PCM1808+PCM5102 as guitar (mono instrument) | + +**Edge:** Analog blend β€” mix dry bass tone with processed signal (critical for bassists). + +--- + +## 🎀 Module 3: Vocal + +**Status: Concept. Needs different analog front-end.** + +| Spec | Value | +|------|-------| +| **Inputs** | XLR with 48V phantom power | +| **Outputs** | XLR balanced | +| **Preamp** | INA163 or SSM2019 instrumentation amp (low noise, 20-60dB gain) | +| **Phantom** | MAX1771 or similar DC-DC converter for 48V | +| **Pad** | -20dB pad for hot sources | +| **FX Priority** | Gate, Comp, De-esser, EQ, Reverb, Delay, Harmonizer, Pitch Correction | +| **RPi** | 4B (pitch detection is CPU-heavy) | +| **Enclosure** | 1590BB with touch | +| **HAT** | Custom β€” mic pre + phantom + balanced driver | + +**Edge:** Real-time pitch correction (auto-tune style), harmony generation from MIDI input. + +**Cost impact:** Phantom power adds ~$8-12 in components (DC-DC converter, filtering). + +--- + +## 🎹 Module 4: Keys / Synth + +**Status: Concept. Simplest analog stage β€” line level only.** + +| Spec | Value | +|------|-------| +| **Inputs** | 2Γ— TRS (stereo line in) | +| **Outputs** | 2Γ— TRS or XLR (stereo out) | +| **Preamp** | None needed (line level) β€” just buffer + protection | +| **FX Priority** | Reverbs, Delays, Chorus, Phaser, Rotary, Tremolo, Ring Mod | +| **RPi** | Zero 2W sufficient | +| **Enclosure** | 1590BB or rackmount half-width | +| **Display** | 5" touch or headless (MIDI CC control) | +| **HAT** | PCM1808 stereo ADC (already stereo-capable) + PCM5102 stereo DAC | + +**Edge:** Uses the existing HAT's full stereo capability (PCM1808 has 2 ADC channels, PCM5102 has 2 DAC channels β€” the guitar module only uses half). + +--- + +## 🎺 Module 5: Horns / Misc + +**Status: Concept. Vocal variant with simpler FX.** + +| Spec | Value | +|------|-------| +| **Inputs** | XLR (mic) | +| **Outputs** | XLR balanced | +| **Preamp** | Same INA163 as vocal | +| **Phantom** | Yes (condenser mics) | +| **FX Priority** | Comp, EQ, Reverb (minimal β€” horns sound great dry) | +| **RPi** | Zero 2W | +| **Enclosure** | 125B (small, simple) | +| **Display** | None β€” web UI only | + +**Edge:** Minimalist. Three knobs: Reverb, Compression, EQ. Designed to not get in the way. + +--- + +## πŸ₯ Module 6: Drums + +**Status: Concept. Different architecture β€” network audio + stage box.** + +| Spec | Value | +|------|-------| +| **Inputs** | Ethernet (AES50) from stage box | +| **Outputs** | Ethernet (AES50) to FOH, stereo monitor out | +| **Stage Box** | 8Γ— XLR input β†’ AES50 transmitter (dedicated hardware, not a Pi) | +| **RPi Job** | Mixer + FX per channel + routing to stereo out | +| **FX Per Channel** | Gate, Comp, EQ per drum β€” summed into stereo mix | +| **RPi** | RPi 5 (8-16 channel real-time processing) | +| **Enclosure** | 1U rackmount | +| **Display** | 7" HDMI or headless (iPad control) | +| **HAT** | AES50 XMOS board β†’ I2S bridge, or USB Audio interface | + +### Stage Box Details + +``` +Front: 8Γ— Combo XLR/TRS input +Back: Ethercon (AES50 out), Power in +Size: Half-rack or floor box (aluminum, rugged) +RX: XMOS AES50 receiver module β†’ I2S β†’ RPi + OR: Behringer S16-style design with custom PCB +``` + +**AES50 Hardware Options:** +- **XMOS XU208 dev board** (~$25) β€” programmable AES50 transceiver +- **Off-the-shelf AES50 <-> ADAT converter** (~$60) β€” simpler but less flexible +- **DIY PCB** with XMOS chip β€” for production + +**Edge:** Uses AES50 (open protocol, proven in live sound), sub-1ms latency, standard CAT5e cabling, 100m+ range. + +--- + +## 🌐 Module 7: Sync / Mix Bridge (Optional) + +**Status: Concept. Only needed for multi-module setups.** + +| Spec | Value | +|------|-------| +| **Role** | Master clock + mix bus for multi-module band setups | +| **Inputs** | Ethernet from each module | +| **Outputs** | Stereo XLR (FOH), headphone monitor | +| **Sync** | AES50-derived word clock, distributed to all modules via network | +| **Mix** | Web UI mixer β€” each module's stereo output blended + headphone sends | +| **RPi** | RPi 5 | +| **Enclosure** | Rackmount 1U | + +**Edge:** Without this, modules run independently (each with its own output to the mixer). The bridge lets you control the entire band mix from one device and gives the drummer a click track. + +--- + +## Module Comparison Matrix + +| Module | I/O | Preamp | Phantom | RPi | Enclosure | Complexity | Est. BOM | Status | +|:-------|:---:|:------:|:-------:|:---:|:---------:|:----------:|:--------:|:------:| +| **Guitar** | Combo + 4CM | TL072 | No | 4B | 1590BB | Medium | ~$175 | **Prototype** | +| **Bass** | Combo + DI | FET Neve | No | Z2W | 125B | Medium | ~$150 | Concept | +| **Vocal** | XLR in/out | INA163 | Yes | 4B | 1590BB | High | ~$200 | Concept | +| **Keys** | Stereo TRS | None | No | Z2W | 125B | Low | ~$120 | Concept | +| **Horns** | XLR in/out | INA163 | Yes | Z2W | 125B | Medium | ~$160 | Concept | +| **Drums** | AES50 + stage | Varies | Yes (box) | 5 | 1U | **Very High** | ~$400+ | Concept | +| **Bridge** | Ethernet | β€” | No | 5 | 1U | High | ~$200 | Concept | + +--- + +## Next Steps + +**Immediate (guitar prototype):** +1. Revise I2S HAT for 1590BB + combo jacks + XLR driver +2. Order boards (Gerber export β†’ JLCPCB) +3. Assemble + test with Focusrite 2i2 in 4CM +4. Wire touchscreen display +5. Full prototype test: guitar β†’ pedal β†’ amp + FOH + +**Short-term (bass + keys):** +- Bass uses same HAT as guitar (just different preamp circuit) +- Keys uses existing HAT's stereo capability β€” zero PCB changes +- Both can be validated with the Focusrite before ordering HAT PCBs + +**Medium-term (vocal + horns):** +- Need new HAT design (mic pre + phantom power) +- Major analog design effort + +**Long-term (drums + bridge):** +- AES50 research and prototyping +- Stage box PCB design (8-channel preamp + phantom + AES50 encoder) +- Mix bridge software design + +--- + +Want me to save this as a reference doc and task up the **guitar prototype completion** plan from here? That'd cover: +1. I2S HAT Rev 2 (combo jacks + XLR driver + 1590BB fit) +2. Touch display integration +3. Full assembly + test with Focusrite 4CM +4. Then order real boards \ No newline at end of file diff --git a/docs/pcb-preview.html b/docs/pcb-preview.html new file mode 100644 index 0000000..10c40bb --- /dev/null +++ b/docs/pcb-preview.html @@ -0,0 +1,296 @@ + + + + + +PCM1808+PCM5102 I2S HAT β€” PCB Preview + + + + +

🎸 PCM1808+PCM5102 I2S HAT

+
65Γ—56mm 2-layer PCB β€” 1590B Compatible β€” Rev 1.0
+ +
+
+

Top View (Component Side)

+ + + + + + + + + + + + + + + + + + + J1 β€” RPi 40-Pin Header + + + + + + I2S Bus (BCLK/LRCLK/DIN/DOUT) + + + + U1 + AMS1117-3.3 + + + + C1 + + C2 + + + + U2 β€” TL072 + Dual JFET Op-Amp + Half 1: Preamp Β· Half 2: Buffer + + + + R3 + + R4 + + + + J2 + Input + + + + + + + + R1,R2 + + + + U3 β€” PCM1808 + 24-bit Stereo ADC + + + + U4 β€” PCM5102 + 32-bit Stereo DAC + + + + C6 + + C7 + + + + C8 + + C9 + + + + + + BCLK Β· LRCLK Β· DIN + + + + C5 + + + + R5+C10 + 330Ξ©+10Β΅F + + + + J3 + Output + + + + + + + R6 + + + + βŽ‡ 3.3V Rail (5V β†’ AMS1117) + + + GND Flood Fill (both layers) + Star Ground at RPi GND pin + + + + Power Regulation + + + + 65mm + + 56mm + + + + + + + +
+ +
+

Board Specifications

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Dimensions65 Γ— 56mm (1590B)
Layers2-layer FR4, 1.6mm
Surface FinishENIG (gold) preferred
Min Trace0.254mm (10mil)
Min Hole0.3mm
Mounting4Γ— M2.5, 3.2mm holes
Signal Chain
InputGuitar β†’ J2 (6.35mm TS)
PreampU2 TL072 β€” 20dB gain
ADCU3 PCM1808 β€” 24-bit/48kHz I2S
DACU4 PCM5102A β€” 32-bit I2S
Output→ J3 (6.35mm TS) via RC filter
Power
RegulatorU1 AMS1117-3.3 (5V→3.3V)
Decoupling100nF + 10Β΅F per IC
GroundStar ground, GND flood fill
I2S Bus (GPIO)
BCLKGPIO18 (Pin 12)
LRCLKGPIO19 (Pin 35)
DIN (to RPi)GPIO20 (Pin 38) ← PCM1808
DOUT (from RPi)GPIO21 (Pin 40) β†’ PCM5102
Cost
Board + Components~$29.25
+ Enclosure (1590B)~$41.75
Qty 5 @ JLCPCB~$146.25
+
+ ⚠️ PCB layout shown is a schematic-derived approximation β€” the KiCad PCB file (commit 0ae2ca6) has the board outline and mounting holes. Component footprints need human placement review before Gerber export. Open in KiCad to see the actual routed layout. +
+
+
+ +
+
+

Schematic Preview (from KiCad .sch file)

+
+
+
Page 1 β€” Power
+
5V rail β†’ U1 AMS1117 β†’ 3.3V
+
C1 (10Β΅F) + C2 (100nF) input decoupling
+
C3 (10Β΅F) + C4 (100nF) output decoupling
+
+
+
Page 2 β€” RPi Header
+
J1 2Γ—20 stacking header
+
All 40 GPIO pins pass through
+
I2S: BCLK(18) LRCLK(19) DIN(20) DOUT(21)
+
+
+
Page 3 β€” Preamp
+
J2 Guitar in β†’ R1(1MΞ©) pulldown
+
β†’ R2(10k) β†’ U2 TL072 non-inv (+) input
+
Gain = 1 + R3(100k)/R4(10k) = ~20dB
+
β†’ C5(10Β΅F) DC-block β†’ PCM1808
+
+
+
Page 4 β€” ADC + DAC
+
U3 PCM1808: I2S, 48kHz, always active
+
C6(100nF) + C7(10Β΅F) decoupling
+
U4 PCM5102: low-latency filter, unmuted
+
C8(100nF) + C9(10Β΅F) decoupling
+
Output β†’ R5(330Ξ©) + C10(10Β΅F) β†’ J3
+
+
+
Page 5 β€” Output Buffer
+
U2 TL072 (half 2): output buffer stage
+
R6(10k) feedback resistor
+
+
+
I2S Bus Labels
+
Global net labels: I2S_BCLK, I2S_LRCLK
+
I2S_DIN (RPi←ADC), I2S_DOUT (RPiβ†’DAC)
+
+
+
+
+ + + \ No newline at end of file diff --git a/docs/touchscreen-pedal-concept.html b/docs/touchscreen-pedal-concept.html new file mode 100644 index 0000000..d03afc5 --- /dev/null +++ b/docs/touchscreen-pedal-concept.html @@ -0,0 +1,297 @@ + + + + + +Pi Multi-FX β€” Boss-Size Touchscreen Pedal + + + + +

🎸 Pi Multi-FX β€” Boss-Size Touchscreen Concept

+
1590BB Enclosure Β· 5" DSI Touch Β· I2S HAT Stack
+ +
+ +
+

Exploded View β€” Stackup

+ + + + + + + + + + + + + + + Preset: Crunch Lead + + BYPASS + ACTIVE + + + + Volume + + + NAM Amp + + Delay + + Reverb + + + 4CM Β· Sendβ†’Pre Β· Postβ†’Return + 5" DSI Capacitive Touch + + + + + + + + + + + + Waveshare 5" DSI Display Board + 102Γ—76mm β€” Ribbon to RPi DSI port + + + + + + + Standoffs + + + + + + Raspberry Pi 4B + 85Γ—56mm Β· USB-C Β· HDMI Β· DSI Β· GPIO 40-pin + + + DSIβ†’ + + + GPIO 40-pin ↓ + + + + + + + Stacking Hdr + + + + + + PCM1808+PCM5102 I2S HAT + 65Γ—56mm Β· Preamp β†’ ADC β†’ DSP β†’ DAC + + + I2S ↔ RPi + + + + + + J + I + N + + + + + + J + O + U + T + + + + + 1590BB Enclosure (140Γ—78mm face Β· ~48mm deep) + + + + + + ~140mm (Boss-compatible) + + + + ~38mm total stack (w/ standoffs) + + + β‘  Touch + β‘‘ Display PCB + β‘’ RPi 4B + β‘£ I2S HAT + β‘€ 1590BB Box + +
+ + +
+

Component Stack β€” 1590BB Build

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Enclosure1590BB diecast aluminum
140Γ—78Γ—48mm β€” Boss compact size
TouchscreenWaveshare 5" DSI
800Γ—480, capacitive multi-touch
βœ… Native RPi DSI β€” no HDMI needed
βœ… Fits 1590BB face with border
BrainRPi 4B (2GB+)
DietPi, headless, JACK + Python DSP
AudioPCM1808+PCM5102 I2S HAT
Custom 65Γ—56mm PCB (already designed)
Stacking header passes GPIO to display
βœ… < 10ms round-trip
ConnectivityUSB-C (power only)
WiFi for `pedal.local` web UI
Bluetooth for wireless MIDI
I/O PanelSide-mounted: Input, Send, Return, Output
USB-C power, MIDI DIN (optional)
Est. BOM (5 pcs)~$175-200 per unit
+
+
+ + +
+ +
+

πŸ“ Mechanical Stack

+
+
+ Touch layer + 5" glass + front bezel +
+
+ Display PCB + 8mm standoff +
+
+ RPi 4B + 10mm standoff (above HAT) +
+
+ Stacking header + GPIO pass-through +
+
+ I2S HAT + 6mm standoff β†’ enclosure base +
+
+ Total depth + ~38-42mm (fits 48mm 1590BB) +
+
+
+ + +
+

πŸ”Œ Internal Wiring

+
+
Display β†’ DSI ribbon (15-pin) β†’ RPi DSI port
+
I2S HAT β†’ mounts on RPi GPIO via stacking header
+
Audio jacks β†’ flying leads to HAT I/O pads
+
Power β†’ USB-C β†’ RPi β†’ 5V rail β†’ I2S HAT
+
Footswitches (optional) β†’ GPIO via HAT passthrough
+
+
+ + +
+

⚠️ Things to Sort

+
+
β‘  Jacks: Need right-angle PCB-mount jacks for side fit β€” or wire to chassis-mount jacks on enclosure walls
+
β‘‘ DSI ribbon: Needs careful routing past the stacking header. 15-pin flat flex cable, keep away from I2S traces
+
β‘’ I2S HAT Rev: The current PCB is 65Γ—56mm (1590B). For 1590BB you could make it slightly wider to match β€” but it works as-is
+
β‘£ Heat: RPi 4B in an enclosed box gets warm. Consider a vent slot or small fan on the side
+
+
+
+ + +
+
+

πŸ“ Size Comparison vs Boss Pedal

+ + + + Boss DS-1 / BD-2 (129Γ—73mm) + Baseline compact pedal + + + 1590B (112Γ—60mm) + Current HAT size + + + 1590BB (140Γ—78mm) + Boss-compatible + touchscreen + + + βœ… 5" display fits inside with 15mm border all round + +
+
+ + + \ No newline at end of file