Build now compiles. audio.cpp on top of upstream's state_mgr-based audio_loop adds three additive pieces: 1. VU peak meters for ch0/1 (spk_max) and ch2/3 (hap_max) tracked per-sample in the existing loop; written back to g_peak_spk / g_peak_hap after. Accessors decay 12.5% per read so the OLED VU bars fall back naturally over a few frames. 2. Monotonic byte-flow counters: g_usb_frames++ after tud_audio_read (the OLED Diagnostics screen + web emulator compute USB-aud/s and BT-0x32/s as delta over time). g_bt_packets++ after each 0x36 bt_write. 3. Audio Auto Haptics DSP — 1-pole LP + envelope follower + modulation + soft-clip per loteran/DS5Dongle 5d6bc2f, with our added 4th "Fallback" mode that fires only after the game's native haptic path has been silent for ~1 s (NATIVE_SILENT_TIMEOUT = 100 audio_loop calls). Preserves native HD haptics (Spider-Man Remastered) while filling in for games that send no haptic data (Ghost of Tsushima). Modes: 0=Off, 1=Fallback (default), 2=Mix, 3=Replace. Crucially the state_mgr-based state_set(pkt+13, 63) call is left untouched — that's upstream's correct replacement for our prior state_data restore hack, and it's load-bearing for speaker output. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pico2W DualSense 5 Bridge
Turn a Raspberry Pi Pico2W into a wireless adapter for the DualSense (DS5) controller.
Overview
This project enables the Raspberry Pi Pico2W to function as a Bluetooth bridge for the DualSense controller, allowing wireless connectivity with enhanced haptics support.
Features
- 🎮 Full DualSense connectivity via Pico2W
- 🔊 Supports HD haptics (advanced vibration feedback)
- 📡 Wireless Bluetooth bridging
Getting Started
Flashing Firmware
- Hold the BOOTSEL button on the Pico2W
- Connect the Pico2W to your computer via USB
- The device will mount as a USB storage device
- Drag and drop the .uf2 firmware file onto the device
Pairing the Controller
- Put the DualSense controller into Bluetooth pairing mode
- Wait for the Pico2W to detect and connect
- Once connected, the device will appear on the host system
You may need to replug the Pico when the controller is in pairing mode.
Configuration
You can modify the Pico settings via the web config.
- For release: https://ds5.awalol.eu.org
- For development: https://ds5-dev.awalol.eu.org
Notes
The Pico device will only be visible to the system after the controller is connected
Some behaviors depend on reconnection cycles to take effect
Low-battery LED indicator
When the connected DualSense reports its battery at or below 10% (and it is not charging), the Pico onboard LED switches from solid-on to a 1 Hz blink so you can see the warning at a glance. The LED returns to solid-on as soon as the controller is plugged in or its reported level rises again. The blink also fires when disable_pico_led is set — the warning is treated as critical and overrides the LED-off preference; the LED returns to its disabled (off) state once the battery recovers or the controller starts charging.
To opt out at build time, configure with -DENABLE_BATT_LED=OFF. Default is ON.
Pico W Version
Pico W only has haptics support, no speaker. You can enable Pico W firmware compilation with -DPICO_W_BUILD=ON, or download precompiled firmware from GitHub Actions.
USB Wake Feature
This feature is experimental. If you need this functionality, please check out the feat/usb-wake branch to compile it, or use the precompiled firmware from GitHub Actions under that branch. The ds5-bridge-wake.uf2 is the firmware with this feature enabled.
It is recommended to read #60 and #61 before using this feature.
Community Fork
https://github.com/MarcelineVPQ/DS5Dongle-OLED-Edition https://github.com/zurce/DS5Dongle-OLED
Known Issues
- ⚠️ Audio may experience slight stuttering
- ⚠️ Overclocking is required for proper performance
Performance / Overclocking
Due to encoding requirements, the Pico2W must be overclocked:
Current settings:
- Voltage: 1.2V
- Frequency: 320 MHz
If your device fails to boot:
- Increase voltage slightly or Reduce CPU frequency
Build Instructions
To build the project from source:
- Update TinyUSB in the Pico SDK to the latest version
- Compile using standard Pico SDK toolchain
Roadmap
- Please check out DS5Dongle plan
Community
- Join the Discord server: Discord Server
- If you have a bug, please open an issue instead.
References
- rafaelvaloto/Pico_W-Dualsense — Project inspiration
- egormanga/SAxense — Bluetooth Haptics POC
- https://controllers.fandom.com/wiki/Sony_DualSense - DualSense data report structure documentation
- Paliverse/DualSenseX — Speaker report packet