peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Peppy player

Sun Mar 13, 2016 6:31 pm

Peppy player

Here is one more audio player based on the Raspberry Pi 2 platform.
The detailed description of this project can be found on the github:
https://github.com/project-owner/Peppy.doc/wiki
Please use the sidebar to navigate through different chapters of the doc.

This is DIY project which includes three components: hardware, software
and woodware. All three components were created for this project from scratch.

Here are the key features of the hardware component:
* It is based on the popular single-board computer Raspberry Pi 2.
* High quality audio achieved by using integrated Amplifier module HiFiBerry Amp+ and Sony speakers.
* The Hardware has six "senses" to control its functionality:
- Mouse
- Keyboard
- Touchscreen
- Infrared Remote Control
- Rotary Encoders
- Any computer in a local network or mobile device with Web Browser

Here are the key features of the Software component:
* This is application written in Python.
* Peppy provides Graphical User Interface for audio players running in a headless mode. Currently Peppy supports 'Mpd' audio player.
* Embedded Web Server allows to control audio playback from any Web Browser.
* The default touchscreen resolution is 480*320. This is the resolution of the TFT used for this project. Though UI is dynamic and can scale to any screen resolution.
* Currently Peppy has only Internet Radio functionality. In the future releases support for playing audio files and streams will be implemented as well.
* By default Peppy has playlists containing free radio stations for English, French, German and Russian languages. Users can add their own stations to the playlists.

The key features of the Woodware component include:
* Original custom design.
* Made of solid wood (Cherry and Walnut).
* Natural finish - the variation of French polish.

I hope that the information about this project will be useful for all
DIY developers as it brings together many different aspects of developing
hardware, software and woodware fro Raspberry Pi platform.

Enjoy!

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Mon Mar 14, 2016 2:49 pm

All source files for the project can be found here:
https://github.com/project-owner/Peppy

From the source files you can learn how to:
- create Python GUI using Pygame library
- implement animation in Python and JavaScript
- handle audio players (e.g. mpd) from your Python code
- program rotary encoders
- handle infrared remote control in Python
- implement web UI using HTML5, Json, SVG and WebSocket technologies

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Sun Sep 18, 2016 10:11 pm

Here is the new member in the family of Peppy Players. It's called µPeppy.
This is completely portable player - it can be powered by battery.
The main hardware features of µPeppy are:
- It's based on Raspberry Pi Zero.
- Pimoroni DAC was leveraged to achieve high quality audio.
- The player can be controlled either using Infra-Red Remote control or
Web Browser running on any device in the local network.

The software used for µPeppy is the same as for the previous player model.
Both players use the second release of the Peppy software - Michelangelo Edition.
It has the following changes from the previous Leonardo Edition:
- Added support for 'mplayer'. Now Peppy supports two players 'mpd'
and 'mplayer'. User can switch from one to another by changing configuration file.
- Added VU Meter screensaver.
- Updated radio playlists for all languages - removed obsolete links and
added new ones.
- Bug fixing and code cleanup.

All details can be found on the project's wiki:
https://github.com/project-owner/microPeppy.doc/wiki

Image

Image

Image

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Mon Mar 13, 2017 4:02 am

New version (Raphael Edition) of the Peppy Player software was released today. Here are the key features:
  • Added File Playback functionality. Both supported players 'mpd' and 'mplayer' provide file playback on Linux and Windows platforms.
  • Updated Logo screensaver. In the File Playback mode it will display current album art.
  • Updated Slideshow screensaver. In the File Playback mode it will display images from art folder.
  • Removed 'mpc' pipe client.
  • Bug fixing and code cleanup.
Here are several screenshots.

Radio player:
Image

Radio Genre Menu:
Image

Screensaver Settings Menu
Image

Home Menu:
Image

File Browser:
Image

File Player:
Image

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Tue May 09, 2017 6:15 pm

New version (Caravaggio Edition) of the Peppy Player software was
released today:
https://github.com/project-owner/Peppy
Here are new features:
- Implemented playback of playlists (m3u and cue).
- Added support for 'vlc' player. Now Peppy supports three popular players 'mpd', 'mplayer' and 'vlc'.
- Redesigned communication with audio players.
- Added support for Streaming server and client.
- Updated web radio playlists.

