Fancy pants post code
- daftscience
- Printmaster!
- Posts: 203
- Joined: Sun Jan 13, 2013 12:37 pm
Fancy pants post code
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.
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
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

[youtube]http://www.youtube.com/watch?v=Kh2AWswAMvw[/youtube]
Edit: MIDI to CNC
Questions? Ask in a thread - PMs are off.
AI Calibration | Dimensional Accuracy Calibration | Hand-Tune your PID | OctoPi + Touchscreen setup | My E3D hot end mount, Z probe, fan ducts, LED ring mount, filament spool holder, etc.
AI Calibration | Dimensional Accuracy Calibration | Hand-Tune your PID | OctoPi + Touchscreen setup | My E3D hot end mount, Z probe, fan ducts, LED ring mount, filament spool holder, etc.
- daftscience
- Printmaster!
- Posts: 203
- Joined: Sun Jan 13, 2013 12:37 pm
Re: Fancy pants post code
Haha, that's awesome.626Pilot wrote: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
I was thinking it would be neat if somehow it sent a text message letting you know your stuff was finished... or an email
- Jimustanguitar
- ULTIMATE 3D JEDI
- Posts: 2608
- Joined: Sun Mar 31, 2013 1:35 am
- Location: Notre Dame area
- Contact:
Re: Fancy pants post code
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.
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.
- barry99705
- Printmaster!
- Posts: 707
- Joined: Sun Aug 11, 2013 6:10 pm
- Location: west ohio
Re: Fancy pants post code
Get rid of the feature part.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.
Never do anything you don't want to have to explain to the paramedics.
- daftscience
- Printmaster!
- Posts: 203
- Joined: Sun Jan 13, 2013 12:37 pm
Re: Fancy pants post code
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.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
Re: Fancy pants post code
I have this solved for people using Repetier HOST with slic3r or KISS... or any other slicer that allows for custom end g-code.daftscience wrote: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.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
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
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 should be mentioned that these will only work for "streaming" your prints over serial. They will NOT work if printing from SDCARD.
My Thingiverse profile: http://www.thingiverse.com/edwardh
Re: Fancy pants post code
It seems like that list is incompleteedward 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.

Re: Fancy pants post code
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?
What do you find missing?
My Thingiverse profile: http://www.thingiverse.com/edwardh
Re: Fancy pants post code
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
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.
-
- Printmaster!
- Posts: 446
- Joined: Sun Jun 30, 2013 5:52 pm
- Location: Orange County, CA
- Contact:
Re: Fancy pants post code
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...
Fellow Philosophy majors unite!
"The proverbial achilles heel of property monistic epiphenomenalism is the apparent impossibility of ex-nihilo materialization of non-structural and qualitatively new causal powers."
"The proverbial achilles heel of property monistic epiphenomenalism is the apparent impossibility of ex-nihilo materialization of non-structural and qualitatively new causal powers."
-
- Printmaster!
- Posts: 107
- Joined: Thu May 16, 2013 7:46 am
- Location: Atlanta GA
Re: Fancy pants post 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.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.
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
Someone could write a G2 or 3(?) command to make it spiral upwards, I'd have to review some g-code to do so.
- daftscience
- Printmaster!
- Posts: 203
- Joined: Sun Jan 13, 2013 12:37 pm
Re: Fancy pants post code
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.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...