Arduino controlled bass mid treble and input selector with tda7419

If you are looking to control your audio with arduino, here’s it is. It uses TDA7419 chip which has a lot of features for controlling your audio. It has 4 input selector, bass control, mid control, treble control, loudness control and a built-in 7 band spectrum analyzer.

I always wanted to control my audio using arduino and it took me sometime to figure out. I started with Alexan kit using LC75341  chip but the sound quality did not satisfy me. It only has bass and treble control and no control for the frequency and Q factor.

Then I found the TDA7419 and use it with nodemcu with an LCD. But unfortunately I was not able to output a sound for some reason I am not sure. I just thought I got a defective part. fast forward 2 years later, I was able to start again with this project and bought the chip from a separate supplier. This time I used and arduino nano and a 1602 LCD.

But unfortunately I was not able to get the sound output again so I thought it is impossible to have a bad part again twice. This should something to do with my code. The datasheet of TDA7419 is incomplete. There are many functions there that had no explanation what it is for. I read the datasheet again and again and hooray! I found a clue for why I am not getting an output. In section 4.3.1 of the datasheet it says “it is not useful to start a new AutoZero action because no new source is selected and an undesired mute would appear at the outputs.

After hours of tweaking the code, I was now able to make it work! The code can be downloaded on the download page. Only basic feature is available at the moment and these are:

  • input selection
  • bass control
  • mid control
  • treble control
  • spectrum analyzer

I am using a library from https://rcl-radio.ru/ and all the feature of the chip is supported by this library. So it will be easy for you to add those features.

TDA7419 Features:

● Input Multiplexer
– QD / SE: quasi-differential stereo inputs, with selectable single-ended mode
– SE1: stereo single-ended input
– SE2: stereo single-ended input
– SE3 / AC2IN: stereo single-ended input / HPF filter input
– In-Gain 0 to 15dB, 1dB steps
– internal offset-cancellation (AutoZero)
– separate second source-selector
● Mixing stage
– mixable to front speaker-outputs
● Loudness
– 2nd order frequency response
– programmable center frequency (400Hz/800Hz/2400Hz)
– 15 dB with 1 dB steps
– selectable low and high frequency boost
– selectable flat-mode (constant attenuation)
● Volume
– +15 dB to -79 dB with 1 dB step resolution
– soft-step control with programmable blend times
● Bass
– 2nd order frequency response
– center frequency programmable in 4 steps (60 Hz/80 Hz/100 Hz/200 Hz)
– Q programmable 1.0/1.25/1.5/2.0
– DC gain programmable
– -15 to 15 dB range with 1 dB resolution
● Middle
– 2nd order frequency response
– center frequency programmable in 4 steps (500Hz/1KHz/1.5KHz/2.5KHz)
– Q programmable 0.5/0.75/1.0/1.25
– DC gain programmable
– -15 to 15dB range with 1dB resolution
● Treble
– 2nd order frequency response
– center frequency programmable in 4 steps (10KHz/12.5KHz/15KHz/17.5KHz)
– -15 to 15dB range with 1dB resolution
● Spectrum analyzer
– seven bandpass filters
– 2nd order frequency response
– programmable Q factor for different visual appearance
– analog output
– controlled by external serial clock
● Speaker
– 4 independent soft-step speaker controls, +15dB to -79dB with 1dB steps
– Independent programmable mix input with 50% mixing ratio for front speakers
– direct mute
● Subwoofer
– 2nd order low pass filter with programmable cut off frequency
– single-ended mono output independent soft-step level control, +15dB to -79dB
with 1dB steps
● Mute functions
– direct mute
– digitally controlled Soft-mute with 3 programmable mutetimes(
0.48ms/0.96ms/123ms)
● Effect
– gain effect, or high pass effect with fixed external components

Schematic

This project is consists of 2 boards, the control board has the arduino nano, 1602 LCD and a rotary encoder switch.

Prototype

This prototype boards can be purchased here:

Tataylino Store (only available in Philippines)

DEMO VIDEO

DOWNLOADS

You can download the arduino code on the download page here:

Update: April 20, 2021 – the code only features basic functions below:

  • input selection
  • bass control
  • mid control
  • treble control
  • spectrum analyzer display

I will update this page when new features have been added to the code. So please subscribe to our youtube channel.