Peppy Player software provides UI functionality to the audio players
(mpd, mplayer or vlc) running in a headless mode. It was originally
developed for using with small LCDs/Touchscreens with resolution
480*320, 320*240. Although it can be used in systems with smaller or
larger resolutions as well. Peppy Player can be installed on any
Linux or Windows platform which supports Python and Pygame library.

Here are several screenshots showing web radio UI for different languages
(German, French and Russian) and different genres (Kids, Pop and Rock):

Image

Image

Image

Here are the screenshots showing VU Meter Screensaver (currently available
only on Linux platform and mpd player):

Image

Image

Image

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Mon Nov 06, 2017 4:21 am

New version (Bosch Edition) of the Peppy Player hardware and software was released today:
https://github.com/project-owner/Peppy
New features:
- Modified hardware. Now microPeppy leverages HiFiBerry MiniAmp for Raspberry Pi Zero:

Image

- Added ability to listen to audiobooks. Books can be selected by genre and author.
Here are several screenshots showing the functionality:

Image

Image

Image

- Redesigned screens to simplify navigation.
- Added more information to the wiki pages.
- Bug fixing.

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Mon Jan 22, 2018 2:29 am

Today I released new version (Rembrandt Edition) of the Peppy Player software
and updated wiki pages.
New features:
  • Switched from custom WebSocket implementation to the Tornado Web Server.
    This change significantly simplified the web server implementation. Also it provides
    the base for the further Web UI improvements.
  • Implemented Voice Assistant which allows to navigate through menus using
    voice commands. Current implementation relies on Google Assistant service and
    supports three languages - English, German and French. The search functionality
    will be implemented in the next releases. So that instead of navigating through the
    file browser it will be possible to start playback by making voice command, for
    example: 'Play Wish You Were Here by Pink Floyd' or 'Play The Mousetrap by Agatha
    Christie' to start audiobook playback.
  • Made a major update of the radio playlists. The number of radio stations increased
    almost in two times for all genres and languages.
  • Added headless mode. In this mode Peppy Player can work without display/TV
    connected to Raspberry Pi. In the headless mode the player can be controlled by
    using Web UI, remote control and voice commands.
  • Created user Gallery where other people can demo their projects based on Peppy Player:
    Here are couple examples from the Gallery:
Image

Image

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Sun Jun 03, 2018 8:00 pm

New version (Vermeer Edition) of the Peppy Player was just released.

New features:

- Replaced HiFiBerry Amp+ by HiFiBerry Amp2. That solved audiobooks playback issues.
https://github.com/project-owner/Peppy. ... /Amplifier
https://github.com/project-owner/Peppy. ... iBerry-Amp

- Added CD Player mode.
https://github.com/project-owner/Peppy. ... /CD-Player
https://github.com/project-owner/Peppy. ... CD-Browser

- Made Home menu customizable.
- Added configuration files for screensavers.
- Refactored VU Meter screensaver.
- Improved logging functionality.

- Provided disk images to simplify player installation and configuration.
https://github.com/project-owner/PeppyP ... isk-Images

- Added Wish List to the Wiki pages:
https://github.com/project-owner/PeppyP ... /Wish-List

- Updated Gallery with new images depicting projects created by Klaus (Germany, Munich):
https://github.com/project-owner/PeppyP ... ki/Gallery

Image

Image

Image

tsorbello
Posts: 1
Joined: Wed Jun 20, 2018 9:59 pm

Re: Peppy player

Wed Jun 20, 2018 10:03 pm

Hello,
I have done both the precreated disk and used the expert method. I have a question
1. if I use the pre created disk image is there a way to exit to the OS? I can't figure out how to configure the network if I can't get to the OS. The expert method works but I have had some issues with the splash screen and the wireless remote.
Thanks
TS

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Thu Jun 21, 2018 2:30 am

Hi,

Peppy player is running as a regular application under Raspbian Stretch Lite OS. Therefore you can login to it using username pi and password Vermeer (assuming that you used disk image). You can do that using SSH for example by running 'putty' program.

If you just connect Ethernet cable to the Raspberry Pi's connector you don't need any network configuration. The player will work right away. So I believe you are talking about WiFi configuration.

When you say wireless remote do you mean IR remote? If so, how do you connect IR sensor? I had some issues when IR sensor was powered from 3.3V. When I connected IR sensor to 5V all problems gone. Just make sure that your IR sensor can be powered by 5V. You can also disable the splash screen by running the following commands in the terminal:
sudo systemctl stop splash
sudo systemctl disable splash
sudo reboot
Though you cannot control player while splash screen is visible. It will be the same without splash as well but instead of splash screen you will see just a black screen. While you see it you cannot use the remote control.

