logo elektroda
logo elektroda
X
logo elektroda

Volumio on Raspberry Pi 4B and Zero 2W - my battles with Volumio.

slawekscorp 5478 41
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • #31 21712393
    slawekscorp
    Level 12  
    Posts: 299
    Rate: 104
    On the configuration side, for example, audio is better than Volumio. We'll see, maybe in time the priorities will change and one of the players will be on Moode.
  • ADVERTISEMENT
  • #32 21712859
    VSS
    Level 21  
    Posts: 648
    Help: 5
    Rate: 261
    i on my volumio click "close" on the touchscreen and it closes without a problem. then a physical switch and it's done. it's been up every time for a couple of years or so.
    the volumio on the back stands, in case anyone asks.


    Volumio on Raspberry Pi 4B and Zero 2W - my battles with Volumio.
  • #33 21713214
    jackfinch
    Level 19  
    Posts: 348
    Help: 21
    Rate: 42
    tytka wrote:
    I found it simpler to check 5V on the USB than to add extra functions.

    There's a 4.3" screen on what I've shown. But I have a 7" too, maybe there will be another version with it.


    I was just recently browsing your tower and was about to ask if you were planning an additional panel for streaming or Flac playback and today I ended up here. Those displays you mentioned can you give some additional parameters or some symbols. I just prefer the kind of front panel look you used. Is the Volumio software you used in your project paid or free? What is the approximate cost of your new tower module?
  • #34 21713215
    slawekscorp
    Level 12  
    Posts: 299
    Rate: 104
    The whole point is to make it convenient. I press the momentary button on the frontpanel, Volumio switches on. I press again , the Volumio system shuts down and immediately afterwards the RPi is disconnected from the power supply. I got tired of inserting and removing the power supply from the socket or the usb extrusion.

    Edit:
    I have just designed an on/off version of the "bida edyszyn" The control consists of four AND gates, one OR gate, a D flip-flop and an NE555. On paper it worked, in simulations too, we'll see in the real circuit. Of course there are no water features in the form of dimming diodes, but for small pi zero 2 it will be just right. The on/off procedure itself works the same as in Radek's design.
  • ADVERTISEMENT
  • #35 21713596
    rafels
    Level 25  
    Posts: 717
    Help: 69
    Rate: 166
    Gee, strange, because I've been using volumio for years and day in day out it's shut down by a brutal power cut and no problems with the micro SD card.
    From what I remember, volumio is optimised to minimise writes, e.g. syslogs are only in frame, etc. And changing configurations or other user operations are not too frequent, after all.
  • ADVERTISEMENT
  • #36 21713643
    VSS
    Level 21  
    Posts: 648
    Help: 5
    Rate: 261
    I too, when I don't have time, simply switch off with the button and indeed have never yet had a problem with volumio rising.
  • #37 21714216
    slawekscorp
    Level 12  
    Posts: 299
    Rate: 104
    Anyone can switch off at will. I have decided to "civilise" the whole process at my place and describe one of the many ways in which this can be done. By default, the only correct way to turn Volumio off is to enter the application, call up the settings, click "turn off", wait until the system closes , selecting "turn off", waiting for the system to shut down and disconnecting the power. Starting Volumio is done by applying power to the RPi. In my case, switching off Volumio and RPi will be done by : :press on/off for a moment and nothing more. Turning it on again is to click on/off for a moment and that's it. I don't think it's any simpler, apart from the lack of possibility to damage the program.

    As I've written before, the circuit can be done with a few gates, a D and a 555 flip-flop, a p-mosfet to switch on the RPi power supply, a 5V stabiliser and maybe two optocouplers or transistors to convert levels from 3.3 to 5V or level converters.
    Today I bought some single gates and flip-flops from TME (single in the sense of a single gate in SOT23) I will soon start making the board.
  • ADVERTISEMENT
  • #38 21715378
    slawekscorp
    Level 12  
    Posts: 299
    Rate: 104
    Trial layout made, effect as expected. Works as it should. Composition: 4 AND gates ( it is possible to do less but there was nothing to do with them,in the IC there are four), one D flip-flop 4013, one OR gate ( or NOR, will come out in the wash) and NE555. The D flipper in the 4013 does not require an additional NOT gate from the NE 555 output to cancel it.
    While the cmos work fine at 3.3V the NE 555 only started at 4.5V. I have purchased TLC555CDR cmos which work from 2V. Tomorrow I'm going to test the TLC 555 at 3.3V (if it passes). The plan is to use three ICs in the SMD version and a single OR gate in a SOT 23 package. What remains to be done is to control the P-mosfet, check the circuit with the RPi and put the whole thing on the PCB.

    Test circuit with digital multimeter and prototyping board with measurement probes connected.
  • #39 21716504
    hetm4n
    Level 20  
    Posts: 812
    Help: 5
    Rate: 525
    >>21715378 I wouldn't play with this, it would be quicker to package an atmege328 with soft to control this and smaller by the way, and chatgtp soft in 5-10min to write.
  • #40 21716593
    slawekscorp
    Level 12  
    Posts: 299
    Rate: 104
    After all, the project is on Atmeda. There is a whole box of components from TME waiting for the boards that have not arrived yet.
    What I am showing here is that it is possible to make an on/off circuit using components costing no more than 3 PLN a piece, and there are literally several of them. Not everyone has the ability/willingness to play with processor programming. I don't have such desire and knowledge about this subject. Radek, on the other hand, has the knowledge and capabilities, and has embraced the subject on Atmeda. The second thing is the economic sense. It makes no sense for me to pack a 2W power supply into a Pi Zero, which will cost about 100zl. For such a zero I can successfully pack the control on cmos and if I spend 25zl for it, it will be everything. The board itself will probably be smaller. Sometimes it is worth to look at the matter from different sides.
    And as for writing software by AI.... It is said that every program has to be corrected.

    Box of TME electronic components in antistatic bags, ready for PCB assembly.
    Antistatic shielding bag with electronic components inside
  • #41 21718349
    slawekscorp
    Level 12  
    Posts: 299
    Rate: 104
    My trial project requires some SMD components so I designed myself SMD/THT adapters. In CAD, of course...
    I etched the two boards. Method as always, chalk paper, laser and etching. I mastered this method a long time ago and it comes out 100%.
    Radek let me know that the power supply boards will be in tomorrow but the assembly won't be until Wednesday unless there are more important things to do.

    SMD to THT adapter designs in CAD software, showing multiple PCB layouts
    PCB with densely arranged SMD to THT adapter pads etched on copper laminate.
    Transfer sheet and etched PCB with SMD/THT adapter layout side by side
    Printed PCB mask and etched PCB with SMD/THT adapter layouts
    PCB board with etched SMD to THT adapter patterns on yellow laminate
  • #42 21730447
    slawekscorp
    Level 12  
    Posts: 299
    Rate: 104
    There hasn't been an update for a long time but one that there was no time to play around with the hobby and two that Radek had to fine-tune the programme.
    In general, everything worked as it should. The power supply performs all the functions it was supposed to. A few timing parameters needed correction including the shutdown delay time and the Volumio closing pulse time.
    Radek did a good job. Here official thanks to him for doing the design and the software :thank you ! :)
    The pictures show the soldered board and the first, trial connection of the little Pi Zero 2. There is, of course, RGB and PWM diode control. The RGB can be dimmed and brightened to several degrees using a button on the board, and the light colour can be achieved in principle by changing the parameters in the software.
    If I can find some time, I may connect the large Pi4B to the power supply later today, but I don't expect any problems. The 5V stabiliser will be under the board, but screwed to a metal case.
    There are traces of flux on the board, the quartz resisted soldering so it looks battered. I don't want to replace it with a nice one. It works.

    Connected PCB board with wires, OLED display, and glowing blue LED
    Soldered PCB board with electronic components on a blue antistatic surface
    Soldered PCB with electronic components labeled as Raspberry Pi power supply
    Soldered PCB with pins, capacitors, and connectors on a blue work surface
    Soldered PCB with capacitors, microcontroller and connectors on a blue surface

    Radek version:

    Assembled PCB with various electronic components on a blue work surface
    Soldered electronic PCB with components and connectors on blue surface
    Close-up of a prototype PCB with capacitors, connectors, and wiring
    Front view of soldered PCB with capacitors and multiple wire connectors
    Soldered green PCB with connected wires and mounted capacitors.
    Soldered prototype board with connected wires and measurement probes
