Raspberry Pi YouTube Boombox
2021-03-23 | By Adafruit Industries
License: See Original Project 3D Printing
Courtesy of Adafruit
By Ruiz Brothers
Overview
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.
Parts
- Raspberry Pi 4 Model B - 4 GB RAM
- 16GB Card with NOOBS 3.1 for Raspberry Pi Computers including 4
- Speaker - 40mm Diameter - 4 Ohm 3 Watt
- JST PH 2-Pin Cable - Female Connector 100mm
- Full Size Wireless Keyboard with Trackpad
3D Printing
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
Assemble
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.
Speaker
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 Raspberry Pi
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:
Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.
Visit TechForum