Please let me know if you have any other issues.

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Sun Jul 22, 2018 8:22 pm

New version (Rubens Edition) of the Peppy Player was released today.

New features:

- Streamlined the process of adding new languages.
https://github.com/project-owner/Peppy. ... /Languages
Here are the screenshots showing Language and Home menus in Japanese:

Image
Image

- Added CD album art functionality. The CD cover images are retrieved from the largest free web collection on Discogs.com. Here are examples of CD Player with album art:

Image
Image

- Made Screensaver and Language menus customizable.

- Implemented Weather forecast screensaver.
https://github.com/project-owner/Peppy.doc/wiki/Weather
Here are the examples of the Weather screensaver:

Image
Image

- Added information about connecting Bluetooth devices.
https://github.com/project-owner/Peppy. ... th-Devices

- Provided disk images.
https://github.com/project-owner/PeppyP ... isk-Images

mazellan
Posts: 10
Joined: Mon Aug 13, 2018 2:38 am

Re: Peppy player

Mon Aug 13, 2018 3:54 am

Thank you for creating Peppy, it's just what I've been looking for.

Is this post the best way to get support?

My music is at /media/music/genre/artist/album/title.mp3 - it plays albums OK
I've tried to get it to play a playlist - I created an m3u file at /media/music/playlists/playlist.m3u with the above path format
It shows the mp3s in the playlist but won't play them.

How can I add podcast urls to Peppy?

Thanks

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Wed Aug 15, 2018 2:07 am

Hi mazellan,

I check this forum periodically so it's OK to post questions here.
Regarding playlists, I'm afraid currently Peppy supports only files located in the same folder as playlist.
Files in the playlist should have only file names without path. I'll try to fix this issue in the next release so
that files with path will work as well.

I've added Podcasts to the Wish List recently:
https://github.com/project-owner/PeppyP ... /Wish-List

Adding links is a manual process.
If your Podcast is just the stream you can add the link to the streams playlist:
/home/pi/Peppy/streams/streams.m3u like this:
# My Podcast
http://...
Then you can switch to the Stream mode from Home menu and select your podcast from menu.
Next release I'll also fix the issue with stream image. Right now it shows the default image. After
the fix you can provide your own image which will show up in the Streams menu. If you need the
fix right now you can check this post:
http://www.diyaudio.com/forums/pc-based ... 14915.html

Good luck!

mazellan
Posts: 10
Joined: Mon Aug 13, 2018 2:38 am

Re: Peppy player

Wed Aug 15, 2018 6:13 am

Thanks for that.

How easy would it be for you to add the option of playing an album by tapping and holding the album for a second, (or artist) and then automatically playing albums and artists in alphabetic order from there on? Many years ago I used a DOS player called Mpxplay that worked somewhat like this. Perfect for in car use.

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Wed Aug 15, 2018 5:27 pm

That should be doable. I'll try to fit that into the next release. So when you click on folder
and hold for a second then player will start playing all files in that folder automatically.
When it's done with files it will enter each sub-folder in alphabetical order and start
playing files there and so on. I hope my understanding is correct. How about playlists
in folders? Should Peppy play only files and ignore playlists?

mazellan
Posts: 10
Joined: Mon Aug 13, 2018 2:38 am

Re: Peppy player

Thu Aug 16, 2018 12:27 am

Perfect. I think playing files in a folder alphabetically without playlists is the way to go. To that end I've always named my files beginning with the track number, and albums with the year. Maybe a setting for 'ignore playlists'? The ability to just find an artist, tap on it and play sequentially all their albums would be great. For in-car use the least amount of navigation - particularly scrolling, the better.

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Mon Aug 20, 2018 6:26 pm

Alas, the implementation of the recursive auto-playback will need too many changes in the code. So,
I'll try to do that in one of the next releases. The absolute path in m3u file doesn't need that many
changes so I'll do that in coming release.

mazellan
Posts: 10
Joined: Mon Aug 13, 2018 2:38 am

Re: Peppy player

Fri Aug 24, 2018 4:01 am

