In this project we’re building a Raspberry Pi powered YouTube lofi radio player with Adafruit’s BrainCraft HAT!

We designed and 3d printed this case to house the electronics and features a built-in speaker and display!


The Pi is set up in kiosk mode and automatically plays any YouTube music stream. This uses digital I2S, so it's got high quality stereo output!

The BrainCraft HAT has everything you need to make an all-in-one YouTube player.

The built in joystick can be used to change the stations and adjust the volume.

This lets you quickly switch between different YouTube channels without having to use a keyboard or mouse.

You can also pause and play the video by pressing the button next to the joystick.

The case has access to all of the ports so you can get to the headphone jack if you wanna hook it up to a bigger sound system.

To keep the Pi nice and cool, we added holes on the side of the case for better airflow.


The Raspberry Pi 4 Model B is the newest Raspberry Pi computer made, and the Pi Foundation knows you can always make a good thing better! And what could make the Pi 4 better...
Out of Stock
NOOBS 3.1 is the fastest way to have a variety of operating systems on your Pi. Available on a 16G card, you can now boot multiple OS's such as Raspbian, Pidora, RaspBMC,...
In Stock
Hear the good news! This speaker is a great addition to any audio project where you need a 4 Ohm impedance and 3W or less of power.At 40mm diameter it...
In Stock
Red and black tinned wires with a 2-pin JST PH connector on the end. 4" / 100mm long. Matches up nicely with our Lipoly chargers!
In Stock
The quick brown fox jumps over the lazy dog.  The quick brown fox jumps over the lazy dog.  The quick brown fox - sorry! We were practicing our typing ON THIS AWESOME...
In Stock

Parts List

STL files for 3D printing are oriented to print "as-is" on FDM style machines. Parts are designed to 3D print without any support material. Original design source may be downloaded using the links below.

  • BrainTube-screen.stl
  • BrainTube-case.stl
  • BrainTube-tripod.stl
  • BrainTube-speaker-grill.stl
  • BrainTube-speaker-cone.stl
  • BrainTube-speaker-ring.stl

Slicing Parts

Slice with settings for PLA material. The parts were sliced using CURA using the slice settings below.

  • PLA filament 215c extruder
  • 0.2 layer height
  • 10% gyroid infill
  • 60mm/s print speed
  • 60c heated bed

Press Fit Speaker Holder

The speaker ring part fits into the cutout on the BrainTube-Case part.

Speaker Grill

Fit the Speaker-Grill part into the Speaker-Cone part.

Add Raspberry Pi to Case

Place the Pi over the standoffs and align the board with the port openings on the case. 


Solder the speaker wires to the JST female connector. Use heat shrink to insulate the connections 

Screen Case

The front cover is fitted over the HAT with the speaker cable fitted through the slit on the HDMI port opening.

Add gaffers tape or kapton tape to insulate the speaker magnet. The Speaker press fits into the ring.

Align the speaker cone over the speaker wires and then press fit over the speaker.

Optional Tripod Install

Use three M3x8 screws and a 3/8" to 1/4" Adapter Screw to attach any tripod compatible mount.

Set up SD card

Attach an HDMI monitor, like our 3D Printed portal monitor to set up the Pi OS.

Use the official Raspberry Pi Imager to burn the latest OS on a SD card. Download the imager below:

Enable SSH

After all updates are complete, enable SSH. Follow the step here for instructions:

Install Blinka Libraries 

Follow the step below to set up the Blinka libraries:

Configure Audio, Fan and Display

Follow the links below to set up the Voicecard, Fan Service and Display module software:

Check these steps if you encounter audio or display issues:

Display Module Troubleshooting

Install Kiosk-mode Script

Use the kiosk-mode script to enable fullscreen video playback:


Edit Playlist 

Follow these steps to add your own streams:

This guide was first published on Jan 27, 2021. It was last updated on Jan 27, 2021.