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

    Music tone on startup, end sequence and end-stops

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    3
    5
    724
    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.
    • Wyvernundefined
      Wyvern
      last edited by Wyvern

      I am aware you can use pulse frequencies through the steppers to create tones and music- I have done this with drones and even programmed a little Mario on startup.

      I would like to avoid using a buzzer on end-stop hits for the sake of preventing additional wiring and/or a lethal short circuit.

      What is required and what are the limitations to using this? will a tone with a end-stop hit cause missed steps or inaccurate positioning or is it even possible?

      What is an example of a end/start g-code?

      I need something to tinker with while I'm waiting for some goodies in the mail (it's not printing very well ATM)

      1 Reply Last reply Reply Quote 0
      • DocTruckerundefined
        DocTrucker
        last edited by

        You'd have to drop the microstepping to 8 or 1 per full step. There is a web site that converts midi files into wav. It has to move the steppers to make the tones. Three axis and you can start to get some decent chord sounds. Generally takes a bt of work to get sample midi files sounding good.

        Running 3 P3Steel with Duet 2. Duet 3 on the shelf looking for a suitable machine. One first generation Duet in a Logo/Turtle style robot!

        1 Reply Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator
          last edited by Phaedrux

          If you have the PanelDue you can use it's internal buzzer to produce tones.

          I'm not sure if it's intended, but sometimes those tones even play in the browser through the DWC for me.

          ; STARTUP TUNE
          ;
          M400
          G4 S1
          M300 P200 S1975.53
          G4 P201
          M300 P200 S2217.46
          G4 P201
          M300 P200 S1975.53
          G4 P201
          M300 P200 S2793.83
          G4 P201
          M300 P200 S2489.02
          G4 P201
          M300 P200 S2217.46
          G4 P201
          M300 P200 S2489.02
          G4 P201
          M300 P200 S2959.96
          G4 P201
          M300 P300 S3520.00
          G4 S1
          M400
          

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • Wyvernundefined
            Wyvern
            last edited by

            Where would I put that line of code?

            Phaedruxundefined 1 Reply Last reply Reply Quote 0
            • Phaedruxundefined
              Phaedrux Moderator @Wyvern
              last edited by

              @wyvern I have mine in a macro that gets called from the end of config.g. I do the same for the start and end of a print, which each get their own tune.

              Z-Bot CoreXY Build | Thingiverse Profile

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