1

Can any one help me out that how to start a cycle by just using a push button.

Note: Using Marlin firmware, Arduino Mega, Ramps 1.4

I haven't tried altering the Marlin code (as I am new to coding), I was just thinking of adopting this feature as it will be very easy for CNC DIY maker using Marlin code to run a cycle in a loop.

Greenonline
  • 6,748
  • 8
  • 40
  • 68

2 Answers2

1

Unless you know the structure of the Marlin firmware pretty well, are good at coding (in C/C++), and are familiar with programming microcontrollers, then I wouldn't attempt to do this, IMHO. Adding new features can cause a number of issues elsewhere in the code and need rigourous planning and testing as well as discussion with the Marlin community.

You could however make a request (i.e. raise an issue) to the Marlin community on Github, however, I would seriously suggest posting to the Marlin forum, on RepRap, first, as random suggestions and issues raised on Github aren't really appreciated, without checking on the forum first...

If you really want to get into coding, then I would suggest buying an Arduino Uno and some components and messing about with those first, as well as visiting our excellent Arduino Q&A site on StackExchange as well as the Arduino forums.

Greenonline
  • 6,748
  • 8
  • 40
  • 68
1

Don't go modifying Marlin to do this unless you're using a 32 bit µC.

You're better off controlling Marlin with OctoPrint and writing/finding a module that allows you to kick off a print when a key is pressed on a connected keyboard or pendant.

Greenonline
  • 6,748
  • 8
  • 40
  • 68
user77232
  • 2,488
  • 12
  • 21