• Tags
  • Documentation
  • Order
  • Register
  • Login
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
728
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.
  • undefined
    Wyvern
    last edited by Wyvern 27 Jan 2019, 21:11

    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
    • undefined
      DocTrucker
      last edited by 27 Jan 2019, 21:28

      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
      • undefined
        Phaedrux Moderator
        last edited by Phaedrux 27 Jan 2019, 21:32

        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
        • undefined
          Wyvern
          last edited by 28 Jan 2019, 03:32

          Where would I put that line of code?

          undefined 1 Reply Last reply 28 Jan 2019, 03:44 Reply Quote 0
          • undefined
            Phaedrux Moderator @Wyvern
            last edited by 28 Jan 2019, 03:44

            @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
            5 out of 5
            • First post
              5/5
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA