Welcome! Log In Create A New Profile

Advanced

Custom RepRap Button

Posted by ayouden 
Custom RepRap Button
July 04, 2014 08:10AM
Hey,

I am wanting to add a normal push button to a 3D printer and for it to perform 1 single G-Code command.

However, from what I can find I cannot see any ways of doing this.

Does anyone know how to do this?

As for wiring I think I could use 1 of the 3 end-stop slots I am not currently using (or indeed servo pins).

Thanks, Alex


NFireLabs - The World First Modular 3D Printer - At An Affordable Price!
Re: Custom RepRap Button
July 14, 2014 01:05PM
This is pretty easy, you can look at other G/M Codes in Marlin_Main.cpp (if you are using Marlin) and copy and paste to get what you want. When I was playing with autoleveling, I had Marlin take an output on the Mega High/Low with G29 and then use an input for other things. There are many I/O pins not used on the Mega that you can use.
Sorry, only registered users may post in this forum.

Click here to login