DSPs, but from back in the 2005 era, have their own old-school vibe. Honestly, I am not amazed because we(creators) almost ran a series on it, from starting back from PT2258, PT2315, and now I have cam with PT2314 firmware and hardware. The PT series is very famous, and we want to cover all of them because there are very few resources, some are selling their libraries, and this one came with a single Arduino code. The second problem I found with most online resources is that the front-end circuitry is very intensive, so I moved everything to an HTML script. I handled the controls on a web server instead of using volume knobs for different things. Which will reduce the overhead cost of front end electronics.

You open a webpage, adjust volume, bass, treble, switch inputs, change gain, and everything is accessible from your phone. The settings are saved in EEPROM, so even after a power cycle, the last configuration stays the same. I have designed a dedicated PCB using this idea, with an onboard ESP8266. All the files for this project are open-sourced and can be downloaded directly from GitHub. I had fabricated it using the JLCPCB's PCB manufacturing service for just $2. All the designed files are attached here with the code and audio testing tutorial below.

What is PT2314?

The PT2314 is a 4-channel audio processor IC from Princeton Technology. It is pin-compatible with the TDA7314 from ST Microelectronics. The IC handles all audio processing internally, including volume, bass, treble, speaker attenuation, input selection, and loudness, over the I2C bus. Here is what makes it interesting compared to the PT2315:

  • 4 stereo input channels
  • Input gain control: 4 levels (0, +3.75, +7.5, +11.25 dB)
  • Volume range: 0 to -78.75 dB with 1.25 dB fine steps and 10 dB coarse steps
  • Bass and Treble: -14 to +14 dB in 2 dB steps
  • Independent speaker attenuators: L and R attenuation 0 to -38.75 dB

The IC operates at a 7.5V to 9V supply and communicates over I2C at address 0x44 (7-bit). It needs minimal external components, just a few coupling capacitors on the audio paths and pull-up resistors on the I2C lines. See the schematics section for more info.

Components Required

Here is the list of components I used for this build. All designators match my EasyEDA schematic:

  • PT2314E audio processor IC (DIP-28)
  • ESP-12E (ESP8266 module)
  • AMS1117-3.3 voltage regulator
  • 2.2 uF electrolytic (audio input coupling)
  • 10 uF electrolytic (input filtering, reference, output coupling)
  • 100 nF ceramic (bass/loudness network, decoupling)
  • 2.2 nF ceramic (treble filter)
  • 2.2K (audio input series resistors)
  • 5.6K (bass feedback network)
  • 10K (ESP-12E pull-ups)
  • 6-pin programming header (RX, TX, RST, IO0, 3V3, GND)
  • 2-pin power connector (5V + GND)
  • 3-pin output connector (LOUT, ROUT, GND)
  • 3-pin input connector (LIN, RIN, GND)

Circuit Diagram and Schematic Walkthrough

The board runs on a single 9V DC supply and for the ESP8266 2e need 3.3V, which the onboard LDO converts down. There are a few decoupling capacitors for power rails. The PT2314E has two ground pins: Pin 2 (AGND) for the analog section and Pin 25 (DGND), which are then joined together using a single connection.

In the PCB layout, I route them carefully to avoid digital noise coupling into the analog audio path. To keep the ESP in programming mode, pull-up resistors are used to pull the pins high. You can find a full tutorial on programming the ESP8266 using an external controller. In the input-output section, proper filtering is implemented using a combination of resistors and capacitors. I used the same application circuit recommended in the datasheet, just added some features for the web server, so nothing fancy.

Tone Control Network

The PT2314E has external filter components for the bass and treble processing. For the treble network we have, two 2.2 nF ceramic capacitors, TREB_L and TREB_R, both go to ground, and these set the treble shelving filter frequency. For the bass here, a feedback...

Read more »