Streaming Audio Player (squeezelite)

A simple Audio Streaming Player based an PiCorePlayer OS (raspberry) with a arduino to control your AV receiver over HTTP

Similar projects worth following
An audio streaming player based on PiCorePlayer OS (raspberry) with a volume control that controls the AV receiver via HTTP.

The volume control via the Arduino is necessary because I also want to control the volume (like for all other devices) via an AV receiver.

So that the display does not run permanently, a relay is installed which is controlled via my smart home (openHAB) via HTTP (cgi script -> PiCorePlayer)




NXT        =    5
PRV        =    6
Back        =    13
IR_D-OUT    =    12
Relais        =     4

Relais         =     5V
IR Emitter    =    3.3V

Arduino (Wemos D1 Mini)

# display
SCL     =    D1
SDA     =   D2

# rotary
Left     =    D3
Right     =    D4
button    =    D8



Step 1 - While the SD card is still in the laptop/pc:

- in config.txt: comment out gpu_mem=16 and lcd_rotate=2 in config.txt 

- add to config.txt:

#---Begin-Custom-(Do not alter Begin or End Tags)-----

hdmi_force_hotplug=1 config_hdmi_boost=10
hdmi_group=2 hdmi_mode=87 hdmi_cvt 1024 600 60 6 0 0 0


Step 2 - Boot Raspberry Pi

    - Put the SD card in your RPi and boot.
    - Find the IP address of the RPi, and enter this in a browser—see Determine your piCorePlayer IP address.
    - Once the RPi has booted up, this should bring up the pCP web interface.
        On [Main Page] scroll down to “Additional functions” and click on “Extensions”. Wait for green ticks, then click on the [Available] tab. In the ‘Available extensions in the piCorePlayer     repository’ section.     - Load nano.tcz extension
    - Load the pcp-sbpd.tcz extension
    - Load the pigpio.tcz extension
    - Install Jivelite from the [Tweaks page] (this step includes an automatic backup, so accept the reboot prompt.)



### startup script 

- sudo nano /mnt/mmcblk0p2/tce/


sudo pcp-gpio mode 4 out

- sudo chmod +x /mnt/mmcblk0p2/tce/
- add script to user commands via webUI in tweaks section

### control script - sudo nano /var/www/cgi-bin/display_on.cgi


sudo pcp-gpio write 4 0

- sudo nano /var/www/cgi-bin/display_off.cgi


sudo pcp-gpio write 4 1

- sudo chmod +x /var/www/cgi-bin/display_on.cgi
- sudo chmod +x /var/www/cgi-bin/display_off.cgi
- sudo nano /opt/.filetool.lst
- add at the end of the file: var/www/cgi-bin/display_on.cgi

- pcp bu
- sudo reboot


# now the display can controlled via REST:


#### calibrate touchscreen:

    - Go to Web-Gui of piCorePlayer, section [Tweaks] and set “Jivelite Autostart” to “no”.
    - Reboot your RPi.

## get correct input device
cat /proc/bus/input/devices

## calibrate
sudo TSLIB_FBDEVICE=/dev/fb0 TSLIB_TSDEVICE=/dev/input/event1 /usr/local/bin/ts_calibrate

    - Make your calibration persistent: $ pcp bu
    - Go to the WebGui of piCorePlayer, section [Tweaks] and set “Jivelite Autostart” to “yes”.
    - Reboot your RPi.

Step 6 - Adjust Jivelite to the resolution of the screen

    - Connect a mouse or an IR-remote to the device to configure jivelite.
    - Choose your language and in the next menu select GridSkin 1024x600.
    - Save your changes in Jivelite...

Read more »


ino - 21.41 kB - 03/18/2024 at 12:01



x-compressed - 834.57 kB - 03/15/2024 at 14:45



x-compressed - 16.69 kB - 03/15/2024 at 14:45


View all 5 project logs

Enjoy this project?



madhead wrote 03/18/2024 at 18:36 point

Hi! Do you have any description (youtube video o blog post) on your epoxy finishing for the 3D print? It looks great!

  Are you sure? yes | no

Nik Reitmann wrote 03/19/2024 at 08:38 point

Hi, thanks. you can look in build log at:

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates