Menu

Pimoroni HyperPixel Mega Post!

Have you heard about...

HyperPixel!?!

So the other day on #BilgeTank, the pirates from Sheffield-on-the-sea released their latest add on board, HyperPixel.
It is an 800 x 480 resolution screen for all 40 pin GPIO models of Raspberry Pi that can display 60fps and has 18-bit colour depth! All for £40. So of course I bought one to play with.

Purpose of this blog post?

To show how an external USB sound card can be used with the Raspberry Pi and Hyper Pixel.

Plug in the USB sound card

I used the USB sound card with a Pi Zero W, so I required a micro USB adapter, of which I have plenty. Attaching the sound card was easy, then I attached the Hyper Pixel to the GPIO. (Note if you are using Hyper Pixel with other models of Pi, use the included GPIO extension and the rubber foot to secure the board)

Set the USB sound card to be default

To ensure the audio is sent to the USB device we need to go to the Audio Device Settings option in the Preferences menu.

Click on Controls to open a new menu. These are the inputs and outputs for the card. I selected the Speaker and clicked Close this then enabled me to control the audio levels for the speaker attached to the USB sound card.

That's it!!

Playing the video

With our audio sorted, lets open a Terminal and play a video which has been copied to the SD card. For example I played a trailer that I downloaded from Youtube (using Youtube-dl) but the screen resolution / ratio was not optimum for the HyperPixel, so I instructed omxplayer to plat the video in a window --win "0 0 799 479", with a resolution of 800 by 480. We then instruct omxplayer to use our external USB sound card, which we set as default, as the output -o alsa:hw:1,0.

omxplayer "Video Filename" --win "0 0 799 479" -o alsa:hw:1,0

End Result

I can play video using the rather lovely HyperPixel screen and have quality audio....

Now all I need to do is work this into a project! I'm thinking of trying out RetroPie for the Pi Zero and running SNES / Megadrive (Genesis) games on it...you know FOR SCIENCE!!

BONUS Content

Bluetooth Audio Test

This additional content was prompted by David Glaude

Alternative option for the sound might be BT, but sync with video might be challenging... Do you have the gear to test that?