📢 Listen (AI):

FAQ

TL;DR: Building a safe, one-button Volumio player on Raspberry Pi is doable: “LM1084 has a maximum current of 5A,” and measured draws hit 950 mA at start with 750–850 mA running. [Elektroda, slawekscorp, post #21708992]

Why it matters: This FAQ shows how to pick versions, DACs, displays, and power-off methods that won’t corrupt your SD card—ideal for makers running Volumio on Pi 4B or Zero 2W.

Quick Facts

What Volumio version runs most reliably on Raspberry Pi 4B and Zero 2W?

Users found Volumio 3.832 most stable on Raspberry Pi 4B (v1.3 and v1.5), while GPIO-related plugins behaved best on Zero 2W with Volumio 3.251. Earlier 3.x builds threw touch or plugin install errors, and 2.917 wouldn’t install on a newer 4B v1.5. [Elektroda, slawekscorp, post #21707819]

Which DAC HATs actually worked, including headphone output?

Confirmed working: IQaudio DAC Plus, IQaudio DAC Pro (PCM5242), Waveshare PCM5122 for Zero 2W, and even a budget PCM5102 board configured as HiFiBerry DAC Plus. Author noted HiFiBerry DAC2 Pro lacked headphone output in their setup, so they avoided it for this build. [Elektroda, slawekscorp, post #21707819]

How much power should I budget for a Pi-based Volumio player?

Measured figures: Pi Zero 2W draws about 500 mA at startup and around 300 mA during playback. A Pi 4B with DAC and display peaked near 950 mA at boot, then settled around 750–850 mA. A linear LM1084 regulator handled the load comfortably. [Elektroda, slawekscorp, post #21708409]

Is it safe to hard power-off Volumio without a shutdown controller?

Several users report daily hard power cuts with Volumio and no SD failures, noting reduced writes in the OS. This is anecdotal, not a guarantee. Quote: "I’ve never yet had a problem with volumio rising." Consider your risk tolerance. [Elektroda, VSS, post #21713643]

What failure can happen if I cut power too early?

An early power cut—before the green LED fully extinguished—left a Volumio SD card unreadable by the Pi and Rufus. Treat shutdown timing seriously, especially with larger SD cards and background activity. “Perhaps it is a coincidence,” but prevention is better. [Elektroda, slawekscorp, post #21709107]

What’s the simplest reliable power button method for Volumio?

One approach uses a microcontroller (e.g., ATmega) to send a GPIO shutdown, watch a Volumio activity GPIO, wait a few seconds, then cut 5V via power switch. LEDs dim by PWM during transitions. This preserves SD integrity while keeping one-button UX. [Elektroda, slawekscorp, post #21707819]

Can I do a no-firmware, CMOS-only on/off controller?

Yes. A low-cost design used four AND gates, a 4013 D flip-flop, one OR gate, and a TLC555. It toggles power, issues a timed shutdown pulse, waits, then disconnects the Pi via a P‑MOSFET. Works at 3.3 V with TLC555. [Elektroda, slawekscorp, post #21715378]

Should I sense GPIO or USB 5V to decide when to cut power?

GPIO +3.3 V and +5 V rails stay present after OS shutdown. Instead, one builder senses the +5 V on USB‑A to confirm the Pi truly powered down, then adds a short delay before cutting main 5 V. This reduces premature cutoffs. [Elektroda, tytka, post #21709115]

Which display interfaces worked best with Volumio on Pi?

SPI touch LCDs were troublesome; a 3.5" SPI touch panel was a non‑starter. A 4" Waveshare 16340 over HDMI (SPI only for touch) worked after some setup. DSI displays also worked well for others, including 4.3" and 7" units. [Elektroda, slawekscorp, post #21707819]

Does a DSI touchscreen work with older Pis and Volumio?

Yes. One setup used a Waveshare 4.3" DSI touchscreen on a Raspberry Pi 2+ with Volumio 2.x successfully. The user favored manual shutdown then mains cut using a hardware switch for simplicity. [Elektroda, thereminator, post #21709012]

Is Moode a better choice than Volumio for this build?

Mixed experiences. The OP couldn’t get SPI touch working and disliked Moode’s radio station search. Another user preferred Moode’s refinement on Pi 4 with a 7" Waveshare and added stations manually via SMB. Choose by your priorities. [Elektroda, slawekscorp, post #21712326]

How do I wire a one-button safe shutdown with GPIO Control plugins?

Typical flow: send a 1 s GPIO shutdown signal, watch a Volumio activity GPIO until low, wait several seconds, then cut 5 V. Install Volumio GPIO Buttons and GPIO Control plugins so the OS listens and reports status. [Elektroda, slawekscorp, post #21707819]

What enclosure and front-panel ideas worked well?

One design uses a sealed aluminum profile (100×200 mm, 200–250 mm long), a PET‑G printed inner front covered by brushed aluminum engraving laminate. It looks clean and remains serviceable for displays and controls. [Elektroda, slawekscorp, post #21709033]

Where should I store my music: SD, SSD, or HDD?

Options: write to the Volumio SD over Wi‑Fi from your PC, add a front‑panel SD reader via USB, or mount an external HDD accessible through a rear USB when the unit is off. All were used successfully. [Elektroda, slawekscorp, post #21709158]

Quick how-to: build the simple CMOS shutdown switch?

  1. Use 4013 to latch button presses; gate logic shapes on/off states.
  2. Generate a 1 s shutdown pulse with TLC555; feed Volumio GPIO.
  3. When delay expires, drive a P‑MOSFET to disconnect 5 V to the Pi. [Elektroda, slawekscorp, post #21715378]

Does an LM1084 linear regulator suit Pi 4B audio builds?

Yes. Builders powered standby and switched 5 V to the Pi through a power switch. With peaks to ~950 mA and typical 750–850 mA, the LM1084’s 5 A headroom is ample. Heatsinking and case mounting are advised. [Elektroda, slawekscorp, post #21708992]
Generated by the language model.
ADVERTISEMENT