SqueezeEsp : The cheaper squeezebox in the world

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bgiraut
    Member
    • Dec 2018
    • 99

    SqueezeEsp : The cheaper squeezebox in the world

    Hello,

    This post to present my new DIY squeezebox renderer base on ESP8266 2$ board and 4$ I2S DAC.

    Click image for larger version

Name:	squeezeesp2.jpg
Views:	1
Size:	227.9 KB
ID:	1578100

    I have begin to implement the first slimproto protocol commands but it all ready play music from LMS after only few hours of work.
    It shoud be quite simple to add buttons or remote control and may be a LCD display with touch screen control.

    It can be a base for a portable squeezebox because it can be powered via 2 simple battery or LIPO battery and used with headphone.

    Benoit,
  • woodster
    Senior Member
    • Sep 2009
    • 152

    #2
    Hi Benoit,

    It looks really cool☺

    Any chance of following the progress on github?

    Originally posted by bgiraut
    Hello,

    This post to present my new DIY squeezebox renderer base on ESP8266 2$ board and 4$ I2S DAC.

    [ATTACH]26167[/ATTACH]

    I have begin to implement the first slimproto protocol commands but it all ready play music from LMS after only few hours of work.
    It shoud be quite simple to add buttons or remote control and may be a LCD display with touch screen control.

    It can be a base for a portable squeezebox because it can be powered via 2 simple battery or LIPO battery and used with headphone.

    Benoit,

    Comment

    • markm9999
      Senior Member
      • Nov 2015
      • 204

      #3
      A legend is born! Will absolutely be following this project!
      Player: 1 x Transporter w/Trans-knob, 2 x Touch (Active, 3 x Spares), 4 x Boom (Active, 9 x Spares)
      Server: 1 x Win Server (ESXi 6.x) w/LMS, 1 x HP 24" Touch Screen PC w/LMS & SqueezePlay
      Control: 4 x w/iPeng, 1 x Samsung Note 4, 3ea x Fire 7", 8” tablets, 1 x 10" all w/SqueezeCtrl & Player (Angry Goat)
      Audio: Mark Levinson 23.5 Amp, 380s Pre, 390s CD, B&W 801 II, Acoustic Energy AE-2 signature, SOTA Sapphire table

      Computer geek/tech hoarder(!), and DAMN I love the LMS/Squeeze infrastructure!

      Comment

      • bpa
        Senior Member
        • Oct 2005
        • 22880

        #4
        How much RAM is available for audio buffer ?
        From spec sheets it looks like only about 64kbytes ?

        Comment

        • bgiraut
          Member
          • Dec 2018
          • 99

          #5
          @woodster : it is a 'Proof of concept' for the moment but i will probably share the code on github soon. I use public library for Wifi management et audio decoding so I find normal to share this program with the community (https://github.com/earlephilhower/ESP8266Audio)

          @bpa : You are right, ESP8266 is the low power embedded plateform. Actualy i use only 2k for buffering so I get some freeze that probably come from network congestion but i will try to allow more memory for buffering.
          If the ESP8266 is to slow or do not have enought memory i will upgrade to his brother the ESP32. I have idee to switch to the VS1053 codec board that is dedicated to audio decoding. (http://www.vlsi.fi/fileadmin/datasheets/vs1053.pdf)
          Last edited by bgiraut; 2018-12-06, 13:48.

          Comment

          • bpa
            Senior Member
            • Oct 2005
            • 22880

            #6
            Originally posted by bgiraut
            @bpa : You are right, ESP8266 is the low power plateform. Actualy i use only 2k for buffering so I get some freeze that probably come from network congestion but i will try to allow more memory for buffering.
            With that small amount of ram - it is likely it will only be playing continously low bitrate MP3 streams. The SLiMP3 player has 1Mbyte of buffer.

            Comment

            • networx
              Member
              • Dec 2018
              • 73

              #7
              ESP32 with 520k SRAM should work.

              Very interesting project, will follow!
              | LMS 8.3.0 @ QLMS 2.31 | 2 SB Radios | SB Duet | SB 3 | piCorePlayer 8.2.0/Jivelite 7" Touch Jivelite | SqueezeLite-ESP32 | Pioneer VSX-S310 |

              Comment

              • fizze
                Member
                • Apr 2009
                • 34

                #8
                I've got an ESP-WROOM-32 lying around, and always wanted to try the buddy casino mp3 (link ESP8266 version: https://github.com/espressif/ESP8266_MP3_DECODER ESP32 version:https://github.com/MrBuddyCasino/ESP32_MP3_Decoder) stuff and eventually get it to work as a cheap squeeze-client as well.
                I went for the ESP32 because of improved power consumption and because apparently it works without extra SRAM.

                Please push your code somewhere public, github, bitbucket or whatever, so that the community might eventually help port the complete squeezebox protocol. I think that the esp chips are suited well to run this kind of workload.
                Running Squeezecenter 7.9 on MariaDB 10.1.38
                Ubuntu 18.04.01 LTS Server
                SqueezeBox Boom (x2) - SqueezeBox Classic - Squeezebox Radio

                Comment

                • s2kiwi
                  Member
                  • Jan 2015
                  • 92

                  #9
                  Very interesting. I've had great results with that DAC on raspberry pi zeros so will watch this one very closely. Top effort mate!

                  Comment

                  • Jyvindar
                    Junior Member
                    • Jan 2019
                    • 4

                    #10
                    Great project

                    I thought about porting / implementing the slimproto protocol for ESP devices a couple of times. I would like to contribute to this, if you would publish your approach somewhere.

                    Cheers,
                    Jyvindar

                    Comment

                    • brjhaverkamp
                      Member
                      • Nov 2011
                      • 30

                      #11
                      This indeed looks awesome.

                      What DAC did you use?
                      My personal usecase would likely be speaker based. With a MAX98357A or similar.

                      Did you get further with the slim protocol?
                      Let us know. And please please open a github for the source, in whatever state it is in! We can all support improving it and and make this happen.

                      Regards,

                      Bert

                      Comment

                      • badboygolf16v
                        Senior Member
                        • Aug 2008
                        • 168

                        #12
                        Just like to say, I think this looks very cool too!

                        Comment

                        • fizze
                          Member
                          • Apr 2009
                          • 34

                          #13
                          I used the mp3 decoder from MrBuddyCasino on an ESP32, without DAC, just to see how the quality was.
                          It's not bad, I guess it can be compared to FM radio with mediocre reception. Much better than I expected, anyway.

                          I tuned it to stream.mp3 on my LMS server, and this worked quite alright. There is quite some lag when controlling it due to streaming, but thats ok for zero effort I guess.

                          There is also this project https://github.com/karawin/Ka-Radio Ka-Radio and https://github.com/karawin/Ka-Radio32 Ka-Radio32 which further expands on this work.
                          There is also an Android app to remotely control the radio.
                          Maybe this can server as a starting point, since streaming and control protocols are already implemented?

                          Not sure how much memory is available when this is flashed though....
                          Running Squeezecenter 7.9 on MariaDB 10.1.38
                          Ubuntu 18.04.01 LTS Server
                          SqueezeBox Boom (x2) - SqueezeBox Classic - Squeezebox Radio

                          Comment

                          • Paul Webster
                            Senior Member
                            • Apr 2005
                            • 10343

                            #14
                            That is impressive. Up to 320kbps MP3 plus a method to play other formats by adding more hardware and it is being actively worked on.
                            If the developer can be persuaded that LMS would bring a lot more options ... then maybe would help/advise on implementing Squeezelite/Slimproto.
                            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

                            • fizze
                              Member
                              • Apr 2009
                              • 34

                              #15
                              Yes, the ESP32 is much more powerful than the ESP8266. And I did not get any stutters through WiFi, even without extra SRAM as buffer. Granted, I was next to the WiFi AP, but still...

                              I'd be happy if the ESP could work as a regular client without going through stream.mp3, as a first step. Not sure how much of the squeeze procotol would have to be implemented, but I guess the squeezelite and squeezeslave sources can give insights on that.
                              Running Squeezecenter 7.9 on MariaDB 10.1.38
                              Ubuntu 18.04.01 LTS Server
                              SqueezeBox Boom (x2) - SqueezeBox Classic - Squeezebox Radio

                              Comment

                              Working...