Page 1 of 1
Fancy pants post code
Posted: Fri Oct 25, 2013 8:19 pm
by daftscience
I'm wondering if anyone has added anything interesting to their end of print Gcode? Right now mine does the basic retract, home, and shuts the heaters off.
I thought it would be cool to spiral upwards as it homes, or do something to show off a bit when it's finishes. I don't know how to make spirally Gcode.
But, anything else? I thought I read it's possible to put a timer on the heated bed.
Re: Fancy pants post code
Posted: Fri Oct 25, 2013 9:42 pm
by 626Pilot
You can make the axis stepper motors play musical notes, and you have three of them.
[youtube]
http://www.youtube.com/watch?v=Kh2AWswAMvw[/youtube]
Edit:
MIDI to CNC
Re: Fancy pants post code
Posted: Sat Oct 26, 2013 1:10 am
by daftscience
Re: Fancy pants post code
Posted: Sat Oct 26, 2013 3:43 am
by bubbasnow
I was thinking it would be neat if somehow it sent a text message letting you know your stuff was finished... or an email
Re: Fancy pants post code
Posted: Sat Oct 26, 2013 2:57 pm
by Jimustanguitar
Have the steppers play Mario to get them warmed up while you wait on your heated bed... I'm liking this.
People have been playing music with Hard Drives lately too. It looks like fun!
Off topic, but has anyone created a program to convert MIDI music into GCode? That would be awful neat.
[youtube]
http://www.youtube.com/watch?feature=pl ... x_vWkv50uk[/youtube]
***edit*** how did you embed that YouTube video? I can't figure it out with html and the URL or with the embed/iframe code.
Re: Fancy pants post code
Posted: Sat Oct 26, 2013 10:00 pm
by barry99705
Jimustanguitar wrote:Have the steppers play Mario to get them warmed up while you wait on your heated bed... I'm liking this.
People have been playing music with Hard Drives lately too. It looks like fun!
Off topic, but has anyone created a program to convert MIDI music into GCode? That would be awful neat.
[youtube]
http://www.youtube.com/watch?v=lx_vWkv50uk[/youtube]
***edit*** how did you embed that YouTube video? I can't figure it out with html and the URL or with the embed/iframe code.
Get rid of the feature part.
Re: Fancy pants post code
Posted: Sun Oct 27, 2013 3:22 am
by daftscience
bubbasnow wrote:I was thinking it would be neat if somehow it sent a text message letting you know your stuff was finished... or an email
I'm using Octoprint. They have a bunch of really cool event hooks that let you do things like this. So you would create one that will shoot an email when it's done printing. A while ago I made one that would create a timelapse and upload it to youtube when the print finished.
Re: Fancy pants post code
Posted: Sun Oct 27, 2013 4:46 am
by bubbasnow
daftscience wrote:bubbasnow wrote:I was thinking it would be neat if somehow it sent a text message letting you know your stuff was finished... or an email
I'm using Octoprint. They have a bunch of really cool event hooks that let you do things like this. So you would create one that will shoot an email when it's done printing. A while ago I made one that would create a timelapse and upload it to youtube when the print finished.
I have this solved for people using Repetier HOST with slic3r or KISS... or any other slicer that allows for custom end g-code.
download and extract the program from here and place it in the directory of your choice, but be sure to remember for the code we will enter below.
http://caspian.dotconf.net/menu/Software/SendEmail/
put this code in the end g-code box:
@execute C:\Users\yourname\sendEmail.exe -f
[email protected] -t ##########@vtext.com -s smtp.gmail.com:587 -xu
[email protected] -xp password -u "3D Printer" -m "YO!! Your Print Is Finished"
Re: Fancy pants post code
Posted: Sun Oct 27, 2013 5:30 pm
by edward
Host commands are pretty nice. You can find a full listing of them here:
https://github.com/repetier/Repetier-Ho ... t-Commands
It should be mentioned that these will only work for "streaming" your prints over serial. They will NOT work if printing from SDCARD.
Re: Fancy pants post code
Posted: Sun Oct 27, 2013 6:39 pm
by bubbasnow
edward wrote:Host commands are pretty nice. You can find a full listing of them here:
https://github.com/repetier/Repetier-Ho ... t-Commands
It should be mentioned that these will only work for "streaming" your prints over serial. They will NOT work if printing from SDCARD.
It seems like that list is incomplete

Re: Fancy pants post code
Posted: Mon Oct 28, 2013 7:26 pm
by edward
It could be. I've only played with a few of them, but they are of no use to me since I mostly print from SD.
What do you find missing?
Re: Fancy pants post code
Posted: Mon Oct 28, 2013 8:20 pm
by bubbasnow
edward wrote:It could be. I've only played with a few of them, but they are of no use to me since I mostly print from SD.
What do you find missing?
@execute specifically no biggy..
@execute cmd.exe_with full path param_1 param_2
Re: Fancy pants post code
Posted: Tue Oct 29, 2013 11:00 am
by Nylocke
That idea to have it spiral up after the print would be pretty cool to show off at shows, if it could also spiral down, that would be cool for pre code.
Re: Fancy pants post code
Posted: Tue Oct 29, 2013 11:48 am
by cope413
For those using OctoPrint, are you on windows or are you using Linux? I'd like to try it out and experiment, but I'm always hesitant with software that wasn't meant for Windows...
Re: Fancy pants post code
Posted: Tue Oct 29, 2013 9:39 pm
by doctorgonzo
Nylocke wrote:That idea to have it spiral up after the print would be pretty cool to show off at shows, if it could also spiral down, that would be cool for pre code.
Can't you just draw a spiral (or whatever desired tool path) in your 3D modeling software, run a post processor and copy/paste the G-code? Seems pretty straight forward. I'd like my Rostock to do a little "happy dance" when it's done printing.
I'm waiting on a heater cartridge to arrive in the mail - I might play around with this stuff while I wait. I'll post if I come up with anything good.
Chris
Re: Fancy pants post code
Posted: Tue Oct 29, 2013 10:04 pm
by Nylocke
Someone could write a G2 or 3(?) command to make it spiral upwards, I'd have to review some g-code to do so.
Re: Fancy pants post code
Posted: Tue Oct 29, 2013 11:10 pm
by daftscience
cope413 wrote:For those using OctoPrint, are you on windows or are you using Linux? I'd like to try it out and experiment, but I'm always hesitant with software that wasn't meant for Windows...
I'm using a beaglebone black running Ubuntu. The main reason I'm using it is to separate it from my PC, but still keep the features of the host software. The fact that I can check up on it while I'm at work is just an added bonus.