an Audio Amplifier with PIC

Author
DarioG
leaving this planet
  • Total Posts : 53043
  • Reward points : 0
  • Joined: 2006/02/25 08:58:22
  • Location: porcodioland
  • Status: online
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! 

Dario Greggio
--
how does it feel, never having been loved? as life fades away, day after day, on this planet made of s h i t...

#1

2 Replies Related Threads

    DarioG
    leaving this planet
    • Total Posts : 53043
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: porcodioland
    • Status: online
    Re: an Audio Amplifier with PIC 2017/11/14 10:35:26 (permalink)

    Dario Greggio
    --
    how does it feel, never having been loved? as life fades away, day after day, on this planet made of s h i t...

    #2
    DarioG
    leaving this planet
    • Total Posts : 53043
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: porcodioland
    • Status: online
    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)

    Dario Greggio
    --
    how does it feel, never having been loved? as life fades away, day after day, on this planet made of s h i t...

    #3
    Jump to:
    © 2017 APG vNext Commercial Version 4.5