Maker.io main logo

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!

 

radio_1

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.

Pi_2

Pi_3

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.

case_4

Parts

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

parts_5

Edit Design

Download STLs

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

slicing_6

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.

speaker_7

speaker_8

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.

addcase_9

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.

holder_10

holder_11

holder_12

Optional Tripod Install

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

tripod_13

tripod_14

tripod_15

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:

RaspberryPi_16

Download Raspberry Pi Imager

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:

setup_17

 

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

configure_18

Install Kiosk-mode Script

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

Edit Playlist

Follow these steps to add your own streams:

install_19

制造商零件编号 3968
SPEAKER 4OHM 3W TOP PORT
Adafruit Industries LLC
¥40.29
Details
制造商零件编号 261
CABLE ASSY JST PH 2PIN 4"
Adafruit Industries LLC
¥6.11
Details
制造商零件编号 2876
FULL SIZE WIRELESS KEYBOARD WITH
Adafruit Industries LLC
¥325.20
Details
制造商零件编号 4374
ADAFRUIT BRAINCRAFT HAT - MACHIN
Adafruit Industries LLC
¥378.74
Details
Add all DigiKey Parts to Cart
TechForum

Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.

Visit TechForum