Announcement

Collapse
No announcement yet.

Building the Tivoli Squeezebox Radio

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Building the Tivoli Squeezebox Radio

    Usually I write more in the "Software" section but today I want to write primarily about hardware since I've built a nice and stylish DIY radio.

    It’s a Squeezebox built from a Tivoli Audio alarm speaker, and for the impatient ones among you, here are the key features and a picture:


    • Tivoli Speaker and case using the original speaker and 3W output;
    • WiFi;
    • runs on battery for a whole day (more than 12h);
    • rotary and push controller for volume and play/pause;
    • separate alarm clock;
    • fully Squeezebox compatible player using a Raspberry Pi zero and SqueezeLite;
    • very simple and power-efficient 5V design.


    And since Coolio and I do software in the first place, the whole project has its own software as well, in this case our open-sourced solution to power the volume and play/pause control. It’s quite cool, too , you can find it on GitHub at https://github.com/coolio107/SqueezeButtonPi-Daemon
    If you want to discuss it in this forum, there's a separate thread for that: http://forums.slimdevices.com/showth...oders-on-a-RPi

    If you want to read the full story, you can find it here:

    ---
    learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
    Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
    at penguinlovesmusic.com
    New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch

  • #2
    Looks very cool! Thanks for sharing your experience with us. Can you tell us, where you buyed the rotary knop? Maybe with a link?
    Some of my spotify playlists: Joni Mitchell covered - Johnny Cash originals

    Comment


    • #3
      Originally posted by quadronado
      Looks very cool! Thanks for sharing your experience with us. Can you tell us, where you buyed the rotary knop? Maybe with a link?
      I have to admit I wasn't too happy with the encoder and the knob but I didn't find anything better (encoder) or better fitting (knob).

      The encoder is a pretty standard rotary encoder as you can find them on Amazon, Conrad etc. max2play also sell one of these on their web site. I bought several from several sources (they come at around $2.50) and they were all the same.
      It's a bit shaky and it has very noticeable stepping and it only has 24 steps per rotation which is why for my setup I used both flanks of the signal effectively doubling the volume increase per rotation but also reducing accuracy. For a more hifi-like project (I'm planning one for next year or so, think Transporter replacement) I'm definitely going to look for a better encoder but they are really hard to find and they are expensive. Like 50-100$ or so if you only buy one. There doesn't seem to be a mid-price segment.

      The knob is this one:
      Schnelle Lieferung ✓ Große Auswahl an %brandid% Produkten » Jetzt einfach bestellen: %product-title%


      I wasn't 100% happy with it either. It's essentially a plastic knob with an aluminum inner ring for mounting and it wasn't sitting tight on this ring, I added some rubber to the fitting of the aluminum ring to make it sit tight.
      But it was what looked best with the radio.

      I found a really nice knob, full aluminum and all, but it was too big, that really didn't look good with the Tivoli Radio so I'm maybe going to use it for the next project. I still have it, it's this one:
      Last edited by pippin; 2017-02-26, 13:04.
      ---
      learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
      Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
      at penguinlovesmusic.com
      New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch

      Comment


      • #4
        Originally posted by pippin
        The encoder is a pretty standard rotary encoder as you can find them on Amazon, Conrad etc. max2play also sell one of these on their web site.
        Something like this?
        Some of my spotify playlists: Joni Mitchell covered - Johnny Cash originals

        Comment


        • #5
          Hi Pippin

          Thanks for this, it is really interesting.
          I have also looked into something similar, and was thinking that maybe something like this would be idea.

          As far as I understand it is something like the wheel on the Duet controller and also have four different directions/buttons: http://www.elma.com/en/products/rota...-wheel-detail/

          Another option also with four directions/buttons:




          These devices might make it easier to manipulate a system using a screen based navigation like Jivelite or have presets with radio stations .
          piCorePlayer a small player for the Raspberry Pi in RAM.
          Homepage: https://www.picoreplayer.org

          Please donate if you like piCorePlayer

          Comment


          • #6
            Originally posted by quadronado
            Yes.
            This is one of the ones I bought:


            I bought three or four from different sources and they all turned out to be the same

            What I like about this one a bit more is that it has a metal shaft but I don't know whether that actually makes a difference
            ---
            learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
            Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
            at penguinlovesmusic.com
            New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch

            Comment


            • #7
              Does it rotate more than 360 ? Can it do several turns or spin endlessly, can you make up for the shakiness by having several turns represent 100% volume ? Several products with encoders I've seen does that .
              --------------------------------------------------------------------
              Main hifi: Rasbery PI digi+ MeridianG68J MeridianHD621 MeridianG98DH 2 x MeridianDSP5200 MeridianDSP5200HC 2 xMeridianDSP3100 +Rel Stadium 3 sub.
              Bedroom/Office: Boom
              Loggia: Raspi hifiberry dac + Adams
              Bathroom : Radio (with battery)
              iPad with iPengHD & SqueezePad
              (spares Touch, SB3, reciever ,controller )
              server Intel NUC Esxi VM Linux mint 18 LMS 7.9.2

              http://people.xiph.org/~xiphmont/demo/neil-young.html

              Comment


              • #8
                Nice job! You don't have any navigation or other Ui elements other than volume and on/off on the device?

                The rotary encoder used to be the single most expensive part on the Transporter, too. I think somebody even claimed it was the single most expensive part Logitech had ever used up to that day :-).
                Michael

                "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
                (LMS: Settings/Information)

                Comment


                • #9
                  Originally posted by Mnyb
                  Does it rotate more than 360 ? Can it do several turns or spin endlessly, can you make up for the shakiness by having several turns represent 100% volume ? Several products with encoders I've seen does that .
                  It rotates endlessly.
                  The way these rotary encoders work is that they create a two-bit "Gray code" that allows you to determine the direction of the rotation, the rest needs to be done in software.
                  But without the "double volume step" I used you'd have to rotate a lot to get a meaningful change in volume which is annoying. If you want to change the volume you want it to change within one action to whatever you want it to be, you don't want to keep rotating it.

                  But of course this depends on your setup. If you have a very sensitive amp in a device with very high power output you can always change the command line parameter in the software to only use one edge, then you get single-step accuracy.

                  Originally posted by mherger
                  Nice job! You don't have any navigation or other Ui elements other than volume and on/off on the device?
                  No. I did consider to also add "power" with a long-press but didn't have the time to test that enough.
                  I didn't have space for a display and many more buttons, otherwise I'd probably added some "Favorites"-buttons as well.

                  The rotary encoder used to be the single most expensive part on the Transporter, too. I think somebody even claimed it was the single most expensive part Logitech had ever used up to that day :-).
                  Well, that thing is of course a different story with the force-feedback and all.

                  But just a simple rotary encoder with decent haptics and, say, 50 Steps per rotation (150 would be perfect but I understand that's harder) is expensive.
                  I found a nice one but it created that effect by using a reduction gear. That thing cost 30$ or so and also was way too big for the radio.

                  What I didn't find in time but what I'm probably going to try for the next project is something like this:


                  30$, 64 ticks per rotation and two button modes (normal and high-power) so that I can use play/pause and power on the same button.

                  At this price it would only have been the second-most-expensive "component" because I paid $40 for the Tivoli Speaker (a new one!). But it would still top the huge battery at $30.
                  But that thing with the aluminum knob I still have will probably be the controller of choice for my next project: a Transporter replacement with balanced (XLR) output, a second, (independently controllable) output channel for a subwoofer, one or two analog inputs (one with RIA preamp) and a small probably still passive display...
                  Biggest challenge for that: find a good housing....
                  ---
                  learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
                  Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
                  at penguinlovesmusic.com
                  New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch

                  Comment


                  • #10
                    Other way of providing control is via infrared.
                    Detectors to plug into RPi GPIO are very low cost and could make a tiny hole in front of case for it.
                    Plenty of IR handling code for RPi and pCP has the basics built in - just need to get the remote recognised (from memory it does Slim controller out of the box).
                    Then you get volume, mute, skip etc.
                    Paul Webster
                    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
                    and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

                    Comment


                    • #11
                      Building the Tivoli Squeezebox Radio

                      IR is definitely not for me. And for device to be carried around that would be another device you have to take with you.

                      I've tried to place the half a dozen or so Squeezebox IR remotes I have around my place but still neither me nor my better half are ever using them
                      ---
                      learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
                      Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
                      at penguinlovesmusic.com
                      New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch

                      Comment


                      • #12
                        Originally posted by pippin
                        IR is definitely not for me.
                        I thought it was for your mother.

                        And for device to be carried around that would be another device you have to take with you.
                        Does she carry her's around?

                        I've tried to place the half a dozen or so Squeezebox IR remotes I have around my place but still neither me nor my better half are ever using them
                        Understandable - best for static devices - or at least for devices then tend to stay in one place.
                        Paul Webster
                        Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
                        and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

                        Comment


                        • #13
                          Building the Tivoli Squeezebox Radio

                          Originally posted by Paul Webster
                          I thought it was for your mother.
                          Yes. And she's actually even less into IR remotes than me.

                          Does she carry her's around?
                          Yes. That was the idea. She takes it out on the balcony and into the garden.
                          That's why the WiFi performance was so important, too.

                          She usually has her iPad with her for reading so can use that to switch channels (she mostly listens to radio) but most of the time it's really just turning it on/off or changing the volume.

                          One of the reasons she wanted it was that while she mostly listens to radio not all of her favorite stations are still available through FM or cable so when she realized she can play them again through the stereo when she got her first Squeezebox device she wanted an "everywhere" radio, too.

                          I could have bought a used Logitech Radio on eBay but that really doesn't fit her furnishing style
                          ---
                          learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
                          Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
                          at penguinlovesmusic.com
                          New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch

                          Comment


                          • #14
                            Building the Tivoli Squeezebox Radio

                            I've updates the article a bit with information about the new Raspberry Pi Zero Wireless (which can help a lot) and it also now has a BOM (list of materials used) with approximate prices. It now also has more direct links to the stuff used in building the radio.

                            Oh, and the German translation is now online, too
                            Last edited by pippin; 2017-03-01, 20:02.
                            ---
                            learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
                            Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
                            at penguinlovesmusic.com
                            New: iPeng 9, the Universal App for iPhone, iPad and Apple Watch

                            Comment


                            • #15
                              HiFiBerry miniamp

                              Originally posted by pippin
                              I've updates the article a bit with information about the new Raspberry Pi Zero Wireless (which can help a lot) and it also now has a BOM (list of materials used) with approximate prices. It now also has more direct links to the stuff used in building the radio.

                              Oh, and the German translation is now online, too
                              Thanks for the idea, Pippin. I've just find a new Tivoli on eBay so I want to try a simpler work (no battery, Rpi Zero Wireless and no rotary controller). One question: how you have connected the Miniamp (that is Stereo) to the single speaker of the Tivoli? L+R positive and L+R negative togheter? It is possible? Sorry for the (perhaps) stupid question but I remember some class D amplifier that is impossible to connect the ground togheter (otherwise it could be damaged).

                              Ciao, Riccardo
                              1 Touch, 1 Duet, 3 Boom, some SOC (Odroid, RPi3, RpiZeroW) as players. 1 SB v.1 (now unused), 1 SB Classic, broken,
                              Logitech Media Server 7.9 on Odroid U3

                              Comment

                              Working...
                              X
                              😀
                              🥰
                              🤢
                              😎
                              😡
                              👍
                              👎