View previous topic :: View next topic |
Author |
Message |
programmista123
Joined: 31 Jan 2018 Posts: 140
|
Posted: Mon Jan 16, 2023 4:50 pm Post subject: Audio amplifier with DSP |
|
|
Hello!
I would like to share with you the latest project - 6 channels audio amplifier with DSP.
What push me to create it?
Some days ago I wanted to turn on amplifier. Relays were off and I was able to hear a quiet hiss. I looked into PCB and I sow water which was gurgles
Yes... water from flowers goes into main board and create corrosion.
After that I decided to create new version with integrated amplifier.
Key ICs:
1. DSP - ADAU1401
2. AMP - BD28623MUV
3. uC - AVR128DB64
Main functionality is the same - active crossover (graphic example was shown in other topic: Audio analyzer, which is still ongoing).
Power supply: the plan is to have device which can be powered from various sources - mainly from laptop's power adapters: 19.5V and with USB C Power Delivery: 15 or 20V.
Audio sources: I have 3 inputs. One for Bluetooth device (Ugreen CM106 - it has separate power supply and audio so this is pros.) and two for other devices like TV or PC. Additionally TV/PC inputs are with opto-coupler so I can connect it to the USB port and turn ON/OFF amplifier at the same time.
Control: RC5 only + LCD (SSD1309 or HD44780)
PCB was created very fast - just to have it before Chinese New Year, as proof of concept. I spend the most % of time with routing digital signals to audio amplifiers from DSP.
Second version is under creation with better placement and to improve amp's thermal performance (as you can see, very near thermal-dam is present).
I need to implement from SW point of view: LCD, ADCs reads and some other functions to be "user friendly".
I'll keep you updated
Best regards,
Przemek |
|
Back to top |
|
|
programmista123
Joined: 31 Jan 2018 Posts: 140
|
Posted: Fri Mar 03, 2023 8:53 pm Post subject: |
|
|
Hello,
Update
1. Because I didn't received answer regarding OLED lib TWI1 alternative I made re-reroute. SSD1309 works fine now
2. Thermal performance was improved.
3. Main DCDC converter was changed.
4. I have problem with RC5 - IR is receiving NEC UPD6121 (TV) and it cause wrong pure RC5 decode. AVRx restart is needed.
5. I need to implement some HW changes to avoid for example pop-noise during power off/under-voltage.
6. Pads improvement for hands-soldering.
7. I hope, 3rd version will be the final one
Have a nice weekend!
Przemek
Last edited by programmista123 on Sat Mar 04, 2023 7:37 am; edited 1 time in total |
|
Back to top |
|
|
JC
Joined: 15 Dec 2007 Posts: 585 Location: Cleveland, OH
|
Posted: Fri Mar 03, 2023 11:28 pm Post subject: |
|
|
Wow!
What a great project.
Nice job on your PCBs!
JC |
|
Back to top |
|
|
programmista123
Joined: 31 Jan 2018 Posts: 140
|
Posted: Sat Mar 04, 2023 8:36 pm Post subject: |
|
|
Thanks JC!
I'm doing some measurements right now to make sure that everything is working OK in current version.
If OK - v3 will be soon
Regards,
Przemek |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Sun Mar 05, 2023 9:34 am Post subject: |
|
|
so you can listen again to "water music" from Händel without spilling your drink !
JP _________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
programmista123
Joined: 31 Jan 2018 Posts: 140
|
Posted: Sat Apr 01, 2023 8:16 pm Post subject: |
|
|
Hello,
This project is in 60% of done. One week ago I received PCBs for 3dr version. It looks like 90% of functionality is working fine
In this version:
- HW voltage monitor for main power supply was added and connected to AMP's mute,
- other HW/SW issues were corrected,
- I've implemented SW "safety" features for example: over/under voltages for DSP's voltage LDOs, temperatures, overcurrent.
On the left: BDAmp v2, BDAmp v3 and spectrum analyzer v2.
What next?
Increasing price for parts make me maddens. I bought from Ali DSPs, but they looks not valid. 2 mV on the ADC gives me full scale of sound (normal: 2V).
So I said in my mind - ok, keep calm and think about other possibilities.
For next project I'll use MA2304DNS - D-Class amplifier with build-in DSP.
AVR DB series will be still in use with Bascom
All the best,
Przemek |
|
Back to top |
|
|
programmista123
Joined: 31 Jan 2018 Posts: 140
|
Posted: Fri Jun 16, 2023 5:17 pm Post subject: |
|
|
Hello All!
After long break, after "one pager in .ppt with cons and pros" (joking ) I declined first project based on 3 main ICs: ADAU1401, BD28623MUV and AVR128DB64.
I've decided to moved to Infineon MA2304DNS, PCM9211 and AVR128DB32. Bascom is still in use of course
There will be 4 HW version (more info in the near future )
I'm working with 1st HW version right now and it's look very promising. 3x inputs (AUX, Digital: Toslink and Coax) and amplifiers are working.
Electronics SUDOKU:
Working device.
I'm focused on LCD and functions right now.
In next HW version, ".csv configuration file + AVR and I2C." topic will be alive.
Have a nice weekend,
Przemek
PS. Audio analyzer goes into 2nd plan |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Sat Jun 17, 2023 12:08 pm Post subject: |
|
|
nice to see the update
electronics sudoko, that is indeed how it looks. i love sudoko to become calm.
yes there is always a next revision. _________________ Mark |
|
Back to top |
|
|
programmista123
Joined: 31 Jan 2018 Posts: 140
|
Posted: Wed Jul 26, 2023 1:57 pm Post subject: |
|
|
Hello,
I'm sending to you small updates
1. LCD's font was changed for better visibility.
Each amplifier's channel gain can be set separately.
2. There will be 4 HW confg. based on attached amplifiers (unique I2C addresses):
a) stereo amplifier (without DSP)
b) stereo + subwoofers (with DSP)
c) 2 way digital crossover (with DSP)
d) 3 way digital crossover (with DSP)
3. OLED PCB.
I'm waiting for new PCB for OLED.
I've created new one with better physical dimensions (better from enclosure point of view) and correct power sequence (based on SSD 1309 datasheet).
Regards,
Przemek |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Fri Jul 28, 2023 2:52 pm Post subject: |
|
|
looks like good progress _________________ Mark |
|
Back to top |
|
|
programmista123
Joined: 31 Jan 2018 Posts: 140
|
Posted: Sat Jul 29, 2023 3:45 pm Post subject: |
|
|
You're right
I'm working with DSP SW and storage today.
What is worth to mention, current consumption is ~50 mA, 19V (4 amplifiers channels with speakers, LCD ON, "normal" sound level).
With old design it was 210 mA.
Have a good weekend!
Przemek |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5913 Location: Holland
|
Posted: Mon Jul 31, 2023 7:24 pm Post subject: |
|
|
that is a huge improvement in power consumption.
one warning about OLED : they can burn in when they show the same info for a long period of time. either auto dim, or create some sort of screen saver to avoid this. _________________ Mark |
|
Back to top |
|
|
programmista123
Joined: 31 Jan 2018 Posts: 140
|
Posted: Mon Sep 11, 2023 11:48 am Post subject: |
|
|
Hello,
Small update
1. I received prototype of front and back panel to check dimensions before final enclosure - OK.
2. OLED and IR will be covered by smoked plexiglass.
3. SW need to be re-write to be able to handle ideas that came to mind (will describe when done).
Regarding OLED - I'm thinking of some kind of refreshing (all pixels on, wait, all off, wait, repeat few times) after x or xx power cycles.
Regards,
Przemek |
|
Back to top |
|
|
Duval JP
Joined: 22 Jun 2004 Posts: 1161 Location: France
|
Posted: Mon Sep 11, 2023 12:47 pm Post subject: |
|
|
hi
for the display I use Nextion (color tactile and 2wires only ) but maybe you can use my method to save the screen
I use a DFrobot SEN0171 ir detector, I remove the plastic cap and
I leave a 2mm hole in my front panel ,
so the screen is only lit for 1 to 10 minutes when someone comes near my object.
JP _________________ pleasure to learn, to teach, to create |
|
Back to top |
|
|
programmista123
Joined: 31 Jan 2018 Posts: 140
|
Posted: Mon Sep 11, 2023 1:04 pm Post subject: |
|
|
Thanks JP for idea
Unfortunately in that case it will not fly I need to see volume, source from a distance. Probably I'll set a timer and wake-up from RC5 interrupt or when internal error occur.
I have night mode implemented right now but who will remember during day to turn it on to save OLED? No one I guess
Regards,
Przemek |
|
Back to top |
|
|
|