Control Jivelite by rotary encoders and buttons
Your display has no touch function and you want to control jivelite by hardware? Here is the solution.
How to control Jivelite by rotary encoders and pushbuttons.
Thanks to chill for the sbpd-script.sh
script (pirate-audio amp).
- You can simply control jivelite by adding rotary encoders and/or pushbuttons to the GPIO’s of your Raspberry Pi.
What we need
- A running piCorePlayer with Jivelite installed and a display connected to your Raspberry Pi
- Some pushbuttons (normally open)
- One or two rotary encoders (for this purpose, do not use encoders with power supply!)
- Some jumper wires (female to bare wires)
- Soldering iron, solder
- Some heat shrink tubes
Preparation
- The
sbpd-script.sh
handles with Jivelite key commands. Knowledge of these commands is an advantage.
Info
For a complete list of Jivelite key commands—see Jivelite key commands.
Autostart Squeezelite
If you have an USB DAC (or an amplifier with integrated DAC) correctly configured in pCP (by setting in squeezelite settings: USB AUDIO
as audio output device and hw:CARD=xxx
into output setting section - where xxx is the Linux device name of your DAC which you can see by expanding the same output section - ) you can get the problem described below.
Setting up the RemotePi Board
The RemotePi boards offers a shutdown button and infrared for connecting a remote (when running pCP as an LMS server, doing a proper shutdown is recommended). The shutdown button is also operated by the remote so you can turn the RPi on either with the button or using the remote.
To install on pCP requires some custom scripts to be installed. Please note that to install on top of a DAC you might need to change the pin for the remote. (This can be done on the board or in the wiring when you connect the board - I did the latter using jumper wires).
Setup the Argon One case for the Raspberry Pi 4B
Info
I assume that the Raspberry Pi 4B is installed inside the case and piCorePlayer (7.x) is installed. Also you know the IP address or the name of this RPi.
Build a player with the SmartiPi Touch case
This page shows various recipes for using the official touch display and SmartiPi cases from SmartiCase to make a really great looking player. There are 3 different players shown here and the various options and tradeoffs are discussed along with shopping lists.
My goal is simple, to build a player that I do not have to apologise for.
SmartiPi Touch Pro with RPi3B+ and JustBoom Digi Hat
This player uses the latest model, the SmartiPi Touch Pro. It is easily the best looking and most suitable case to make a great looking player. The layout allows for everything to be hidden and adapted to any combination of hardware.
Batch file to create minimal wpa_supplicant.conf
wpa_supplicant.conf
configuration file and/or a netusb
file on the PCP_BOOT
partition of your SD card.
Warning
Advanced users only. Use at your own risk!
I create a lot of piCorePlayer images on SD cards and needed a method to quickly and consistently add a minimal wpa_supplicant.conf
configuration file to a freshly created SD card. After years of thinking about it, I decided it was time to create a batch file to quickly create this configuration file. While I was at it, I added an option to add a netusb
file as well.
Batch file to use robocopy to mirror music library
Warning
Advanced users only. Using mirror copy programs in the wrong direction can quickly delete files. Use at your own risk!
I use three NTFS formatted USB drives for my LMS music library. I required a method of ensuring each drive was an exact mirror copy. Windows 10 has robocopy
which is a great program for creating and maintaining mirror copies. For this batch file to work, to following directories are required at the drive root level, CDnew
, CD
, CD1
and CD2
.
Using the ser2net extension with piCorePlayer
So I achieved success with building my extension and it is working like a charm.
I will give a little walkthrough for people who want to build and use the ser2net extension with piCore (and specially with with piCorePlayer in order to control old DENON AVR)
What was used
Hardware
- Raspberry Pi 2
- DENON AVR
- USB to serial adapter
Software
- piCorePlayer 8.1.0—see piCorePlayer Downloads
Steps
Step 1 - Assemble hardware
- Plug in your USB to serial adapter.
- Insert the SD card into the Raspberry Pi.
- Connect the Ethernet cable if applicable.
- Connect the power cable(s).
- Turn the power on.
Step 2 - Add extensions to piCorePlayer
-
In the pCP web interface go to [Main Page] in “Beta” mode > [Extensions].
LMS Monitor 2020
CM4 based piCorePlayer
At the time of writing, there seems to be shortage in the availability of the Compute Module 4 and Compute Module 4 IO Boards. I have waited months for them to be available at the same time and there was only one or two of the 32 CM4 models in stock.