1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

volume/output power control using a knob in TAS5424C-Q1

Discussion in 'Automotive Electronics' started by arunkumar413, Jun 25, 2017.

  1. arunkumar413

    arunkumar413 New Member

    Joined:
    Nov 24, 2014
    Messages:
    29
    Likes:
    0
    Hi Folks,

    It seems that the gain in the IC TAS5424C-Q1 can be controlled using I2C protocol. But I'd like to keep it simple using a hardware (rotatory knob). Is it possible to control the volume and output power using hardware control such as a rotatory knob generally used in car head units.

    Thanks,
    Arun
     
  2. Les Jones

    Les Jones Well-Known Member

    Joined:
    May 15, 2015
    Messages:
    1,452
    Likes:
    189
    Location:
    Lancashire UK
    You could use a potentiometer connected to the ADC input of a microcontroller which could convert the voltage reading into I2C data to control the gain of the TAS6424C-Q1 A PIC12F1840 would probably do the job.

    Les.
     
  3. arunkumar413

    arunkumar413 New Member

    Joined:
    Nov 24, 2014
    Messages:
    29
    Likes:
    0
    The IC has analog inputs. How about using a resistor divider network to control the voltage to the analog input pins. Or vary the supply the voltage?
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,294
    Likes:
    647
    Location:
    Derbyshire, UK
    ONLINE

    There's no need to use the analogue inputs, simply use a microcontroller to read a rotary encoder (as used in car radios) and control the I2C bus from the microcontroller.

    You 'could' use an analogue pot (directly across the supply lines, with a series resistor from slider to analogue input), but an encoder is 'nicer' :D
     
  6. Les Jones

    Les Jones Well-Known Member

    Joined:
    May 15, 2015
    Messages:
    1,452
    Likes:
    189
    Location:
    Lancashire UK
    I had not looked at the data sheet before my first reply. After looking at the data sheet it looks like the I2C control is just to select 4 preset gain values. (12, 20, 26 or 32 db) This would not be enough to use for a volume control. The only analogue inputs I can see are the audio inputs so you could just use a normal dual log potentiometer for volume control. Trying to control the gain by adjusting the supply voltage is a bad idea. It would result in clipping which would cause distortion.

    Les.
     
  7. arunkumar413

    arunkumar413 New Member

    Joined:
    Nov 24, 2014
    Messages:
    29
    Likes:
    0
    The audio input would be from a 3.5 mm TRSS jack of a mobile. Will the potentiometer solution be reliable in this scenario. I don't think there is a graph in the datasheet to show the analog input and output voltage. Also if we go with the analog control would be internal gain in the register set to by default?
     

Share This Page