Music tone on startup, end sequence and end-stops
-
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)
-
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.
-
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
-
Where would I put that line of code?
-
@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.