Git Product home page Git Product logo

basscrab-uhat's Introduction

BassCrab-uHAT

uHAT for Raspberry Pi with NXP SGTL5000 Codec, two Rotary Encoders, user LED and socker for OLED display.

BassCrab-uHAT

Project description

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!

Front

Back

Availability

Samples are currently available for purchase on the PCBWay Bazaar Store. Those assembled PCBs are ready to be used, no soldering skills are required!

Volumio Setup

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 Fe-Pi

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 Resampling

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

Alsamixer

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:

Alsamixer

Pay attention to the two letters below the level setting: with MM the resource is muted, with OO the resource is active.

User LED Setup

BassCrab-uHAT features an Ice-Blue LED. It is connected to GPIO26 of the Raspberry Pi (Pin 37).

User LED as a SD-Card Activity indicator

Add the following line to userconfig.txt (for Volumio) or to config.txt (for RaspiOS)

dtparam=act_led_gpio=26
User LED as a System or Playback Status indicator

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:

GPIO-control_system

GPIO-control_system

basscrab-uhat's People

Contributors

darmur avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.