meyerdominik / ESP32_bluetoothmedia

An esp32 used as a2dp sink attached to the bmw canbus for steering wheel controls

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP32_bluetoothmedia

An esp32 used as a2dp sink attached to the bmw canbus for steering wheel controls

Imported libs

Used parts

Wireing

  • CAN 3.3V -> ESP 3.3V
  • CAN Ground -> ESP Ground
  • CAN RX -> ESP pin D4 (GPIO 4)
  • CAN TX -> ESP pin D5 (GPIO 5)
  • DAC 3.3V -> ESP 3.3V
  • DAC Ground -> ESP Ground
  • DAC FLT -> ESP Ground
  • DAC DMP -> ESP Ground
  • DAC SLC -> ESP Ground
  • DAC BCK -> ESP pin D26 (GPIO 26)
  • DAC DIN -> ESP pin D22 (GPIO 22)
  • DAC LCK -> ESP pin D25 (GPIO 25)
  • DAC FMT -> ESP Ground
  • DAC XMT -> ESP 3.3V
  • ESP USB-C -> Transformer USB-A

Remember to short the pins on the can transceiver, if you don't need the 120 Ω resistor as an endpoint.

Features

  • Automatic reconnect to the last connected device is handled by the ESP32-A2DP-library

Todos (maybe?)

  • Set volume on bluetooth connect automatically to the maximum of the bluetooth device

Ideas for your own implementation:

  • a2dp can receive information about the song that is currently playing. You could attach a display to show the current artist and title.

About

An esp32 used as a2dp sink attached to the bmw canbus for steering wheel controls

License:MIT License


Languages

Language:C++ 100.0%