I have no experience with sound on the pi-top. Before I start, I would therefore like to ask some questions. A bluetooth speaker would certainly be an option, but as far as I can see the internal bluetooth of the rpi is not yet working without problems.
1. The pi-topPROTO board has a pin labelled SPDIF. I don't see any signal there, but as far as I understand the HDMI audio signal is SPDIF. Does anybody know anything about that pin?
2. What audio does the pi-top speaker use? The raspi analog audio output, or the hdmi audio?
3. What are the dimensions of the pi-top speaker? Will it fit in between a pi-topPROTO board and the Raspberry Pi? If yes, will it cover up the sd card slot? How does it sound if the cover is closed?
Unlike a laptop the Pi-Top v1 has simply neglected to bring the basic RPi connectons to the outside leaving a typically British heath-robinson affair. AKA a development environment. Not the sort of thing to win credibility points in Italy where style and comfort are everything. We just don't get it so we teach untidiness and live oblivious to untidiness. Our designs are not out there on the world stage and we just don't get it unless we pay some consultant a huge sum of money to tell us why. Meanwhile I guess we must get some kind of benefit because it would be insane otherwise. Use chewing-gum to hold the speaker on the back of the screen. That'll save on the expense of screws.
Difficult to say much about the pi-top speaker since it is not available yet but it would appear that it plugs directly into the pihub breakout socket just like the pitopPROTO board. It therefore takes its audio output from the SPDIF pin and is thus HDMI output (ie digital). At a guess I would think access to the sd slot would be difficult with both a speaker and PROTO board installed.
I created my own speaker set up working off the audio jack which is an analogue signal. The audio jack does not provide enough power to drive the speaker directly and so I needed to use a small amplifier as well. I bought the speaker and amplifier from Jaycar in Australia (think Maplin in the UK). The setup works well but as with any small speaker system the sound is a little tinny.
Hi Rene Yes my speaker is inside the pi-top. I have attached a jpeg photo for info. At the moment the amp which is inside a tic-tac box to the right of the speaker is powered from the pi-top hub breakout connection (5v and gnd). The speaker model number is AS3030 in the jaycar catalogue and is described as a full range speaker. I also got a simple case from jaycar with mounting posts that were exactly right for mounting the speaker. The case has a mounting lug which allowed the case to be mounted to the pitop mounting slot.
I agree that HDMI is the way to go but I am not how to do the signal processing. I am will be ordering a pitop speaker when it is available to compare the sound quality.
Sorry uploading a large jpeg photo does not seem to work so have converted it into pdf format to see if that will work. Are you using an oscilliscope to check the signal output from the SPDIF pin?
I agree with you, the audio jack is useful but HDMI provides a quality sound with the right speakers. I look forward with interest to see how you progress with using the SPDIF (Sony Phillips Digital Interface Format) for audio output. I am not sure if you have seen the pi-top youtube promo on the pi-top speakers, so I have attached a screen capture from the video for your interest. The white button on the right of screen in the top photo is to set up the speaker for right, left or mono sound.
BTW, thank you for your very useful software in Github
SPDIF AUDIO WORKS
Thanks for the pictures. I will order a pi-top speaker as a nice little internal speaker.
I just got the SPDIF to work using the latest Raspbian, but believe that this should also work on pi-topOS.
I had to do 2 things:
-/boot/config.txt: Uncomment #hdmi_drive=2. After a reboot, "noise" appeared on the SPDIF output.
-call omxplayer as follows: omxplayer -o hdmi filename
where filename is the name of the file to play
Just right-clicking on the speaker icon and selecting HDMI did not do the job. I guess omxplayer ignores this setting or needs to be called properly to look at it.
I hooked up the SPDIF pin of the pi-topPROTO to my little "Digital to Analog Audio Converter" from goobay (AVW 7), and the output of that device to an amplifier and speaker. The sound was very good. Of course one could also hook the SPDIF directly to a suitable amplifier with SPDIF input.
If I find the time I will do some tinkering and fix that all up for nice high quality audio player, maybe drilling a hole somewhere for a SPDIF output with the proper jack.
Great work, glad to know that you have sorted out how to get sound from HDMI. I have a look at the AVW7 of the net and it looks very impressive. You might also want to have a look at the HiFiBerry DAC+ as sold by ModMyPi as it fits directly on top of the Pi GPIO.