Hot!an Audio Amplifier with PIC

Author
DarioG
Allmächtig.
  • Total Posts : 54081
  • Reward points : 0
  • Joined: 2006/02/25 08:58:22
  • Location: Oesterreich
  • 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! 

GENOVA :D :D ! GODO
#1

2 Replies Related Threads

    DarioG
    Allmächtig.
    • Total Posts : 54081
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: Oesterreich
    • Status: offline
    Re: an Audio Amplifier with PIC 2017/11/14 10:35:26 (permalink)

    GENOVA :D :D ! GODO
    #2
    DarioG
    Allmächtig.
    • Total Posts : 54081
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: Oesterreich
    • 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)

    GENOVA :D :D ! GODO
    #3
    Jump to:
    © 2018 APG vNext Commercial Version 4.5