Why is it people are saying they need to add a USB sound card?
I just played an AVI file with omxplayer and BLAM there was sound coming out of my monitor speakers!
Sound over hdmi wasn't removed, only analoguesolar3000 wrote:Why is it people are saying they need to add a USB sound card?
I just played an AVI file with omxplayer and BLAM there was sound coming out of my monitor speakers!
No idea. I don't think analogue is available at all, but there are many posts about using RC circuits on the GPIO pins in alt modes to getv PWM sound out.solar3000 wrote:do you know the solder points?
Thank you! ^_^mahjongg wrote:there are no solder points, but what can be done is to solder some components to a few GPIO pins to turn a PWM signal into an analog signal. you can redirect the PWM signal that originally went into signals going to the components for the analog audio port and redirect these PWM signals so they come out of GPIO header pins.
in fact the people at adafruit have a page describing the details, here:
https://learn.adafruit.com/introducing- ... io-outputs
it has this part of the B schematics, with the conversion hardware from PWM to audio:
the diodes are there so that the GPIO's are protected against voltages < 0V or > 3.3V, which as we should know can cause latch up damage in the SoC.
not only do they give you a schematic of the conversion hardware, but also details on how to change the software settings for it.
This is the schematic used by the B, the B+ (and 2B) actually first buffered the PWM signal with a pair of buffers running from its own very clean 2.5V power, to get rid of the noise on the 3V3 PWM signal, so on a B+ it sounds a bit better, but for without the buffers it will also work fine, especially as on the zero the 3V3 power is probably much cleaner than it was on a B.
KenT wrote:What are the two diodes per channel for. I wonder if they protect the outputs from spikes when plugging in the jack or mis-wiring, and can be missed out when hard wiring to an amplifier.
the diodes are there so that the GPIO's are protected against voltages < 0V or > 3.3V, which as we should know can cause latch up damage in the SoC.
Wouldn't the protection diodes be better placed upstream of the filter? Or at least upstream of the 10uF DC-blocking capacitors. As they are shown they will not protect the GPIOs against an oscillating signal applied to the outputs: the diodes will limit it to about +3.9V and -0.6V, but after the 10uF capacitors this becomes +/-2.3V. +2.3V is ok, but -2.3V is not.mahjongg wrote:it has this part of the B schematics, with the conversion hardware from PWM to audio:
the diodes are there so that the GPIO's are protected against voltages < 0V or > 3.3V, which as we should know can cause latch up damage in the SoC.
Either a cheap (<£2) USB soundcard or the £12 pHAT DAC will give you a better sound quality without taking up an enormous amount of space. but you will still need an Amp and speakers.andybiker wrote:Maybe if there is a future revision then the missing resistors and capacitors could be added to the board.
Even if the outputs came to solder pads then this would be enough.
My own application for one (as soon as I can get my hands on one!) is to make a neater internet radio for my wife.
The Pi Zero will fit beautifully behind the display giving a very neat package - I just need to add the missing filter components.
Beautiful product anyway!
I have tried the cheap USB soundcards and they do work well.BMS Doug wrote:Either a cheap (<£2) USB soundcard or the £12 pHAT DAC will give you a better sound quality without taking up an enormous amount of space. but you will still need an Amp and speakers.andybiker wrote:Maybe if there is a future revision then the missing resistors and capacitors could be added to the board.
Even if the outputs came to solder pads then this would be enough.
My own application for one (as soon as I can get my hands on one!) is to make a neater internet radio for my wife.
The Pi Zero will fit beautifully behind the display giving a very neat package - I just need to add the missing filter components.
Beautiful product anyway!
It would be nice but, as the board is designed for lowest cost, raw audio PWM channels can be routed to accessible GPIO pins, it would seem unlikely to happen.andybiker wrote:Maybe if there is a future revision then the missing resistors and capacitors could be added to the board.
That's exactly what I'm doing, this feeds straight into an amplifier.andybiker wrote:The diodes are there to protect the GPIO pin and the CPU itself.
You can leave these out if connecting to an amplifier but it's your choice.