Skip to main content

Bluetooth Speaker TPA3118

 

 
When I was digging though the attic I found some speakers I wasn’t using, and it occurred to me I could turn them into Bluetooth speakers for my bedroom. I believe they originally came with the sub-woofer I converted to a powered speaker in a previous build. I purchased The XH-M314 Bluetooth board off Aliexpress for the job. I purchased this particular model since it had everything I needed all in one board, and the TPA3118 AMP chip was made by Texas Instruments, a manufacturer known for quality. I placed the module in the right speaker and used the original speaker connector to send the signal to left speaker so only need to drill holes for the power connector and switch. Then it was only a matter of soldering 6 wires to the board.



 
Unfortunately the board is way too load for my tastes. The gain is maxed out, it sounds like the lady that says Bluetooth Connected is yelling at me, and unfortunately maxing out the gain raises the noise floor, so there is a bit of a hum (That could probably be solved using better power adapter). If you like cranking your music the default configuration might work well for you. It’s possible to modify the gain by adjusting the 2 resistors connected to the gain pin. The gain pin also sets if this AMP works as a master or a bridged slave, so only the resistor values in the data sheet work. Personally I’m going to remove both resistors and replace the one that connects the gain pin to ground with 5.6K resistor, that should drop gain to 20 decibels, but that’s a project for another day. 

Comments

Popular posts from this blog

Force Phone View: Firefox Extension

If you’ve ever tried to browse the web in split-screen mode on a small laptop, you know the struggle. Most websites stubbornly cling to their "grid" or desktop layout, leaving you with tiny text and horizontally overflowing content. Force Phone View is a Firefox extension designed to fix exactly that. By tricking websites into thinking you're on a mobile device, it forces them to deliver a clean, column-based mobile layout that fits perfectly into narrow windows. Key Features Mobile Spoofing : Automatically sends an Android User-Agent to ensure the site delivers its mobile-optimized version. Width Constraint : Constrains the page viewport to 720 pixels , a width that reliably triggers column views instead of desktop grids. One-Tap Control : Toggle the effect on and off instantly using a simple button in the Firefox extension popup. Enhanced Readability : Perfect for researchers, students, or anyone multitasking in side...

Arduino FM Radio Transmitter

This following is re-post of an article from my old blog from 2008: This is an FM radio transmitter I made using an arduino and a NS73M FM Transmitter. I got the idea from an article on hack a day, if you’re interested in building your own you should check out Mike Yancey's page he built the one that made it on hackaday.com and he does a very thorough job of documenting how all the components hook together. I was impressed by the level of finishing he was able to achieve on the housing; it looked like a commercial product. I wanted to see if I could achieve a similar result, it’s amazing what you can do with some simple hand tools. If your patient with the file, you can make perfectly square holes in aluminum.   On my implementation I omitted the de-bouncing circuit that he has connected to his rotary encoder, and I used a two-line display. Since I omitted the de-bouncing circuit, I couldn’t use the original rotary encoder library since that code uses a hardware interrupt a...

NES game pad

 This is re-post of a blog post I did about 15 years back, I don't know if I would use an Attiny microcontroller if I was to do this today. The price of chips with built in USB is now cost comparable, and hardware USB is more reliable. But it's a fun project and if you happen to have a microcontroller compatible with V-USB it's worth a try.   I was digging though some of my old junk and found a box of old Nintendo stuff and I thought that it might be cool to turn one of the controllers into a USB game pad. Now you can buy a USB NES style gamepad, but what's the fun in that. So, I started looking though my box of electronic parts and found a couple of Atmel Attiny 85 micro controllers. Sweet a chance to try out the AVR-USB library . Now you would think you need a clock crystal to sync the micro controller with the USB, but the AVR-USB library has an algorithm to calibrate the internal oscillator to within +/- 1% accuracy. Which is fortunate because if we had to use a cl...