Unified Hardware Receiver Pinout (Identical Pins on RP2350 Pico 2 & RP2040 Pico 1):
[Input Option 1: Schmitt Trigger Digital PDM — Recommended]
660nm Beam ─▶ BPW34 (3V3 reverse bias + 2.2kΩ to GND) ─▶ 74HC14 (@ 3V3!) ─▶ GP1 (Pin 2) or GP2 (Pin 4)
[Input Option 2: Direct Analog PDM — Auto-Fallback when GP1/GP2 idle]
660nm Beam ─▶ Photodiode / 4-Pin Module AO ─▶ GP26 / ADC0 (Pin 31)
[Simultaneous Dual Audio Outputs — Both Active at 48.000 kHz]
I2S Studio DAC (PCM5102A / MAX98357A) : GP10 = DIN | GP11 = BCK | GP12 = LRCK (tie PCM5102A SCK to GND)
Direct Headphones / Powered AUX : GP14 = Left | GP15 = Right (via 100–220Ω + 10µF series cap to 3.5mm jack)
Photodiode Headroom & Brightness Immunity: Large load resistors (47kΩ–100kΩ) turn steady ambient light into DC voltage (V = I_DC × R), self-forward-biasing the diode near ~0.6 V so bright pulses compress or cut off. Using a smaller DC shunt resistor (1kΩ–4.7kΩ) paired with a series AC coupling capacitor (1µF–10µF) drains bright DC background current while passing high-frequency optical modulation cleanly to the receiver.
Silicon Verified PWM Slice 7 Addressing: RP2040 PWM Slice 7 (channels GP14/GP15) is addressed directly at base 0x4005008C (CSR=+0x00, DIV=+0x04, CTR=+0x08, CC=+0x0C, TOP=+0x10) with lsls #3 scaling so full 32/32 high frames drive CC=256 (100% duty cycle) cleanly.