Hot!an Audio Amplifier with PIC

Author
DarioG
humans, die, please
  • Total Posts : 53216
  • Reward points : 0
  • Joined: 2006/02/25 08:58:22
  • Location: porcodioland
  • Status: offline
2017/11/14 10:35:19 (permalink)
0

an Audio Amplifier with PIC

(going on with some funny applications...)

Using a PIC24 or a dsPIC, grab analog input from a Microphone, convert it (22/44 Ksamples/sec) into numbers, scale for PWM and send them to a speaker!

Several types of PICs can be used: a 70MIPS device with remappable pins is best, but not needed.
Using a 140MHz device we set PWM at 35KHz and drive the 2 PWM outputs in order to achieve the "power": keeping in mind the average limit of 20mA per pin/200mA maximum total, in theory up to 10+10 pins could be used - and deliver 3W over a 8ohm speaker.
4+4 output would also be good. At a very basic level, 1+1 pins are a starting point for this demo.

Of course the signal coming from Microphone (or other source) can easily be scaled or filtered in code.

Have (more) fun! 

if only every single human would die...

italy collapses!!! :D

#1

2 Replies Related Threads

    DarioG
    humans, die, please
    • Total Posts : 53216
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: porcodioland
    • Status: offline
    Re: an Audio Amplifier with PIC 2017/11/14 10:35:26 (permalink)

    if only every single human would die...

    italy collapses!!! :D

    #2
    DarioG
    humans, die, please
    • Total Posts : 53216
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: porcodioland
    • Status: offline
    Re: an Audio Amplifier with PIC 2017/11/14 11:53:04 (permalink)
    0
    Some notes:
    of course you can use external buffers (darlington, 7404 or 4049) in order to increase the power.

    I noticed I made a mistake: 200mA over 8ohm make only 0.32W

    Another mistake: *all* of the current is coming from the PIC, so only 10 pins can be used (not 20)

    if only every single human would die...

    italy collapses!!! :D

    #3
    Jump to:
    © 2018 APG vNext Trial Version 4.5