Thanks for giving consideration to my suggestions. Here's another - a GPIO pin to initiate a clean shutdown? I'm using a hard disk so I'd like a clean power off with the cars ignition.

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Fri Aug 24, 2018 8:30 pm

Do you mean to send 1 or 0 to one of the GPIO contacts upon shutdown?
If so, it should be pretty easy to implement. Though I don't promise it for coming release
as I'm wrapping it up right now :)

What should player do next after sending signal to GPIO? Should it wait until issuing
'sudo poweroff' command? What are you going to connect to GPIO? Is it just relay
which will switch off +12V from hard drive?

For a car version of Peppy player I have RTL-SDR feature in the wish list. It should allow
to listen to local FM radio stations as well. BTW, it was discussed in another post in this thread:
https://www.raspberrypi.org/forums/view ... 5&t=221086
I hope you are aware about Kodi. If there is access to the Internet then Peppy player could show
album art for each song as well.

mazellan
Posts: 10
Joined: Mon Aug 13, 2018 2:38 am

Re: Peppy player

Fri Aug 24, 2018 11:18 pm

What I envision is a relay to immediately pull a GPIO input low on ignition off, and a timer to remove 5V power supply after 60 seconds or so. The detected low immediately stops play, then initiates shutdown. On ignition on, the relay energizes removing the low, and power is applied to start normal boot up.

I played around with Kodi, even with estouchy based skin controls were too small on 3.5" display, OK on 5" but I like the simplicity of Peppy and the size of the 3.5" display works well for a car dashboard.

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Fri Aug 24, 2018 11:35 pm

So you actually need reverse functionality - player should be interrupted by the signal from one of the GPIO contacts
and start shutdown procedure when the signal received. That's also doable.

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Mon Aug 27, 2018 7:16 pm

New version (Velázquez Edition) of the Peppy Player was released yesterday.

New features:

- Replaced all icons by SVG vector images. That will simplify creation of new icons
and allow UI look the same in different resolutions. Here is example of UI in
resolution 200*150:

Image

- Added functionality which will display album art for all radio stations which
provide information about current artist and song. Below is the collage which
shows Radio player with album art:

Image

- Implemented Equalizer UI.
https://github.com/project-owner/Peppy. ... ualizer-UI
Equalizer functionality was based on ALSA Equalizer
plugin. UI has five pre-defined frequency profiles for such music genres as Classical,
Jazz, Pop, Rock, Contemporary. Here is the screenshot showing Equalizer UI:

Image

- Added pagination for radio groups.
- Provided new disk image for Waveshare 5" touchscreen.
https://github.com/project-owner/PeppyP ... isk-Images
- Added support for m3u playlists with absolute filenames.

mazellan
Posts: 10
Joined: Mon Aug 13, 2018 2:38 am

Re: Peppy player

Thu Sep 06, 2018 3:53 am

I've got a small problem - on my LCD the colors are inverted. My LCD is a clone of the Waveshare 3.5 (A) like the one you link to in github, and it works well with the Waveshare 3.5 (A) Raspbian image. However when I use your Waveshare image it installs drivers for the (B) version - the line in config.txt is dtoverlay=waveshare35b, not dtoverlay=waveshare35a as it should be. I tried changing this line but got just a blank screen.

Adding dtoverlay=piscreen,speed=16000000,rotate=90 to config.txt as per the Waveshare installation instructions gives me the correct colors, but the instructions assume LXDE is installed so I can't get the touch to work.

peppy.player
Posts: 90
Joined: Mon Mar 07, 2016 6:10 am

Re: Peppy player

Thu Sep 06, 2018 2:52 pm

I would recommend to use headless disk image and install required driver on top of it.
Usually that doesn't take that much time especially if you know which driver should be
installed. After driver installation change the following parameter in
/home/pi/Peppy/config.txt file:
use.headless = False
Please let me know if it works for you.

Good luck!

mazellan
Posts: 10
Joined: Mon Aug 13, 2018 2:38 am

Re: Peppy player

Fri Sep 07, 2018 1:12 am

Using the headless image, the display driver uses a script that installs xserver, after that all I get is a console - Peppy doesn't start.

If I use the waveshare image and change the config.txt line dtoverlay=piscreen, I get the correct display but touch is calibrated incorrectly, and I cant run the calibration without x server running.

Maybe my only option is to buy a genuine Adafruit display?

Return to “Media centres”

Who is online

Users browsing this forum: No registered users and 9 guests