GithubHelp home page GithubHelp logo

tesla-model3-premium-amp-re's Introduction

Overview

Tesla Model 3 Premium Amp reverse engineering and A2B demo for EVAL-AD2410WDZ or ADAU1452. This project may be useful for those who wish to integrate the Tesla amp into a DIY car audio project, or extract digital audio from the ICE.

Status for ADAU1452:

  • Analog audio input to the DSP works via the onboard ADAU1761 codec.
  • Custom filters and limiters provide rear, subwoofer, and tweeter outputs
  • The class AB amp (channels 4-7) still does not play any audio. More reverse engineering will be required to fix this. Fixed
  • For now, only rear, tweeter and subwoofer channels play audio. Front and center channels need work. All channels now work, but front channels are really attenuated. Swapped front and rear channels as a temporary workaround.
  • Crackling on channels 2 and 3. Fixed

Status for Jetson Nano:

  • The A2B bus will drop as soon as the audio interface goes to sleep. DAPM needs to be disabled since the bus needs a constant clock.
  • The class AB amp (channels 4-7) still does not play any audio. More reverse engineering will be required to fix this. Fixed
  • Crackling on channels 2 and 3. Fixed

Plans:

  • Get all 8 audio channels playing audio. Done
  • SPDIF input
  • Auto source selection
  • I2S input and configuration from an audio host (e.g. Jetson Nano)
  • Digital volume control
  • Bass, treble adjustment
  • Manual EQ and presets
  • Dynamic EQ
  • Linux codec driver

Files:

bin:

  • a2bapp-linux (When ran, this will set up the A2B bus when the Jetson nano, A2B master, and Tesla amp are connected.)
  • run.sh (Sets up ALSA codecs and TDM interface, then runs a2bapp-linux)

config:

  • asound.conf (Janky workaround to play stereo audio on all channels without DSP upmixing.)

datasheets:

  • AD2428W A2B transceiver (Register and pin compatible with AD2410)
  • TDA7802 quad amp
  • TDA7803a amp (Describes registers compatible with TDA7802)
  • FDA2100 amp
  • PCA9538 I2C GPIO expander
  • LM2901 quad comparator
  • 24C04K 4 Kbit I2C EEPROM

i2c-logs:

  • Annotated I2C transactions between BMP and base amp/A2B transceiver

notes:

  • Channel mapping
  • GPIO expander pin mapping
  • I2C addresses
  • External connector pinouts

pulseview-captures:

  • Raw I2C2 bus captures from BMP

sigma-studio-files:

  • ADAU1452 with ADI surround
  • ADAU1452 with custom filters DSP flow A2B flow
  • ADAU1452 with Tesla mic array as slave 0, and amp as slave 1 (Model 3 configuration).
  • Jetson nano raw 8 channels

Amplifier pinout:

Amp connectors Source: Tesla Model 3 Stereo - Part 9: Summary and Lessons Learned

Amp connector part numbers:

  • A2B: TE AMP Mini50 2177586-1
  • Class D channels/power in: Sumitomo 6098-1714
  • Class AB channels: Sumitomo 6098-5713

Block diagram:

Block Diagram

A2B board <-> Jetson Nano wiring:

Wiring

I2C/TDM test points:

Test points

Top of board:

Top view

Video of it in action

Video

tesla-model3-premium-amp-re's People

Contributors

doitaljosh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

whstudio123

tesla-model3-premium-amp-re's Issues

Impressive ๐Ÿ’ฏ

Man, what you were able to do here is absolutely sick and i am super impressed with your skills.
I am doing some work on A2B and need some info on a2bapp-linux, is this a custom app or just some example using the ADI A2B stack? some hints would be much appreciated.

BR,
Dan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.