[Plugin] pirate audio

Hi.
I use the latest version after software update.
Regards.
Peet

@AxLED Hi ! Volumio Beta version on Debian Bookworm. Any future compatibility ? It is compatible today ?

1 Like

Hi @AxLED , also wondering if this plugin will be ported to the new Volumio version. I love to have my tiny Pi Zero with the display and would love to be able to keep using it :slight_smile:

Thanks a lot for your work!! :heart:

Hi @AxLED thank you for your plugin.

I’m using it on a small portable unit, but would like to rotate the screen and buttons 90 degrees.

I have managed to rotate the screen and get the buttons rotated partially by making the following changes

def handle_button(pin):
if pin == 5:
button_b(VOLUMIO_DICT[ā€˜MODE’], VOLUMIO_DICT[ā€˜STATUS’])
if pin == 6:
button_y(VOLUMIO_DICT[ā€˜MODE’], VOLUMIO_DICT[ā€˜STATUS’])
if pin == 16:
button_a(VOLUMIO_DICT[ā€˜MODE’], VOLUMIO_DICT[ā€˜STATUS’])
if pin == BUTTONS[3]:
button_x(VOLUMIO_DICT[ā€˜MODE’], VOLUMIO_DICT[ā€˜STATUS’])

It works in that on the ā€œhomescreenā€ the ā€œnewā€ A and X work, but can’t change volume.

When in menus, the ā€œnewā€ select (A) and return (B) work but the up and down arrows don’t work

I hope this makes sense.

Perhaps you or somebody else can give me a bit more direction with this.

Thank you

Hi @Flowta

Way back in post number 9 of this thread, I mentioned how I adapted the plugin to rotate the display by 180 degrees. There’s instructions there that show how I did this, it should be fairly simple to adapt it so that it can be rotated by 90 or 270 degrees as needed. Basically, rather than referring to ā€˜pin == 5’ etc, you can change it to ā€˜pin == BUTTONS[0]’ etc, and make sure that the BUTTONS array contains the correct pin numbers for a, b, x and y. I included this in a github repository , if you look at display.py here you can see the end result (it also does some other stuff to display BBC radio cover art, which you can ignore).
Arckuk

Thank you.

I used your tips above.

basically change all reference to the ā€œpinsā€ to BUTTONS[?]

Also any reference to GPIO.input(??) changed to reflect the ā€œnewā€ BUTTONS[?]

Working perfectly now

1 Like

I cannot find Pirate Audio plugin in the plugins list. What’s wrong?

Is this for the new Volumio 4 release?

Looks like it hasn’t been updated/tested/released yet for that, although there are a couple of requests about it in this thread (a few posts above ours, from June and September).

Options would be to either wait for it, or use Volumio 3 for now until it is updated/released (assuming it’s still actively supported).

It may even still work by manual install, but I can’t test that as my current system with the Pirate Hat is built around a Pi Zero 1W, which doesn’t support Bookworm/Volumio 4.

Hi, I’ve been a Volumio user for several years now, and I use it almost daily with a setup based on a Raspberry Pi Zero and the Pirate Audio DAC.

After upgrading to Volumio 4, I noticed that the plugin was missing. Even though I’m not the original developer, I decided to take a look at the code and update it for Volumio 4, since I wasn’t sure whether the plugin was still being actively maintained.

Due to some changes introduced in Volumio 4, the old version can’t be installed manually anymore. So I made the necessary adjustments to make it work again, ensuring compatibility with the updated libraries and the new Volumio 4 changes.

A few hours ago, I submitted a pull request to the Bookworm plugins repository, hoping everything is in order and it will get approved.

In the meantime, it’s possible to manually download the code from here and install it via SSH using the command line: https://github.com/Faster3ck/volumio-plugins-sources-bookworm/tree/pirateaudio/pirateaudio

I’ve tested it for over a week, and it seems to be working perfectly!

1 Like

Nice one, and a great first post :smiley:

My weekend project is to swap a couple of Pi’s over (as Black Friday has put all the local stock here in other people’s hands, so none available for the task) so I can update my radio to a 2W and on to Volumio 4. So I’ll also grab your code and start giving it a test too.

1 Like

Hello!
Thank you for your work!
I released it as beta in the store :grinning:
As I don’t own this HW, feedback from other users are welcome :wink:

2 Likes

Thank you very much, I tested the plugin by installing it from the beta repository and everything seems to be working correctly! :slight_smile:

Waiting for feedback from the other users!

I’ve also got my Pi Zero 2W installed, the plugin also installed from the beta repo and everything up and running.

The only glitch I’ve come across so far is the Y button initially wasn’t working. Had to swap it from pin 20 to pin 24 in the plugin settings, now all is good.

Thank you very much for your feedback. After searching online, I found that pin 20 was used for the Y button on some older versions of the Pirate Audio DAC. Since the newer versions are probably more common, I decided to change the default GPIO pin for the Y button to 24.

I’ve just submitted a new pull request!

beta v0.1.5 available on the store :wink:

3 Likes

Yes, 20 was the original pin, and 24 is the newer (current) one.

The best default is pin 24, so all should now be good for most people.
I just wanted to post it here in case anyone else has the older version, as the config setting is quite easy to miss.

At least from my testing though, so far all is good. Nice job.

1 Like

@balbuze thank you very much! :slight_smile:

@DarrenHill thanks again for your feedback, I’m really glad my updates were helpful! :grin:

2 Likes