Go Back   Home > Forums > Amplifiers > Class D

Class D Switching Power Amplifiers and Power D/A conversion

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 6th September 2012, 03:33 AM   #1
JZatopa is offline JZatopa  United States
diyAudio Member
 
Join Date: May 2003
Location: Chicago
Default A cool class D project

I was on hack a day and came upon this project.

70 watt amp uses an ATtiny - Hack a Day

Has anyone else here tried something similar. I wonder if you could do something similar with an arduino?
  Reply With Quote
Old 6th September 2012, 03:58 AM   #2
diyAudio Member
 
theAnonymous1's Avatar
 
Join Date: Feb 2004
Location: Anonymityville
10-bit ADC and open-loop; aside from the novelty and learning experience, it doesn't seem like a useful project.
__________________
"If you don't like funerals don't kick sand in Ninja's face." - Ninja
  Reply With Quote
Old 6th September 2012, 02:30 PM   #3
gmarsh is offline gmarsh  Canada
diyAudio Member
 
gmarsh's Avatar
 
Join Date: Apr 2004
Location: Halifax, NS, Canada
You won't be able to evolve this project into anything high-end, but it has countless other uses where you want something small and loud.

I have a replacement PCB design done for a Staples "easy button", which uses a Tiny25 from the same family, a M25P SPI flash and a TPA701 speaker amplifier. Fun little project made with about $5-6 worth of parts, and worth every cent to watch one of our finance guys freak out when their easy button starts playing Rick Astley.

The flash stores 31.25KHz/8-bit audio. The Tiny25 pulls the audio from the flash, linear-interpolates it up to 250KHz and sends it out a PWM channel. The TPA701 bandpasses the PWM signal back into analog, and fires it at the speaker. Thought about PWMing the speaker directly but the TPA701 method ended up being really simple, low power, etc.
  Reply With Quote
Old 6th September 2012, 03:53 PM   #4
JZatopa is offline JZatopa  United States
diyAudio Member
 
Join Date: May 2003
Location: Chicago
If you could find a microprocessor with a 16-24bit ADC I am sure you could bring this up to a high end project. You might also be able to add a nice ADC chip and feed the system a digital signal for a much higher level of sound quality.
  Reply With Quote
Old 6th September 2012, 04:35 PM   #5
gmarsh is offline gmarsh  Canada
diyAudio Member
 
gmarsh's Avatar
 
Join Date: Apr 2004
Location: Halifax, NS, Canada
Quote:
Originally Posted by DJNUBZ View Post
If you could find a microprocessor with a 16-24bit ADC I am sure you could bring this up to a high end project. You might also be able to add a nice ADC chip and feed the system a digital signal for a much higher level of sound quality.
Personally I'd use an audio ADC chip and/or ASRC for the audio input, and feed that into a FPGA which would generate the PWM signals from a clock of a couple hundred MHz or so. But the resulting project still won't have feedback, which means that ripple on the power supply will pass right on through to the output, and nonlinearities caused by the output stage won't be corrected.

I worked on an AM radio broadcast transmitter design which worked exactly this way, generating PWM directly with a FPGA. We sampled the the RF output of the transmitter with a high speed ADC and did full adaptive precorrection, and did a bunch of other tricks I can't mention, to make the thing work well. There's no reason you couldn't throw the same technology at an audio amp, but at the end of the day you'll end up with a ridiculously complicated, expensive solution that will likely still not perform as well as a simpler, "full analog" solution like a UcD amplifier.
  Reply With Quote
Old 6th September 2012, 04:47 PM   #6
diyAudio Member
 
Join Date: Nov 2005
I like how the "10 Hertz bass" sounds like an idling Chevy Nova.
  Reply With Quote
Old 19th September 2012, 02:20 AM   #7
JZatopa is offline JZatopa  United States
diyAudio Member
 
Join Date: May 2003
Location: Chicago
Quote:
Originally Posted by gmarsh View Post
Personally I'd use an audio ADC chip and/or ASRC for the audio input, and feed that into a FPGA which would generate the PWM signals from a clock of a couple hundred MHz or so. But the resulting project still won't have feedback, which means that ripple on the power supply will pass right on through to the output, and nonlinearities caused by the output stage won't be corrected.

I worked on an AM radio broadcast transmitter design which worked exactly this way, generating PWM directly with a FPGA. We sampled the the RF output of the transmitter with a high speed ADC and did full adaptive precorrection, and did a bunch of other tricks I can't mention, to make the thing work well. There's no reason you couldn't throw the same technology at an audio amp, but at the end of the day you'll end up with a ridiculously complicated, expensive solution that will likely still not perform as well as a simpler, "full analog" solution like a UcD amplifier.
Thats fine and dandy but your solution is much more complicated then just interfacing a 16bit or 24bit ADC chip with this project. I wonder if you could send spdif or i2S directly to the chip and bypass the problem all together.
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Thought I'd share a cool project flaevor Multi-Way 12 13th June 2005 08:45 PM
LANpipe = very cool project Sparhawk Digital Source 8 27th May 2003 08:31 PM


New To Site? Need Help?

All times are GMT. The time now is 08:28 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2