Audio compression, pt2314 I2C speed

Hi guys :slight_smile:

I´m working on a project where I want to do a crude audio compression based on the audio level.
My goal is to have a module that can alter the bass (mid, treb) so that you can build a loud BT speaker with clear sound when you´re playing bass heavy songs. (Lowering the bass)

I´m thinking about using the MSGEQ7 for audio sampling, then the pt2314 audio processing chip to alter the sound, but i´m uncertain that the I2C bus (or the chip) is fast enough to make the changes before it´s too late.

I know it´s possible to ramp up the I2C speed from the arduino to 400k, but would that be sufficient, or would the I2C bus be too slow?

Any thoughts or help would be greatly appreciated! :slight_smile:

-Erik

Please post a schematics of how you plan to connect the chips to the Arduino, especially the MSGEQ7 as it outputs an analog signal and it's not really a sampler but an analyzer chip.

400kHz should be more than enough to control the PT2314 because a complete command sequence is less than 60 bits of information so theoretically you can update the values in the PT2314 more than 6000 times a second. I guess the calculation speed of the Arduino may be the limiting factor but that depends on what exactly you want to do with it.

I don't understand what exactly your device should do and how that should work from your description. Please describe in a bit more detail what you want to achieve.