🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Paper Speaker

    Cores
    4
    11
    15.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kaderno
      last edited by

      Hello all,
      quick question, it seems the M5Paper does not have a speaker. Would it be possible to add one?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • MatiM
        Mati
        last edited by

        post this here
        https://forum.m5stack.com/category/40/features-wish-list

        K 1 Reply Last reply Reply Quote 0
        • K
          kaderno
          last edited by

          Thanks for your reply. I'll put the question within the wish list topics although if anyone could lead me on how to do it myself, it would be great too :)

          1 Reply Last reply Reply Quote 0
          • world101W
            world101
            last edited by

            I guess it depends on what you want to do. I assume you want an external speaker, correct? If so, what are your requirements (just buzzer beeps/tones or full wav/mp3 audio) and how do you want to program it (Arduino, uiFlow, or MicroPython)? There are plenty of options out there if you search for I2C speaker.

            MatiM K 2 Replies Last reply Reply Quote 0
            • MatiM
              Mati @world101
              last edited by

              @world101 yep also this is a bit strange we have SPK Hat for Stick but there is no standalone SPK. I think all core units got own internal SPK.

              1 Reply Last reply Reply Quote 0
              • V
                veryalien
                last edited by

                Have you got a bluetooth speaker?

                If so, you could try using your M5Paper to send audio using a bluetooth a2dp connection to your speaker.

                I found this arduino project:

                https://github.com/pschatzmann/ESP32-A2DP

                After making my own audio sample files, I can send audio from my M5Paper to my M5 Atom Echo (running the default factory firmware). I can also send to my other Urban Revolt bluetooth speaker, so it seems to be working correctly.

                world101W 1 Reply Last reply Reply Quote 1
                • world101W
                  world101 @veryalien
                  last edited by

                  @veryalien
                  That’s awesome! Care to share your project and samples? I would like to play around with it.

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    veryalien @world101
                    last edited by veryalien

                    @world101 You can just use the files in the ESP32-A2DP project as a start.
                    I didn't change anything in the arduino library, I just had to change the name of the speaker (obviously) in the bt_music_sender_write example. There's an error in that sample project at the moment as StarWars10 is defined, but the data is actually called StarWars30, just rename it and it should compile.
                    I had the problem that the original sample played at double speed! I've followed the instructions to create new samples in audacity and export/convert them. Make sure to exactly create 44100 stereo 16-bit PCM data files, convert with xxd and then use TwoChannelSoundData so it plays at the correct speed.

                    world101W 1 Reply Last reply Reply Quote 0
                    • world101W
                      world101 @veryalien
                      last edited by

                      @veryalien

                      Thanks for your updates. I will give it a try.

                      1 Reply Last reply Reply Quote 0
                      • K
                        kaderno @Mati
                        last edited by

                        @mati I've posted the suggestion on the wish list but somehow it got deleted :S

                        1 Reply Last reply Reply Quote 0
                        • K
                          kaderno @world101
                          last edited by

                          @world101 Thanks for your reply. For the project I have in mind, I just only need beeps, but if I'm going to hack around, I'll try to attach a speaker since it would allow me to do many other things. For programming I'd go with Arduino.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post