logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

Switch mode or Linear Supply for a 5 V PI and a 12 V Amplifier in a box?

201 13
Best answers

Can I power a Raspberry Pi and a 12 V audio amplifier from one 12 V supply in a box, and should I use a linear or switching supply/regulator?

Use a good regulated 12 V supply, then feed the Pi from 5 V through a simple linear regulator like a 7805/LM317 or a buck converter, but avoid cheap noisy no-name switchers if you care about hum or buzz in the audio amp [#21670200][#21670203] A 7805 is the quiet, simple option, but at 12 V in and about 500 mA out it will dissipate roughly 3.5 W, so it needs a heatsink [#21670203] The Pi can draw close to 1 A under full load, so size the 5 V regulator and wiring for that rather than assuming 500 mA is always enough [#21670204] For the amplifier, current demand is the real limit: a 25 W class-AB amp needs about 4 A and class-D about 3 A, so a 12 V 2 A supply only works if you keep the audio output to about 5–7 W peak [#21670203]
Generated by the language model.
ADVERTISEMENT
  • #1 21670195
    John Harris
    Anonymous  
  • ADVERTISEMENT
  • #2 21670196
    Mark Harrington
    Anonymous  
  • ADVERTISEMENT
  • #3 21670197
    Chuck Sydlo
    Anonymous  
  • #4 21670198
    Mark Harrington
    Anonymous  
  • #5 21670199
    Mark Harrington
    Anonymous  
  • #6 21670200
    Mark Nelson
    Anonymous  
  • #8 21670202
    John Harris
    Anonymous  
  • ADVERTISEMENT
  • #9 21670203
    DAVID CUTHBERT
    Anonymous  
  • ADVERTISEMENT
  • #10 21670204
    Mark Harrington
    Anonymous  
  • #11 21670205
    Mark Harrington
    Anonymous  
  • #12 21670206
    John Harris
    Anonymous  
  • #13 21670207
    Mark Harrington
    Anonymous  
  • #14 21670208
    Mark Harrington
    Anonymous  

Topic summary

✨ The discussion addresses powering a Raspberry Pi and a 15-25 W amplifier within a single enclosure, requiring 5 V for the Pi and 12 V for the amplifier. The proposed approach involves using a 12 V input supply feeding the amplifier directly, with a spur to the Pi via either a cheap LM2596 switching buck converter or a linear regulator such as the LM7805. Concerns about the reliability and noise of low-cost switching converters were raised, especially regarding their performance under load and potential electrical noise affecting audio quality. Salvaging power supplies from discarded electronics like old PC power supplies, DVD players, or laptop chargers was suggested as a cost-effective and reliable alternative, providing regulated 5 V and 12 V rails with sufficient current capacity. The LM7805 linear regulator, while less efficient and generating heat, offers simplicity, reliability, and low electrical noise, making it suitable for powering the Pi when combined with adequate heat sinking. A 12 V 2 A switched-mode power supply is recommended to handle the amplifier and Pi load, with the Pi drawing close to 1 A under full operation. Proper heat dissipation strategies, such as attaching the LM7805 to an aluminum enclosure panel, are important due to power dissipation in linear regulation. The discussion also notes that some audio amplifiers may be sensitive to switching noise, which can influence the choice between linear and switching regulators.
Generated by the language model.
ADVERTISEMENT