uHAT for Raspberry Pi with NXP SGTL5000 Codec, two Rotary Encoders, user LED and socker for OLED display.
BassCrab-uHAT is an expansion board for Raspberry Pi Zero, but it will work fine with other Rasbperry Pi versions (2, 3A, 3B, 4) and with ASUS ThinkerBoard too. It's been designed following the mechanical specification for uHAT form factor.
Together with Volumio, it will turn your Raspberry Pi into a tiny but powerful digital audio player/streamer.
BassCrab-uHAT is powered by the following peripherals:
- 1x Audio Codec SGTL5000 from NXP
- 1x Headphone stereo 3.5 mm jack
- 1x Line-out stereo 3.5 mm jack
- 2x Rotary Encoder with push-button
- 1x Ice-Blue LED
- 1x Socket for 0.96" OLED display
The onboard Audio Codec is fully supported in the latest RaspiOS and Volumio images. To enable it on RaspiOS, please add the following string to the config.txt file:
dtoverlay=fe-pi-audio
The Rotary Encoders with push-buttons can be used to control the audio playback (play, pause, volume-up, volume-down, previous song, next song, etc.). The onboard LED can be used as an indicator for SD-Card activity or playback status, as an example.
Full documentation is available on this public Github repository, including BOM and SMD positioning files, for automated assembly. Please feel free to download gerber files and documentation, to order PCBs and to copy/improve the design, if you like!
Samples are currently available for purchase on the PCBWay Bazaar Store. Those assembled PCBs are ready to be used, no soldering skills are required!
Download the latest Volumio 3 image from the official website, than flash the image on a SD-card, as usual. Please refer to the Quickstart guide for the initial setup of your Volumio-based system.
In the third tab of the initial setup wizard, please enable I2S DAC and select Fe-Pi Audio from the dropdown list
When your system is up and running, please navigate in the Playback Option setting page, and enable the resampling as shown in the following picture
As a last step for the initial configuration of your Volumio system, please enable SSH following the official procedure. SSH is required to enable both Headphone and Line-out and to adjust their signal level.
After enabling SSH, please login into your Volumio system and type the following command:
alsamixer
Right after that, press F6, select Fe-Pi Audio and press ENTER
Use the left/right arrows to select the parameter to be changed, up/down arrows to adjust the value, M key to toggle mute/unmute of the resource. Please make sure to apply the settings as shown in the following picture:
Pay attention to the two letters below the level setting: with MM the resource is muted, with OO the resource is active.
BassCrab-uHAT features an Ice-Blue LED. It is connected to GPIO26 of the Raspberry Pi (Pin 37).
Add the following line to userconfig.txt (for Volumio) or to config.txt (for RaspiOS)
dtparam=act_led_gpio=26
The most common plugins to handle the LED is GPIO_Control. Unfortunately it is not available yet on the Volumio Plugin Store, but it can be manually installed with SSH, with the sequence of the following commands:
sudo apt update
sudo apt -y install build-essential
cd ~
wget http://plugins.volumio.org/plugins/volumio/armhf/system_controller/gpio_control/gpio_control.zip
mkdir ./gpio_control
miniunzip gpio_control.zip -d ./gpio_control
cd gpio_control
volumio plugin install
cd /data/plugins/system_controller/gpio_control/
npm install --save [email protected]
npm install --save [email protected]
When the plugin is installed and enabled, those settings should be applied, for either system status or playback status: