Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Music skipping tones after firmware update 3.4.1

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    6
    20
    675
    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.
    • chrishammundefined
      chrishamm administrators @DonStauffer
      last edited by

      @DonStauffer Playing music is only feasible if you have a display connected to the board (12864 or PanelDue). The web interface can play beeps but not real-time. Another approach could be to change M300 so that an external piezo buzzer could be driven. I've logged this at https://github.com/Duet3D/RepRapFirmware/issues/968

      chrishamm created this issue in Duet3D/RepRapFirmware

      open Add support for external piezo buzzers via M300 #968

      Duet software engineer

      DonStaufferundefined soare0undefined 3 Replies Last reply Reply Quote 1
      • DonStaufferundefined
        DonStauffer @oliof
        last edited by

        @oliof Sorry, I should have said:

        version 3.4.6 (2023-07-21 14:08:28)

        1 Reply Last reply Reply Quote 0
        • DonStaufferundefined
          DonStauffer @chrishamm
          last edited by

          @chrishamm I have a PanelDue. It "works" in that you hear tones. Just missing about every third pitch.

          soare0undefined 1 Reply Last reply Reply Quote 0
          • soare0undefined
            soare0 @DonStauffer
            last edited by

            @DonStauffer Do the pause double than the sound length. It will work, I tried just this, today.
            Serendipity, yep...

            DonStaufferundefined 1 Reply Last reply Reply Quote 0
            • soare0undefined
              soare0 @chrishamm
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • soare0undefined
                soare0 @chrishamm
                last edited by soare0

                @chrishamm said in Music skipping tones after firmware update 3.4.1:

                @DonStauffer Playing music is only feasible if you have a display connected to the board (12864 or PanelDue). The web interface can play beeps but not real-time. Another approach could be to change M300 so that an external piezo buzzer could be driven. I've logged this at https://github.com/Duet3D/RepRapFirmware/issues/968

                @chrishamm I think this can be done with some PWM output? My other thought was to define a new tool, with an industrial horn on some heater or another output. This would solve ”music” problems...

                1 Reply Last reply Reply Quote 0
                • DonStaufferundefined
                  DonStauffer @soare0
                  last edited by

                  @soare0 That made it worse.

                  soare0undefined 1 Reply Last reply Reply Quote 0
                  • soare0undefined
                    soare0 @DonStauffer
                    last edited by soare0

                    @DonStauffer This is what I used:

                    M300 S1000 P500
                    G4 P1000
                    M300 S1500 P500
                    G4 P1000
                    M300 S1200 P500
                    G4 P1000
                    M300 S1350 P500
                    G4 P1000
                    M300 S1500 P500
                    G4 P1000
                    M300 S1350 P500
                    G4 P1000
                    M300 S2000 P500
                    G4 P1000
                    

                    Maybe it helps...
                    I am working with 3.5.0 rc3, As you are on a lower version, I cant say how it will work.

                    DonStaufferundefined 1 Reply Last reply Reply Quote 0
                    • DonStaufferundefined
                      DonStauffer @soare0
                      last edited by

                      @soare0 So, some of your pauses are shorter than the tones, and others are longer. How did you decide the length of the pauses after each tone?

                      soare0undefined 1 Reply Last reply Reply Quote 0
                      • soare0undefined
                        soare0 @DonStauffer
                        last edited by soare0

                        @DonStauffer I think you mistook somehow pauses for frequencies.

                        M300 S1000 P500
                        

                        Tone length is P500, 500ms

                        G4 P1000
                        

                        Pause length is P1000, 1000ms.
                        So all pauses are double of the tone length.

                        Now, it is true that electric fields are traveling with the speed of light, but from our perspective, I think time flow is somewhat constant...
                        True, I did not investigate further, I let this to Duet team to be checked and solved better, as indeed, it was somewhat difficult to play ET sounds, as I tried 😄

                        DonStaufferundefined 1 Reply Last reply Reply Quote 0
                        • DonStaufferundefined
                          DonStauffer @soare0
                          last edited by

                          @soare0 I don't know what I was thinking. I must have been tired.

                          It does play 7 tones as expected, but they are sort of staccato since there is time with no tone between each. Not many tunes sound like that, so it's not a practical solution.

                          soare0undefined 1 Reply Last reply Reply Quote 0
                          • soare0undefined
                            soare0 @DonStauffer
                            last edited by

                            @DonStauffer Ah,yes, of course, this is indeed a problem, but as I am using them for ... blip blips, at leas they are working this way.
                            Just joking, but for now we may need to consider something like this:

                            SOUND CHIP

                            or this:

                            ANOTHER SOUND CHIP

                            or maybe something like a music

                            BOX

                            Or OctoPrint...

                            DonStaufferundefined 1 Reply Last reply Reply Quote 0
                            • DonStaufferundefined
                              DonStauffer @soare0
                              last edited by DonStauffer

                              @soare0 Well, that's an interesting couple of products I didn't know existed. (That second one has a single, profoundly bad review, though).

                              Not really sure how the Duet would control those first 2 though.

                              I'm sure the music box would be delightful, but I'm not sure how to get the Duet to wind it up. An additional stepper, I guess.

                              OctoPrint is a bit of an overkill solution unless I had some other reason for it.

                              I just kind of figured I'd play a brief tune with beeps when the print ended, but I guess this feature basically just doesn't work. Not worth interfacing with additional hardware, I don't think.

                              soare0undefined 1 Reply Last reply Reply Quote 0
                              • soare0undefined
                                soare0 @DonStauffer
                                last edited by soare0

                                @DonStauffer Of course, it was ment like a joke. However, if needed, such devices (some of them) can be triggered using a digital output from the Duet board, if available - fans heating, or some other general purpose IOs, via existing digital input on such a ”sound board”, or even replacing the button on it with a DUET IO.
                                It is useful in a industrial envirtonment, as one can use some big horn, if needed, but otherwise, for small and noncritical printers/processes, not really. This is why this is not a priority.

                                And yes, for balerina, it would need a stepper, with an additional rotational axis axis defined. Good ideea... 😄

                                So yes, this feature is ment, for now, to play a single sound, with various pitches, for different tasks. Wich, keeping in mind the power of Panel Due speaker, is almost useless, unless you are around, or in a relatively silent space, wich is not the case with me. So ... digital IO, and something like this:
                                HORN driver, if you want to select the ”music”,

                                Or drive the horn directly with a heater output.

                                DonStaufferundefined 1 Reply Last reply Reply Quote 0
                                • DonStaufferundefined
                                  DonStauffer @soare0
                                  last edited by

                                  @soare0 It was a joke? So all my work on trained monkeys to wind the music box is wasted?!

                                  soare0undefined 1 Reply Last reply Reply Quote 0
                                  • soare0undefined
                                    soare0 @DonStauffer
                                    last edited by

                                    @DonStauffer No, it will be incorporated in next DUET MI. Monkey intelligence.

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post
                                    Unless otherwise noted, all forum content is licensed under CC-BY-SA