|
FreeCad |
|
|
KiCad 9.0 |
|
|
Esp Home Home Assistant AddonEsp Home
|
Automatic Optical Audio Switch (ESP32)
Automatic Optical Audio Switch (ESP32)
Automatic switching between two TOSLINK / SPDIF inputs to one output based on signal activity detection with an ESP32C3.
Features
- 2× optical input → 1× optical output
- Automatic source selection (A/B)
- Signal detection via frequency measurement
- Configurable thresholds and timing
- Anti-flicker logic
- ESPHome firmware
- Web UI and Home Assistant integration
- No SPDIF decoding or audio processing
- USB-C powered
- 3D-printed enclosure
Concept
Each optical input is converted into a digital pulse stream. The ESP32 measures the divided SPDIF clock frequency and switches the output to the active (playing) channel.

Note
The actual audio path is switched purely in hardware. The ESP32 only controls the selection logic and does not touch the audio data stream itself.
Build
- Assemble PCB according to the KiCad project
- Flash ESPHome/OTA firmware
- Use Web UI or Home Assistant for configuration
- Connect device to optical audio setup
Complete Project Notes
available on Hackaday.io: https://hackaday.io/project/204791-automatic-optical-audio-switch-esp32
Automatic Optical Audio Switch (ESP32)
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(0)
- Likes(0)
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Stefan Poß
-
AI-driven LoRa & LLM-enabled Kiosk & Food Delivery System
45 1 0 -
-
-
-
ESP32-C3 BLE Keyboard - Battery Powered with USB-C Charging
333 0 0 -
-
mammoth-3D SLM Voron Toolhead – Manual Drill & Tap Edition
438 0 1 -
-
AEL-2011 Power Supply Module
1036 0 2 -
AEL-2011 50W Power Amplifier
886 0 2 -
-







